Skip to content

Streaming Historical Data... "End time no longer supported" #198

@jackroc97

Description

@jackroc97

I am trying to use DXLinkStreamer to download historical data. My code looks something like this:

session = Session(...)
# Download last week's 5m candles on current /ES future
start_time = datetime(2025, 1, 6) 
end_time = datetime(2025, 1, 10)
future = Future.get_future(session,  "/ESH5")
async with DXLinkStreamer(session) as streamer:
    await streamer.subscribe_candle([future.streamer_symbol], '5m', start_time, end_time=end_time, extended_trading_hours=True)
    async for candle in streamer.listen(Candle):
        print(candle.model_dump())

When I run this, I am met with tastytrade.utils.TastytradeError: End time no longer supported. The tastytrade api supports historical candles as documented here. Is historical data not yet implemented in this wrapper?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions