diff --git a/realtime-stock-price.py b/realtime-stock-price.py new file mode 100755 index 0000000..9b4316d --- /dev/null +++ b/realtime-stock-price.py @@ -0,0 +1,17 @@ +#!/usr/bin/python3 + +# https://docs.intrinio.com/documentation/python/get_security_snapshots_v2 + +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' +source = 'bats' + +response = intrinio.SecurityApi().get_security_realtime_price(identifier, source=source) +print(response)