Skip to main content
POST
/
v1
/
fx
/
quote
Get an FX quote
curl --request POST \
  --url https://api.antonpayments.com/v1/fx/quote \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sell_currency": "GBP",
  "buy_currency": "EUR",
  "buy_amount": "<string>",
  "sell_amount": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "sell_currency": "<string>",
    "buy_currency": "<string>",
    "sell_amount": "<string>",
    "buy_amount": "<string>",
    "mid_market_rate": "<string>",
    "customer_rate": "<string>",
    "inverse_rate": "<string>",
    "fx_markup_bps": 123,
    "fx_fee": "<string>",
    "fx_fee_currency": "<string>",
    "provider": "<string>",
    "expires_at": "2023-11-07T05:31:56Z",
    "locked": true
  }
}

Authorizations

Authorization
string
header
required

Merchant API key: ak_live_* (production) or ak_test_* (sandbox).

Body

application/json
sell_currency
string
required
Example:

"GBP"

buy_currency
string
required
Example:

"EUR"

buy_amount
string

Fixed destination amount.

sell_amount
string

Fixed source amount.

Response

FX quote.

data
object
required