Skip to main content
POST
/
api
/
v1
/
auth
/
pricing
/
resolve-otc
Resolve OTC Pricing (B2B Deposit Or Withdrawal Lane)
curl --request POST \
  --url https://crypto.westminister.tech/api/v1/auth/pricing/resolve-otc \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flow_type": "b2b",
  "otc_type": "deposit",
  "asset": "USDT",
  "fiat_currency": "KES",
  "amount_in": "<string>",
  "amount_in_type": "fiat",
  "network": "<string>"
}
'
{
  "otc_type": "deposit",
  "pricing_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "fx_rate_quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "flow_type": "<string>",
  "network": "<string>",
  "asset": "<string>",
  "fiat_currency": "<string>",
  "amount_in": "<string>",
  "amount_in_type": "<string>",
  "fee_bearer": "<string>",
  "reference_fx_rate": "<string>",
  "applied_fx_rate": "<string>",
  "fees": {},
  "amounts": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.crypto.westminister.tech/llms.txt

Use this file to discover all available pages before exploring further.

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:
b2b
otc_type
enum<string>
required
Available options:
deposit,
withdrawal
asset
string
required
Example:

"USDT"

fiat_currency
string
required
Example:

"KES"

amount_in
string
required

Positive decimal string

amount_in_type
enum<string>
required
Available options:
fiat,
crypto
network
string

tron or ethereum

Response

Resolved IDs and pricing preview (includes otc_type echo)

otc_type
enum<string>
Available options:
deposit,
withdrawal
pricing_profile_id
string<uuid>
fx_rate_quote_id
string<uuid>
flow_type
string
network
string
asset
string
fiat_currency
string
amount_in
string
amount_in_type
string
fee_bearer
string
reference_fx_rate
string
applied_fx_rate
string
fees
object
amounts
object