Skip to content

Tokocrypto API

6 endpointsFinance & CryptoIDsocial:read

Returns Tokocrypto trading symbols, tickers, candlesticks, order book depth and recent or aggregated trades.

View as Markdown
GET/tokocrypto/symbolsEvery main-market trading symbol with its assets, whether spot trading is on and the price and quantity steps, 100 symbols a page.
GET/tokocrypto/tickerLast price, 24-hour high, low, change and volume of one symbol.
GET/tokocrypto/klinesCandlesticks (open, high, low, close, volume) of one symbol, oldest first.
GET/tokocrypto/depthThe order book of one symbol: best bids and asks.
GET/tokocrypto/aggTradesCompressed trades of one symbol, oldest first: trades at one price and taker side are merged.
GET/tokocrypto/tradesLatest individual trades of one symbol, newest last.

symbols

GET/v1/tokocrypto/symbols

Every main-market trading symbol with its assets, whether spot trading is on and the price and quantity steps, 100 symbols a page.

scope social:read1 unitcached 10 minpaginated

Parameters

query
string
Filter by symbol or base asset, such as btc.
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
basestring
quotestring
stepSizestring
symbolstring
tickSizestring
tradingboolean
curl "https://api.hoshime.com/v1/tokocrypto/symbols" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "base": "…",
      "quote": "…",
      "stepSize": "…",
      "symbol": "…",
      "tickSize": "…",
      "trading": false
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "symbols",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "tokocrypto",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

ticker

GET/v1/tokocrypto/ticker

Last price, 24-hour high, low, change and volume of one symbol.

scope social:read1 unit

Parameters

symbol
string
required
Trading symbol, such as BTCUSDT or BTC_USDT.
e.g. BTCUSDT
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

12 fields
changestring
changePercentstring
highstring
lowstring
openstring
openedAtstring
pricestring
quoteVolumestring
symbolstring
tradesinteger (int64)
updatedAtstring
volumestring
curl "https://api.hoshime.com/v1/tokocrypto/ticker?symbol=BTCUSDT" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "change": "…",
    "changePercent": "…",
    "high": "…",
    "low": "…",
    "open": "…",
    "openedAt": "2026-11-06T09:41:00Z",
    "price": "…",
    "quoteVolume": "…",
    "symbol": "…",
    "trades": 0,
    "updatedAt": "2026-11-06T09:41:00Z",
    "volume": "…"
  },
  "meta": {
    "cached": false,
    "endpoint": "ticker",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "tokocrypto",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

klines

GET/v1/tokocrypto/klines

Candlesticks (open, high, low, close, volume) of one symbol, oldest first.

scope social:read1 unitpaginated

Parameters

symbol
string
required
Trading symbol, such as BTCUSDT or BTC_USDT.
e.g. BTCUSDT
interval
string
required
Candle length.
1m3m5m15m30m1h2h4h6h8h12h1d3d1w1M
e.g. 1h
limit
integer
Number of candles to return, the latest ones.
default 100
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

9 fields
closestring
closedAtstring
highstring
lowstring
openstring
openedAtstring
quoteVolumestring
tradesinteger (int64)
volumestring
curl "https://api.hoshime.com/v1/tokocrypto/klines?symbol=BTCUSDT&interval=1h" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "close": "…",
      "closedAt": "2026-11-06T09:41:00Z",
      "high": "…",
      "low": "…",
      "open": "…",
      "openedAt": "2026-11-06T09:41:00Z",
      "quoteVolume": "…",
      "trades": 0,
      "volume": "…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "klines",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "tokocrypto",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

depth

GET/v1/tokocrypto/depth

The order book of one symbol: best bids and asks.

scope social:read1 unit

Parameters

symbol
string
required
Trading symbol, such as BTCUSDT or BTC_USDT.
e.g. BTCUSDT
levels
integer
Price levels to return on each side.
default 100
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

8 fields
asksLevel[]
amountstring
pricestring
bidsLevel[]
amountstring
pricestring
symbolstring
updateIdstring
curl "https://api.hoshime.com/v1/tokocrypto/depth?symbol=BTCUSDT" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "asks": [
      {
        "amount": "…",
        "price": "…"
      }
    ],
    "bids": [
      {
        "amount": "…",
        "price": "…"
      }
    ],
    "symbol": "…",
    "updateId": "abc123"
  },
  "meta": {
    "cached": false,
    "endpoint": "depth",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "tokocrypto",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

aggTrades

GET/v1/tokocrypto/aggTrades

Compressed trades of one symbol, oldest first: trades at one price and taker side are merged.

scope social:read1 unitpaginated

Parameters

symbol
string
required
Trading symbol, such as BTCUSDT or BTC_USDT.
e.g. BTCUSDT
limit
integer
Trades to return, at most 1000.
default 500
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

7 fields
firstTradeIdstring
idstring
isBuyerMakerboolean
lastTradeIdstring
pricestring
quantitystring
tradedAtstring
curl "https://api.hoshime.com/v1/tokocrypto/aggTrades?symbol=BTCUSDT" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "firstTradeId": "abc123",
      "id": "abc123",
      "isBuyerMaker": false,
      "lastTradeId": "abc123",
      "price": "…",
      "quantity": "…",
      "tradedAt": "2026-11-06T09:41:00Z"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "aggTrades",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "tokocrypto",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

trades

GET/v1/tokocrypto/trades

Latest individual trades of one symbol, newest last.

scope social:read1 unitpaginated

Parameters

symbol
string
required
Trading symbol, such as BTCUSDT or BTC_USDT.
e.g. BTCUSDT
limit
integer
Trades to return, at most 1000.
default 500
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
idstring
isBuyerMakerboolean
pricestring
quantitystring
quoteQuantitystring
tradedAtstring
curl "https://api.hoshime.com/v1/tokocrypto/trades?symbol=BTCUSDT" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "id": "abc123",
      "isBuyerMaker": false,
      "price": "…",
      "quantity": "…",
      "quoteQuantity": "…",
      "tradedAt": "2026-11-06T09:41:00Z"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "trades",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "tokocrypto",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open