Currency
Convert an amount between fiat currencies
GET
/api/currency/convertQuery parameters
fromstringrequired- ISO 4217 currency code
tostringrequired- ISO 4217 currency code
amountnumberrequired- Amount to convert. Must be a positive number up to 1e15.
precisionintegeroptional- Decimal places to round the result to
Response
fromstringtostringamountnumberratenumberresultnumberupdatedstring<date-time>Errors
- 400
VALIDATION_ERROR - Invalid query parameters.
- 401
UNAUTHORIZED - Missing or invalid API key.
- 404
UNKNOWN_ASSET - Unknown currency or crypto.
- 429
USAGE_LIMIT_EXCEEDED - Too many requests: per-key or per-IP burst rate limit exceeded (RATE_LIMIT_EXCEEDED) or monthly request quota reached (USAGE_LIMIT_EXCEEDED).
- 500
INTERNAL_ERROR - Unexpected server error.
- 502
UPSTREAM_ERROR - Exchange-rate provider failure.