database/options_chain_example.py

12 lines
265 B
Python
Raw Normal View History

from database.options import options_chain
from datetime import datetime
timestamp = datetime(2023, 10, 6, 9, 35, 0)
data = options_chain(
symbol='SPX',
date=timestamp.date(),
expiration=datetime(2023, 10, 13),
timestamp=timestamp)
print(data)