Skip to main content
GET
/
public
/
v1
/
last-price
/
{symbol}
Get Last Price
curl --request GET \
  --url https://api.pro.daya.co/public/v1/last-price/{symbol}
{
  "success": true,
  "message": "Last price retrieved successfully",
  "data": {
    "symbol": "USD-NGN",
    "price": 1545.50,
    "change_24h": 0.35
  }
}

Overview

Get the most recent trade price for a specific trading pair, along with the 24-hour price change. This endpoint does not require authentication.

Path Parameters

symbol
string
required
Trading pair symbolExample: USDT-NGNAllowed values: USDT-NGN, USDC-NGN, USD-NGN

Request Examples

curl --request GET \
  --url https://api.pro.daya.co/public/v1/last-price/USDT-NGN

Response

success
boolean
required
Indicates if the request was successful
message
string
required
Human-readable response message
data
object
required
Last price data

Success Response

{
  "success": true,
  "message": "Last price retrieved successfully",
  "data": {
    "symbol": "USD-NGN",
    "price": 1545.50,
    "change_24h": 0.35
  }
}

Error Responses

{
  "success": false,
  "message": "Market not found",
  "error": {
    "code": "SYMBOL_NOT_FOUND",
    "message": "Market not found"
  }
}

Notes

  • The price reflects the most recent executed trade on the market.
  • The change_24h value is calculated by comparing the latest trade price to the most recent trade price from 24 hours ago. A positive value indicates the price has increased.
  • If no trades have occurred, the price and change values may be 0.

Rate Limits

  • 100 requests per minute per IP address
  • No authentication required

Next Steps

Get Orderbook

View market depth for a trading pair

List Market Trades

View recent trades for a market