From cecc84f98f4162cf8b74c3f6edeec8de2a255f1b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 2 Nov 2022 19:06:05 -0500 Subject: [PATCH] first working DOCN example. prints out each day's totals --- DOCN.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 DOCN.py diff --git a/DOCN.py b/DOCN.py new file mode 100755 index 0000000..dde3fae --- /dev/null +++ b/DOCN.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 = 'DOCN' +start_date = '2022-10-20' +end_date = '2022-11-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)