pub fn parse_ws_fill_report_fast(
execution: &BybitWsAccountExecutionFast,
account_id: AccountId,
instrument: &InstrumentAny,
fee_rates: Option<MakerTakerFeeRates>,
client_order_id: Option<ClientOrderId>,
venue_position_id: Option<PositionId>,
ts_init: UnixNanos,
) -> Result<FillReport>Expand description
Parses a fast-stream WebSocket execution payload into a [FillReport].
The execution.fast channel omits fee and exec-type fields. When account fee
rates are supplied, commission is derived on a best-effort basis and is not
venue-authoritative. Missing rates or derivation failures produce zero commission.
Option fast fills always use zero commission because the payload lacks the inputs
required by Bybit’s Option fee formula. Liquidity side is derived from isMaker.
client_order_id takes precedence over the payload’s orderLinkId. The execution client
supplies the identity it correlates by venue order ID for maker fills.
venue_position_id should be supplied for tracked hedge-mode orders so the
emitted report carries the long/short position identity that the standard
channel preserves via OrderFilled.
§Errors
Returns an error if price or quantity fields cannot be parsed or timestamps are invalid.