Expand description
Live execution client for the Betfair adapter.
§Stream reconnect lifecycle
On every reconnect (second Connection message), the OCM handler raises
both pending_resync (drains buffered OCMs on the next command) and
is_reconciling (halts exposure-increasing commands). The reconnect
background task then refreshes the session, fetches account state, and
pulls a list_current_orders mass status to recover any fills that
completed and rolled off the unmatched book during the gap. Once the
mass status is dispatched the halt clears.
While is_reconciling is set, submit_order and submit_order_list
emit OrderDenied with STREAM_RECONCILING; cancels and modifies
pass through unchanged. The halt is fail-open: a transient reconnect
failure clears the flag rather than locking trading indefinitely,
consistent with the rest of Nautilus.
Structs§
- Betfair
Execution Client - Betfair live execution client.