# BCA Exchange Rates API

> Returns BCA's rupiah exchange rates (e-Rate, TT Counter, Bank Notes) for all currencies or one currency.

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

BCA's IDR exchange rates (e-Rate, TT Counter and Bank Notes) for every currency, or one currency.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `currency` | string | no | Currency code, such as USD. Omit it for every currency. (e.g. USD) |
| `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: `bankNotes` (Spread), `bankNotes.asOfAt` (string), `bankNotes.buy` (number (double)), `bankNotes.sell` (number (double)), `currency` (string), `eRate` (Spread), `eRate.asOfAt` (string), `eRate.buy` (number (double)), `eRate.sell` (number (double)), `ttCounter` (Spread), `ttCounter.asOfAt` (string), `ttCounter.buy` (number (double)), `ttCounter.sell` (number (double))

```bash
curl "https://api.hoshime.com/v1/bankkurs/bca?currency=USD" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
