Skip to main content
POST
/
api
/
v1
/
auth
/
pricing
/
fx-quotes
Create FX Rate Quote (Admin)
curl --request POST \
  --url https://crypto.westminister.tech/api/v1/auth/pricing/fx-quotes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "asset": "<string>",
  "fiat_currency": "<string>",
  "reference_rate": "<string>",
  "source": "<string>",
  "network": "<string>",
  "source_country": "<string>",
  "destination_country": "<string>",
  "applied_rate": "<string>",
  "spread_bps": 123,
  "expires_at": "2023-11-07T05:31:56Z",
  "is_active": true
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
flow_type
enum<string>
required
Available options:
onramp,
offramp,
p2p,
b2b,
b2b2c,
remittance
asset
string
required
fiat_currency
string
required
reference_rate
string
required
source
string
required
network
string
source_country
string

Required when flow_type=remittance. Prefer active ISO 3166-1 alpha-3 code from the countries catalog. Example KEN. Legacy alpha-2 input is accepted and normalized to alpha-3

destination_country
string

Required when flow_type=remittance. Prefer active ISO 3166-1 alpha-3 code from the countries catalog. Example UGA. Legacy alpha-2 input is accepted and normalized to alpha-3

applied_rate
string
spread_bps
integer
expires_at
string<date-time>
is_active
boolean
otc_type
enum<string>

Required when flow_type=b2b. Omit for non-b2b flows.

Available options:
deposit,
withdrawal

Response

201

Created