Orders
Get all orders (filled, pending, cancelled)
Returns the in-memory order list for the authenticated user across all their accounts.
Includes all order statuses: pending, working, filled, cancelled, rejected. Each order includes full details: side, quantity, prices, fill info, bracket links, and reason text.
This is a real-time snapshot from the engine’s memory. For persistent historical records, use the /trade/orders/history endpoint instead.
GET
/
trade
/
orders
fetch
const response = await fetch('/trade/orders', {
headers: { 'Authorization': `Bearer ${token}` }
});
const { data: orders } = await response.json();
orders.forEach(o => {
console.log(`${o.side} ${o.quantity} ${o.contract} - ${o.status}`);
});curl --request GET \
--url https://api.hyperprop.com/trade/ordersimport requests
url = "https://api.hyperprop.com/trade/orders"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/trade/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.hyperprop.com/trade/orders"
req, _ := http.NewRequest("GET", url, nil)
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.hyperprop.com/trade/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/trade/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": null,
"data": [
{
"account_id": "550e8400-e29b-41d4-a716-446655440001",
"contract": "ESH6",
"filled_at": "2024-01-15T10:30:00Z",
"filled_price": 6045.5,
"filled_quantity": 2,
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"limit_price": null,
"order_type": "market",
"processed_at": "2024-01-15T10:30:00Z",
"product": "CME",
"quantity": 2,
"reason": "User submitted market order",
"reject_reason": null,
"side": "buy",
"status": "filled",
"stop_price": null,
"symbol": "ES",
"user_id": "550e8400-e29b-41d4-a716-446655440000"
},
{
"account_id": "550e8400-e29b-41d4-a716-446655440001",
"contract": "ESH6",
"filled_at": null,
"filled_price": null,
"filled_quantity": 0,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"limit_price": 6100,
"order_type": "limit",
"processed_at": "2024-01-15T10:35:00Z",
"product": "CME",
"quantity": 1,
"reason": "User submitted limit order",
"reject_reason": null,
"side": "sell",
"status": "pending",
"stop_price": null,
"symbol": "ES",
"user_id": "550e8400-e29b-41d4-a716-446655440000"
}
],
"error": null,
"success": true
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}Related topics
Cancel a pending orderCancel all pending orders for an accountGet active working ordersGet order history from database (append-only lifecycle events)Get order history (keyset-paginated)⌘I
fetch
const response = await fetch('/trade/orders', {
headers: { 'Authorization': `Bearer ${token}` }
});
const { data: orders } = await response.json();
orders.forEach(o => {
console.log(`${o.side} ${o.quantity} ${o.contract} - ${o.status}`);
});curl --request GET \
--url https://api.hyperprop.com/trade/ordersimport requests
url = "https://api.hyperprop.com/trade/orders"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/trade/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.hyperprop.com/trade/orders"
req, _ := http.NewRequest("GET", url, nil)
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.hyperprop.com/trade/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/trade/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": null,
"data": [
{
"account_id": "550e8400-e29b-41d4-a716-446655440001",
"contract": "ESH6",
"filled_at": "2024-01-15T10:30:00Z",
"filled_price": 6045.5,
"filled_quantity": 2,
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"limit_price": null,
"order_type": "market",
"processed_at": "2024-01-15T10:30:00Z",
"product": "CME",
"quantity": 2,
"reason": "User submitted market order",
"reject_reason": null,
"side": "buy",
"status": "filled",
"stop_price": null,
"symbol": "ES",
"user_id": "550e8400-e29b-41d4-a716-446655440000"
},
{
"account_id": "550e8400-e29b-41d4-a716-446655440001",
"contract": "ESH6",
"filled_at": null,
"filled_price": null,
"filled_quantity": 0,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"limit_price": 6100,
"order_type": "limit",
"processed_at": "2024-01-15T10:35:00Z",
"product": "CME",
"quantity": 1,
"reason": "User submitted limit order",
"reject_reason": null,
"side": "sell",
"status": "pending",
"stop_price": null,
"symbol": "ES",
"user_id": "550e8400-e29b-41d4-a716-446655440000"
}
],
"error": null,
"success": true
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}