Get Order Status
Trading
Get Order Status
Retrieve the latest status for any order placed through the aggregator. Normalizes venue-specific payloads from Lighter, Aster, Hyperliquid, and Avantis.
GET
Get Order Status
Retrieve the latest status for any order placed through the aggregator. The service normalizes venue-specific payloads from Lighter, Aster, Hyperliquid, and Avantis so you can reconcile execution states with a single integration.
Request
- Method:
GET - Endpoint:
/api/trading/{exchange}/orders/{orderId}/status - Authentication: Required
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
exchange | string | ✅ | Target venue (lighter, aster, hyperliquid, or avantis) |
orderId | string | ✅ | Identifier of the order to inspect |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string | ❌ | Optional trading pair hint (e.g. BTC) to speed up the lookup |
Example
Response
The API returns a normalized order record including identifiers, execution side, order type, fill progress, and the latest venue timestamp.Status Values
| Status | Description |
|---|---|
OPEN | Order is active and waiting to fill |
PARTIALLY_FILLED | Order has partial fills |
FILLED | Order fully executed |
CANCELED | Order was canceled before completion |
REJECTED | Exchange rejected the order |
UNKNOWN | The adapter could not determine the current state |
Errors
- 404 –
{ "success": false, "error": "Order 12345 not found in any market" } - 401 –
{ "success": false, "error": "Missing or invalid credentials for Aster" } - 500 –
{ "success": false, "error": "Failed to fetch order status: timeout" }
Hyperliquid - Get Historical Orders
Retrieve all previously placed orders for a wallet on Hyperliquid.Endpoint
GET /api/hyperliquid/:walletId/orders/historical
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
walletId | string | Yes | Wallet ID (UUID) |
Headers
| Header | Value | Required |
|---|---|---|
x-wallet-id | Wallet ID (UUID) | Yes |
Example Request
Success Response
Response Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Operation status |
data | array | Array of historical orders |
data[].orderId | string | Unique order identifier |
data[].symbol | string | Asset symbol (e.g., “BTC”, “HYPE”) |
data[].side | string | Order side (“BUY” or “SELL”) |
data[].type | string | Order type (“Limit” or “Market”) |
data[].price | string | Order price |
data[].quantity | string | Order quantity |
data[].timestamp | number | Unix timestamp in milliseconds |
count | number | Total number of historical orders |
Avantis - Get Open Limit Orders
Retrieve all open limit orders for a wallet on Avantis.Endpoint
GET /api/trading/avantis/orders
Headers
| Header | Value | Required |
|---|---|---|
x-wallet-id | Wallet address | Yes |
Example Request
Success Response
Response Fields
| Field | Type | Description |
|---|---|---|
orderId | string | Format: avantis-<pairIndex>-<index> |
symbol | string | Asset symbol (e.g., “ETH”, “BTC”) |
side | string | "Long" or "Short" |
type | string | Always "Limit" for open orders |
status | string | Always "OPEN" |
price | string | Limit price in USD |
quantity | string | Token amount |
filledQuantity | string | Always "0" for open orders |
timestamp | number | Block number when the order was placed |
exchange | string | Always "avantis" |
Avantis - Trade History (Closed Trades)
Retrieve closed trade history for a wallet on Avantis.Endpoint
GET /api/trading/avantis/history/trades
Headers
| Header | Value | Required |
|---|---|---|
x-wallet-id | Wallet address | Yes |
Example Request
Success Response
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique trade identifier |
symbol | string | Asset symbol |
exchange | string | Always "avantis" |
price | string | Close price in USD |
size | string | Token amount |
side | string | "Long" or "Short" |
timestamp | number | Closed-at timestamp in milliseconds |
Avantis - Historical Orders (Limit Order History)
Retrieve historical limit orders for a wallet on Avantis.Endpoint
GET /api/trading/avantis/history/orders
Headers
| Header | Value | Required |
|---|---|---|
x-wallet-id | Wallet address | Yes |
Example Request
Success Response
Same shape as the open limit orders response above, but includes orders in all statuses (filled, cancelled, expired).Authorizations
API key for authentication. Also requires X-API-SECRET, X-API-TIMESTAMP, and X-API-SIGNATURE headers for private endpoints.
Path Parameters
Target venue (lighter, aster, hyperliquid, or avantis)
Available options:
lighter, aster, hyperliquid, avantis Identifier of the order to inspect
Query Parameters
Optional trading pair hint (e.g. BTC) to speed up the lookup
Example:
"BTC"