Please note that rates provided through this endpoint are indicative, using mid-market rates.
GET https://api.sandbox.coindirect.com/api/currency/convert/:fromCode/:toCode?amount=:amount
GET
https://api.sandbox.coindirect.com/api/currency/convert/:fromCode/:toCode?amount=:amount
This endpoint allows you to get the current exchange rate for a specific currency pair e.g. ETH/JPY.
fromCode*
string
From currency e.g. ETH
ETH
toCode*
To currency e.g. JPY
JPY
amount*
number
fromCode currency amount e.g. 1
fromCode
1
{ "value": 368028.24 }
Parameter
Type
Description
value
The current exchange rate. Please note that rates provided via this endpoint are indicative, using mid-market rates.
Last updated 3 years ago