Skip to main content
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>'
{
  "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

X-Api-Key
string
required
Your API key with Read or Trade scope
X-Api-Key: daya_sk_YOUR_API_KEY

Query Parameters

symbol
string
Filter by trading pair symbolExample: USDT-NGN
status
string
Filter by active order statusAllowed values: pending_settlement, new, open, partially_filled

Request 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'

Response

success
boolean
required
Indicates if the request was successful
message
string
required
Human-readable response message
data
array
required
Array of active order objects
timestamp
string
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"
}

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