Global crypto spot market data — 24h statistics, candles and order book depth from the largest venue.
tickerpassing, 0.4stickerspassing, 0.7sklinespassing, 0.3sdepthpassing, 0.3sagg-tradesfailed the last checkavg-pricepassing, 0.3sbook-tickerpassing, 0.1sexchange-infopassing, 0.1sticker-windowedpassing, 0.3stimepassing, 0.3stradespassing, 0.3sui-klinespassing, 0.3s/v1/finance:binance/ticker5m cache1 paramchecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("finance:binance", "ticker", {
"symbol": "BTCUSDT"
});
console.log(data);curl -X GET "https://api.zpi.web.id/v1/finance:binance/ticker?symbol=BTCUSDT" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"/v1/finance:binance/ticker24-hour statistics for one spot pair.symbolstringrequiredcurl -X GET "https://api.zpi.web.id/v1/finance:binance/ticker?symbol=BTCUSDT" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"ask": 72149.62,
"bid": 72149.61,
"low": 66592.3,
"high": 72564.01,
"last": 72149.61,
"open": 66676.28,
"askQty": 1.80702,
"bidQty": 0.32444,
"change": 5473.33,
"symbol": "BTCUSDT",
"exchange": "binance",
"openTime": 1787152673012,
"closeTime": 1787239073012,
"tradeCount": 7028422,
"volumeBase": 45179.29453,
"volumeQuote": 3162142746.4771805,
"changePercent": 8.209,
"previousClose": 66676.28,
"weightedAvgPrice": 69990.97217814
}/v1/finance:binance/tickersEvery spot pair at once, filterable by quote asset.quoteenumoptionalsearchstringoptionalsortenumoptionalcountnumberoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:binance/tickers?quote=USDT&search=btc&sort=volume&count=100" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"sort": "volume",
"count": 100,
"items": [
{
"low": 66346.01,
"base": "BTC",
"high": 72564.01,
"last": 72163.68,
"quote": "USDT",
"change": 5774.27,
"symbol": "BTCUSDT",
"tradeCount": 7037978,
"volumeBase": 45643.70388,
"volumeQuote": 3189585955.6830025,
"changePercent": 8.698
},
{
"low": 1.00011,
"base": "USDC",
"high": 1.00094,
"last": 1.00066,
"quote": "USDT",
"change": 0.00002,
"symbol": "USDCUSDT",
"tradeCount": 960377,
"volumeBase": 2696971601,
"volumeQuote": 2698458404.2704,
"changePercent": 0.002
},
{
"low": 1996.8,
"base": "ETH",
"high": 2333.65,
"last": 2294.16,
"quote": "USDT",
"change": 293.48,
"symbol": "ETHUSDT",
"tradeCount": 7788157,
"volumeBase": 1015554.6422,
"volumeQuote": 2237368991.893833,
"changePercent": 14.669
},
{
"low": 0.99937,
"base": "USD1",
"high": 1.0003,
"last": 1,
"quote": "USDT",
"change": 0.00018,
"symbol": "USD1USDT",
"tradeCount": 702263,
"volumeBase": 715503389,
"volumeQuote": 715273999.02337,
"changePercent": 0.018
},
{
"low": 80.86,
"base": "SOL",
"high": 88.1,
"last": 86.99,
"quote": "USDT",
"change": 5.58,
"symbol": "SOLUSDT",
"tradeCount": 1555604,
"volumeBase": 5004994.67,
"volumeQuote": 425318791.27361,
"changePercent": 6.854
},
{
"low": 1.0382,
"base": "XRP",
"high": 1.2521,
"last": 1.2494,
"quote": "USDT",
"change": 0.2109,
"symbol": "XRPUSDT",
"tradeCount": 1877984,
"volumeBase": 311095671.5,
"volumeQuote": 352737150.28509,
"changePercent": 20.308
}
],
"quote": "USDT",
"total": 734,
"exchange": "binance"
}/v1/finance:binance/klinesOHLCV candles from one minute to one month.symbolstringrequiredintervalenumoptionalcountnumberoptionallimitnumberoptionalstartTimestringoptionalendTimestringoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:binance/klines?symbol=BTCUSDT&interval=1d&count=200&limit=1000&startTime=2024-01-01&endTime=2024-03-01" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"count": 61,
"symbol": "BTCUSDT",
"candles": [
{
"low": 42180.77,
"date": "2024-01-01T00:00:00.000Z",
"high": 44184.1,
"open": 42283.58,
"close": 44179.55,
"openTime": 1704067200000,
"closeTime": 1704153599999,
"tradeCount": 1114623,
"volumeBase": 27174.29903,
"volumeQuote": 1169995682.0280013
},
{
"low": 44148.34,
"date": "2024-01-02T00:00:00.000Z",
"high": 45879.63,
"open": 44179.55,
"close": 44946.91,
"openTime": 1704153600000,
"closeTime": 1704239999999,
"tradeCount": 2247532,
"volumeBase": 65146.40661,
"volumeQuote": 2944331821.8230762
},
{
"low": 40750,
"date": "2024-01-03T00:00:00.000Z",
"high": 45500,
"open": 44946.91,
"close": 42845.23,
"openTime": 1704240000000,
"closeTime": 1704326399999,
"tradeCount": 2658041,
"volumeBase": 81194.55173,
"volumeQuote": 3507104563.744232
}
],
"exchange": "binance",
"interval": "1d"
}/v1/finance:binance/depthResting bids and asks for one spot pair.symbolstringrequiredlimitnumberoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:binance/depth?symbol=BTCUSDT&limit=50" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"asks": [
{
"price": 72114.93,
"amount": 0.37809
},
{
"price": 72114.94,
"amount": 0.00016
},
{
"price": 72116.04,
"amount": 0.00008
},
{
"price": 72116.21,
"amount": 0.00007
},
{
"price": 72117.29,
"amount": 0.00016
},
{
"price": 72117.3,
"amount": 0.05873
}
],
"bids": [
{
"price": 72114.92,
"amount": 5.53524
},
{
"price": 72114.91,
"amount": 0.0003
},
{
"price": 72114.9,
"amount": 0.00014
},
{
"price": 72114.28,
"amount": 0.00016
},
{
"price": 72114.27,
"amount": 0.01874
},
{
"price": 72112.98,
"amount": 0.00023
}
],
"spread": 0.01,
"symbol": "BTCUSDT",
"askCount": 50,
"bidCount": 50,
"exchange": "binance"
}/v1/finance:binance/agg-tradesCompressed trades for one spot pair: fills at the same price, from the samesymbolstringrequiredcountnumberoptionalstartTimestringoptionalendTimestringoptionalfromIdstringoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:binance/agg-trades?symbol=BTCUSDT&count=500&startTime=2024-01-01T00%3A00%3A00Z&endTime=2024-01-01T01%3A00%3A00Z&fromId=4036984393" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"count": 200,
"items": [
{
"side": "sell",
"time": 1787184000161,
"price": 69334.78,
"amount": 0.00021,
"timeIso": "2026-08-20T00:00:00.161Z",
"aggTradeId": 4036091185,
"tradeCount": 1,
"amountQuote": 14.5603038,
"lastTradeId": 6584309787,
"firstTradeId": 6584309787,
"isBuyerMaker": true
},
{
"side": "buy",
"time": 1787184000295,
"price": 69334.79,
"amount": 0.00007,
"timeIso": "2026-08-20T00:00:00.295Z",
"aggTradeId": 4036091186,
"tradeCount": 1,
"amountQuote": 4.8534353,
"lastTradeId": 6584309788,
"firstTradeId": 6584309788,
"isBuyerMaker": false
},
{
"side": "buy",
"time": 1787184000346,
"price": 69334.79,
"amount": 0.0004,
"timeIso": "2026-08-20T00:00:00.346Z",
"aggTradeId": 4036091187,
"tradeCount": 1,
"amountQuote": 27.733916,
"lastTradeId": 6584309789,
"firstTradeId": 6584309789,
"isBuyerMaker": false
}
],
"symbol": "BTCUSDT",
"exchange": "binance"
}/v1/finance:binance/avg-priceThe venue's own rolling average price for one spot pair — the reference thesymbolstringrequiredcurl -X GET "https://api.zpi.web.id/v1/finance:binance/avg-price?symbol=BTCUSDT" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"price": 72259.18437849,
"symbol": "BTCUSDT",
"exchange": "binance",
"closeTime": 1787239013380,
"closeTimeIso": "2026-08-20T15:16:53.380Z",
"windowMinutes": 5
}/v1/finance:binance/book-tickerBest bid and ask for one spot pair — the top of the book without the depth.symbolstringrequiredcurl -X GET "https://api.zpi.web.id/v1/finance:binance/book-ticker?symbol=BTCUSDT" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"ask": 72205.99,
"bid": 72205.98,
"askQty": 0.00021,
"bidQty": 0.43904,
"spread": 0.01,
"symbol": "BTCUSDT",
"exchange": "binance",
"spreadPercent": 0.000014
}/v1/finance:binance/exchange-infoInstrument specifications for spot pairs: tick size, lot size, minimumsymbolstringoptionalsymbolsstringoptionalquoteenumoptionalsearchstringoptionalstatusenumoptionalcountnumberoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:binance/exchange-info?symbol=BTCUSDT&symbols=BTCUSDT%2CETHUSDT"e=USDT&search=btc&status=trading&count=100" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"count": 100,
"items": [
{
"base": "0G",
"quote": "USDT",
"maxQty": 92141578,
"minQty": 0.01,
"status": "TRADING",
"symbol": "0GUSDT",
"filters": {
"lotSize": {
"maxQty": 92141578,
"minQty": 0.01,
"stepSize": 0.01
},
"notional": {
"maxNotional": 9000000,
"minNotional": 5,
"avgPriceMins": 5,
"applyMaxToMarket": false,
"applyMinToMarket": true
},
"priceFilter": {
"maxPrice": 1000,
"minPrice": 0.0001,
"tickSize": 0.0001
},
"icebergParts": {
"limit": 100
},
"maxNumOrders": {
"maxNumOrders": 200
},
"marketLotSize": {
"maxQty": 216165.06770833,
"minQty": 0,
"stepSize": 0
},
"trailingDelta": {
"maxTrailingAboveDelta": 2000,
"maxTrailingBelowDelta": 2000,
"minTrailingAboveDelta": 10,
"minTrailingBelowDelta": 10
},
"maxNumAlgoOrders": {
"maxNumAlgoOrders": 5
},
"maxNumOrderLists": {
"maxNumOrderLists": 20
},
"maxNumOrderAmends": {
"maxNumOrderAmends": 10
},
"percentPriceBySide": {
"avgPriceMins": 5,
"askMultiplierUp": 2,
"bidMultiplierUp": 1.1,
"askMultiplierDown": 0.9,
"bidMultiplierDown": 0.5
}
},
"maxPrice": 1000,
"minPrice": 0.0001,
"stepSize": 0.01,
"tickSize": 0.0001,
"ocoAllowed": true,
"opoAllowed": true,
"orderTypes": [
"LIMIT"
],
"otoAllowed": true,
"maxNotional": 9000000,
"minNotional": 5,
"permissions": [
"SPOT"
],
"amendAllowed": true,
"basePrecision": 8,
"icebergAllowed": true,
"quotePrecision": 8,
"allowTrailingStop": true,
"cancelReplaceAllowed": true,
"isSpotTradingAllowed": true,
"quoteAmountPrecision": 8,
"isMarginTradingAllowed": true,
"pegInstructionsAllowed": true,
"baseCommissionPrecision": 8,
"quoteCommissionPrecision": 8,
"selfTradePreventionModes": [
"EXPIRE_TAKER"
],
"quoteOrderQtyMarketAllowed": true,
"defaultSelfTradePreventionMode": "EXPIRE_MAKER"
}
],
"quote": "USDT",
"total": 484,
"exchange": "binance",
"rateLimits": [
{
"type": "REQUEST_WEIGHT",
"limit": 6000,
"interval": "MINUTE",
"intervalNum": 1
}
],
"serverTime": 1787238332343,
"serverTimeIso": "2026-08-20T15:05:32.343Z"
}/v1/finance:binance/ticker-windowedRolling-window statistics for one spot pair — the same shape as the 24-hoursymbolstringrequiredwindowSizestringoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:binance/ticker-windowed?symbol=BTCUSDT&windowSize=4h" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"low": 71132,
"high": 72564.01,
"last": 72117.99,
"open": 71968.47,
"change": 149.52,
"symbol": "BTCUSDT",
"exchange": "binance",
"openTime": 1787224620000,
"closeTime": 1787239061402,
"tradeCount": 1543516,
"volumeBase": 7298.47648,
"windowSize": "4h",
"openTimeIso": "2026-08-20T11:17:00.000Z",
"volumeQuote": 524344946.5365594,
"closeTimeIso": "2026-08-20T15:17:41.402Z",
"changePercent": 0.208,
"weightedAvgPrice": 71843.06861486
}/v1/finance:binance/timeThe venue's own clock, and how far ours has drifted from it.This endpoint takes no parameters.
curl -X GET "https://api.zpi.web.id/v1/finance:binance/time" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"driftMs": 0,
"exchange": "binance",
"serverTime": 1787238365364,
"roundTripMs": 84,
"serverTimeIso": "2026-08-20T15:06:05.364Z"
}/v1/finance:binance/tradesThe most recent prints on one spot pair — the raw tape, one row per fill.symbolstringrequiredcountnumberoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:binance/trades?symbol=BTCUSDT&count=100" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"count": 100,
"items": [
{
"side": "sell",
"time": 1787239085331,
"price": 72116.14,
"amount": 0.00383,
"timeIso": "2026-08-20T15:18:05.331Z",
"tradeId": 6588632930,
"amountQuote": 276.2048162,
"isBuyerMaker": true
},
{
"side": "sell",
"time": 1787239085331,
"price": 72116.04,
"amount": 0.00008,
"timeIso": "2026-08-20T15:18:05.331Z",
"tradeId": 6588632931,
"amountQuote": 5.7692832,
"isBuyerMaker": true
},
{
"side": "sell",
"time": 1787239085331,
"price": 72116.01,
"amount": 0.00008,
"timeIso": "2026-08-20T15:18:05.331Z",
"tradeId": 6588632932,
"amountQuote": 5.7692808,
"isBuyerMaker": true
},
{
"side": "sell",
"time": 1787239085331,
"price": 72116.01,
"amount": 0.00008,
"timeIso": "2026-08-20T15:18:05.331Z",
"tradeId": 6588632933,
"amountQuote": 5.7692808,
"isBuyerMaker": true
},
{
"side": "sell",
"time": 1787239085331,
"price": 72116.01,
"amount": 0.00008,
"timeIso": "2026-08-20T15:18:05.331Z",
"tradeId": 6588632934,
"amountQuote": 5.7692808,
"isBuyerMaker": true
},
{
"side": "sell",
"time": 1787239085331,
"price": 72116,
"amount": 0.00448,
"timeIso": "2026-08-20T15:18:05.331Z",
"tradeId": 6588632935,
"amountQuote": 323.07968,
"isBuyerMaker": true
}
],
"symbol": "BTCUSDT",
"exchange": "binance"
}/v1/finance:binance/ui-klinesDisplay-optimised candles for one spot pair. Same positional row shape assymbolstringrequiredintervalenumoptionalcountnumberoptionalstartTimestringoptionalendTimestringoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:binance/ui-klines?symbol=BTCUSDT&interval=1d&count=200&startTime=2024-01-01&endTime=2024-03-01" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"count": 61,
"symbol": "BTCUSDT",
"candles": [
{
"low": 42180.77,
"date": "2024-01-01T00:00:00.000Z",
"high": 44184.1,
"open": 42283.58,
"close": 44179.55,
"openTime": 1704067200000,
"closeTime": 1704153599999,
"tradeCount": 1114623,
"volumeBase": 27174.29903,
"volumeQuote": 1169995682.0280013
},
{
"low": 44148.34,
"date": "2024-01-02T00:00:00.000Z",
"high": 45879.63,
"open": 44179.55,
"close": 44946.91,
"openTime": 1704153600000,
"closeTime": 1704239999999,
"tradeCount": 2247532,
"volumeBase": 65146.40661,
"volumeQuote": 2944331821.8230762
},
{
"low": 40750,
"date": "2024-01-03T00:00:00.000Z",
"high": 45500,
"open": 44946.91,
"close": 42845.23,
"openTime": 1704240000000,
"closeTime": 1704326399999,
"tradeCount": 2658041,
"volumeBase": 81194.55173,
"volumeQuote": 3507104563.744232
}
],
"exchange": "binance",
"interval": "1d"
}