# Binance API

> Returns Binance spot and USD-M futures tickers, prices, candles, order books, trades, funding rates, open interest and long/short ratios.

Category: Finance & Crypto. Region: global. 32 endpoints at `https://api.hoshime.com/v1/binance/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/binance
## GET /v1/binance/ticker

24-hour rolling statistics of one spot symbol: last price, change, high, low and volume.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Symbol such as BTCUSDT, or a binance.com trade URL. (e.g. BTCUSDT) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 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)

```bash
curl "https://api.hoshime.com/v1/binance/ticker?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/price

Latest spot price of one symbol, or of every spot symbol when none is given.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | no | Symbol such as BTCUSDT, or a binance.com trade URL. Omit it for every symbol. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `price` (string), `symbol` (string)

```bash
curl "https://api.hoshime.com/v1/binance/price" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/klines

Spot candles of one symbol, oldest first, in one interval.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Symbol such as BTCUSDT, or a binance.com trade URL. (e.g. BTCUSDT) |
| `interval` | string | no | Candle size. (one of 1s, 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M; default 1h) |
| `limit` | integer | no | Number of candles, at most 1000. (default 500) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `close` (string), `closeTime` (string), `high` (string), `low` (string), `open` (string), `openTime` (string), `quoteVolume` (string), `takerBuyBaseVolume` (string), `takerBuyQuoteVolume` (string), `tradeCount` (integer (int64)), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/binance/klines?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/depth

Spot order book of one symbol: bids and asks, best price first.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Symbol such as BTCUSDT, or a binance.com trade URL. (e.g. BTCUSDT) |
| `levels` | integer | no | Price levels per side, at most 5000. (default 100) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `asks` (Level[]), `asks[].price` (string), `asks[].quantity` (string), `bids` (Level[]), `bids[].price` (string), `bids[].quantity` (string), `lastUpdateId` (string)

```bash
curl "https://api.hoshime.com/v1/binance/depth?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/trades

Most recent spot trades of one symbol, oldest first.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Symbol such as BTCUSDT, or a binance.com trade URL. (e.g. BTCUSDT) |
| `limit` | integer | no | Number of trades, at most 1000. (default 500) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `id` (string), `isBuyerMaker` (boolean), `price` (string), `quantity` (string), `quoteQuantity` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/trades?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/exchangeInfo

Spot symbols with their status and base and quote assets. Filter with symbol, or list every symbol.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | no | Symbol such as BTCUSDT, or a binance.com trade URL. Omit it for every symbol. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `baseAsset` (string), `quoteAsset` (string), `status` (string), `symbol` (string)

```bash
curl "https://api.hoshime.com/v1/binance/exchangeInfo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresTicker

24-hour rolling statistics of one USD-M futures symbol: last price, change, high, low and volume.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures symbol such as BTCUSDT, or a binance.com futures URL. (e.g. BTCUSDT) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 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)

```bash
curl "https://api.hoshime.com/v1/binance/futuresTicker?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/fundingRate

Funding rate history of one USD-M futures symbol, oldest first.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures symbol such as BTCUSDT, or a binance.com futures URL. (e.g. BTCUSDT) |
| `limit` | integer | no | Number of funding settlements, at most 1000. (default 100) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `fundingRate` (string), `fundingTime` (string), `markPrice` (string), `symbol` (string)

```bash
curl "https://api.hoshime.com/v1/binance/fundingRate?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/openInterest

Open interest of one USD-M futures symbol right now, in the base asset.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures symbol such as BTCUSDT, or a binance.com futures URL. (e.g. BTCUSDT) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `openInterest` (string), `symbol` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/openInterest?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/avgPrice

Average spot price of one symbol over the last few minutes.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Symbol such as BTCUSDT, or a binance.com trade URL. (e.g. BTCUSDT) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `closeTime` (string), `minutes` (integer (int64)), `price` (string), `symbol` (string)

```bash
curl "https://api.hoshime.com/v1/binance/avgPrice?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/bookTicker

Best bid and ask of one spot symbol, or of every spot symbol when none is given.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | no | Symbol such as BTCUSDT, or a binance.com trade URL. Omit it for every symbol. (e.g. BTCUSDT) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `askPrice` (string), `askQuantity` (string), `bidPrice` (string), `bidQuantity` (string), `symbol` (string)

```bash
curl "https://api.hoshime.com/v1/binance/bookTicker?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/serverTime

Binance server time, to check the clock of a client against.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/serverTime" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/tickers

24-hour statistics of every spot pair quoted in one asset, sorted by volume, change or symbol.

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `quote` | string | no | Keep the pairs quoted in this asset, or all of them. (one of all, USDT, USDC, BTC, ETH, BNB, FDUSD, TRY, EUR; default USDT) |
| `query` | string | no | Keep the pairs whose base asset is this, such as BTC. |
| `sort` | string | no | Sort key: quote volume and price change descending, symbol ascending. (one of volume, change, symbol; default volume) |
| `limit` | integer | no | Items per page, 1 to 500. (default 100) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 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)

```bash
curl "https://api.hoshime.com/v1/binance/tickers" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/tickerWindowed

Statistics of one spot symbol over a rolling window: 1 to 59 minutes, 1 to 23 hours or 1 to 7 days.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Symbol such as BTCUSDT, or a binance.com trade URL. (e.g. BTCUSDT) |
| `windowSize` | string | no | Window length: 1m to 59m, 1h to 23h or 1d to 7d. (default 1d) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 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)

```bash
curl "https://api.hoshime.com/v1/binance/tickerWindowed?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/aggTrades

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

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Symbol such as BTCUSDT, or a binance.com trade URL. (e.g. BTCUSDT) |
| `limit` | integer | no | Number of trades, at most 1000. (default 500) |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `fromId` | string | no | Resume from this aggregate trade id instead of a time window. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `firstTradeId` (string), `id` (string), `isBuyerMaker` (boolean), `lastTradeId` (string), `price` (string), `quantity` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/aggTrades?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/uiKlines

Spot candles of one symbol as the binance.com chart draws them, oldest first.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Symbol such as BTCUSDT, or a binance.com trade URL. (e.g. BTCUSDT) |
| `interval` | string | no | Candle size. (one of 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M; default 1d) |
| `limit` | integer | no | Number of candles, at most 1000. (default 200) |
| `startTime` | string | no | Oldest candle to return: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Newest candle to return: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `close` (string), `closeTime` (string), `high` (string), `low` (string), `open` (string), `openTime` (string), `quoteVolume` (string), `takerBuyBaseVolume` (string), `takerBuyQuoteVolume` (string), `tradeCount` (integer (int64)), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/binance/uiKlines?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresKlines

USD-M futures candles of one contract, oldest first, in one interval. Served through a residential proxy.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `interval` | string | no | Candle size. (one of 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M; default 1d) |
| `limit` | integer | no | Number of candles, at most 1500. (default 500) |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `close` (string), `closeTime` (string), `high` (string), `low` (string), `open` (string), `openTime` (string), `quoteVolume` (string), `takerBuyBaseVolume` (string), `takerBuyQuoteVolume` (string), `tradeCount` (integer (int64)), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresKlines?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresContinuousKlines

Candles of the continuous contract series of one underlying pair (perpetual or a quarterly), oldest first.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pair` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `contractType` | string | no | Which contract of the series. (one of PERPETUAL, CURRENT_QUARTER, NEXT_QUARTER, TRADIFI_PERPETUAL; default PERPETUAL) |
| `interval` | string | no | Candle size. (one of 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M; default 1d) |
| `limit` | integer | no | Number of candles, at most 1500. (default 500) |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `close` (string), `closeTime` (string), `high` (string), `low` (string), `open` (string), `openTime` (string), `quoteVolume` (string), `takerBuyBaseVolume` (string), `takerBuyQuoteVolume` (string), `tradeCount` (integer (int64)), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresContinuousKlines?pair=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresMarkPriceKlines

Mark price candles of one USD-M futures contract, oldest first.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `interval` | string | no | Candle size. (one of 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M; default 1d) |
| `limit` | integer | no | Number of candles, at most 1500. (default 500) |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `close` (string), `closeTime` (string), `high` (string), `low` (string), `open` (string), `openTime` (string), `quoteVolume` (string), `takerBuyBaseVolume` (string), `takerBuyQuoteVolume` (string), `tradeCount` (integer (int64)), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresMarkPriceKlines?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresIndexPriceKlines

Index price candles of one underlying pair, oldest first.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pair` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `interval` | string | no | Candle size. (one of 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M; default 1d) |
| `limit` | integer | no | Number of candles, at most 1500. (default 500) |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `close` (string), `closeTime` (string), `high` (string), `low` (string), `open` (string), `openTime` (string), `quoteVolume` (string), `takerBuyBaseVolume` (string), `takerBuyQuoteVolume` (string), `tradeCount` (integer (int64)), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresIndexPriceKlines?pair=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresAggTrades

Compressed USD-M futures trades of one contract, oldest first. Served through a residential proxy.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `limit` | integer | no | Trades to return, at most 1000. (default 500) |
| `fromId` | string | no | Aggregate trade id to start from, instead of a time window. |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `firstTradeId` (string), `id` (string), `isBuyerMaker` (boolean), `lastTradeId` (string), `price` (string), `quantity` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresAggTrades?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresDepth

Order book of one USD-M futures contract, bids and asks by level. Served through a residential proxy.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `levels` | integer | no | Levels per side: 5, 10, 20, 50, 100, 500 or 1000. (default 50) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `asks` (Level[]), `asks[].price` (string), `asks[].quantity` (string), `bids` (Level[]), `bids[].price` (string), `bids[].quantity` (string), `lastUpdateId` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresDepth?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresBookTicker

Best bid and ask price and quantity of one USD-M futures contract. Served through a residential proxy.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `askPrice` (string), `askQty` (string), `bidPrice` (string), `bidQty` (string), `symbol` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresBookTicker?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresPremiumIndex

Mark price, index price, estimated settle price and the current funding rate of one USD-M futures contract.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `estimatedSettlePrice` (string), `indexPrice` (string), `interestRate` (string), `lastFundingRate` (string), `markPrice` (string), `nextFundingTime` (string), `symbol` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresPremiumIndex?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresFundingInfo

Funding interval and funding rate caps and floors of USD-M futures contracts that have custom funding rules.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | no | One contract. Omit it to list every contract with custom funding rules. |
| `limit` | integer | no | Items per page, 1 to 1000. (default 200) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `intervalHours` (integer (int64)), `rateCap` (string), `rateFloor` (string), `symbol` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresFundingInfo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresExchangeInfo

USD-M futures contracts with their base and quote assets, type, status, delivery date and precisions.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | no | One contract such as BTCUSDT or BTCUSDT_260925. (e.g. BTCUSDT) |
| `symbols` | string | no | Several contracts, comma separated, at most 100. |
| `quote` | string | no | Only contracts margined in this asset, when no symbol is given. (one of all, USDT, USDC, BTC, USD1; default USDT) |
| `contractType` | string | no | Keep only one kind of contract. (one of all, PERPETUAL, CURRENT_QUARTER, NEXT_QUARTER, TRADIFI_PERPETUAL; default all) |
| `query` | string | no | Keep only contracts whose base asset contains this text, such as BTC. |
| `status` | string | no | trading keeps tradable contracts; all keeps every listed one. (one of all, trading; default trading) |
| `limit` | integer | no | Items per page, 1 to 500. (default 100) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 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)

```bash
curl "https://api.hoshime.com/v1/binance/futuresExchangeInfo?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresOpenInterestHist

Open interest of one USD-M futures contract per bucket, oldest first. Only the last 30 days exist.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `period` | string | no | Bucket size. Binance serves no 8h buckets. (one of 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d; default 1d) |
| `limit` | integer | no | Rows to return, oldest first, at most 500. (default 30) |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `openInterest` (string), `openInterestValue` (string), `symbol` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresOpenInterestHist?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresGlobalLongShortRatio

Ratio of accounts net long and net short on one USD-M futures contract per bucket, oldest first.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `period` | string | no | Bucket size. Binance serves no 8h buckets. (one of 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d; default 1d) |
| `limit` | integer | no | Rows to return, oldest first, at most 500. (default 30) |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `longAccount` (string), `longShortRatio` (string), `shortAccount` (string), `symbol` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresGlobalLongShortRatio?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresTopLongShortAccountRatio

Ratio of accounts net long and net short among the top traders of one USD-M futures contract per bucket.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `period` | string | no | Bucket size. Binance serves no 8h buckets. (one of 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d; default 1d) |
| `limit` | integer | no | Rows to return, oldest first, at most 500. (default 30) |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `longAccount` (string), `longShortRatio` (string), `shortAccount` (string), `symbol` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresTopLongShortAccountRatio?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresTopLongShortPositionRatio

Ratio of positions net long and net short among the top traders of one USD-M futures contract per bucket.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `period` | string | no | Bucket size. Binance serves no 8h buckets. (one of 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d; default 1d) |
| `limit` | integer | no | Rows to return, oldest first, at most 500. (default 30) |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `longAccount` (string), `longShortRatio` (string), `shortAccount` (string), `symbol` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresTopLongShortPositionRatio?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresTakerLongShortRatio

Taker buy and sell volume of one USD-M futures contract and their ratio per bucket, oldest first.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Futures contract such as BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `period` | string | no | Bucket size. Binance serves no 8h buckets. (one of 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d; default 1d) |
| `limit` | integer | no | Rows to return, oldest first, at most 500. (default 30) |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `buySellRatio` (string), `buyVolume` (string), `sellVolume` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresTakerLongShortRatio?symbol=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/binance/futuresBasis

Basis of a futures contract against the index of its underlying pair per bucket. Only the last 30 days exist.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pair` | string | yes | Underlying pair, not a contract: BTCUSDT, BTC/USDT or btc_usdt. (e.g. BTCUSDT) |
| `contractType` | string | no | Which contract to measure against the index. (one of PERPETUAL, CURRENT_QUARTER, NEXT_QUARTER; default PERPETUAL) |
| `period` | string | no | Bucket size. Binance serves no 8h buckets. (one of 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d; default 1d) |
| `limit` | integer | no | Rows to return, oldest first, at most 500. (default 30) |
| `startTime` | string | no | Window start, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `endTime` | string | no | Window end, inclusive: epoch milliseconds, an RFC 3339 time or a date. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `annualizedBasisRate` (string), `basis` (string), `basisRate` (string), `contractType` (string), `futuresPrice` (string), `indexPrice` (string), `pair` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/binance/futuresBasis?pair=BTCUSDT" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
