curl --request GET \
--url https://github.com/openpx-trade/openpx/v1/orders/fetch_orderimport requests
url = "https://github.com/openpx-trade/openpx/v1/orders/fetch_order"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://github.com/openpx-trade/openpx/v1/orders/fetch_order', 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://github.com/openpx-trade/openpx/v1/orders/fetch_order",
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://github.com/openpx-trade/openpx/v1/orders/fetch_order"
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://github.com/openpx-trade/openpx/v1/orders/fetch_order")
.asString();require 'uri'
require 'net/http'
url = URI("https://github.com/openpx-trade/openpx/v1/orders/fetch_order")
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{
"created_at": "2023-11-07T05:31:56Z",
"filled": 123,
"id": "<string>",
"market_ticker": "<string>",
"outcome": "<string>",
"price": 123,
"side": "buy",
"size": 123,
"status": "pending",
"fee": null,
"updated_at": null
}{
"kind": "Authentication",
"message": "<string>"
}fetch_order
Fetch one order by its globally-unique order_id.
curl --request GET \
--url https://github.com/openpx-trade/openpx/v1/orders/fetch_orderimport requests
url = "https://github.com/openpx-trade/openpx/v1/orders/fetch_order"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://github.com/openpx-trade/openpx/v1/orders/fetch_order', 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://github.com/openpx-trade/openpx/v1/orders/fetch_order",
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://github.com/openpx-trade/openpx/v1/orders/fetch_order"
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://github.com/openpx-trade/openpx/v1/orders/fetch_order")
.asString();require 'uri'
require 'net/http'
url = URI("https://github.com/openpx-trade/openpx/v1/orders/fetch_order")
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{
"created_at": "2023-11-07T05:31:56Z",
"filled": 123,
"id": "<string>",
"market_ticker": "<string>",
"outcome": "<string>",
"price": 123,
"side": "buy",
"size": 123,
"status": "pending",
"fee": null,
"updated_at": null
}{
"kind": "Authentication",
"message": "<string>"
}order_id.Query Parameters
Response
Success.
An order on the unified surface.
Order creation time (UTC) (e.g. "2026-04-25T12:00:00Z").
Cumulative filled size in contracts (e.g. 25.0).
Globally-unique exchange order id (e.g. "a1b2c3d4-...").
Unified market ticker the order belongs to (e.g. "KXBTCD-25APR1517").
Outcome label as published by the exchange (e.g. "Yes", "No", or a categorical label).
Limit price as YES probability in (0, 1) (e.g. 0.62).
Order direction. Options: buy, sell.
buy, sell Order size in contracts (e.g. 100.0).
Order lifecycle state. Options: pending, open, filled, partially_filled, cancelled, rejected.
pending, open, filled, partially_filled, cancelled, rejected Volume-weighted per-contract fee in quote dollars; null on Polymarket and on unfilled orders.
Last update time (UTC); null if untouched since creation.

