Rates

Swap quote

Price a crypto deposit into Naira. This does not execute a swap.

POSThttps://api.vastel.io/api/v1/swap/quote

amount_side from means amount is the crypto the customer sends. amount_side to means amount is the Naira they should receive. to_currency defaults to NGN.

you_receive and gross_amount are the end-user Naira figure after markup. merchant_receives is what lands in your wallet after fee. The quote is rate limited.

Body

  • from_currency

    string · required

    Supported asset, for example USDT, BTC, or ETH.

  • to_currency

    string

    Defaults to NGN.

  • amount

    string · required

    Decimal amount, for example 100.

  • amount_side

    from | to

    Which side amount describes. Defaults to from.

  • external_user_id

    string

    Optional. Rejected with 404 if that customer does not exist.

curl -s -X POST https://api.vastel.io/api/v1/swap/quote \
  -H "Content-Type: application/json" \
  -H "X-Public-Key: vst_pub_xxxxxxxx" \
  -H "X-Secret-Key: vst_sec_xxxxxxxx" \
  -d '{
    "from_currency": "USDT",
    "to_currency": "NGN",
    "amount": "100",
    "amount_side": "from"
  }'