Quote
Get a quote for buying assets
Obtains a quote for buying assets. This endpoint is used to get the current exchange rate and other details for a specific asset pair.
If the asset pair is not supported, an error will be returned. Assets can go through multiple exchange layers (e.g., from TATUM to USDT, then to USDC), and the quote will reflect the final exchange rate after all conversions.
This endpoint is typically used in the process of exchanging assets, where a user wants to know the current exchange rate before proceeding with the transaction.
post/quote/buy
Request
- Base URL: https://api.eldorado.io/api
- URL: https://api.eldorado.io/api/quote/buy
- Auth: none declared. Required headers: X-Client-ID, X-Referral-ID
Headers
X-Client-IDstring required
X-Referral-IDstring required
User-Agentstring
Authorizationstring
Bearer token. If not provided will be readonly
Request body
Example request
{
"chainId": "42161",
"fiatCurrencyId": "USD",
"paymentMethodId": "app_zelle",
"addressTo": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
"amount": "100.00",
"fixedAmountSide": "IN"
}Response
Successful response with quote details
Example response
{
"amountIn": "100.00",
"amountOut": "100.00",
"minAmountOut": "99.98",
"fixedAmountSide": "IN",
"chainId": "42161",
"token": "USDT",
"quoteId": "quote_123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-15T10:30:00.000Z",
"expiresAt": "2024-01-15T10:35:00.000Z",
"exchangeRate": "1409.23",
"fee": {
"amountInToken": "0.50",
"amountInFiat": "704.61",
"breakdown": {
"platformFees": {
"amountInToken": "0.50",
"amountInFiat": "704.61",
"rate": "0.50"
},
"integratorFees": {
"amountInToken": "0.50",
"amountInFiat": "704.61",
"rate": "0.50"
}
}
},
"readonly": true
}Changes
No recorded changes to this operation across all 1 revision of this API.