Skip to main content

Payload

market_id
string
asset_id
string
fill_id
string?
order_id
string?
price
f64
size
f64
side
string?
outcome
string?
tx_hash
string?
fee
f64?
liquidity_role
Maker | Taker | null
exchange_ts_ms
u64?

Example

use px_core::WsUpdate;

if let WsUpdate::Fill { fill, .. } = update? {
    println!("filled {} @ {}", fill.size, fill.price);
}