Skip to main content
GET
/
currencies
/
convert
/
{from}
/
{to}
Conversion
curl --request GET \
  --url https://api.tradewatch.io/currencies/convert/{from}/{to} \
  --header 'api-key: <api-key>'
{
  "info": {
    "timestamp": 1704882030,
    "rate": 1.23456
  },
  "query": {
    "from": "<string>",
    "to": "<string>",
    "amount": 10,
    "precision": 5
  },
  "result": 123
}

Authorizations

api-key
string
header
required

Authentication via API key header

Path Parameters

from
string
required

The symbol you want to convert from.

to
string
required

The symbol you want to convert to.

Query Parameters

amount
number
default:10

The amount to be converted.

Required range: x >= 0.01
precision
integer
default:5

The decimal precision of the result.

Response

Successful Response

info
ConversionInfo · object
required
query
ConversionQuery · object
required
result
number
required