Skip to main content
GET
/
crypto
/
convert
/
{from_}
/
{to}
Conversion
curl --request GET \
  --url https://api.tradewatch.io/crypto/convert/{from_}/{to} \
  --header 'api-key: <api-key>'
{
  "info": {
    "timestamp": 1704882030,
    "rate": 1.23456
  },
  "query": {
    "from": "<string>",
    "to": "<string>",
    "amount": 10,
    "precision": 8
  },
  "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 >= 1e-8
precision
integer
default:8

The decimal precision of the result.

Response

Successful Response

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