Skip to main content
This section documents endpoints fintechs use to create, update, delete, and view orderbook orders for FX trading.
All endpoints require fintech API key authentication and IP allowlist verification.

FX Order Management API - Endpoints Overview


Create Limit Order

Create a new limit order to provide liquidity. Your blockchain wallet must have sufficient balance for the order.
Available liquidity is automatically queried from your wallet:
  • For BUY orders: you need cNGN in your wallet
  • For SELL orders: you need the stablecoin (USDC/USDT) in your wallet

Update Limit Order

Update an existing limit order. You can update price, spread, amounts, or status. At least one field must be provided.
You can only update your own orders. Cannot update deleted orders.

Delete Limit Order

Delete a limit order. This permanently removes the order from the orderbook.

List My Limit Orders

Get list of your fintech’s limit orders with optional filters. Returns orders with real-time liquidity information.

Query Parameters


Get Orderbook

Get public orderbook view for a trading pair. Shows all active buy and sell orders from all fintechs with real-time liquidity.

Query Parameters


Get Orderbook Stats

Get aggregated statistics for a trading pair including total liquidity and best prices.

Query Parameters


Get Orderbook Token

Generate a Firebase custom token for real-time orderbook access. Use this token to subscribe to live orderbook updates via Firebase Realtime Database.
Wei Format (6 Decimals): The following fields are returned in wei format with 6 decimal precision:
  • price - e.g., "1500000" = 1.5 (divide by 10^6)
  • minAmount - e.g., "500000000" = 500 tokens
  • maxAmount - e.g., "2000000000" = 2,000 tokens
  • availableLiquidity - e.g., "95000000000" = 95,000 tokens
Conversion: To get the human-readable value, divide by 1,000,000 (10^6).

Order Status Lifecycle

Orders follow a specific status lifecycle:

Status Transitions

  • active -> paused (via update)
  • paused -> active (via update)
  • active -> deleted (via delete)
  • paused -> deleted (via delete)

Liquidity Notes

Important information about liquidity:
  • availableLiquidity is queried in real-time from your blockchain wallet
  • For BUY orders: liquidity = your cNGN wallet balance
  • For SELL orders: liquidity = your stablecoin (USDC/USDT) wallet balance
  • Liquidity shown is informational only - actual liquidity is validated during trade matching
  • Ensure your wallet has sufficient balance before creating orders
  • Liquidity can change between order creation and trade execution

Best Practices

  • Monitor your wallet balance regularly
  • Update or pause orders if liquidity becomes insufficient
  • Use appropriate spreads to account for market volatility
  • Set reasonable min/max amounts based on your liquidity
  • Use the paused status instead of deleting orders you may reactivate
  • Query orderbook stats before creating orders to understand market conditions