409 CONFLICT.customerId is required here (as a query parameter) because the quote is priced against the customer's fee tier and compliance status.| Field | Type | Description | Constraints |
|---|---|---|---|
customerId | string (uuid) | ID of the KYC-approved customer the quote is priced for | Required |
| Field | Type | Description | Constraints |
|---|---|---|---|
side | string | Trade direction: buy or sell (from the customer's perspective) | Required |
crypto | object | The crypto leg of the trade | Required |
crypto.asset | string | Crypto ticker (e.g. BTC, USDT) | Required · 1-10 chars · ^[A-Za-z0-9]{1,10}$ |
crypto.amount | number | Crypto quantity to quote | Required · Min: 0.00000001 · Max: 1e15 |
fiat | object | The fiat leg of the trade | Required |
fiat.asset | string | Fiat code (e.g. USD, EUR) | Required · 1-10 chars · ^[A-Za-z0-9]{1,10}$ |
GET /api/v1/quote/{fromAsset}/{toAsset} · POST /api/v1/ordercurl --location --request POST '/api/v1/quote?customerId=' \
--header 'X-API-Key: <api-key>' \
--header 'X-Timestamp: <api-key>' \
--header 'X-Nonce: <api-key>' \
--header 'X-Body-Hash: <api-key>' \
--header 'X-Signature: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--data ''{
"success": true,
"message": null,
"data": {
"fromAsset": "USDT",
"toAsset": "USD",
"oneCoinValue": 1,
"assetValue": 20,
"fee": 1.5,
"totalAmount": 18.5,
"exchangeRate": "1"
},
"errors": []
}