GET All Orders

Get all or only active orders for all accounts

Retrieve orders across all accounts in a single request. By default, only active (working) orders are returned. Pass ?activeOnly=false to include historical orders.

This is a convenience endpoint that eliminates the need to iterate through accounts individually when you need a cross-account view of order state.

Get all orders across all accounts

GET /v1/api/orders

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Query Parameters

Name
Type
Required
Description

activeOnly

boolean

Optional

Filter to only active (non-terminal) orders. Default: true

lookbackTime

integer

Optional

When activeOnly=false, limits historical orders to this many seconds in the past. Example: 86400 for the last 24 hours

Code Examples

import requests

token = 'my-secret-token'
url = "https://app.crosstrade.io/v1/api/orders"
headers = {
    "Authorization": f"Bearer {token}",
    "Content-Type": "application/json"
}

# Get all active orders across all accounts
params = {"activeOnly": "true"}

try:
    response = requests.get(url, headers=headers, params=params)
    print(f"Response Code: {response.status_code}, Response Text: {response.text}")
except Exception as e:
    print(f"An error occurred: {e}")

Response

WebSocket API

This request can also be made over the WebSocket API. Query parameters are passed inside args.

To include historical orders with a time filter:

Last updated