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.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.
Supported trading pairs
Dubu currently supports the following pairs:| Symbol | Description |
|---|---|
USDT-NGN | Tether USD vs Nigerian Naira |
USDC-NGN | USD Coin vs Nigerian Naira |
USD-NGN | US Dollar vs Nigerian Naira |
List trading pairs
Example
Response fields
The trading pair identifier, e.g.
USDT-NGN.The asset being bought or sold, e.g.
USDT.The asset used for pricing, e.g.
NGN.Whether the pair is
active or inactive.Get the orderbook
Query parameters
The trading pair to query. One of
USDT-NGN, USDC-NGN, or USD-NGN.Number of price levels to return for each side (bids and asks). Defaults to
20.Example
Response fields
The trading pair.
Array of
[price, quantity] pairs for the buy side, sorted from highest to lowest price.Array of
[price, quantity] pairs for the sell side, sorted from lowest to highest price.ISO 8601 timestamp of when the snapshot was taken.
Example response
Get ticker
symbol, ticker data for all pairs is returned.
Query parameters
The trading pair to query, e.g.
USDT-NGN. Omit to get tickers for all pairs.Example
Response fields
The trading pair.
Current best price for the pair.
Total base asset volume traded in the last 24 hours.
Absolute price change over the last 24 hours.
Percentage price change over the last 24 hours.
Highest price in the last 24 hours.
Lowest price in the last 24 hours.
Get candlestick data (klines)
Query parameters
The trading pair. One of
USDT-NGN, USDC-NGN, or USD-NGN.Candle interval. Examples:
1m, 5m, 15m, 1h, 4h, 1d.Maximum number of candles to return. Defaults to
100.Start of the time range as a Unix timestamp in milliseconds. Optional.
End of the time range as a Unix timestamp in milliseconds. Optional.
Example
Response fields
Each element in thedata array represents one candle.
Unix timestamp in milliseconds for the start of this candle.
Opening price.
Highest price during the interval.
Lowest price during the interval.
Closing price.
Base asset volume traded during the interval.
Unix timestamp in milliseconds for the end of this candle.