Hi there, I am trying to download historical options data, example attached below and I use Python. But the resulted dates starts from 2024-01-05. Is my script not correct or alpaca’s historical options data starts from 2024? Thanks
trading_client = MyTradingClient()
apple = trading_client.get_asset('AAPL')
apple_option_req = GetOptionContractsRequest(
status=AssetStatus.INACTIVE,
underlying_symbol='AAPL',
expiration_date_lte='2024-04-01',
limit=10000, page=1)
apple_options = trading_client.get_option_contracts(apple_option_req)
contracts = apple_options.option_contracts
dates = set([x.expiration_date for x in contracts])
print(dates)
dates result: