Quote
Endpoints for currency exchange quotes
Fetch latest exchange rates and calculate quote amount based on base currency, quote currency, and base amount.
Body
baseCurrencystringRequiredExample:
ISO currency code of the base currency
USDquoteCurrencystringRequiredExample:
ISO currency code of the quote currency
EURbaseAmountnumberRequiredExample:
Amount of base currency to convert
100Responses
200
Successful currency exchange quote
application/json
400
Invalid currency code supplied
application/json
500
Internal server error or external API failure
application/json
post
/api/trade/quotePOST /api/trade/quote HTTP/1.1
Host: platform.madra.finance
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"baseCurrency": "USD",
"quoteCurrency": "EUR",
"baseAmount": 100
}{
"baseCurrency": "USD",
"quoteCurrency": "EUR",
"baseAmount": 100,
"quoteAmount": "92.50",
"exchangeRate": "0.925000",
"transactionDetails": {
"minimumReceived": 88,
"slippage": 5
}
}