# Pintu API

> Returns latest prices and percentage changes of Pintu crypto trading pairs, for one quote currency or one pair.

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

Latest price and percentage changes of Pintu's trading pairs against one quote currency.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `quote` | string | no | Quote currency of the pairs, such as idr. (default idr; e.g. idr) |
| `limit` | integer | no | Number of pairs, 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: `base` (string), `changes` (Changes), `changes.day` (number (double)), `changes.month` (number (double)), `changes.week` (number (double)), `changes.year` (number (double)), `pair` (string), `price` (number (double)), `quote` (string)

```bash
curl "https://api.hoshime.com/v1/pintu/pairs?quote=idr" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pintu/pair

Latest price and percentage changes of one Pintu trading pair, such as eth/idr.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pair` | string | yes | Trading pair as base/quote, such as eth/idr. (e.g. eth/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), `changes` (Changes), `changes.day` (number (double)), `changes.month` (number (double)), `changes.week` (number (double)), `changes.year` (number (double)), `pair` (string), `price` (number (double)), `quote` (string)

```bash
curl "https://api.hoshime.com/v1/pintu/pair?pair=eth%2Fidr" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
