# KuCoin API

> Returns KuCoin coin price pages with USD price, market cap, supply and all-time high, fiat prices of listed coins and USD exchange rates.

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

Price page of one coin on KuCoin: USD price, 24-hour and 7-day change, volume, market cap, supply, all-time high and low, rank and links.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `coin` | string | yes | Coin code such as BTC or ETH, or a kucoin.com/price/<coin> URL. (e.g. BTC) |
| `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: `addedDate` (string), `allTimeHigh` (string), `allTimeHighAt` (string), `allTimeLow` (string), `allTimeLowAt` (string), `change24hPercent` (string), `change7dPercent` (string), `circulatingSupply` (string), `communityAndCodeUrls` (string[]), `documentUrls` (string[]), `explorerUrls` (string[]), `fullyDilutedCap` (string), `id` (string), `logoUrl` (string), `marketCap` (string), `maxSupply` (string), `name` (string), `price` (string), `rank` (integer (int64)), `symbol` (string), `tradingPair` (string), `url` (string), `volume24h` (string), `websites` (string[])

```bash
curl "https://api.hoshime.com/v1/kucoin/coin?coin=BTC" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kucoin/prices

Fiat prices of KuCoin-listed coins, such as the price of BTC and ETH in USD or EUR; without targets every listed coin.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `base` | string | no | Fiat currency code to price in, such as USD, EUR or IDR. (default USD) |
| `targets` | string | no | Comma-separated coin codes such as BTC,ETH. Omit for every listed coin. (e.g. BTC,ETH) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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: `currency` (string), `price` (string), `symbol` (string)

```bash
curl "https://api.hoshime.com/v1/kucoin/prices?targets=BTC%2CETH" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kucoin/rates

Exchange rates of one US dollar into about 100 fiat currencies, as used on KuCoin.

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: `currency` (string), `rate` (string)

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