Orders
Get command processing status by id
Returns the current processing state of a queued command (order submit, cancel, modify, flatten, etc.).
After submitting a mutation that returns command_id, use this endpoint to check whether the command has been processed.
Statuses: queued → succeeded or failed. The queued status is written before the submit response returns, so a command_id you have been handed is always pollable. Commands then complete in a few milliseconds; there is no observable intermediate processing state. Poll until the status is succeeded or failed.
Also includes timing breakdown: enqueue_latency_ms, processing_latency_ms, end_to_end_latency_ms, and error reason if failed.
Primarily useful as a fallback when WebSocket is unavailable or reconnecting.
GET
/
trade
/
commands
/
{command_id}
Get command processing status by id
curl --request GET \
--url https://api.hyperprop.com/trade/commands/{command_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hyperprop.com/trade/commands/{command_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hyperprop.com/trade/commands/{command_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/trade/commands/{command_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/commands/{command_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/commands/{command_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/trade/commands/{command_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": null,
"data": {
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"command_id": "ade4dc1f-e256-4dd4-a9e6-746b7135adcf",
"command_type": "submit_order",
"end_to_end_latency_ms": 41,
"enqueue_latency_ms": 40,
"error": null,
"finished_at": "2026-03-12T14:30:00.141Z",
"processing_latency_ms": 1,
"queued_at": "2026-03-12T14:30:00.100Z",
"started_at": "2026-03-12T14:30:00.140Z",
"status": "succeeded",
"user_id": "f994bc02-343c-4026-8a57-afc085eca8d5"
},
"error": null,
"success": true
}{
"code": "UNAUTHORIZED",
"data": null,
"error": "Invalid or missing JWT token",
"success": false
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}{
"code": "NOT_FOUND",
"data": null,
"error": "Command not found",
"success": false
}Authorizations
Response
Command status
⌘I
Get command processing status by id
curl --request GET \
--url https://api.hyperprop.com/trade/commands/{command_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hyperprop.com/trade/commands/{command_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hyperprop.com/trade/commands/{command_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/trade/commands/{command_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/commands/{command_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/commands/{command_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/trade/commands/{command_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": null,
"data": {
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"command_id": "ade4dc1f-e256-4dd4-a9e6-746b7135adcf",
"command_type": "submit_order",
"end_to_end_latency_ms": 41,
"enqueue_latency_ms": 40,
"error": null,
"finished_at": "2026-03-12T14:30:00.141Z",
"processing_latency_ms": 1,
"queued_at": "2026-03-12T14:30:00.100Z",
"started_at": "2026-03-12T14:30:00.140Z",
"status": "succeeded",
"user_id": "f994bc02-343c-4026-8a57-afc085eca8d5"
},
"error": null,
"success": true
}{
"code": "UNAUTHORIZED",
"data": null,
"error": "Invalid or missing JWT token",
"success": false
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}{
"code": "NOT_FOUND",
"data": null,
"error": "Command not found",
"success": false
}