pub async fn fetch_market_data(
symbol: &str,
depth: usize,
is_mainnet: bool,
) -> Result<Value, String>Expand description
Fetch L2 orderbook data for a symbol from Hyperliquid public API.
Returns top bids/asks and the spread. depth controls how many levels to return.