POST
/api/v2/crypto-virtual-accounts/exchange/quoteRequest an exact the crypto on/off-ramp balance-to-balance quote
Returns an expiring quote for fiat-to-crypto or crypto-to-fiat conversion between the selected the crypto on/off-ramp account IDs. Read account IDs from trading-overview and never calculate a rate locally.
Authentication
Send your API key in the x-api-key header on every request.
Request body
application/json
| Field | Type | Required | Description |
|---|---|---|---|
| UserId | unknown | No | |
| SellCurrency | string | Yes | |
| BuyCurrency | string | Yes | |
| SellAmount | string | Yes | |
| DepositAccountId | unknown | No | |
| SettlementAccountId | unknown | No | |
| SellChainId | unknown | No | |
| SellTokenAddress | string | No | |
| BuyChainId | unknown | No | |
| BuyTokenAddress | string | No |
Responses
200 — OK
| Field | Type | Required | Description |
|---|---|---|---|
| buy_currency | string | No | |
| buy_amount | string | No | |
| sell_currency | string | No | |
| sell_amount | string | No | |
| payment_method | string | No | |
| quote_time | string (date-time) | No | |
| expiry | string (date-time) | No | |
| rate | string | No | |
| fees | object | No | |
| quote_amount | string | No | |
| settlement_ccy | string | No | |
| settlement_chain_id | unknown | No | |
| settlement_token_address | string | No | |
| session | string | No |
400 — Bad Request
| Field | Type | Required | Description |
|---|---|---|---|
| Message | string | No | |
| Code | string | No | |
| Status | unknown | No | |
| ValidationErrors | object | No | |
| Details | string | No |
401 — Unauthorized
| Field | Type | Required | Description |
|---|---|---|---|
| Message | string | No | |
| Code | string | No | |
| Status | unknown | No | |
| ValidationErrors | object | No | |
| Details | string | No |
Example request
curl -X POST "https://{base_url}/api/v2/crypto-virtual-accounts/exchange/quote" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"SellCurrency":"…","BuyCurrency":"…","SellAmount":"…"}'This page is generated from the live OpenAPI specification and always matches the current API.