Skip to main content
GET
/
public
/
v1
/
orders
/
{order_id}
Get Order
curl --request GET \
  --url https://api.pro.daya.co/public/v1/orders/{order_id} \
  --header 'X-Api-Key: <x-api-key>'
{
  "success": true,
  "message": "Order 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"
  },
  "timestamp": "2024-01-15T10:35:00Z"
}

Overview

Retrieve details for a specific order by its ID.

Authentication

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

Path Parameters

order_id
string
required
The unique order identifier (UUID)Example: 550e8400-e29b-41d4-a716-446655440000

Request Examples

curl --request GET \
  --url https://api.pro.daya.co/public/v1/orders/550e8400-e29b-41d4-a716-446655440000 \
  --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
object
required
Order details
timestamp
string
ISO 8601 timestamp of the response

Success Response

{
  "success": true,
  "message": "Order 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"
  },
  "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

List Trades

View trade history for this order

Cancel Order

Cancel an open order