market_snapshot
2 credits · 0.01 USDCGET /market_snapshot
Funding, open interest, liquidations and order book depth for a ticker across Binance, Bybit, OKX, Hyperliquid and Drift, price and funding divergence, and the all-in cost of an order of the given size on each venue and on Jupiter with the cheapest venue.
| Parameter | Type | Description |
|---|---|---|
size_usd | number | Default 10000. |
symbolrequired | string | Ticker such as SOL |
curl "https://api.dexra.dev/market_snapshot?size_usd=10000&symbol=SOL" \
-H "Authorization: Bearer dxr_…"import { Dexra } from '@dexra/client'
const dexra = new Dexra({ apiKey: process.env.DEXRA_API_KEY })
const result = await dexra.marketSnapshot({ size_usd: 10000, symbol: "SOL" })
console.log(result.summary)import os
from dexra import Dexra
dexra = Dexra(api_key=os.environ["DEXRA_API_KEY"])
result = dexra.market_snapshot(size_usd=10000, symbol="SOL")
print(result["summary"]){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "market_snapshot",
"arguments": {
"size_usd": 10000,
"symbol": "SOL"
}
}
}