Orders
Get active working orders
Returns only the currently working (pending) limit and stop orders for the authenticated user.
These are orders waiting to be triggered by price movement. Market orders that have already filled do not appear here.
Use this to display an “active orders” panel showing orders that can still be cancelled or modified.
GET
/
trade
/
orders
/
pending
fetch
const response = await fetch('/trade/orders/pending', {
headers: { 'Authorization': `Bearer ${token}` }
});
const { data: pending } = await response.json();
console.log('Pending orders:', pending.length);curl --request GET \
--url https://api.hyperprop.com/trade/orders/pendingimport requests
url = "https://api.hyperprop.com/trade/orders/pending"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/trade/orders/pending",
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/pending"
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/pending")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/trade/orders/pending")
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
Get account lockout statusGet all orders (filled, pending, cancelled)Get order history from database (append-only lifecycle events)Modify price or quantity of a pending orderLink a standalone order into the position's OCO group⌘I
fetch
const response = await fetch('/trade/orders/pending', {
headers: { 'Authorization': `Bearer ${token}` }
});
const { data: pending } = await response.json();
console.log('Pending orders:', pending.length);curl --request GET \
--url https://api.hyperprop.com/trade/orders/pendingimport requests
url = "https://api.hyperprop.com/trade/orders/pending"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/trade/orders/pending",
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/pending"
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/pending")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/trade/orders/pending")
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
}