Moonbase Docs

Get an order from database

Retrieve a single order from database by either {id}, {client_order_id}. Database lookup. The priority is {id}, {client_order_id}. If you have multiple orders with the same {client_order_id}, the newest order is returned.

Searches all orders regardless of status (active and historical).

Requires authentication.

GET
/api/v1/order/archived
NOVA-KEY<token>

In: header

NOVA-SECRET<token>

In: header

Query Parameters

order?string

can be order_id (an UUID) or client_order_id

Response Body

application/json

application/json

curl -X GET "https://api.moonbase.vn/api/v1/order/archived"
{
  "order": {
    "order_id": "string",
    "client_order_id": "string",
    "user_id": "string",
    "status": "SUBMITTED",
    "done_reason": "string",
    "product_id": "string",
    "side": "BUY",
    "type": "LIMIT",
    "time_in_force": "GTC",
    "post_only": "false",
    "stp": "CANCEL_TAKER",
    "limit_price": "string",
    "base_size": "string",
    "quote_size": "string",
    "exact_quote_size": "string",
    "average_fill_price": "string",
    "filled_base_size": "string",
    "filled_quote_size": "string",
    "maker_fee_rate": "string",
    "taker_fee_rate": "string",
    "fee_asset_id": "string",
    "created_at": "string",
    "updated_at": "string",
    "cancel_requested_at": "string",
    "expired_at": "string",
    "scheduled_at": "string",
    "trades": [
      {
        "id": "string",
        "price": "string",
        "size": "string",
        "liquidity_indicator": "MAKER",
        "time": "string",
        "fee_asset": "string",
        "fee_amount": "string"
      }
    ]
  }
}
{
  "code": 0,
  "message": "string",
  "details": [
    {
      "@type": "string",
      "property1": null,
      "property2": null
    }
  ]
}