doc_extracted
Demonstrates fetching 20 levels of order book depth for liquidity analysis
curl 'https://api.kucoin.com/api/v1/market/orderbook/level2_20?symbol=SOL-USDT'
import requests
resp = requests.get(
"https://api.kucoin.com/api/v1/market/orderbook/level2_20",
params={
'symbol': 'SOL-USDT',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("kucoin")
result = api.fetch("api/v1/market/orderbook/level2_20", symbol="SOL-USDT")
for item in result:
print(item)
const resp = await fetch("https://api.kucoin.com/api/v1/market/orderbook/level2_20?symbol=SOL-USDT");
const data = await resp.json();