19 lines
492 B
Python
Executable File
19 lines
492 B
Python
Executable File
#!/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)
|