probe-gate
Demonstrates fetching the current order book to see bid/ask prices and market depth
curl 'https://api.exchange.cryptomkt.com/api/3/public/orderbook/BTCUSDT?limit=5'
import requests
resp = requests.get(
"https://api.exchange.cryptomkt.com/api/3/public/orderbook/BTCUSDT",
params={
'limit': '5',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("cryptomkt")
result = api.fetch("public/orderbook/{symbol}", limit=5)
for item in result:
print(item)
const resp = await fetch("https://api.exchange.cryptomkt.com/api/3/public/orderbook/BTCUSDT?limit=5");
const data = await resp.json();