List Active Orders
curl --request GET \
--url https://api.pro.daya.co/public/v1/orders \
--header 'X-Api-Key: <x-api-key>'import requests
url = "https://api.pro.daya.co/public/v1/orders"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://api.pro.daya.co/public/v1/orders', 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/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <x-api-key>"
],
]);
$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/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<x-api-key>")
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/orders")
.header("X-Api-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pro.daya.co/public/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Orders retrieved successfully",
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"user_id": "user_abc123",
"symbol": "USD-NGN",
"side": "buy",
"type": "limit",
"status": "open",
"price": "1545.00",
"quantity": "100.00000000",
"filled_quantity": "0.00000000",
"remaining_quantity": "100.00000000",
"executed_price": "",
"total_value": "154500.00",
"filled_value": "0.00",
"base_currency": "USD",
"quote_currency": "NGN",
"created_at": "2024-01-15T10:35:00Z",
"updated_at": "2024-01-15T10:35:00Z"
},
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"user_id": "user_abc123",
"symbol": "USD-NGN",
"side": "sell",
"type": "limit",
"status": "partially_filled",
"price": "1548.00",
"quantity": "200.00000000",
"filled_quantity": "75.00000000",
"remaining_quantity": "125.00000000",
"executed_price": "1548.00",
"total_value": "309600.00",
"filled_value": "116100.00",
"base_currency": "USD",
"quote_currency": "NGN",
"created_at": "2024-01-15T09:20:00Z",
"updated_at": "2024-01-15T10:15:00Z"
}
],
"timestamp": "2024-01-15T10:35:00Z"
}
Orders
List Active Orders
List active orders for the authenticated user
GET
/
public
/
v1
/
orders
List Active Orders
curl --request GET \
--url https://api.pro.daya.co/public/v1/orders \
--header 'X-Api-Key: <x-api-key>'import requests
url = "https://api.pro.daya.co/public/v1/orders"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://api.pro.daya.co/public/v1/orders', 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/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <x-api-key>"
],
]);
$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/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<x-api-key>")
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/orders")
.header("X-Api-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pro.daya.co/public/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Orders retrieved successfully",
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"user_id": "user_abc123",
"symbol": "USD-NGN",
"side": "buy",
"type": "limit",
"status": "open",
"price": "1545.00",
"quantity": "100.00000000",
"filled_quantity": "0.00000000",
"remaining_quantity": "100.00000000",
"executed_price": "",
"total_value": "154500.00",
"filled_value": "0.00",
"base_currency": "USD",
"quote_currency": "NGN",
"created_at": "2024-01-15T10:35:00Z",
"updated_at": "2024-01-15T10:35:00Z"
},
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"user_id": "user_abc123",
"symbol": "USD-NGN",
"side": "sell",
"type": "limit",
"status": "partially_filled",
"price": "1548.00",
"quantity": "200.00000000",
"filled_quantity": "75.00000000",
"remaining_quantity": "125.00000000",
"executed_price": "1548.00",
"total_value": "309600.00",
"filled_value": "116100.00",
"base_currency": "USD",
"quote_currency": "NGN",
"created_at": "2024-01-15T09:20:00Z",
"updated_at": "2024-01-15T10:15:00Z"
}
],
"timestamp": "2024-01-15T10:35:00Z"
}
Overview
Retrieve a list of active orders for the authenticated user. Active orders include orders that are still being processed or waiting to be filled. For historical/completed orders, use the Order History endpoint. Active order statuses:pending_settlement, new, open, partially_filled
Authentication
Your API key with Read or Trade scope
X-Api-Key: daya_sk_YOUR_API_KEY
Query Parameters
Filter by trading pair symbolExample:
USDT-NGNFilter by active order statusAllowed values:
pending_settlement, new, open, partially_filledRequest Examples
curl --request GET \
--url 'https://api.pro.daya.co/public/v1/orders?symbol=USDT-NGN&status=open' \
--header 'X-Api-Key: daya_sk_YOUR_API_KEY'
const response = await fetch(
'https://api.pro.daya.co/public/v1/orders?symbol=USDT-NGN&status=open',
{
headers: { 'X-Api-Key': 'daya_sk_YOUR_API_KEY' }
}
);
const data = await response.json();
console.log('Active orders:', data.data);
import requests
headers = {'X-Api-Key': 'daya_sk_YOUR_API_KEY'}
response = requests.get(
'https://api.pro.daya.co/public/v1/orders',
headers=headers,
params={'symbol': 'USDT-NGN', 'status': 'open'}
)
orders = response.json()
print(f"Active orders: {orders['data']}")
package main
import (
"encoding/json"
"fmt"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.pro.daya.co/public/v1/orders?symbol=USDT-NGN&status=open", nil)
req.Header.Set("X-Api-Key", "daya_sk_YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Println("Active orders:", result["data"])
}
Response
Indicates if the request was successful
Human-readable response message
Array of active order objects
Show order properties
Show order properties
Unique order identifier (UUID)
User identifier
Trading pair symbol
Order side:
buy or sellOrder type:
limit or marketOrder status:
pending_settlement, new, open, partially_filledOrder price (for limit orders)
Original order quantity
Quantity that has been filled
Remaining quantity to fill
Average execution price
Total order value in quote currency
Value of filled portion
Base currency code (e.g.
USD)Quote currency code (e.g.
NGN)ISO 8601 creation timestamp
ISO 8601 last update timestamp
ISO 8601 timestamp of the response
Success Response
{
"success": true,
"message": "Orders retrieved successfully",
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"user_id": "user_abc123",
"symbol": "USD-NGN",
"side": "buy",
"type": "limit",
"status": "open",
"price": "1545.00",
"quantity": "100.00000000",
"filled_quantity": "0.00000000",
"remaining_quantity": "100.00000000",
"executed_price": "",
"total_value": "154500.00",
"filled_value": "0.00",
"base_currency": "USD",
"quote_currency": "NGN",
"created_at": "2024-01-15T10:35:00Z",
"updated_at": "2024-01-15T10:35:00Z"
},
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"user_id": "user_abc123",
"symbol": "USD-NGN",
"side": "sell",
"type": "limit",
"status": "partially_filled",
"price": "1548.00",
"quantity": "200.00000000",
"filled_quantity": "75.00000000",
"remaining_quantity": "125.00000000",
"executed_price": "1548.00",
"total_value": "309600.00",
"filled_value": "116100.00",
"base_currency": "USD",
"quote_currency": "NGN",
"created_at": "2024-01-15T09:20:00Z",
"updated_at": "2024-01-15T10:15:00Z"
}
],
"timestamp": "2024-01-15T10:35:00Z"
}
Error Responses
{
"success": false,
"message": "Unauthorized",
"error": {
"code": "API_KEY_INVALID",
"message": "The provided API key is invalid"
},
"timestamp": "2024-01-15T10:35:00Z"
}
{
"success": false,
"message": "Validation error",
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid status value"
},
"timestamp": "2024-01-15T10:35:00Z"
}
Rate Limits
- 100 requests per minute per API key
Next Steps
Order History
Get historical/completed orders
Get Order
Get details of a specific order
Cancel Order
Cancel an open order
Place Order
Place a new order
⌘I