# Kraken API

> Returns Kraken price-page data: USD price, market cap, volume and changes of crypto assets, OHLCV candles and top perpetual futures.

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

USD price, market cap, 24-hour volume, rank and price changes of one crypto asset from its Kraken price page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `asset` | string | yes | Asset page name such as bitcoin or ethereum, or a kraken.com/prices/<asset> URL. (e.g. bitcoin) |
| `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: `categories` (string[]), `change1hPercent` (string), `change1mPercent` (string), `change1wPercent` (string), `change1yPercent` (string), `change24hPercent` (string), `currency` (string), `id` (string), `listedAt` (string), `marketCap` (string), `name` (string), `price` (string), `rank` (integer (int64)), `symbol` (string), `tradable` (boolean), `url` (string), `volume24h` (string)

```bash
curl "https://api.hoshime.com/v1/kraken/price?asset=bitcoin" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kraken/markets

The ten largest crypto assets by market cap on Kraken: USD price, market cap, volume and price changes.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 10. (default 10; e.g. 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: `categories` (string[]), `change1hPercent` (string), `change1mPercent` (string), `change1wPercent` (string), `change1yPercent` (string), `change24hPercent` (string), `currency` (string), `id` (string), `listedAt` (string), `marketCap` (string), `name` (string), `price` (string), `rank` (integer (int64)), `symbol` (string), `tradable` (boolean), `url` (string), `volume24h` (string)

```bash
curl "https://api.hoshime.com/v1/kraken/markets?limit=10" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kraken/candles

USD OHLCV candles of one crypto asset from its Kraken price page: the last 24 daily, weekly or monthly bars, or the yearly bars since 2013.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `asset` | string | yes | Asset page name such as bitcoin or ethereum, or a kraken.com/prices/<asset> URL. (e.g. bitcoin) |
| `interval` | string | no | Candle size: 1d, 1w, 1M (month) or 1y. (one of 1d, 1w, 1M, 1y; default 1d; e.g. 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: `close` (string), `high` (string), `low` (string), `open` (string), `openedAt` (string), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/kraken/candles?asset=bitcoin&interval=1d" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kraken/futures

The busiest Kraken perpetual futures by 24-hour volume, as featured on its price pages: price, mark price, funding rate and open interest.

Scope: `social:read` · Units: 1 · Cached: 1 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: `askPrice` (string), `bidPrice` (string), `changePercent` (string), `fundingRate` (string), `high` (string), `indexPrice` (string), `low` (string), `markPrice` (string), `open` (string), `openInterest` (string), `pair` (string), `price` (string), `quoteVolume` (string), `relativeFundingRate` (string), `suspended` (boolean), `symbol` (string), `updatedAt` (string), `volume` (string)

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