curl --request GET \
--url https://api.tradearies.dev/v1/predictions/orders/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tradearies.dev/v1/predictions/orders/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tradearies.dev/v1/predictions/orders/history', 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.tradearies.dev/v1/predictions/orders/history",
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.tradearies.dev/v1/predictions/orders/history"
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.tradearies.dev/v1/predictions/orders/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tradearies.dev/v1/predictions/orders/history")
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{
"success": true,
"data": {
"orders": [
{
"accountId": "ACCOUNT-0001",
"avgPx": "0",
"createdAt": "2023-11-07T05:31:56Z",
"cumQty": "0",
"leavesQty": "10",
"orderId": "0b9f3c2e-5d6a-4f1b-8e7c-9a0d1e2f3a4b",
"orderType": "limit",
"outcome": "YES",
"quantity": "10",
"side": "buy",
"state": "pending_new",
"symbol": "HORC_1126_Republican",
"timeInForce": "day",
"updatedAt": "2023-11-07T05:31:56Z",
"workingQuantity": "10",
"certainty": "certain",
"certaintyReason": "<string>",
"clOrdId": "<string>",
"clientOrderRef": "7d1c8e0a-4b8f-4e3a-9f43-2a6b1d0c9e11",
"closedAt": "2023-11-07T05:31:56Z",
"expireTime": "2023-11-07T05:31:56Z",
"firstAckAt": "2023-11-07T05:31:56Z",
"pendingAction": "none",
"price": "0.54",
"rejectReason": "<string>",
"rejectText": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"stopPx": "0.50",
"venueOrderId": "<string>",
"version": 123,
"workingOrderType": "<string>",
"workingPrice": "0.54",
"placedBy": "<string>"
}
],
"nextCursor": "<string>"
}
}List Prediction Order History
Returns every prediction-market order on an account, newest first, paged, optionally bounded by when the order was created.
Use Case: Show an account’s past orders, or export its orders for a date range.
curl --request GET \
--url https://api.tradearies.dev/v1/predictions/orders/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tradearies.dev/v1/predictions/orders/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tradearies.dev/v1/predictions/orders/history', 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.tradearies.dev/v1/predictions/orders/history",
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.tradearies.dev/v1/predictions/orders/history"
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.tradearies.dev/v1/predictions/orders/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tradearies.dev/v1/predictions/orders/history")
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{
"success": true,
"data": {
"orders": [
{
"accountId": "ACCOUNT-0001",
"avgPx": "0",
"createdAt": "2023-11-07T05:31:56Z",
"cumQty": "0",
"leavesQty": "10",
"orderId": "0b9f3c2e-5d6a-4f1b-8e7c-9a0d1e2f3a4b",
"orderType": "limit",
"outcome": "YES",
"quantity": "10",
"side": "buy",
"state": "pending_new",
"symbol": "HORC_1126_Republican",
"timeInForce": "day",
"updatedAt": "2023-11-07T05:31:56Z",
"workingQuantity": "10",
"certainty": "certain",
"certaintyReason": "<string>",
"clOrdId": "<string>",
"clientOrderRef": "7d1c8e0a-4b8f-4e3a-9f43-2a6b1d0c9e11",
"closedAt": "2023-11-07T05:31:56Z",
"expireTime": "2023-11-07T05:31:56Z",
"firstAckAt": "2023-11-07T05:31:56Z",
"pendingAction": "none",
"price": "0.54",
"rejectReason": "<string>",
"rejectText": "<string>",
"sentAt": "2023-11-07T05:31:56Z",
"stopPx": "0.50",
"venueOrderId": "<string>",
"version": 123,
"workingOrderType": "<string>",
"workingPrice": "0.54",
"placedBy": "<string>"
}
],
"nextCursor": "<string>"
}
}https://api.tradearies.dev). Request and response shapes may change before general availability.Overview
accountId is required. Every order on the account is returned, whoever placed it, newest first. placedBy narrows the list to the orders one user placed.
List Prediction Orders is the current trading day. This endpoint is the full record, one page at a time.
Filter by time
from and to bound the page by when the order was created, as RFC 3339 times. from is inclusive and to is exclusive. Either can be left out.
GET /v1/predictions/orders/history?accountId=ACCOUNT-0001&from=2026-09-01T00:00:00Z&to=2026-10-01T00:00:00Z
Filter by state
status takes a comma-separated list of states:
GET /v1/predictions/orders/history?accountId=ACCOUNT-0001&status=filled,canceled
open is shorthand for every state an order can still rest or execute in: pending_new, new, partially_filled, and unknown. It can be combined with other states.
GET /v1/predictions/orders/history?accountId=ACCOUNT-0001&status=open
pending_new, new, partially_filled, filled, canceled, rejected, expired, done_for_day, and unknown. Any other value returns 400.
symbol and placedBy narrow the results further.
Paging
limit sets the page size. It defaults to 50, and values above 200 are clamped to 200.
Pass the response’s nextCursor as cursor to fetch the next page. nextCursor is absent on the last page.
{
"success": true,
"data": {
"orders": [
{
"orderId": "0b9f3c2e-5d6a-4f1b-8e7c-9a0d1e2f3a4b",
"accountId": "ACCOUNT-0001",
"clientOrderRef": "7d1c8e0a-4b8f-4e3a-9f43-2a6b1d0c9e11",
"symbol": "HORC_1126_Republican",
"outcome": "YES",
"side": "buy",
"orderType": "limit",
"timeInForce": "day",
"quantity": "10",
"price": "0.54",
"workingQuantity": "10",
"state": "new",
"cumQty": "0",
"leavesQty": "10",
"avgPx": "0",
"createdAt": "2026-10-08T14:02:11.482Z",
"updatedAt": "2026-10-08T14:02:11.497Z"
}
],
"nextCursor": "string"
}
}
Example
curl -X GET "https://api.tradearies.dev/v1/predictions/orders/history?accountId=ACCOUNT-0001&from=2026-09-01T00:00:00Z&limit=50" \
-H "Authorization: Bearer $ACCESS_TOKEN"
Errors
| Status | code | Meaning |
|---|---|---|
400 | INVALID_LIMIT | limit is not a positive integer. |
400 | INVALID_ORDER | accountId is missing, an unknown state in status, from is not before to, or a malformed cursor. |
400 | INVALID_FROM, INVALID_TO | from or to is not an RFC 3339 time. |
401 | — | Missing or invalid credentials. |
500 | ORDER_REQUEST_FAILED | Unexpected server error. |
Authorizations
OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.
Query Parameters
Comma-separated order states, or open for every state an order can still rest or execute in (pending_new, new, partially_filled, unknown). An unknown state returns 400.
The account. Every order on it is covered, whoever placed it.
Only orders this user placed.
Only orders on this contract symbol.
Orders per page. Values above 200 are clamped to 200. 0, a negative value, or a non-integer returns 400.
1 <= x <= 200nextCursor from the previous page.
Only orders created at or after this time (RFC 3339). Not RFC 3339 returns 400 INVALID_FROM.
Only orders created before this time (RFC 3339). Not RFC 3339 returns 400 INVALID_TO.
Was this page helpful?