is_market_price

Function is_market_price 

Source
pub fn is_market_price(px: &str) -> bool
Expand description

Determines if a price string represents a market order.

OKX uses special values to indicate market execution:

  • Empty string
  • “0”
  • “-1” (optimal market price)
  • “-2” (optimal market price, alternate)