diff --git a/AAPL.py b/AAPL.py new file mode 100755 index 0000000..1a0503e --- /dev/null +++ b/AAPL.py @@ -0,0 +1,19 @@ +#!/usr/bin/python3 + +from __future__ import print_function +import time +import intrinio_sdk as intrinio +from intrinio_sdk.rest import ApiException + +intrinio.ApiClient().set_api_key('OjZjZGIzZmYyNDg4NDZjYjQ4NzAzMzAyZjg0OTU5MDcz') +intrinio.ApiClient().allow_retries(True) + +identifier = 'AAPL' +start_date = '2018-01-01' +end_date = '2019-01-01' +frequency = 'daily' +page_size = 100 +next_page = '' + +response = intrinio.SecurityApi().get_security_stock_prices(identifier, start_date=start_date, end_date=end_date, frequency=frequency, page_size=page_size, next_page=next_page) +print(response) diff --git a/test-appl.py b/test-appl.py index b0dff18..c149206 100755 --- a/test-appl.py +++ b/test-appl.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/python3 from __future__ import print_function import time