Call it
curl https://api.peume.com/v1/call/exchange-order-book-depth \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"pair": "your pair",
"type": "spot",
"limit": 20,
"exchange": "binance"
}
}'const res = await fetch("https://api.peume.com/v1/call/exchange-order-book-depth", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"pair": "your pair",
"type": "spot",
"limit": 20,
"exchange": "binance"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/exchange-order-book-depth",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"pair": "your pair",
"type": "spot",
"limit": 20,
"exchange": "binance"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: exchange-order-book-depth.
Parameters
pairRequiredstringTrading pair (e.g. BTC/USDT). Example: BTC/USDT.
typestringMarket type: spot for spot trading, swap/perpetual/perp for perpetual contracts. Example: spot. Defaults to "spot".
spot · swap · perpetual · perp
Example: spot
limitintegerNumber of price levels (1-100). Example: 20. Defaults to 20.
Example: 20
exchangestringExchange identifier. Note: hyperliquid uses USDC-settled perps (e.g. BTC/USDC:USDC); pass USDC-quoted pairs when querying hyperliquid. Example: binance. Defaults to "binance".
binance · okx · bybit · bitget · coinbase · kraken · gate · mexc · upbit · bitstamp · deribit · bitmex …
Example: binance
