Exchange Rate
GetAuthentification requiseBêta
Returns a quote for converting between two currencies. The quote carries the exchange rate and a rate_token - pass both to a cross-currency transfer to execute at the quoted rate.
Point de terminaison
Get
/wallet/v1/exchange-rateURL de base : https://api.derivws.com
Codes de statut
200OK - Quote for the requested currency pair.
400Bad request - errors[0].code will be ValidationError (missing or invalid source_currency or destination_currency).
401Unauthorized - Missing or invalid Bearer token.
403Forbidden - Valid token but insufficient scope (payment scope required).
429Too many requests - Rate limit exceeded.
500Internal server error - For example, no rate is available for the requested pair.
503Service unavailable - Request rejected by the gateway circuit breaker.
504Gateway timeout - The service did not respond in time.
Réponses d'erreur
400Validation error
{
"errors": [
{
"status": 400,
"code": "ValidationError",
"message": "source_currency is required",
"field": "source_currency"
}
]
}500No rate available for the requested pair
{
"errors": [
{
"status": 500,
"code": "InternalServerError",
"message": "No exchange rate is available for USD to BTC"
}
]
}Authentification requise
Ce point de terminaison nécessite l'en-tête
Deriv-App-ID pour identifier votre application. Portée OAuth2 : paymentÀ propos de Exchange Rate
Le point de terminaison GET /wallet/v1/exchange-rate : Returns a quote for converting between two currencies. The quote carries the exchange rate and a rate_token - pass both to a cross-currency transfer to execute at the quoted rate.
D'autres questions ? Nous contacter