Convert Currency Value

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

This endpoint allows you to get the current exchange rate for a specific currency pair e.g. ETH/JPY.

Path Parameters

Name
Type
Description

fromCode*

string

From currency e.g. ETH

toCode*

string

To currency e.g. JPY

Query Parameters

Name
Type
Description

amount*

number

fromCode currency amount e.g. 1

{
  "value": 368028.24
}

Response parameters

Parameter

Type

Description

value

number

The current exchange rate. Please note that rates provided via this endpoint are indicative, using mid-market rates.

Last updated