Trading
Currency conversion and trading
The Trading API allows you to execute currency conversions between supported fiat and crypto currencies. Follow these steps to create a trade:
Step 1: Get a Quote
- Get a Quote: Start by retrieving a quote for the currency conversion.
- The API will respond with a
quote_idand the applicable conversion rate. Note: The quote is valid for 5 seconds.
Step 2: Accept the Quote
- Accept the Quote: To lock in the rate and create the trade, you need to accept the quote using the
quote_id.
Use the Trading API to:
- Access live rates for supported currency pairs
- Request quotes and lock trades
- View your order history
Getting Started
-
Request a Quote: Use the Request for Quote endpoint to get a conversion rate and quote ID.
-
Accept the Quote: Within 5 seconds, use the Accept Quote endpoint with the quote ID to lock in the rate and create the trade.
-
View Order History: Use the Order History endpoints to view past trades.
Important Notes
- Quotes expire after 5 seconds - make sure to accept them quickly
- Direct trades between certain local fiat currencies (e.g., XOF to NGN) are not supported via the API
- For OTC trades between those fiat currencies, contact [email protected]
Supported Currency Pairs
You can trade between:
- Fiat currencies (USD, EUR, NGN, XOF, XAF, GHS, KES, ZAR, AED, EGP, SAR) ↔ Fiat currencies
- Fiat currencies ↔ Crypto (USDT, USDC, BTC)