Quote

Endpoints for currency exchange quotes

Get currency exchange quote

post

Fetch latest exchange rates and calculate quote amount based on base currency, quote currency, and base amount.

Body
baseCurrencystringRequired

ISO currency code of the base currency

Example: USD
quoteCurrencystringRequired

ISO currency code of the quote currency

Example: EUR
baseAmountnumberRequired

Amount of base currency to convert

Example: 100
Responses
200

Successful currency exchange quote

application/json
post
/api/trade/quote
POST /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
  }
}