latestOpenAPI 3.0.32026-08-101461131.1 MB

ad6f143e43aa

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}

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.

convertednumber double required

The result of the conversion.

fromstring required

The "from" currency symbol.

initialAmountnumber double required

The amount to convert.

request_idstring required

A request id assigned by the server.

statusstring required

The status of this request's response.

symbolstring required

The symbol pair that was evaluated from the request.

tostring required

The "to" currency symbol.