Skip to main content

parse_order_status

Function parse_order_status 

Source
pub fn parse_order_status(status: CoinbaseOrderStatus) -> OrderStatus
Expand description

Converts a Coinbase order status to the Nautilus [OrderStatus].

Pending and Queued are transient pre-Open states the venue passes through after acknowledging the order. They are mapped to Accepted (rather than Submitted) so user-channel updates that race the REST OrderAccepted event do not appear as a backwards transition to the reconciler. Open also maps to Accepted because Nautilus differentiates the initial accept event from later partial-fill states; callers should promote the status to PartiallyFilled / Filled based on filled_qty.