Requirements
- Node.js 20+
- An Obiex API key and secret. Generate them under Settings → Developers → API Keys in your account dashboard.
Installation
Quickstart
InstantiateObiexClient once and reuse it across your application. The client signs every outbound request with your secret — you never have to compute the HMAC yourself.
All testing should be done with
sandboxMode: true. No real funds move in the staging environment.Configuration
The constructor accepts a singleOptions object:
The client picks the correct base URL automatically:
Error handling
Failed requests throw aServerError carrying the HTTP status and the API’s error payload. Catch and inspect it like any other typed error:
ServerError — branch on err.statusCode if you need to react differently.
What’s next
The SDK mirrors every domain in the API Reference. Pair the guides on the left with the matching client methods:Collections (deposit addresses)
getDepositAddress, getDepositAddressesTrading
createQuote, acceptQuote, trade, getTradePairsPayouts
withdrawCrypto, withdrawNaira, getBanksInvoice settlement
uploadInvoiceDocument, createInvoice, getInvoices