12 lines
265 B
Python
12 lines
265 B
Python
|
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)
|