# Currencies

Every V3 endpoint returns all prices in one currency of your choice. Without a `currency` parameter you get **USD**. The marketplace's own price is always included as well, so you never lose the original value.

```bash
curl -s "https://api.cspriceapi.com/v3/prices/latest?markets=youpin&currency=EUR" \
  -H "x-api-key: YOUR_API_KEY"
```

## Supported currencies

| Code | Currency | Code | Currency |
|---|---|---|---|
| `USD` | US dollar (default) | `ISK` | Icelandic króna |
| `EUR` | Euro | `JPY` | Japanese yen |
| `CNY` | Chinese yuan | `KRW` | South Korean won |
| `GBP` | British pound | `MXN` | Mexican peso |
| `AUD` | Australian dollar | `MYR` | Malaysian ringgit |
| `BRL` | Brazilian real | `NOK` | Norwegian krone |
| `CAD` | Canadian dollar | `NZD` | New Zealand dollar |
| `CHF` | Swiss franc | `PHP` | Philippine peso |
| `CZK` | Czech koruna | `PLN` | Polish złoty |
| `DKK` | Danish krone | `RON` | Romanian leu |
| `HKD` | Hong Kong dollar | `SEK` | Swedish krona |
| `HUF` | Hungarian forint | `SGD` | Singapore dollar |
| `IDR` | Indonesian rupiah | `THB` | Thai baht |
| `ILS` | Israeli shekel | `TRY` | Turkish lira |
| `INR` | Indian rupee | `ZAR` | South African rand |

An unknown code returns `400` with the list of supported currencies.

## Converted and original prices

Each price object carries the converted values and, under `original`, the marketplace's own values and currency:

```json
{
  "market_hash_name": "AK-47 | Redline (Field-Tested)",
  "price": 19.26,
  "avg_7d": 19.8,
  "currency": "EUR",
  "original": { "currency": "CNY", "price": 139.99, "avg_7d": 143.94 },
  "count": 11558,
  "updated_at": "2026-12-02T13:24:44.000Z"
}
```

| Marketplace | Original currency |
|---|---|
| YouPin898, BUFF163, C5Game, EcoSteam | CNY |
| Skinport, SkinBaron | EUR |
| CSFloat, Lisskins, DMarket, ShadowPay, Waxpeer, CS.MONEY, White.market, Tradeit.gg, Skinplace, Market.CSGO, Steam | USD |

Only amounts are converted. Percent changes (`change_24h` … `change_90d`), counts, floats and timestamps stay as they are.

## Exchange rates

- Rates are the **ECB reference rates**, published every working day; we refresh them hourly.
- Every response has an `fx` block with the date of the rates and the rates used, as units per 1 USD:

```json
"fx": {
  "base": "USD",
  "source": "ECB reference rates",
  "date": "2026-12-01",
  "rates_per_usd": { "CNY": 6.6646, "EUR": 0.91684, "USD": 1 }
}
```

- To convert yourself: `amount_in_B = amount_in_A / rates_per_usd[A] * rates_per_usd[B]`.

## Historical data

Price history (`/v3/prices/{market}/history`), the market cap index (`/v3/indexes/market-cap`) and sales (`/v3/market-sales/search`) are converted with the exchange rate **of each point's own day**. A price from three months ago is shown at what it was worth then, not at today's rate. The marketplace's own value is under `original` for every point.

## Rounding

Converted amounts have two decimals (`JPY`, `KRW`, `IDR` and `ISK`: none). Original values are returned as the marketplace reports them.

## V1 and V2

The legacy routes (`/v1/...`, `/v2/...`) return prices in each marketplace's native currency, as decimal strings, without conversion. They stay supported for existing integrations.
