intrinio-jcarr/AAPL-institutional-trans.py

22 lines
687 B
Python
Raw Normal View History

2022-11-02 19:40:16 -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'
start_date = '2018-01-01'
end_date = '2019-01-01'
ownership_type = 'D'
next_page = ''
page_size = 1000
sort_by = 'updated_on'
next_page2 = ''
response = intrinio.CompanyApi().insider_transaction_filings_by_company(identifier, start_date=start_date, end_date=end_date, ownership_type=ownership_type, next_page=next_page, page_size=page_size, sort_by=sort_by, next_page2=next_page2)
print(response)