Skip to main content

make_trade_id

Function make_trade_id 

Source
pub fn make_trade_id(uo: &UnmatchedOrder) -> TradeId
Expand description

Generates a deterministic [TradeId] for a Betfair fill.

Uses bet_id and cumulative sm (size matched) which together uniquely identify each fill state, since sm increases monotonically with each fill.