Function parse_orderbook
Source pub fn parse_orderbook(data: &Value, symbol: String) -> Result<OrderBook>
Expand description
Parse orderbook data from OKX depth response.
§Arguments
data - OKX orderbook data JSON object
symbol - Trading pair symbol
§Returns
Returns a CCXT OrderBook structure with bids sorted in descending order
and asks sorted in ascending order.