Skip to main content
The market data endpoints give you real-time and historical price information for all supported trading pairs. Use these endpoints to build trading dashboards, calculate order impact, or power charting interfaces. All market data routes require authentication via API key or JWT bearer token.

Supported trading pairs

Dubu currently supports the following pairs:

List trading pairs

Returns metadata for all active trading pairs, including minimum order sizes and precision settings.

Example

Response fields

string
The trading pair identifier, e.g. USDT-NGN.
string
The asset being bought or sold, e.g. USDT.
string
The asset used for pricing, e.g. NGN.
string
Whether the pair is active or inactive.

Get the orderbook

Returns the current state of the live orderbook for a given pair, showing aggregated bid and ask price levels up to the requested depth.

Query parameters

string
required
The trading pair to query. One of USDT-NGN, USDC-NGN, or USD-NGN.
number
Number of price levels to return for each side (bids and asks). Defaults to 20.

Example

Response fields

string
The trading pair.
array
Array of [price, quantity] pairs for the buy side, sorted from highest to lowest price.
array
Array of [price, quantity] pairs for the sell side, sorted from lowest to highest price.
string
ISO 8601 timestamp of when the snapshot was taken.

Example response


Get ticker

Returns the latest price and 24-hour rolling statistics for one or all trading pairs. If you omit symbol, ticker data for all pairs is returned.

Query parameters

string
The trading pair to query, e.g. USDT-NGN. Omit to get tickers for all pairs.

Example

Response fields

string
The trading pair.
string
Current best price for the pair.
string
Total base asset volume traded in the last 24 hours.
string
Absolute price change over the last 24 hours.
string
Percentage price change over the last 24 hours.
string
Highest price in the last 24 hours.
string
Lowest price in the last 24 hours.

Get candlestick data (klines)

Returns OHLCV (open, high, low, close, volume) candlestick data for charting. You can specify a time interval, limit the number of candles returned, and optionally filter by a start and end timestamp.

Query parameters

string
required
The trading pair. One of USDT-NGN, USDC-NGN, or USD-NGN.
string
required
Candle interval. Examples: 1m, 5m, 15m, 1h, 4h, 1d.
number
Maximum number of candles to return. Defaults to 100.
number
Start of the time range as a Unix timestamp in milliseconds. Optional.
number
End of the time range as a Unix timestamp in milliseconds. Optional.

Example

Response fields

Each element in the data array represents one candle.
number
Unix timestamp in milliseconds for the start of this candle.
string
Opening price.
string
Highest price during the interval.
string
Lowest price during the interval.
string
Closing price.
string
Base asset volume traded during the interval.
number
Unix timestamp in milliseconds for the end of this candle.