intrinio-jcarr/AwesomeOscillator-AAPL.py

21 lines
636 B
Python
Raw Permalink Normal View History

2022-11-02 22:16:52 -05:00
#!/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'
short_period = 5
long_period = 34
start_date = '2022-10-01'
end_date = '2022-11-01'
page_size = 100
next_page = ''
response = intrinio.SecurityApi().get_security_price_technicals_ao(identifier, short_period=short_period, long_period=long_period, start_date=start_date, end_date=end_date, page_size=page_size, next_page=next_page)
print(response)