Get Order Detail
curl --request GET \
--url https://www.aionmarket.com/bvapi/markets/orders/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.aionmarket.com/bvapi/markets/orders/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.aionmarket.com/bvapi/markets/orders/{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://www.aionmarket.com/bvapi/markets/orders/{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://www.aionmarket.com/bvapi/markets/orders/{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://www.aionmarket.com/bvapi/markets/orders/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.aionmarket.com/bvapi/markets/orders/{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": 200,
"message": "success",
"data": {
"orderId": "<string>",
"status": "<string>",
"owner": "<string>",
"makerAddress": "<string>",
"market": "<string>",
"assetId": "<string>",
"side": "<string>",
"originalSize": "<string>",
"sizeMatched": "<string>",
"price": "<string>",
"outcome": "<string>",
"expiration": "<string>",
"orderType": "<string>",
"associateTrades": [
"<string>"
],
"orderVersion": 123,
"createdAt": 123,
"localOrderStatus": 123,
"marketQuestion": "<string>",
"aiAgentId": "<string>"
}
}Order Management
Get Order Detail
Retrieve details of a specific order by ID.
GET
/
markets
/
orders
/
{id}
Get Order Detail
curl --request GET \
--url https://www.aionmarket.com/bvapi/markets/orders/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.aionmarket.com/bvapi/markets/orders/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.aionmarket.com/bvapi/markets/orders/{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://www.aionmarket.com/bvapi/markets/orders/{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://www.aionmarket.com/bvapi/markets/orders/{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://www.aionmarket.com/bvapi/markets/orders/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.aionmarket.com/bvapi/markets/orders/{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": 200,
"message": "success",
"data": {
"orderId": "<string>",
"status": "<string>",
"owner": "<string>",
"makerAddress": "<string>",
"market": "<string>",
"assetId": "<string>",
"side": "<string>",
"originalSize": "<string>",
"sizeMatched": "<string>",
"price": "<string>",
"outcome": "<string>",
"expiration": "<string>",
"orderType": "<string>",
"associateTrades": [
"<string>"
],
"orderVersion": 123,
"createdAt": 123,
"localOrderStatus": 123,
"marketQuestion": "<string>",
"aiAgentId": "<string>"
}
}Returns the full details of a single order, including fill history and current status.
Path Parameters
string
required
The order ID to look up.
Query Parameters
string
default:"polymarket"
Trading venue identifier. Default:
polymarket.string
Optional agent wallet address. The agent itself is resolved from the Bearer API key; this parameter is only used as a hint when looking up multi-wallet records.
Response
object
Order detail object.
Show OrderDetail
Show OrderDetail
string
Order ID.
string
Market condition ID.
string
CLOB token ID.
string
Order side:
"BUY" or "SELL".string
Original order size.
string
Shares filled.
string
Limit price per share.
string
Outcome label.
string
Current order status.
string
Creation timestamp (ISO 8601).
array
List of trade fills associated with this order.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Order ID (order hash)
Query Parameters
Trading venue (default: polymarket)
Maximum string length:
50Wallet address (for multi-wallet scenarios, 0x-prefixed 40 hex chars)
Pattern:
^0x[a-fA-F0-9]{40}$