Get Market
curl --request GET \
--url https://api.pro.daya.co/public/v1/markets/{symbol}import requests
url = "https://api.pro.daya.co/public/v1/markets/{symbol}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.pro.daya.co/public/v1/markets/{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/markets/{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/markets/{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/markets/{symbol}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pro.daya.co/public/v1/markets/{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 retrieved successfully",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"symbol": "USD-NGN",
"base_asset": "USD",
"quote_asset": "NGN",
"status": "active",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
}
Markets
Get Market
Retrieve details for a specific trading market
GET
/
public
/
v1
/
markets
/
{symbol}
Get Market
curl --request GET \
--url https://api.pro.daya.co/public/v1/markets/{symbol}import requests
url = "https://api.pro.daya.co/public/v1/markets/{symbol}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.pro.daya.co/public/v1/markets/{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/markets/{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/markets/{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/markets/{symbol}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pro.daya.co/public/v1/markets/{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 retrieved successfully",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"symbol": "USD-NGN",
"base_asset": "USD",
"quote_asset": "NGN",
"status": "active",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
}
Overview
Get details for a specific trading market by its symbol. This endpoint does not require authentication.Path Parameters
string
required
Trading pair symbolExample:
USDT-NGNAllowed values: USDT-NGN, USDC-NGN, USD-NGNRequest Examples
curl --request GET \
--url https://api.pro.daya.co/public/v1/markets/USDT-NGN
const response = await fetch(
'https://api.pro.daya.co/public/v1/markets/USDT-NGN'
);
const data = await response.json();
console.log(data.data);
import requests
response = requests.get('https://api.pro.daya.co/public/v1/markets/USDT-NGN')
data = response.json()
print(data['data'])
package main
import (
"encoding/json"
"fmt"
"net/http"
)
func main() {
resp, err := http.Get("https://api.pro.daya.co/public/v1/markets/USDT-NGN")
if err != nil {
panic(err)
}
defer resp.Body.Close()
var data map[string]interface{}
json.NewDecoder(resp.Body).Decode(&data)
fmt.Println(data["data"])
}
Response
boolean
required
Indicates if the request was successful
string
required
Human-readable response message
object
required
Market details
Show market properties
Show market properties
string
Market ID (UUID)Example:
550e8400-e29b-41d4-a716-446655440000string
Trading pair identifierExample:
USD-NGNstring
Base asset of the pair (always
USD - unified balance)Example: USDstring
Quote asset of the pairExample:
NGNstring
Market statusValues:
active, suspended, maintenancestring
ISO 8601 creation timestamp
string
ISO 8601 last update timestamp
Success Response
{
"success": true,
"message": "Market retrieved successfully",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"symbol": "USD-NGN",
"base_asset": "USD",
"quote_asset": "NGN",
"status": "active",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
}
Error Responses
{
"success": false,
"message": "Market not found",
"error": {
"code": "SYMBOL_NOT_FOUND",
"message": "Market not found",
"symbol": "INVALID-PAIR"
}
}
Unified Balance
Unified Balance: The API accepts
USDT-NGN, USDC-NGN, or USD-NGN as input symbols. All are treated equivalently and map to a single unified USD balance. The response will show USD as the base asset.Rate Limits
- 100 requests per minute per IP address
- No authentication required
Next Steps
List Markets
View all available markets
Get Last Price
Get the latest price for a market