Expand description
PnL attribution engine.
Replays fills to track per-symbol positions and computes attributed PnL at any point in time given mark prices. Used for:
- Live attribution in the snapshot job going forward
Modules§
- position_
tracker 🔒 - Position tracker that replays fills and computes per-symbol PnL attribution.
- serde_
codec 🔒 - Msgpack encoding/decoding for PnL attribution data.
Structs§
- Attribution
- Full attribution snapshot for a wallet.
- Fill
- A fill event to replay.
- Position
Tracker - Tracks positions for a single wallet across all symbols.
- Symbol
Attribution - Per-symbol PnL attribution at a point in time.
Enums§
Functions§
- decode_
attribution - Decode msgpack bytes back to an Attribution.
- encode_
attribution - Encode an Attribution to msgpack bytes.