Get the swap exchange rate between two assets

The endpoint returns the swap exchange rate from source to target asset. One of source or target asset can be fiat.

SecuritybearerAuth
Request
path Parameters
sourceAssetId
required
string <uuid>

Source Asset ID

Example: 1d9e339b-7233-4aa6-ba16-8518bbf354e5
targetAssetId
required
string <uuid>

Target Asset ID

Example: 1d9e339b-7233-4aa6-ba16-8518bbf354e5
query Parameters
source_asset_amount
number <float>

A string parameter representing the source amount

Example: source_asset_amount=5
Responses
200

Success Response

401

Unauthorized

403

Account is inactive

422

Error

500

Error

get/v1/exchange/{sourceAssetId}/{targetAssetId}
Request samples
Response samples
application/json
{
  • "exchange_rate": "0.12345678"
}