v1

latestOpenAPI 3.0.32026-08-04850206.9 KB
Conversion

Convert between assets

Server-side conversion between any two active assets (crypto AND fiat). to accepts a CSV for multi-target conversion; reversing is just swapping from/to. Conversion is linear, so value = unit_rate * amount. Fiat FX rates refresh ~twice daily; crypto rates ~every minute.

get/api/v1/convert

Query parameters

fromstring required

Source asset slug.

Example:bitcoin

Source asset slug.

tostring required

Target asset slug(s), comma-separated (up to 10).

Example:ethereum

Target asset slug(s), comma-separated (up to 10).

amountnumber nullable

Amount of the source asset to convert (default 1).

Example:2.5

Amount of the source asset to convert (default 1).

Response

Example response

{
  "data": {
    "from": {
      "slug": "bitcoin",
      "symbol": "BTC"
    },
    "amount": 1,
    "results": [
      {
        "slug": "ethereum",
        "symbol": "ETH",
        "value": "37.980395960595"
      }
    ]
  }
}