Tokocrypto aggregated tape — consecutive fills of one taker order at one
agg-tradesnot measuredklinesnot measuredtickernot measuredsymbolsnot measuredtradesnot measureddepthnot measured/v1/finance:tokocrypto/agg-trades5s cache2 paramschecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("finance:tokocrypto", "agg-trades", {
"symbol": "BTCIDR",
"limit": 100
});
console.log(data);curl -X GET "https://api.zpi.web.id/v1/finance:tokocrypto/agg-trades?symbol=BTCIDR&limit=100" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"/v1/finance:tokocrypto/agg-tradesTokocrypto aggregated tape — consecutive fills of one taker order at onesymbolstringrequiredlimitnumberoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:tokocrypto/agg-trades?symbol=BTCIDR&limit=100" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"base": "BTC",
"pair": "BTC_IDR",
"count": 100,
"items": [
{
"side": "buy",
"price": 1326185291,
"value": 66309.26455,
"amount": 0.00005,
"tradedAt": 1787277957618,
"aggTradeId": "839944",
"lastTradeId": "897133",
"tradedAtIso": "2026-08-21T02:05:57.618Z",
"firstTradeId": "897133"
},
{
"side": "buy",
"price": 1326185291,
"value": 13261.85291,
"amount": 0.00001,
"tradedAt": 1787277958311,
"aggTradeId": "839945",
"lastTradeId": "897134",
"tradedAtIso": "2026-08-21T02:05:58.311Z",
"firstTradeId": "897134"
},
{
"side": "buy",
"price": 1326712538,
"value": 39801.37614,
"amount": 0.00003,
"tradedAt": 1787277958704,
"aggTradeId": "839946",
"lastTradeId": "897135",
"tradedAtIso": "2026-08-21T02:05:58.704Z",
"firstTradeId": "897135"
},
{
"side": "buy",
"price": 1326712538,
"value": 13267.12538,
"amount": 0.00001,
"tradedAt": 1787277959308,
"aggTradeId": "839947",
"lastTradeId": "897136",
"tradedAtIso": "2026-08-21T02:05:59.308Z",
"firstTradeId": "897136"
},
{
"side": "buy",
"price": 1326712538,
"value": 13267.12538,
"amount": 0.00001,
"tradedAt": 1787277960302,
"aggTradeId": "839948",
"lastTradeId": "897137",
"tradedAtIso": "2026-08-21T02:06:00.302Z",
"firstTradeId": "897137"
},
{
"side": "buy",
"price": 1326712538,
"value": 13267.12538,
"amount": 0.00001,
"tradedAt": 1787277962406,
"aggTradeId": "839949",
"lastTradeId": "897138",
"tradedAtIso": "2026-08-21T02:06:02.406Z",
"firstTradeId": "897138"
},
{
"side": "buy",
"price": 1327212210,
"value": 26544.2442,
"amount": 0.00002,
"tradedAt": 1787277965501,
"aggTradeId": "839950",
"lastTradeId": "897139",
"tradedAtIso": "2026-08-21T02:06:05.501Z",
"firstTradeId": "897139"
},
{
"side": "buy",
"price": 1327212210,
"value": 53088.4884,
"amount": 0.00004,
"tradedAt": 1787277966309,
"aggTradeId": "839951",
"lastTradeId": "897140",
"tradedAtIso": "2026-08-21T02:06:06.309Z",
"firstTradeId": "897140"
}
],
"quote": "IDR",
"symbol": "BTCIDR",
"dataset": "agg-trades",
"provider": "tokocrypto"
}/v1/finance:tokocrypto/klinesTokocrypto OHLCV candles, including the taker-buy split — the half of thesymbolstringrequiredintervalenumoptionalstartTimestringoptionalendTimestringoptionalcountnumberoptionalpagenumberoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:tokocrypto/klines?symbol=BTCIDR&interval=15m&startTime=2026-08-01T00%3A00%3A00Z&endTime=2026-08-20T00%3A00%3A00Z&count=500&page=1" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"base": "BTC",
"page": 1,
"pair": "BTC_IDR",
"count": 500,
"items": [
{
"low": 1123639484,
"date": "2026-08-15T21:30:00.000Z",
"high": 1123917268,
"open": 1123639484,
"close": 1123917268,
"volume": 0.00347,
"openTime": 1786829400000,
"closeTime": 1786830299999,
"tradeCount": 4,
"quoteVolume": 3899087.9,
"takerBuyVolume": 0.00017,
"takerBuyQuoteVolume": 191065.93
},
{
"low": 1123925572,
"date": "2026-08-15T21:45:00.000Z",
"high": 1123925572,
"open": 1123925572,
"close": 1123925572,
"volume": 0.00127,
"openTime": 1786830300000,
"closeTime": 1786831199999,
"tradeCount": 1,
"quoteVolume": 1427385.47,
"takerBuyVolume": 0,
"takerBuyQuoteVolume": 0
},
{
"low": 1123671838,
"date": "2026-08-15T22:00:00.000Z",
"high": 1123931540,
"open": 1123931540,
"close": 1123671838,
"volume": 0.00205,
"openTime": 1786831200000,
"closeTime": 1786832099999,
"tradeCount": 44,
"quoteVolume": 2303927.04,
"takerBuyVolume": 0.00161,
"takerBuyQuoteVolume": 1809511.44
},
{
"low": 1123526294,
"date": "2026-08-15T22:15:00.000Z",
"high": 1125249663,
"open": 1123918687,
"close": 1123536529,
"volume": 0.01094,
"openTime": 1786832100000,
"closeTime": 1786832999999,
"tradeCount": 8,
"quoteVolume": 12304091.85,
"takerBuyVolume": 0.00897,
"takerBuyQuoteVolume": 10090743.12
},
{
"low": 1123648378,
"date": "2026-08-15T22:30:00.000Z",
"high": 1123648378,
"open": 1123648378,
"close": 1123648378,
"volume": 0.00003,
"openTime": 1786833000000,
"closeTime": 1786833899999,
"tradeCount": 1,
"quoteVolume": 33709.45,
"takerBuyVolume": 0,
"takerBuyQuoteVolume": 0
},
{
"low": 1123457394,
"date": "2026-08-15T22:45:00.000Z",
"high": 1125182518,
"open": 1123890961,
"close": 1123457394,
"volume": 0.00272,
"openTime": 1786833900000,
"closeTime": 1786834799999,
"tradeCount": 7,
"quoteVolume": 3056505,
"takerBuyVolume": 0.00092,
"takerBuyQuoteVolume": 1034110.85
},
{
"low": 1123457394,
"date": "2026-08-15T23:00:00.000Z",
"high": 1124010008,
"open": 1123981311,
"close": 1123982378,
"volume": 0.00266,
"openTime": 1786834800000,
"closeTime": 1786835699999,
"tradeCount": 46,
"quoteVolume": 2989712.71,
"takerBuyVolume": 0.00251,
"takerBuyQuoteVolume": 2821194.11
},
{
"low": 1123429622,
"date": "2026-08-15T23:15:00.000Z",
"high": 1123431185,
"open": 1123429622,
"close": 1123429622,
"volume": 0.01802,
"openTime": 1786835700000,
"closeTime": 1786836599999,
"tradeCount": 6,
"quoteVolume": 20244225.8,
"takerBuyVolume": 0,
"takerBuyQuoteVolume": 0
}
],
"quote": "IDR",
"symbol": "BTCIDR",
"dataset": "klines",
"endTime": 1787279399999,
"hasMore": true,
"interval": "15m",
"nextPage": 2,
"provider": "tokocrypto",
"startTime": null
}/v1/finance:tokocrypto/tickerTokocrypto 24-hour ticker — the only IDR book in this repo carrying bid andsymbolstringoptionalquotestringoptionalsymbol is setquerystringoptionalsymbol is setpagenumberoptionalcountnumberoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:tokocrypto/ticker?symbol=BTCIDR"e=IDR&query=btc&page=1&count=100" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"page": 1,
"count": 1,
"items": [
{
"base": "BTC",
"pair": "BTC_IDR",
"type": "main",
"quote": "IDR",
"askQty": 0.02811,
"bidQty": 0.04206,
"symbol": "BTCIDR",
"volume": 19.19794,
"lastQty": 0.00003,
"askPrice": 1322765665,
"bidPrice": 1321305370,
"lowPrice": 1222000000,
"openTime": 1787192764361,
"closeTime": 1787279164361,
"highPrice": 1336459176,
"lastPrice": 1320388680,
"openPrice": 1231613026,
"tradeCount": 4218,
"lastTradeId": 897237,
"openTimeIso": "2026-08-20T02:26:04.361Z",
"priceChange": 88775654,
"quoteVolume": 24512927167.4,
"closeTimeIso": "2026-08-21T02:26:04.361Z",
"firstTradeId": 893020,
"prevClosePrice": 1231691936,
"weightedAvgPrice": 1276851952.21,
"priceChangePercent": 7.208
}
],
"query": null,
"quote": null,
"total": 1,
"symbol": "BTCIDR",
"dataset": "ticker",
"hasMore": false,
"nextPage": null,
"provider": "tokocrypto"
}/v1/finance:tokocrypto/symbolsTokocrypto's own tradable list — symbol, precision and the order filtersquotestringoptionalquerystringoptionaltypeenumoptionalnext pairs are served by a different market host and are excluded by default. Default main Values: main, next, all.pagenumberoptionalcountnumberoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:tokocrypto/symbols?quote=IDR&query=btc&type=main&page=1&count=100" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"page": 1,
"type": "main",
"count": 29,
"items": [
{
"base": "ADA",
"pair": "ADA_IDR",
"type": "main",
"quote": "IDR",
"maxQty": 324354,
"minQty": 0.1,
"symbol": "ADAIDR",
"maxPrice": 284360,
"minPrice": 1,
"stepSize": 0.1,
"tickSize": 1,
"ocoEnabled": true,
"orderTypes": [
"LIMIT",
"LIMIT_MAKER",
"MARKET"
],
"maxNotional": 9000000000,
"minNotional": 20000,
"permissions": [
"SPOT"
],
"basePrecision": 8,
"icebergEnabled": true,
"quotePrecision": 2,
"spotTradingEnabled": true,
"marginTradingEnabled": false
},
{
"base": "ARB",
"pair": "ARB_IDR",
"type": "main",
"quote": "IDR",
"maxQty": 530991,
"minQty": 0.1,
"symbol": "ARBIDR",
"maxPrice": 173700,
"minPrice": 1,
"stepSize": 0.1,
"tickSize": 1,
"ocoEnabled": true,
"orderTypes": [
"LIMIT",
"LIMIT_MAKER",
"MARKET"
],
"maxNotional": 9000000000,
"minNotional": 20000,
"permissions": [
"SPOT"
],
"basePrecision": 8,
"icebergEnabled": true,
"quotePrecision": 2,
"spotTradingEnabled": true,
"marginTradingEnabled": false
},
{
"base": "ASTER",
"pair": "ASTER_IDR",
"type": "main",
"quote": "IDR",
"maxQty": 102481,
"minQty": 0.01,
"symbol": "ASTERIDR",
"maxPrice": 899999,
"minPrice": 1,
"stepSize": 0.01,
"tickSize": 1,
"ocoEnabled": true,
"orderTypes": [
"LIMIT",
"LIMIT_MAKER",
"MARKET"
],
"maxNotional": 9000000000,
"minNotional": 20000,
"permissions": [
"SPOT"
],
"basePrecision": 8,
"icebergEnabled": true,
"quotePrecision": 2,
"spotTradingEnabled": true,
"marginTradingEnabled": false
}
],
"query": null,
"quote": "IDR",
"total": 29,
"dataset": "symbols",
"hasMore": false,
"nextPage": null,
"provider": "tokocrypto"
}/v1/finance:tokocrypto/tradesTokocrypto executed tape — every print carries its own quote value and thesymbolstringrequiredlimitnumberoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:tokocrypto/trades?symbol=BTCIDR&limit=100" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"base": "BTC",
"pair": "BTC_IDR",
"count": 100,
"items": [
{
"side": "buy",
"price": 1326712538,
"value": 13267.12,
"amount": 0.00001,
"tradeId": "897138",
"tradedAt": 1787277962406,
"tradedAtIso": "2026-08-21T02:06:02.406Z"
},
{
"side": "buy",
"price": 1327212210,
"value": 26544.24,
"amount": 0.00002,
"tradeId": "897139",
"tradedAt": 1787277965501,
"tradedAtIso": "2026-08-21T02:06:05.501Z"
},
{
"side": "buy",
"price": 1327212210,
"value": 53088.48,
"amount": 0.00004,
"tradeId": "897140",
"tradedAt": 1787277966309,
"tradedAtIso": "2026-08-21T02:06:06.309Z"
},
{
"side": "buy",
"price": 1328023816,
"value": 39840.71,
"amount": 0.00003,
"tradeId": "897141",
"tradedAt": 1787277974821,
"tradedAtIso": "2026-08-21T02:06:14.821Z"
},
{
"side": "buy",
"price": 1329407375,
"value": 39882.22,
"amount": 0.00003,
"tradeId": "897142",
"tradedAt": 1787277984133,
"tradedAtIso": "2026-08-21T02:06:24.133Z"
},
{
"side": "buy",
"price": 1329407375,
"value": 13294.07,
"amount": 0.00001,
"tradeId": "897143",
"tradedAt": 1787277987109,
"tradedAtIso": "2026-08-21T02:06:27.109Z"
},
{
"side": "buy",
"price": 1329407375,
"value": 93058.51,
"amount": 0.00007,
"tradeId": "897144",
"tradedAt": 1787277988811,
"tradedAtIso": "2026-08-21T02:06:28.811Z"
},
{
"side": "buy",
"price": 1329407375,
"value": 159528.88,
"amount": 0.00012,
"tradeId": "897145",
"tradedAt": 1787277989208,
"tradedAtIso": "2026-08-21T02:06:29.208Z"
}
],
"quote": "IDR",
"symbol": "BTCIDR",
"dataset": "trades",
"provider": "tokocrypto"
}/v1/finance:tokocrypto/depthTokocrypto order book — bid and ask levels with SIZES, which is whatsymbolstringrequiredlimitnumberoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:tokocrypto/depth?symbol=BTCIDR&limit=100" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"asks": [
{
"price": 1323368740,
"value": 44518124.41360001,
"amount": 0.03364
},
{
"price": 1323403539,
"value": 37200873.48129,
"amount": 0.02811
},
{
"price": 1323439081,
"value": 181231747.75214002,
"amount": 0.13694
},
{
"price": 1323439084,
"value": 1760173.98172,
"amount": 0.00133
},
{
"price": 1323581129,
"value": 264716.2258,
"amount": 0.0002
},
{
"price": 1324147359,
"value": 1761115.98747,
"amount": 0.00133
},
{
"price": 1324210976,
"value": 3535643.30592,
"amount": 0.00267
},
{
"price": 1324417401,
"value": 3536194.46067,
"amount": 0.00267
}
],
"base": "BTC",
"bids": [
{
"price": 1321305370,
"value": 55574103.8622,
"amount": 0.04206
},
{
"price": 1321238003,
"value": 110891505.59179,
"amount": 0.08393
},
{
"price": 1321157600,
"value": 55567888.656,
"amount": 0.04206
},
{
"price": 1321082456,
"value": 60029986.80064,
"amount": 0.04544
},
{
"price": 1320388681,
"value": 90631479.06384,
"amount": 0.06864
},
{
"price": 1320264101,
"value": 1755951.25433,
"amount": 0.00133
},
{
"price": 1319549693,
"value": 1755001.09169,
"amount": 0.00133
},
{
"price": 1319036954,
"value": 1754319.14882,
"amount": 0.00133
}
],
"pair": "BTC_IDR",
"quote": "IDR",
"spread": 2063370,
"symbol": "BTCIDR",
"dataset": "depth",
"askCount": 100,
"bidCount": 100,
"provider": "tokocrypto",
"lastUpdateId": 243951922
}