# Indodax API

> Returns Indodax crypto exchange data: tickers, trading pairs, 24-hour summaries, recent trades and order book depth.

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

Last price, best bid and ask, and 24-hour volume of one pair.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pair` | string | yes | Trading pair, such as btc_idr, btcidr or BTC/IDR. (e.g. btc_idr) |
| `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: `base` (string), `buy` (string), `change` (string), `changePercent` (string), `high` (string), `low` (string), `open` (string), `price` (string), `quote` (string), `sell` (string), `symbol` (string), `updatedAt` (string), `volume` (string), `volumeQuote` (string)

```bash
curl "https://api.hoshime.com/v1/indodax/ticker?pair=btc_idr" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/indodax/tickers

Last price and 24-hour volume of every traded pair, 100 pairs a page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `quote` | string | no | Only pairs quoted in this currency. (one of all, idr, usdt; default all) |
| `query` | string | no | Filter by base symbol, such as btc. |
| `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: `base` (string), `buy` (string), `change` (string), `changePercent` (string), `high` (string), `low` (string), `open` (string), `price` (string), `quote` (string), `sell` (string), `symbol` (string), `updatedAt` (string), `volume` (string), `volumeQuote` (string)

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

## GET /v1/indodax/pairs

Every trading pair with its minimum order, fees and trading status, 100 pairs a page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `quote` | string | no | Only pairs quoted in this currency. (one of all, idr, usdt; default all) |
| `query` | string | no | Filter by base symbol or description, such as btc or bitcoin. |
| `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: `base` (string), `description` (string), `id` (string), `maintenance` (boolean), `makerFeePercent` (number (double)), `minBase` (string), `minQuote` (string), `pair` (string), `quantityIncrement` (string), `quote` (string), `suspended` (boolean), `takerFeePercent` (number (double))

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

## GET /v1/indodax/summaries

Every pair's ticker with its 24-hour and 7-day reference prices, 100 pairs a page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `quote` | string | no | Only pairs quoted in this currency. (one of all, idr, usdt; default all) |
| `query` | string | no | Filter by base symbol, such as btc. |
| `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: `base` (string), `buy` (string), `change` (string), `changePercent` (string), `high` (string), `low` (string), `open` (string), `price` (string), `price24h` (string), `price7d` (string), `quote` (string), `sell` (string), `symbol` (string), `updatedAt` (string), `volume` (string), `volumeQuote` (string)

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

## GET /v1/indodax/trades

The most recent trades of one pair, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pair` | string | yes | Trading pair, such as btc_idr, btcidr or BTC/IDR. (e.g. btc_idr) |
| `limit` | integer | no | Number of trades to return. (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: `amount` (string), `id` (string), `price` (string), `side` (string), `tradedAt` (string)

```bash
curl "https://api.hoshime.com/v1/indodax/trades?pair=btc_idr" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/indodax/depth

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

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pair` | string | yes | Trading pair, such as btc_idr, btcidr or BTC/IDR. (e.g. btc_idr) |
| `levels` | integer | no | Price levels to return on each side, from 1 to 500. (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[].amount` (string), `asks[].price` (string), `bids` (Level[]), `bids[].amount` (string), `bids[].price` (string), `pair` (string)

```bash
curl "https://api.hoshime.com/v1/indodax/depth?pair=btc_idr" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/indodax/klines

OHLCV candles of one pair, oldest first, from the TradingView feed the market page uses.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pair` | string | yes | Trading pair, such as btc_idr, btcidr or BTC/IDR. Quote currency must be IDR or USDT. (e.g. btc_idr) |
| `tf` | string | no | Candle size in minutes, or 1D, 3D and 1W. (one of 1, 5, 15, 30, 60, 120, 240, 1D, 3D, 1W; default 15; e.g. 1D) |
| `from` | integer | no | Window start as Unix seconds or milliseconds. Default 200 candles before to. |
| `to` | integer | no | Window end as Unix seconds or milliseconds. Default now. |
| `latest` | integer | no | Keep only the newest N candles of the window, from 1 to 1000. Omit for all. (e.g. 30) |
| `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: `items` (Candle[]), `items[].close` (string), `items[].high` (string), `items[].low` (string), `items[].open` (string), `items[].openedAt` (string), `items[].volume` (string), `pair` (string), `tf` (string)

```bash
curl "https://api.hoshime.com/v1/indodax/klines?pair=btc_idr&tf=1D&latest=30" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/indodax/serverTime

Indodax server time in Unix seconds and RFC 3339.

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/indodax/serverTime" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/indodax/priceIncrements

Smallest price step of every Indodax pair, sorted by pair id.

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

| 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: `increment` (string), `pair` (string)

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