# Bitget API

> Returns Bitget spot tickers, symbols, order books, recent trades and candles.

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

Last price, best bid and ask and 24-hour statistics of one symbol.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Trading pair symbol such as BTCUSDT. (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: `ask` (string), `askSize` (string), `bid` (string), `bidSize` (string), `change` (string), `changePercent` (string), `high` (string), `low` (string), `open` (string), `price` (string), `quoteVolume` (string), `symbol` (string), `updatedAt` (string), `volume` (string)

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

## GET /v1/bitget/symbols

The spot symbols Bitget lists, sorted by name, optionally of one quote coin. The whole list is about 1.7 MB.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `quote` | string | no | Only symbols quoted in this coin, such as USDT. Omit it for all symbols. |
| `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: `baseCoin` (string), `makerFeeRate` (string), `minTradeUsdt` (string), `quoteCoin` (string), `status` (string), `symbol` (string), `takerFeeRate` (string)

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

## GET /v1/bitget/orderbook

The best bids and asks of one symbol, at the finest price grouping.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Trading pair symbol such as BTCUSDT. (e.g. BTCUSDT) |
| `levels` | integer | no | Price levels per side, from 1 to 150. (default 10) |
| `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[].size` (string), `bids` (Level[]), `bids[].price` (string), `bids[].size` (string), `symbol` (string), `updatedAt` (string)

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

## GET /v1/bitget/trades

The most recent trades of one symbol, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Trading pair symbol such as BTCUSDT. (e.g. BTCUSDT) |
| `limit` | integer | no | Items per page, 1 to 100. (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: `id` (string), `price` (string), `side` (string), `size` (string), `tradedAt` (string)

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

## GET /v1/bitget/candles

Candles of one symbol, oldest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Trading pair symbol such as BTCUSDT. (e.g. BTCUSDT) |
| `granularity` | string | no | Candle length, such as 1min, 1h or 1day. (one of 1min, 5min, 15min, 30min, 1h, 4h, 6h, 12h, 1day, 3day, 1week, 1M; default 1h) |
| `limit` | integer | no | Items per page, 1 to 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: `close` (string), `high` (string), `low` (string), `open` (string), `openedAt` (string), `quoteVolume` (string), `volume` (string)

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

## GET /v1/bitget/historyCandles

Older candles of one symbol, back in time, oldest first. Start at the newest candles, then page back with the cursor.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Trading pair symbol such as BTCUSDT. (e.g. BTCUSDT) |
| `granularity` | string | no | Candle length, such as 1min, 1h or 1day. (one of 1min, 5min, 15min, 30min, 1h, 4h, 6h, 12h, 1day, 3day, 1week, 1M; default 1h; e.g. 1day) |
| `limit` | integer | no | Items per page, 1 to 200. (default 100) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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), `high` (string), `low` (string), `open` (string), `openedAt` (string), `quoteVolume` (string), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/bitget/historyCandles?symbol=BTCUSDT&granularity=1day" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bitget/tickers

Last price, best bid and ask and 24-hour statistics of every Bitget spot symbol, optionally of one quote currency.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `quote` | string | no | Only symbols quoted in this currency, such as USDT or BTC. 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: `ask` (string), `bid` (string), `change` (string), `changePercent` (string), `high` (string), `low` (string), `open` (string), `price` (string), `quoteVolume` (string), `symbol` (string), `updatedAt` (string), `volume` (string)

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

## GET /v1/bitget/serverTime

Bitget server time as an RFC 3339 instant.

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: `serverAt` (string)

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

## GET /v1/bitget/coins

Coins of Bitget with their networks, confirmations, fees and the deposit and withdrawal status of each network.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `coin` | string | no | One coin such as BTC. Omit it for every coin. |
| `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: `chains` (CoinChain[]), `chains[].chain` (string), `chains[].congestion` (string), `chains[].depositConfirm` (string), `chains[].minDepositAmount` (string), `chains[].minWithdrawAmount` (string), `chains[].rechargeable` (boolean), `chains[].withdrawFee` (string), `chains[].withdrawable` (boolean), `coin` (string), `transfer` (boolean)

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