fx:conversion
Real-time Currency Conversion
Get currency conversions using the latest market conversion rates. Note than you can convert in both directions. For example USD to CAD or CAD to USD.
get/v1/conversion/{from}/{to}
Request
- Base URL: https://api.polygon.io
- URL: https://api.polygon.io/v1/conversion/{from}/{to}
- Auth: API key in query parameter apiKey
Path parameters
fromstring required
The "from" symbol of the pair.
tostring required
The "to" symbol of the pair.
Query parameters
amountnumber
The amount to convert, with a decimal.
precision0 | 1 | 2 | 3 | 4
The decimal precision of the conversion. Defaults to 2 which is 2 decimal places accuracy.
Response
The last tick for this currency pair, plus the converted amount for the requested amount.
Changes
No recorded changes to this operation across all 1 revision of this API.