curl --request GET \
--url https://api.centosfi.com/v1/orders/{order_id}import requests
url = "https://api.centosfi.com/v1/orders/{order_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.centosfi.com/v1/orders/{order_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.centosfi.com/v1/orders/{order_id}",
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.centosfi.com/v1/orders/{order_id}"
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.centosfi.com/v1/orders/{order_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.centosfi.com/v1/orders/{order_id}")
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{
"centos_order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_type": "<string>",
"time_in_force": "<string>",
"qty": 123,
"buy_flag": true,
"status": "<string>",
"subaccount_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"complex_order_ids": {},
"price": 123,
"centos_id": 123,
"custom_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiry_ts_utc": "2023-11-07T05:31:56Z",
"traded_qty": 0,
"average_price": 123,
"fees_paid": 0,
"reject_reason": "<string>",
"fills": []
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get Order
Get a single order by ID with its fills.
Returns complete order details including execution history.
Use Cases:
- Track order progress and execution quality
- Reconcile fills for accounting
- Debug rejected or partially filled orders
curl --request GET \
--url https://api.centosfi.com/v1/orders/{order_id}import requests
url = "https://api.centosfi.com/v1/orders/{order_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.centosfi.com/v1/orders/{order_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.centosfi.com/v1/orders/{order_id}",
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.centosfi.com/v1/orders/{order_id}"
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.centosfi.com/v1/orders/{order_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.centosfi.com/v1/orders/{order_id}")
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{
"centos_order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_type": "<string>",
"time_in_force": "<string>",
"qty": 123,
"buy_flag": true,
"status": "<string>",
"subaccount_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"complex_order_ids": {},
"price": 123,
"centos_id": 123,
"custom_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiry_ts_utc": "2023-11-07T05:31:56Z",
"traded_qty": 0,
"average_price": 123,
"fees_paid": 0,
"reject_reason": "<string>",
"fills": []
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
Response
Successful Response
Schema for order detail response including fills.
Unique order identifier
Order type: LIMIT or MARKET
Time in force: FOK, GTC, GTD, or IOC
Original order quantity
Order direction: true=buy, false=sell
Order status: PENDING_SUBMISSION, PROCESSING, RESTING, PARTIALLY_FILLED, EXECUTED, CANCELLED, REJECTED, or EXPIRED
Subaccount the order belongs to
Order creation timestamp (UTC)
Last update timestamp (UTC)
List of complex centos orders id
Show child attributes
Show child attributes
Limit price (null for market orders)
Instrument ID
Custom asset basket UUID
Expiry timestamp in UTC for GTD orders
Total quantity filled
Volume-weighted average fill price
Total fees paid across all fills
Reason for rejection (if status is REJECTED)
List of executions (fills) for this order
Show child attributes
Show child attributes

