Binance API
Returns Binance spot and USD-M futures tickers, prices, candles, order books, trades, funding rates, open interest and long/short ratios.
View as Markdown| GET | /binance/ticker | 24-hour rolling statistics of one spot symbol: last price, change, high, low and volume. |
| GET | /binance/price | Latest spot price of one symbol, or of every spot symbol when none is given. |
| GET | /binance/klines | Spot candles of one symbol, oldest first, in one interval. |
| GET | /binance/depth | Spot order book of one symbol: bids and asks, best price first. |
| GET | /binance/trades | Most recent spot trades of one symbol, oldest first. |
| GET | /binance/exchangeInfo | Spot symbols with their status and base and quote assets. Filter with symbol, or list every symbol. |
| GET | /binance/futuresTicker | 24-hour rolling statistics of one USD-M futures symbol: last price, change, high, low and volume. |
| GET | /binance/fundingRate | Funding rate history of one USD-M futures symbol, oldest first. |
| GET | /binance/openInterest | Open interest of one USD-M futures symbol right now, in the base asset. |
| GET | /binance/avgPrice | Average spot price of one symbol over the last few minutes. |
| GET | /binance/bookTicker | Best bid and ask of one spot symbol, or of every spot symbol when none is given. |
| GET | /binance/serverTime | Binance server time, to check the clock of a client against. |
| GET | /binance/tickers | 24-hour statistics of every spot pair quoted in one asset, sorted by volume, change or symbol. |
| GET | /binance/tickerWindowed | Statistics of one spot symbol over a rolling window: 1 to 59 minutes, 1 to 23 hours or 1 to 7 days. |
| GET | /binance/aggTrades | Compressed spot trades of one symbol: trades at the same price and taker side are merged, oldest first. |
| GET | /binance/uiKlines | Spot candles of one symbol as the binance.com chart draws them, oldest first. |
| GET | /binance/futuresKlines | USD-M futures candles of one contract, oldest first, in one interval. Served through a residential proxy. |
| GET | /binance/futuresContinuousKlines | Candles of the continuous contract series of one underlying pair (perpetual or a quarterly), oldest first. |
| GET | /binance/futuresMarkPriceKlines | Mark price candles of one USD-M futures contract, oldest first. |
| GET | /binance/futuresIndexPriceKlines | Index price candles of one underlying pair, oldest first. |
| GET | /binance/futuresAggTrades | Compressed USD-M futures trades of one contract, oldest first. Served through a residential proxy. |
| GET | /binance/futuresDepth | Order book of one USD-M futures contract, bids and asks by level. Served through a residential proxy. |
| GET | /binance/futuresBookTicker | Best bid and ask price and quantity of one USD-M futures contract. Served through a residential proxy. |
| GET | /binance/futuresPremiumIndex | Mark price, index price, estimated settle price and the current funding rate of one USD-M futures contract. |
| GET | /binance/futuresFundingInfo | Funding interval and funding rate caps and floors of USD-M futures contracts that have custom funding rules. |
| GET | /binance/futuresExchangeInfo | USD-M futures contracts with their base and quote assets, type, status, delivery date and precisions. |
| GET | /binance/futuresOpenInterestHist | Open interest of one USD-M futures contract per bucket, oldest first. Only the last 30 days exist. |
| GET | /binance/futuresGlobalLongShortRatio | Ratio of accounts net long and net short on one USD-M futures contract per bucket, oldest first. |
| GET | /binance/futuresTopLongShortAccountRatio | Ratio of accounts net long and net short among the top traders of one USD-M futures contract per bucket. |
| GET | /binance/futuresTopLongShortPositionRatio | Ratio of positions net long and net short among the top traders of one USD-M futures contract per bucket. |
| GET | /binance/futuresTakerLongShortRatio | Taker buy and sell volume of one USD-M futures contract and their ratio per bucket, oldest first. |
| GET | /binance/futuresBasis | Basis of a futures contract against the index of its underlying pair per bucket. Only the last 30 days exist. |
ticker
/v1/binance/ticker24-hour rolling statistics of one spot symbol: last price, change, high, low and volume.
Parameters
symbolstring required | Symbol such as BTCUSDT, or a binance.com trade URL. e.g. BTCUSDT |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
21 fields
askPrice | string |
askQuantity | string |
bidPrice | string |
bidQuantity | string |
closeTime | string |
firstTradeId | string |
highPrice | string |
lastPrice | string |
lastQuantity | string |
lastTradeId | string |
lowPrice | string |
openPrice | string |
openTime | string |
prevClosePrice | string |
priceChange | string |
priceChangePercent | string |
quoteVolume | string |
symbol | string |
tradeCount | integer (int64) |
volume | string |
weightedAvgPrice | string |
curl "https://api.hoshime.com/v1/binance/ticker?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/ticker?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/ticker?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "askPrice": "…", "askQuantity": "…", "bidPrice": "…", "bidQuantity": "…", "closeTime": "…", "firstTradeId": "abc123", "highPrice": "…", "lastPrice": "…", "lastQuantity": "…", "lastTradeId": "abc123", "lowPrice": "…", "openPrice": "…", "openTime": "…", "prevClosePrice": "…", "priceChange": "…", "priceChangePercent": "…", "quoteVolume": "…", "symbol": "…", "tradeCount": 1280, "volume": "…", "weightedAvgPrice": "…" }, "meta": { "cached": false, "endpoint": "ticker", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
price
/v1/binance/priceLatest spot price of one symbol, or of every spot symbol when none is given.
Parameters
symbolstring | Symbol such as BTCUSDT, or a binance.com trade URL. Omit it for every symbol. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
2 fields
price | string |
symbol | string |
curl "https://api.hoshime.com/v1/binance/price" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/price", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/price", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "price": "…", "symbol": "…" } ], "meta": { "cached": false, "endpoint": "price", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
klines
/v1/binance/klinesSpot candles of one symbol, oldest first, in one interval.
Parameters
symbolstring required | Symbol such as BTCUSDT, or a binance.com trade URL. e.g. BTCUSDT |
intervalstring | Candle size.1s1m3m5m15m30m1h2h4h6h8h12h1d3d1w1Mdefault 1h |
limitinteger | Number of candles, at most 1000. default 500 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
11 fields
close | string |
closeTime | string |
high | string |
low | string |
open | string |
openTime | string |
quoteVolume | string |
takerBuyBaseVolume | string |
takerBuyQuoteVolume | string |
tradeCount | integer (int64) |
volume | string |
curl "https://api.hoshime.com/v1/binance/klines?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/klines?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/klines?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "close": "…", "closeTime": "…", "high": "…", "low": "…", "open": "…", "openTime": "…", "quoteVolume": "…", "takerBuyBaseVolume": "…", "takerBuyQuoteVolume": "…", "tradeCount": 1280, "volume": "…" } ], "meta": { "cached": false, "endpoint": "klines", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
depth
/v1/binance/depthSpot order book of one symbol: bids and asks, best price first.
Parameters
symbolstring required | Symbol such as BTCUSDT, or a binance.com trade URL. e.g. BTCUSDT |
levelsinteger | Price levels per side, at most 5000. default 100 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
asks | Level[] |
price | string |
quantity | string |
bids | Level[] |
price | string |
quantity | string |
lastUpdateId | string |
curl "https://api.hoshime.com/v1/binance/depth?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/depth?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/depth?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "asks": [ { "price": "…", "quantity": "…" } ], "bids": [ { "price": "…", "quantity": "…" } ], "lastUpdateId": "abc123" }, "meta": { "cached": false, "endpoint": "depth", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
trades
/v1/binance/tradesMost recent spot trades of one symbol, oldest first.
Parameters
symbolstring required | Symbol such as BTCUSDT, or a binance.com trade URL. e.g. BTCUSDT |
limitinteger | Number of trades, at most 1000. default 500 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
id | string |
isBuyerMaker | boolean |
price | string |
quantity | string |
quoteQuantity | string |
time | string |
curl "https://api.hoshime.com/v1/binance/trades?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/trades?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/trades?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "abc123", "isBuyerMaker": false, "price": "…", "quantity": "…", "quoteQuantity": "…", "time": "…" } ], "meta": { "cached": false, "endpoint": "trades", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
exchangeInfo
/v1/binance/exchangeInfoSpot symbols with their status and base and quote assets. Filter with symbol, or list every symbol.
Parameters
symbolstring | Symbol such as BTCUSDT, or a binance.com trade URL. Omit it for every symbol. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
baseAsset | string |
quoteAsset | string |
status | string |
symbol | string |
curl "https://api.hoshime.com/v1/binance/exchangeInfo" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/exchangeInfo", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/exchangeInfo", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "baseAsset": "…", "quoteAsset": "…", "status": "…", "symbol": "…" } ], "meta": { "cached": false, "endpoint": "exchangeInfo", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresTicker
/v1/binance/futuresTicker24-hour rolling statistics of one USD-M futures symbol: last price, change, high, low and volume.
Parameters
symbolstring required | Futures symbol such as BTCUSDT, or a binance.com futures URL. e.g. BTCUSDT |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
16 fields
closeTime | string |
firstTradeId | string |
highPrice | string |
lastPrice | string |
lastQuantity | string |
lastTradeId | string |
lowPrice | string |
openPrice | string |
openTime | string |
priceChange | string |
priceChangePercent | string |
quoteVolume | string |
symbol | string |
tradeCount | integer (int64) |
volume | string |
weightedAvgPrice | string |
curl "https://api.hoshime.com/v1/binance/futuresTicker?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresTicker?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresTicker?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "closeTime": "…", "firstTradeId": "abc123", "highPrice": "…", "lastPrice": "…", "lastQuantity": "…", "lastTradeId": "abc123", "lowPrice": "…", "openPrice": "…", "openTime": "…", "priceChange": "…", "priceChangePercent": "…", "quoteVolume": "…", "symbol": "…", "tradeCount": 1280, "volume": "…", "weightedAvgPrice": "…" }, "meta": { "cached": false, "endpoint": "futuresTicker", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
fundingRate
/v1/binance/fundingRateFunding rate history of one USD-M futures symbol, oldest first.
Parameters
symbolstring required | Futures symbol such as BTCUSDT, or a binance.com futures URL. e.g. BTCUSDT |
limitinteger | Number of funding settlements, at most 1000. default 100 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
fundingRate | string |
fundingTime | string |
markPrice | string |
symbol | string |
curl "https://api.hoshime.com/v1/binance/fundingRate?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/fundingRate?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/fundingRate?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "fundingRate": "…", "fundingTime": "…", "markPrice": "…", "symbol": "…" } ], "meta": { "cached": false, "endpoint": "fundingRate", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
openInterest
/v1/binance/openInterestOpen interest of one USD-M futures symbol right now, in the base asset.
Parameters
symbolstring required | Futures symbol such as BTCUSDT, or a binance.com futures URL. e.g. BTCUSDT |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
3 fields
openInterest | string |
symbol | string |
time | string |
curl "https://api.hoshime.com/v1/binance/openInterest?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/openInterest?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/openInterest?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "openInterest": "…", "symbol": "…", "time": "…" }, "meta": { "cached": false, "endpoint": "openInterest", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
avgPrice
/v1/binance/avgPriceAverage spot price of one symbol over the last few minutes.
Parameters
symbolstring required | Symbol such as BTCUSDT, or a binance.com trade URL. e.g. BTCUSDT |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
closeTime | string |
minutes | integer (int64) |
price | string |
symbol | string |
curl "https://api.hoshime.com/v1/binance/avgPrice?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/avgPrice?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/avgPrice?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "closeTime": "…", "minutes": 0, "price": "…", "symbol": "…" }, "meta": { "cached": false, "endpoint": "avgPrice", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
bookTicker
/v1/binance/bookTickerBest bid and ask of one spot symbol, or of every spot symbol when none is given.
Parameters
symbolstring | Symbol such as BTCUSDT, or a binance.com trade URL. Omit it for every symbol. e.g. BTCUSDT |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
5 fields
askPrice | string |
askQuantity | string |
bidPrice | string |
bidQuantity | string |
symbol | string |
curl "https://api.hoshime.com/v1/binance/bookTicker?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/bookTicker?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/bookTicker?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "askPrice": "…", "askQuantity": "…", "bidPrice": "…", "bidQuantity": "…", "symbol": "…" } ], "meta": { "cached": false, "endpoint": "bookTicker", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
serverTime
/v1/binance/serverTimeBinance server time, to check the clock of a client against.
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
1 fields
time | string |
curl "https://api.hoshime.com/v1/binance/serverTime" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/serverTime", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/serverTime", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "time": "…" }, "meta": { "cached": false, "endpoint": "serverTime", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
tickers
/v1/binance/tickers24-hour statistics of every spot pair quoted in one asset, sorted by volume, change or symbol.
Parameters
quotestring | Keep the pairs quoted in this asset, or all of them.allUSDTUSDCBTCETHBNBFDUSDTRYEURdefault USDT |
querystring | Keep the pairs whose base asset is this, such as BTC. |
sortstring | Sort key: quote volume and price change descending, symbol ascending.volumechangesymboldefault volume |
limitinteger | Items per page, 1 to 500. default 100 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
21 fields
askPrice | string |
askQuantity | string |
bidPrice | string |
bidQuantity | string |
closeTime | string |
firstTradeId | string |
highPrice | string |
lastPrice | string |
lastQuantity | string |
lastTradeId | string |
lowPrice | string |
openPrice | string |
openTime | string |
prevClosePrice | string |
priceChange | string |
priceChangePercent | string |
quoteVolume | string |
symbol | string |
tradeCount | integer (int64) |
volume | string |
weightedAvgPrice | string |
curl "https://api.hoshime.com/v1/binance/tickers" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/tickers", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/tickers", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "askPrice": "…", "askQuantity": "…", "bidPrice": "…", "bidQuantity": "…", "closeTime": "…", "firstTradeId": "abc123", "highPrice": "…", "lastPrice": "…", "lastQuantity": "…", "lastTradeId": "abc123", "lowPrice": "…", "openPrice": "…", "openTime": "…", "prevClosePrice": "…", "priceChange": "…", "priceChangePercent": "…", "quoteVolume": "…", "symbol": "…", "tradeCount": 1280, "volume": "…", "weightedAvgPrice": "…" } ], "meta": { "cached": false, "endpoint": "tickers", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
tickerWindowed
/v1/binance/tickerWindowedStatistics of one spot symbol over a rolling window: 1 to 59 minutes, 1 to 23 hours or 1 to 7 days.
Parameters
symbolstring required | Symbol such as BTCUSDT, or a binance.com trade URL. e.g. BTCUSDT |
windowSizestring | Window length: 1m to 59m, 1h to 23h or 1d to 7d. default 1d |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
21 fields
askPrice | string |
askQuantity | string |
bidPrice | string |
bidQuantity | string |
closeTime | string |
firstTradeId | string |
highPrice | string |
lastPrice | string |
lastQuantity | string |
lastTradeId | string |
lowPrice | string |
openPrice | string |
openTime | string |
prevClosePrice | string |
priceChange | string |
priceChangePercent | string |
quoteVolume | string |
symbol | string |
tradeCount | integer (int64) |
volume | string |
weightedAvgPrice | string |
curl "https://api.hoshime.com/v1/binance/tickerWindowed?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/tickerWindowed?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/tickerWindowed?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "askPrice": "…", "askQuantity": "…", "bidPrice": "…", "bidQuantity": "…", "closeTime": "…", "firstTradeId": "abc123", "highPrice": "…", "lastPrice": "…", "lastQuantity": "…", "lastTradeId": "abc123", "lowPrice": "…", "openPrice": "…", "openTime": "…", "prevClosePrice": "…", "priceChange": "…", "priceChangePercent": "…", "quoteVolume": "…", "symbol": "…", "tradeCount": 1280, "volume": "…", "weightedAvgPrice": "…" }, "meta": { "cached": false, "endpoint": "tickerWindowed", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
aggTrades
/v1/binance/aggTradesCompressed spot trades of one symbol: trades at the same price and taker side are merged, oldest first.
Parameters
symbolstring required | Symbol such as BTCUSDT, or a binance.com trade URL. e.g. BTCUSDT |
limitinteger | Number of trades, at most 1000. default 500 |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
fromIdstring | Resume from this aggregate trade id instead of a time window. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
firstTradeId | string |
id | string |
isBuyerMaker | boolean |
lastTradeId | string |
price | string |
quantity | string |
time | string |
curl "https://api.hoshime.com/v1/binance/aggTrades?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/aggTrades?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/aggTrades?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "firstTradeId": "abc123", "id": "abc123", "isBuyerMaker": false, "lastTradeId": "abc123", "price": "…", "quantity": "…", "time": "…" } ], "meta": { "cached": false, "endpoint": "aggTrades", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
uiKlines
/v1/binance/uiKlinesSpot candles of one symbol as the binance.com chart draws them, oldest first.
Parameters
symbolstring required | Symbol such as BTCUSDT, or a binance.com trade URL. e.g. BTCUSDT |
intervalstring | Candle size.1m3m5m15m30m1h2h4h6h8h12h1d3d1w1Mdefault 1d |
limitinteger | Number of candles, at most 1000. default 200 |
startTimestring | Oldest candle to return: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Newest candle to return: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
11 fields
close | string |
closeTime | string |
high | string |
low | string |
open | string |
openTime | string |
quoteVolume | string |
takerBuyBaseVolume | string |
takerBuyQuoteVolume | string |
tradeCount | integer (int64) |
volume | string |
curl "https://api.hoshime.com/v1/binance/uiKlines?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/uiKlines?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/uiKlines?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "close": "…", "closeTime": "…", "high": "…", "low": "…", "open": "…", "openTime": "…", "quoteVolume": "…", "takerBuyBaseVolume": "…", "takerBuyQuoteVolume": "…", "tradeCount": 1280, "volume": "…" } ], "meta": { "cached": false, "endpoint": "uiKlines", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresKlines
/v1/binance/futuresKlinesUSD-M futures candles of one contract, oldest first, in one interval. Served through a residential proxy.
Parameters
symbolstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
intervalstring | Candle size.1m3m5m15m30m1h2h4h6h8h12h1d3d1w1Mdefault 1d |
limitinteger | Number of candles, at most 1500. default 500 |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
11 fields
close | string |
closeTime | string |
high | string |
low | string |
open | string |
openTime | string |
quoteVolume | string |
takerBuyBaseVolume | string |
takerBuyQuoteVolume | string |
tradeCount | integer (int64) |
volume | string |
curl "https://api.hoshime.com/v1/binance/futuresKlines?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresKlines?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresKlines?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "close": "…", "closeTime": "…", "high": "…", "low": "…", "open": "…", "openTime": "…", "quoteVolume": "…", "takerBuyBaseVolume": "…", "takerBuyQuoteVolume": "…", "tradeCount": 1280, "volume": "…" } ], "meta": { "cached": false, "endpoint": "futuresKlines", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresContinuousKlines
/v1/binance/futuresContinuousKlinesCandles of the continuous contract series of one underlying pair (perpetual or a quarterly), oldest first.
Parameters
pairstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
contractTypestring | Which contract of the series.PERPETUALCURRENT_QUARTERNEXT_QUARTERTRADIFI_PERPETUALdefault PERPETUAL |
intervalstring | Candle size.1m3m5m15m30m1h2h4h6h8h12h1d3d1w1Mdefault 1d |
limitinteger | Number of candles, at most 1500. default 500 |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
11 fields
close | string |
closeTime | string |
high | string |
low | string |
open | string |
openTime | string |
quoteVolume | string |
takerBuyBaseVolume | string |
takerBuyQuoteVolume | string |
tradeCount | integer (int64) |
volume | string |
curl "https://api.hoshime.com/v1/binance/futuresContinuousKlines?pair=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresContinuousKlines?pair=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresContinuousKlines?pair=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "close": "…", "closeTime": "…", "high": "…", "low": "…", "open": "…", "openTime": "…", "quoteVolume": "…", "takerBuyBaseVolume": "…", "takerBuyQuoteVolume": "…", "tradeCount": 1280, "volume": "…" } ], "meta": { "cached": false, "endpoint": "futuresContinuousKlines", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresMarkPriceKlines
/v1/binance/futuresMarkPriceKlinesMark price candles of one USD-M futures contract, oldest first.
Parameters
symbolstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
intervalstring | Candle size.1m3m5m15m30m1h2h4h6h8h12h1d3d1w1Mdefault 1d |
limitinteger | Number of candles, at most 1500. default 500 |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
11 fields
close | string |
closeTime | string |
high | string |
low | string |
open | string |
openTime | string |
quoteVolume | string |
takerBuyBaseVolume | string |
takerBuyQuoteVolume | string |
tradeCount | integer (int64) |
volume | string |
curl "https://api.hoshime.com/v1/binance/futuresMarkPriceKlines?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresMarkPriceKlines?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresMarkPriceKlines?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "close": "…", "closeTime": "…", "high": "…", "low": "…", "open": "…", "openTime": "…", "quoteVolume": "…", "takerBuyBaseVolume": "…", "takerBuyQuoteVolume": "…", "tradeCount": 1280, "volume": "…" } ], "meta": { "cached": false, "endpoint": "futuresMarkPriceKlines", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresIndexPriceKlines
/v1/binance/futuresIndexPriceKlinesIndex price candles of one underlying pair, oldest first.
Parameters
pairstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
intervalstring | Candle size.1m3m5m15m30m1h2h4h6h8h12h1d3d1w1Mdefault 1d |
limitinteger | Number of candles, at most 1500. default 500 |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
11 fields
close | string |
closeTime | string |
high | string |
low | string |
open | string |
openTime | string |
quoteVolume | string |
takerBuyBaseVolume | string |
takerBuyQuoteVolume | string |
tradeCount | integer (int64) |
volume | string |
curl "https://api.hoshime.com/v1/binance/futuresIndexPriceKlines?pair=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresIndexPriceKlines?pair=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresIndexPriceKlines?pair=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "close": "…", "closeTime": "…", "high": "…", "low": "…", "open": "…", "openTime": "…", "quoteVolume": "…", "takerBuyBaseVolume": "…", "takerBuyQuoteVolume": "…", "tradeCount": 1280, "volume": "…" } ], "meta": { "cached": false, "endpoint": "futuresIndexPriceKlines", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresAggTrades
/v1/binance/futuresAggTradesCompressed USD-M futures trades of one contract, oldest first. Served through a residential proxy.
Parameters
symbolstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
limitinteger | Trades to return, at most 1000. default 500 |
fromIdstring | Aggregate trade id to start from, instead of a time window. |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
firstTradeId | string |
id | string |
isBuyerMaker | boolean |
lastTradeId | string |
price | string |
quantity | string |
time | string |
curl "https://api.hoshime.com/v1/binance/futuresAggTrades?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresAggTrades?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresAggTrades?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "firstTradeId": "abc123", "id": "abc123", "isBuyerMaker": false, "lastTradeId": "abc123", "price": "…", "quantity": "…", "time": "…" } ], "meta": { "cached": false, "endpoint": "futuresAggTrades", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresDepth
/v1/binance/futuresDepthOrder book of one USD-M futures contract, bids and asks by level. Served through a residential proxy.
Parameters
symbolstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
levelsinteger | Levels per side: 5, 10, 20, 50, 100, 500 or 1000. default 50 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
asks | Level[] |
price | string |
quantity | string |
bids | Level[] |
price | string |
quantity | string |
lastUpdateId | string |
curl "https://api.hoshime.com/v1/binance/futuresDepth?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresDepth?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresDepth?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "asks": [ { "price": "…", "quantity": "…" } ], "bids": [ { "price": "…", "quantity": "…" } ], "lastUpdateId": "abc123" }, "meta": { "cached": false, "endpoint": "futuresDepth", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresBookTicker
/v1/binance/futuresBookTickerBest bid and ask price and quantity of one USD-M futures contract. Served through a residential proxy.
Parameters
symbolstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
askPrice | string |
askQty | string |
bidPrice | string |
bidQty | string |
symbol | string |
time | string |
curl "https://api.hoshime.com/v1/binance/futuresBookTicker?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresBookTicker?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresBookTicker?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "askPrice": "…", "askQty": "…", "bidPrice": "…", "bidQty": "…", "symbol": "…", "time": "…" }, "meta": { "cached": false, "endpoint": "futuresBookTicker", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresPremiumIndex
/v1/binance/futuresPremiumIndexMark price, index price, estimated settle price and the current funding rate of one USD-M futures contract.
Parameters
symbolstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
estimatedSettlePrice | string |
indexPrice | string |
interestRate | string |
lastFundingRate | string |
markPrice | string |
nextFundingTime | string |
symbol | string |
time | string |
curl "https://api.hoshime.com/v1/binance/futuresPremiumIndex?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresPremiumIndex?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresPremiumIndex?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "estimatedSettlePrice": "…", "indexPrice": "…", "interestRate": "…", "lastFundingRate": "…", "markPrice": "…", "nextFundingTime": "…", "symbol": "…", "time": "…" }, "meta": { "cached": false, "endpoint": "futuresPremiumIndex", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresFundingInfo
/v1/binance/futuresFundingInfoFunding interval and funding rate caps and floors of USD-M futures contracts that have custom funding rules.
Parameters
symbolstring | One contract. Omit it to list every contract with custom funding rules. |
limitinteger | Items per page, 1 to 1000. default 200 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
intervalHours | integer (int64) |
rateCap | string |
rateFloor | string |
symbol | string |
curl "https://api.hoshime.com/v1/binance/futuresFundingInfo" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresFundingInfo", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresFundingInfo", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "intervalHours": 0, "rateCap": "…", "rateFloor": "…", "symbol": "…" } ], "meta": { "cached": false, "endpoint": "futuresFundingInfo", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresExchangeInfo
/v1/binance/futuresExchangeInfoUSD-M futures contracts with their base and quote assets, type, status, delivery date and precisions.
Parameters
symbolstring | One contract such as BTCUSDT or BTCUSDT_260925. e.g. BTCUSDT |
symbolsstring | Several contracts, comma separated, at most 100. |
quotestring | Only contracts margined in this asset, when no symbol is given.allUSDTUSDCBTCUSD1default USDT |
contractTypestring | Keep only one kind of contract.allPERPETUALCURRENT_QUARTERNEXT_QUARTERTRADIFI_PERPETUALdefault all |
querystring | Keep only contracts whose base asset contains this text, such as BTC. |
statusstring | trading keeps tradable contracts; all keeps every listed one.alltradingdefault trading |
limitinteger | Items per page, 1 to 500. default 100 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
11 fields
baseAsset | string |
contractType | string |
deliveryTime | string |
marginAsset | string |
onboardTime | string |
pair | string |
pricePrecision | integer (int64) |
quantityPrecision | integer (int64) |
quoteAsset | string |
status | string |
symbol | string |
curl "https://api.hoshime.com/v1/binance/futuresExchangeInfo?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresExchangeInfo?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresExchangeInfo?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "baseAsset": "…", "contractType": "…", "deliveryTime": "…", "marginAsset": "…", "onboardTime": "…", "pair": "…", "pricePrecision": 0, "quantityPrecision": 0, "quoteAsset": "…", "status": "…", "symbol": "…" } ], "meta": { "cached": false, "endpoint": "futuresExchangeInfo", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresOpenInterestHist
/v1/binance/futuresOpenInterestHistOpen interest of one USD-M futures contract per bucket, oldest first. Only the last 30 days exist.
Parameters
symbolstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
periodstring | Bucket size. Binance serves no 8h buckets.5m15m30m1h2h4h6h12h1ddefault 1d |
limitinteger | Rows to return, oldest first, at most 500. default 30 |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
openInterest | string |
openInterestValue | string |
symbol | string |
time | string |
curl "https://api.hoshime.com/v1/binance/futuresOpenInterestHist?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresOpenInterestHist?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresOpenInterestHist?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "openInterest": "…", "openInterestValue": "…", "symbol": "…", "time": "…" } ], "meta": { "cached": false, "endpoint": "futuresOpenInterestHist", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresGlobalLongShortRatio
/v1/binance/futuresGlobalLongShortRatioRatio of accounts net long and net short on one USD-M futures contract per bucket, oldest first.
Parameters
symbolstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
periodstring | Bucket size. Binance serves no 8h buckets.5m15m30m1h2h4h6h12h1ddefault 1d |
limitinteger | Rows to return, oldest first, at most 500. default 30 |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
5 fields
longAccount | string |
longShortRatio | string |
shortAccount | string |
symbol | string |
time | string |
curl "https://api.hoshime.com/v1/binance/futuresGlobalLongShortRatio?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresGlobalLongShortRatio?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresGlobalLongShortRatio?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "longAccount": "…", "longShortRatio": "…", "shortAccount": "…", "symbol": "…", "time": "…" } ], "meta": { "cached": false, "endpoint": "futuresGlobalLongShortRatio", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresTopLongShortAccountRatio
/v1/binance/futuresTopLongShortAccountRatioRatio of accounts net long and net short among the top traders of one USD-M futures contract per bucket.
Parameters
symbolstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
periodstring | Bucket size. Binance serves no 8h buckets.5m15m30m1h2h4h6h12h1ddefault 1d |
limitinteger | Rows to return, oldest first, at most 500. default 30 |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
5 fields
longAccount | string |
longShortRatio | string |
shortAccount | string |
symbol | string |
time | string |
curl "https://api.hoshime.com/v1/binance/futuresTopLongShortAccountRatio?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresTopLongShortAccountRatio?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresTopLongShortAccountRatio?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "longAccount": "…", "longShortRatio": "…", "shortAccount": "…", "symbol": "…", "time": "…" } ], "meta": { "cached": false, "endpoint": "futuresTopLongShortAccountRatio", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresTopLongShortPositionRatio
/v1/binance/futuresTopLongShortPositionRatioRatio of positions net long and net short among the top traders of one USD-M futures contract per bucket.
Parameters
symbolstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
periodstring | Bucket size. Binance serves no 8h buckets.5m15m30m1h2h4h6h12h1ddefault 1d |
limitinteger | Rows to return, oldest first, at most 500. default 30 |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
5 fields
longAccount | string |
longShortRatio | string |
shortAccount | string |
symbol | string |
time | string |
curl "https://api.hoshime.com/v1/binance/futuresTopLongShortPositionRatio?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresTopLongShortPositionRatio?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresTopLongShortPositionRatio?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "longAccount": "…", "longShortRatio": "…", "shortAccount": "…", "symbol": "…", "time": "…" } ], "meta": { "cached": false, "endpoint": "futuresTopLongShortPositionRatio", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresTakerLongShortRatio
/v1/binance/futuresTakerLongShortRatioTaker buy and sell volume of one USD-M futures contract and their ratio per bucket, oldest first.
Parameters
symbolstring required | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
periodstring | Bucket size. Binance serves no 8h buckets.5m15m30m1h2h4h6h12h1ddefault 1d |
limitinteger | Rows to return, oldest first, at most 500. default 30 |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
buySellRatio | string |
buyVolume | string |
sellVolume | string |
time | string |
curl "https://api.hoshime.com/v1/binance/futuresTakerLongShortRatio?symbol=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresTakerLongShortRatio?symbol=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresTakerLongShortRatio?symbol=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "buySellRatio": "…", "buyVolume": "…", "sellVolume": "…", "time": "…" } ], "meta": { "cached": false, "endpoint": "futuresTakerLongShortRatio", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }
futuresBasis
/v1/binance/futuresBasisBasis of a futures contract against the index of its underlying pair per bucket. Only the last 30 days exist.
Parameters
pairstring required | Underlying pair, not a contract: BTCUSDT, BTC/USDT or btc_usdt. e.g. BTCUSDT |
contractTypestring | Which contract to measure against the index.PERPETUALCURRENT_QUARTERNEXT_QUARTERdefault PERPETUAL |
periodstring | Bucket size. Binance serves no 8h buckets.5m15m30m1h2h4h6h12h1ddefault 1d |
limitinteger | Rows to return, oldest first, at most 500. default 30 |
startTimestring | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
endTimestring | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
annualizedBasisRate | string |
basis | string |
basisRate | string |
contractType | string |
futuresPrice | string |
indexPrice | string |
pair | string |
time | string |
curl "https://api.hoshime.com/v1/binance/futuresBasis?pair=BTCUSDT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/binance/futuresBasis?pair=BTCUSDT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/binance/futuresBasis?pair=BTCUSDT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "annualizedBasisRate": "…", "basis": "…", "basisRate": "…", "contractType": "…", "futuresPrice": "…", "indexPrice": "…", "pair": "…", "time": "…" } ], "meta": { "cached": false, "endpoint": "futuresBasis", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "binance", "requestId": "req_2Xb9kQ…", "units": 1 } }