List Market Trades
curl --request GET \
--url https://api.pro.daya.co/public/v1/market-trades/{symbol}import requests
url = "https://api.pro.daya.co/public/v1/market-trades/{symbol}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.pro.daya.co/public/v1/market-trades/{symbol}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pro.daya.co/public/v1/market-trades/{symbol}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pro.daya.co/public/v1/market-trades/{symbol}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pro.daya.co/public/v1/market-trades/{symbol}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pro.daya.co/public/v1/market-trades/{symbol}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Market trades retrieved successfully",
"data": [
{
"id": "660e8400-e29b-41d4-a716-446655440000",
"symbol": "USD-NGN",
"price": "1545.50",
"quantity": "100.00",
"side": "buy",
"created_at": "2024-01-15T10:35:01Z"
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"symbol": "USD-NGN",
"price": "1545.00",
"quantity": "50.00",
"side": "sell",
"created_at": "2024-01-15T10:34:55Z"
}
]
}
Markets
List Market Trades
List recent trades for a trading pair
GET
/
public
/
v1
/
market-trades
/
{symbol}
List Market Trades
curl --request GET \
--url https://api.pro.daya.co/public/v1/market-trades/{symbol}import requests
url = "https://api.pro.daya.co/public/v1/market-trades/{symbol}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.pro.daya.co/public/v1/market-trades/{symbol}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pro.daya.co/public/v1/market-trades/{symbol}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pro.daya.co/public/v1/market-trades/{symbol}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pro.daya.co/public/v1/market-trades/{symbol}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pro.daya.co/public/v1/market-trades/{symbol}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Market trades retrieved successfully",
"data": [
{
"id": "660e8400-e29b-41d4-a716-446655440000",
"symbol": "USD-NGN",
"price": "1545.50",
"quantity": "100.00",
"side": "buy",
"created_at": "2024-01-15T10:35:01Z"
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"symbol": "USD-NGN",
"price": "1545.00",
"quantity": "50.00",
"side": "sell",
"created_at": "2024-01-15T10:34:55Z"
}
]
}
Overview
Get a list of recent trades executed on a specific market. This is public market data and does not require authentication. Unlike the List Trades endpoint, this returns anonymous market-wide trades rather than your personal trade history.Path Parameters
string
required
Trading pair symbolExample:
USDT-NGNAllowed values: USDT-NGN, USDC-NGN, USD-NGNQuery Parameters
integer
Maximum number of trades to returnDefault:
50Range: 1 to 100Request Examples
curl --request GET \
--url 'https://api.pro.daya.co/public/v1/market-trades/USDT-NGN?limit=20'
const response = await fetch(
'https://api.pro.daya.co/public/v1/market-trades/USDT-NGN?limit=20'
);
const data = await response.json();
console.log('Recent trades:', data.data);
import requests
response = requests.get(
'https://api.pro.daya.co/public/v1/market-trades/USDT-NGN',
params={'limit': 20}
)
data = response.json()
print(f"Recent trades: {data['data']}")
package main
import (
"encoding/json"
"fmt"
"net/http"
)
func main() {
resp, err := http.Get("https://api.pro.daya.co/public/v1/market-trades/USDT-NGN?limit=20")
if err != nil {
panic(err)
}
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Println("Recent trades:", result["data"])
}
Response
boolean
required
Indicates if the request was successful
string
required
Human-readable response message
array
required
Array of market trade objects
Success Response
{
"success": true,
"message": "Market trades retrieved successfully",
"data": [
{
"id": "660e8400-e29b-41d4-a716-446655440000",
"symbol": "USD-NGN",
"price": "1545.50",
"quantity": "100.00",
"side": "buy",
"created_at": "2024-01-15T10:35:01Z"
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"symbol": "USD-NGN",
"price": "1545.00",
"quantity": "50.00",
"side": "sell",
"created_at": "2024-01-15T10:34:55Z"
}
]
}
Error Responses
{
"success": false,
"message": "Market not found",
"error": {
"code": "SYMBOL_NOT_FOUND",
"message": "Market not found"
}
}
Notes
- Trades are returned in reverse chronological order (most recent first).
- The
sidefield indicates the taker side of the trade (the order that triggered the match). - This endpoint returns anonymous market data. For your personal trade history with fee details, use the authenticated List Trades endpoint.
Rate Limits
- 100 requests per minute per IP address
- No authentication required
Next Steps
Get Last Price
Get the latest price for a market
Get Orderbook
View market depth for a trading pair