should show options, but I don't have access

This commit is contained in:
Jeff Carr 2022-11-02 22:11:10 -05:00
parent 452c988a01
commit e90d54b237
1 changed files with 18 additions and 0 deletions

18
MSFT-puts.py Executable file
View File

@ -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)