Function parse_orderbook
Source pub fn parse_orderbook(data: &Value, symbol: String) -> Result<OrderBook>
Expand description
Parse orderbook data from Bybit depth response.
§Arguments
data - Bybit 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.