Trades
A trade is a type of conversion that represents buy or sell action from or to Busha Fiat Wallet against a Busha crypto asset.
A trade works just the same as a conversion expect either of the source_currency
and target_currency
could be a fiat currency (e.g NGN, KES).
Buy Trade
For a buy trade, create a quote where the source_currency
is a fiat currency. For example:
curl -i -X POST \
https://api.busha.co/v1/quotes \
-H 'Authorization: Bearer YOUR_SECRET_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"source_currency": "NGN",
"target_currency": "USDT",
"source_amount": "100000"
}'
Sell Trade
For a sell trade, create a quote where the target_currency
is a fiat currency. For example:
curl -i -X POST \
https://api.busha.co/v1/quotes \
-H 'Authorization: Bearer YOUR_SECRET_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"source_currency": "NGN",
"target_currency": "NGN",
"target_amount": "100000"
}'