diff --git a/DOCN-institutional-holders.py b/DOCN-institutional-holders.py old mode 100644 new mode 100755 diff --git a/all-securities.py b/all-securities.py old mode 100644 new mode 100755 diff --git a/all-stock-exchanges.py b/all-stock-exchanges.py new file mode 100755 index 0000000..a9cbd57 --- /dev/null +++ b/all-stock-exchanges.py @@ -0,0 +1,17 @@ +#!/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) + +city = 'New York' +country = 'UNITED STATES OF AMERICA' +country_code = 'US' +page_size = 1000 + +response = intrinio.StockExchangeApi().get_all_stock_exchanges(city=city, country=country, country_code=country_code, page_size=page_size) +print(response)