The orders API lets you interact with the Dubu trading engine. You can place limit or market orders for any supported trading pair, track their lifecycle from open through to filled or cancelled, and view the individual trades that make up each fill. All endpoints require authentication via API key or JWT bearer token.Documentation Index
Fetch the complete documentation index at: https://docs.dubupay.com/llms.txt
Use this file to discover all available pages before exploring further.
Order statuses
| Status | Description |
|---|---|
OPEN | Order is resting in the orderbook, awaiting a match. |
PARTIALLY_FILLED | Part of the order quantity has been matched; the remainder is still open. |
FILLED | The full order quantity has been matched. |
CANCELLED | The order was cancelled before it could be fully filled. |
Place an order
limit orders you must provide a price. For market orders the price field is ignored and the order executes at the best available price.
Request body
The trading pair symbol. Supported values:
USDT-NGN, USDC-NGN, USD-NGN.Order direction. One of
buy or sell.Order type. One of
limit or market.The quantity of the base asset to buy or sell. Provided as a decimal string, e.g.
"100.00".The limit price per unit of the base asset. Required when
type is limit. Omit for market orders.Example
Response
Returns201 Created with the new order object.
Unique order identifier (UUID).
The trading pair, e.g.
USDT-NGN.buy or sell.limit or market.The original requested quantity.
How much of the quantity has been matched so far.
The limit price.
null for market orders.Current order status:
OPEN, PARTIALLY_FILLED, FILLED, or CANCELLED.ISO 8601 timestamp when the order was placed.
List orders
Query parameters
Filter to a specific trading pair, e.g.
USDT-NGN.Filter by order status. One of
OPEN, PARTIALLY_FILLED, FILLED, or CANCELLED.Filter by side. One of
buy or sell.Page number (1-indexed). Defaults to
1.Number of results per page. Maximum
100. Defaults to 20.Example
Get an order
Path parameters
The UUID of the order to retrieve.
Example
Cancel an order
FILLED order.
Path parameters
The UUID of the order to cancel.
Example
List trade history
Example
Response fields
Unique trade identifier.
The order this trade belongs to.
Trading pair, e.g.
USDT-NGN.buy or sell.Quantity filled in this trade.
Execution price for this fill.
ISO 8601 timestamp of when the trade was executed.