Usage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
currencyAmount | number | Yes | The amount in the source currency |
currency | Currency | Yes | The source currency code (e.g. "MXN") |
bearerToken | string | No | JWT token. Falls back to apiSecretKey if not provided |
Return Value
Returns aPromise<number> — the equivalent amount in USD.
Example
Exchange rates are fetched in real-time. Results may vary between calls.
