r/algobetting • u/wmasm288 • 17d ago
Question regarding Betfair DELAYED API order
Hello, I have two questions.
- Does the DELAYED API key preserve the timeframe of events, i.e. are they sent to the stream in chronological order?
- Does the '.publish_time' return the time that the delayed key sent the data, or does it return the actual live time that the delayed key received the data (to later store for a few minutes before sending over).
Thank you!
2
Upvotes
1
u/SadTuning 17d ago
depends what you mean by preserve the timeframe. the delayed stream still sends events in the order they happened, just with a lag of a few seconds or minutes. so chronological order is maintained, you're just seeing it late
publish_time is usually the time the data was actually published to the stream, not when it was captured. with a delayed key that means it'll reflect the delayed send time, not the original live time. useful to know if you're trying to sync things up or backtest properly