Python (SDK)
from finance_dev import FinanceDev, models
with FinanceDev(
security=models.Security(
client_id="<YOUR_CLIENT_ID_HERE>",
client_secret="<YOUR_CLIENT_SECRET_HERE>",
),
) as fd_client:
res = fd_client.predictions.orders.list_prediction_order_history(account_id="ACCOUNT-0001", status="open", limit=50)
assert res.object is not None
# Handle response
print(res.object)import { FinanceDev } from "@ariesdotcom/finance-dev";
const financeDev = new FinanceDev({
security: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
},
});
async function run() {
const result = await financeDev.predictions.orders.listPredictionOrderHistory({
status: "open",
accountId: "ACCOUNT-0001",
});
console.log(result);
}
run();curl --request GET \
--url https://api.aries.com/v1/predictions/orders/history \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aries.com/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.aries.com/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.aries.com/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.aries.com/v1/predictions/orders/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/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",
"contract": {
"description": "Shelley Moore Capito",
"eventDisplayName": "West Virginia Senate General Election November 3 2026",
"eventId": "AXXWV_110326",
"question": "Will Shelley Moore Capito win the West Virginia general election for US Senate in 2026?",
"state": "ACTIVE",
"resultOutcome": "YES",
"settledAt": "2023-11-07T05:31:56Z",
"settlementValue": "1"
},
"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",
"placedBy": "<string>",
"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"
}
],
"nextCursor": "<string>"
}
}Orders
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.
GET
/
v1
/
predictions
/
orders
/
history
Python (SDK)
from finance_dev import FinanceDev, models
with FinanceDev(
security=models.Security(
client_id="<YOUR_CLIENT_ID_HERE>",
client_secret="<YOUR_CLIENT_SECRET_HERE>",
),
) as fd_client:
res = fd_client.predictions.orders.list_prediction_order_history(account_id="ACCOUNT-0001", status="open", limit=50)
assert res.object is not None
# Handle response
print(res.object)import { FinanceDev } from "@ariesdotcom/finance-dev";
const financeDev = new FinanceDev({
security: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
},
});
async function run() {
const result = await financeDev.predictions.orders.listPredictionOrderHistory({
status: "open",
accountId: "ACCOUNT-0001",
});
console.log(result);
}
run();curl --request GET \
--url https://api.aries.com/v1/predictions/orders/history \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aries.com/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.aries.com/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.aries.com/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.aries.com/v1/predictions/orders/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/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",
"contract": {
"description": "Shelley Moore Capito",
"eventDisplayName": "West Virginia Senate General Election November 3 2026",
"eventId": "AXXWV_110326",
"question": "Will Shelley Moore Capito win the West Virginia general election for US Senate in 2026?",
"state": "ACTIVE",
"resultOutcome": "YES",
"settledAt": "2023-11-07T05:31:56Z",
"settlementValue": "1"
},
"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",
"placedBy": "<string>",
"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"
}
],
"nextCursor": "<string>"
}
}This endpoint is in closed beta. It is available only to accounts enrolled in the beta. 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.
Each order carries contract: the contract’s event, label, question and lifecycle, or null when the catalogue does not have it. For an old order, state shows how its contract ended, and settlementValue and resultOutcome what it paid.
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",
"contract": {
"eventId": "HORC_1126",
"eventDisplayName": "US House of Representatives Control November 2026",
"description": "Republican",
"question": "Will the Republican Party win a majority in the United States House of Representatives in the 2026 general election?",
"state": "ACTIVE"
},
"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
Query Parameters
Was this page helpful?