Rates
Swap quote
Price a crypto deposit into Naira. This does not execute a swap.
POST
https://api.vastel.io/api/v1/swap/quoteamount_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_currencystring · required
Supported asset, for example USDT, BTC, or ETH.
to_currencystring
Defaults to NGN.
amountstring · required
Decimal amount, for example 100.
amount_sidefrom | to
Which side amount describes. Defaults to from.
external_user_idstring
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"
}'