From e87f5e85d0f22694d91ceb71b7040dc5f8728b4c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 3 Nov 2022 03:13:52 -0500 Subject: [PATCH] also don't have access to this --- get-all-etfs.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 get-all-etfs.py diff --git a/get-all-etfs.py b/get-all-etfs.py new file mode 100755 index 0000000..9e99c1c --- /dev/null +++ b/get-all-etfs.py @@ -0,0 +1,16 @@ +#!/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) + +exchange = 'XNAS' +page_size = 100 +next_page = '' + +response = intrinio.ETFsApi().get_all_etfs(exchange=exchange, page_size=page_size, next_page=next_page) +print(response)