"Awesome Oscillator" for AAPL
This commit is contained in:
parent
d0ecec437d
commit
bcad060859
|
@ -0,0 +1,20 @@
|
|||
#!/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)
|
|
@ -0,0 +1,57 @@
|
|||
{'indicator': {'name': 'Awesome Oscillator', 'symbol': 'ao'},
|
||||
'next_page': 'MjAyMi0xMC0wMw==',
|
||||
'security': {'code': 'EQS',
|
||||
'company_id': 'com_NX6GzO',
|
||||
'composite_figi': 'BBG000B9XRY4',
|
||||
'composite_ticker': 'AAPL:US',
|
||||
'currency': 'USD',
|
||||
'figi': 'BBG000B9Y5X2',
|
||||
'id': 'sec_agjrgj',
|
||||
'name': 'Apple Inc',
|
||||
'primary_listing': True,
|
||||
'share_class_figi': 'BBG001S5N8V8',
|
||||
'ticker': 'AAPL'},
|
||||
'technicals': [{'ao': 4.008489705882255,
|
||||
'date_time': datetime.datetime(2022, 11, 1, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': 3.645333823529427,
|
||||
'date_time': datetime.datetime(2022, 10, 31, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': 2.5383632352940992,
|
||||
'date_time': datetime.datetime(2022, 10, 28, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': 0.7878179411764279,
|
||||
'date_time': datetime.datetime(2022, 10, 27, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': 0.039012058823487905,
|
||||
'date_time': datetime.datetime(2022, 10, 26, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -1.451567941176478,
|
||||
'date_time': datetime.datetime(2022, 10, 25, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -3.029538529411724,
|
||||
'date_time': datetime.datetime(2022, 10, 24, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -4.5495091176470055,
|
||||
'date_time': datetime.datetime(2022, 10, 21, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -5.693347647058772,
|
||||
'date_time': datetime.datetime(2022, 10, 20, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -7.112377058823483,
|
||||
'date_time': datetime.datetime(2022, 10, 19, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -8.365161764705874,
|
||||
'date_time': datetime.datetime(2022, 10, 18, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -9.624014705882331,
|
||||
'date_time': datetime.datetime(2022, 10, 17, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -10.476342352941174,
|
||||
'date_time': datetime.datetime(2022, 10, 14, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -11.256077647058845,
|
||||
'date_time': datetime.datetime(2022, 10, 13, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -10.666224705882343,
|
||||
'date_time': datetime.datetime(2022, 10, 12, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -10.300327647058793,
|
||||
'date_time': datetime.datetime(2022, 10, 11, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -10.029768823529395,
|
||||
'date_time': datetime.datetime(2022, 10, 10, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -10.83191323529411,
|
||||
'date_time': datetime.datetime(2022, 10, 7, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -11.895605882352925,
|
||||
'date_time': datetime.datetime(2022, 10, 6, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -13.244252941176484,
|
||||
'date_time': datetime.datetime(2022, 10, 5, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -13.5929070588235,
|
||||
'date_time': datetime.datetime(2022, 10, 4, 0, 0, tzinfo=tzutc())},
|
||||
{'ao': -12.981639411764661,
|
||||
'date_time': datetime.datetime(2022, 10, 3, 0, 0, tzinfo=tzutc())}]}
|
Loading…
Reference in New Issue