diff --git a/MSFT-puts.py b/MSFT-puts.py new file mode 100755 index 0000000..e032b02 --- /dev/null +++ b/MSFT-puts.py @@ -0,0 +1,18 @@ +#!/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) + +symbol = 'MSFT' +expiration = '2023-01-20' +source = '' +type = '' +moneyness = '' + +response = intrinio.OptionsApi().get_options_chain_realtime(symbol, expiration, source=source, type=type, moneyness=moneyness) +print(response)