Skip to main content
GET
/
v1
/
fx
/
rate
Get an indicative FX rate
curl --request GET \
  --url https://api.antonpayments.com/v1/fx/rate \
  --header 'Authorization: Bearer <token>'
{
  "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).

Query Parameters

sell_currency
string
required
buy_currency
string
required
buy_amount
string

Amount to price. Defaults to 1.

Response

Indicative rate.

data
object
required