pub fn parse_order_status_report(
order: &BybitOrder,
instrument: &InstrumentAny,
account_id: AccountId,
ts_init: UnixNanos,
) -> Result<OrderStatusReport>Expand description
Parses a Bybit order into a Nautilus OrderStatusReport.
Copies a venue rejectReason into cancel_reason, except EC_NoError. When the mapped
status is Rejected and rejectReason is empty or EC_NoError, the reason is
venue omitted rejectReason.