nautechsystems/nautilus_trader · error
No session token for race stream
Error message
No session token for race stream
What it means
Error "No session token for race stream" thrown in nautechsystems/nautilus_trader.
Source
Thrown at crates/adapters/betfair/src/data.rs:697
handler,
self.stream_config.clone(),
)
.await
.map_err(|e| anyhow::anyhow!("{e}"))?;
self.stream_client = Some(Arc::new(stream_client));
if self.config.subscribe_race_data {
let race_config = BetfairStreamConfig {
host: BETFAIR_RACE_STREAM_HOST.to_string(),
..self.stream_config.clone()
};
let race_session = self
.http_client
.session_token()
.await
.ok_or_else(|| anyhow::anyhow!("No session token for race stream"))?;
let race_handler = Self::create_stream_handler(
self.data_sender.clone(),
Arc::clone(&self.instruments),
self.currency,
self.provider.min_notional(),
reconnect_tx.clone(),
self.clock,
);
let (race_fatal_tx, mut race_fatal_rx) = tokio::sync::mpsc::unbounded_channel();
match BetfairRaceStreamClient::connect(
&self.credential,
race_session,
race_handler,
race_config,
race_fatal_tx,View on GitHub (pinned to a4b06ed870)
When it happens
Trigger: Thrown at crates/adapters/betfair/src/data.rs:697 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nautechsystems/nautilus_trader@a4b06ed870 (2026-08-16).
Data as JSON: /api/errors/2726cf354e9878d5.
Report an issue: GitHub.