Skip to main content

Module position_update

Module position_update 

Source

Structs§

PositionUpdatePoint
On-disk record (64 bytes LE) for a futures position change event: u64 ts_ms (8) u8 side (1) — 0=Long 1=Short 2=Net/Both u8 _pad (7) f64 qty (8) — position size (signed in net mode; absolute here) f64 entry_price (8) f64 mark_price (8) — 0.0 if unknown f64 unrealized_pnl (8) f64 realized_pnl (8) — 0.0 if not provided f64 liquidation_price (8) — 0.0 if unknown Total: 64 bytes