Creating quote
Create quote
POST
/api/public/v1/exchange/quotes
This endpoint creates quotes.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Body
Name | Type | Description |
---|---|---|
data | object | Object with exchange request data. |
data.type | string | Exchange request type. Always |
data.attributes | object | A set of exchange request attributes. |
data.attributes.accountChargedId | string | Account ID from which funds are being converted. See Listing Accounts. |
data.attributes.accountReceivedId | string | Account ID to which funds are being converted. See Listing Accounts. |
data.attributes.amount | number | Exchange amount. |
data.attributes.amountCurrency | string | Exchange currency. Can be either |
Request JSON
Response
Response Body
Name | Type | Description |
---|---|---|
data.id | string | Quote ID. |
data.type | string | Entity type returned. Always |
data.attributes | object | A set of quote attributes. |
data.attributes.amountCharged | string | Amount to be debited from your |
data.attributes.amountChargedCurrency | string | Account charged currency code. |
data.attributes.amountReceivedCurrency | string | Account received cyrrency code. |
data.attributes.amountReceived | string | Amount to be credited to your |
data.attributes.rate | string | Exchange rate. |
data.attributes.rateCurrency | string | Exchange rate currency code. |
data.attributes.exchangeFee | string | Txn fee amount. |
data.attributes.exchangeFeeCurrency | string | Fee currency code. |
data.attributes.expiresAt | string | Quote expiry timestamp. |
Last updated