Get KRW/USD exchange rate
tossinvest_get_exchange_rateGet the current or historical KRW/USD exchange rate to convert holdings and order figures between the two currencies.
Instructions
Get the KRW <-> USD exchange rate, refreshed once a minute.
Use this to convert between the KRW and USD figures that holdings and orders report separately.
Args:
base_currency ('KRW' | 'USD'): the currency being priced.
quote_currency ('KRW' | 'USD'): the currency it is priced in. E.g. base='USD', quote='KRW' gives won per dollar.
date_time (string, optional): ISO 8601 instant for a historical rate. Omit for the current rate.
response_format ('markdown' | 'json'): default 'markdown'.
Returns { baseCurrency, quoteCurrency, rate, midRate, basisPoint, rateChangeType, validFrom, validUntil }. rateChangeType is UP, EQUAL or DOWN. validFrom/validUntil bound the ~1-minute window this quote applies to.
This is an indicative display rate — the rate actually applied when an order settles can differ.
Errors: 404 exchange-rate-not-found when no rate exists for the requested instant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_time | No | Historical instant (ISO 8601). Omit for the current rate. | |
| base_currency | Yes | Base currency — the one being priced. | |
| quote_currency | Yes | Quote currency — the one it is priced in. | |
| response_format | No | Output format: 'markdown' for a compact human-readable summary, 'json' for the complete raw payload. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | Applied rate | |
| midRate | No | Decimal value as a string | |
| validFrom | No | ||
| basisPoint | No | Decimal value as a string | |
| validUntil | No | ||
| baseCurrency | No | KRW or USD | |
| quoteCurrency | No | KRW or USD | |
| rateChangeType | No | UP, EQUAL or DOWN |