CrossTrade Docs
Basic CommandsAdvanced Commands
  • Welcome!
    • Set Up Guide
  • Getting Started
    • Installation
    • User Dashboard
      • XT Control Panel
      • Manual Trader
      • Command Builder
    • Alert History
    • TradingView Alerts
      • Dynamic Variables
      • XT Alert Builder
      • Example Indicators
      • Example Strategies
    • VPS Connection Guide
  • Webhooks
    • Overview
    • Commands
      • Place Order
      • Flat Place Order
      • Close Position
      • Reverse
      • Reverse Position
      • Flatten Positions
      • Flatten Everything
      • Cancel Order
      • Cancel Orders
      • Cancel All Orders
      • Cancel Replace
      • Change Order
      • Close Strategy
    • Advanced Options
      • Multi-Account Placement
      • Flatten First
      • Require Market Position
      • Max Positions
      • Bracket Orders
      • Percentage and Tick Prices
      • Limit Order Timeouts
      • Trading Window
      • Bypass Trade Windows
      • Delay Timer
      • Rate-Limiting
      • Alert Commenting
      • Kill Switch
      • Notes
    • Examples & Use Cases
    • Troubleshooting
  • Account Manager
    • Overview
      • How It Works
      • Dashboard
      • Global Settings
      • Frequently Asked Questions (FAQ)
    • Monitors
      • Profit/Loss Thresholds
      • Minimum Profit Drawdown
      • Trailing Drawdown
      • Advanced Usage
    • Account Settings
      • Auto-Flattening
      • Trading Windows
    • Management Logs
  • NinjaTrader
    • ATM Strategies
      • Creating ATM Template
    • Optimizing NinjaTrader Performance
    • Enabling Multi-Provider Mode
  • CrossTrade API
    • Overview
    • Authentication
    • Rate Limiting
    • Webhook Trading
    • Accounts
      • GET Accounts Summary
      • GET Accounts
      • GET Account
    • Positions
      • GET Positions
      • GET Position
      • POST Close Position
      • POST Reverse
      • POST Reverse Position
      • POST Flatten Positions
      • POST Flatten Everything
    • Orders
      • GET Orders
      • GET Order
      • GET Order Status
      • POST Cancel Order
      • POST Cancel Orders
      • POST Cancel All Orders
      • POST Place Order
      • POST Flat Place Order
      • POST Replace Order
      • PUT Change Order
    • Strategies
      • GET Strategies
      • GET Strategy
      • POST Close Strategy
    • Executions
      • GET Executions
      • GET Execution
    • Quotes
      • GET Quote
  • Changelog
    • XT Versions
    • All Updates
  • Affiliate Program
    • Media Kit
  • Social Links
    • Discord
    • TradingView
    • YouTube
    • X (Twitter)
    • Instagram
    • Facebook
    • Reddit
    • Website
    • Blog
Powered by GitBook
On this page
  1. CrossTrade API
  2. Accounts

GET Accounts Summary

Retrieve a summary snapshot of all active accounts and open positions for each account.

Get list of all accounts

GET /v1/api/accounts/snapshot

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Code Examples

import requests

url = "https://app.crosstrade.io/v1/api/accounts/snapshot"
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

Response

{
    "type": "snapshot",
    "timestamp": "2025-03-10T07:53:13.0908809-07:00",
    "epoch": 1741618393090,
    "accounts": [
        {
            ...,
            "account": {
                "id": 15,
                "name": "Sim110",
                "type": "NinjaTrader.Cbi.Account",
                "displayName": "Sim110",
                "primaryUser": null,
                "provider": "Simulator",
                "denomination": "UsDollar",
                "status": "Enabled",
                "isAccountFlat": false,
                "dailyLossLimit": 0.0,
                "minCashValue": 0.0,
                "maxOrderSize": 0,
                "maxPositionSize": 0,
                "connection": "NinjaTrader.Cbi.Connection",
                "connectionStatus": "Connected",
                "lastTransactionSum": 0.0,
                "item": {
                    "buyingPower": 0.0,
                    "cashValue": 153772.375,
                    "commission": 0.0,
                    "dailyLossLimit": 0.0,
                    "dailyProfitTrigger": 0.0,
                    "excessInitialMargin": 0.0,
                    "excessIntradayMargin": 0.0,
                    "excessMaintenanceMargin": 0.0,
                    "excessPositionMargin": 0.0,
                    "fee": 0.0,
                    "grossRealizedProfitLoss": 0.0,
                    "initialMargin": 0.0,
                    "intradayMargin": 0.0,
                    "longOptionValue": 0.0,
                    "longStockValue": 0.0,
                    "lookAheadMaintenanceMargin": 0.0,
                    "maintenanceMargin": 0.0,
                    "netLiquidation": 154185.375,
                    "netLiquidationByCurrency": 0.0,
                    "positionMargin": 0.0,
                    "realizedProfitLoss": 0.0,
                    "shortOptionValue": 0.0,
                    "shortStockValue": 0.0,
                    "sodCashValue": 0.0,
                    "sodLiquidatingValue": 0.0,
                    "totalCashBalance": 0.0,
                    "trailingMaxDrawdown": 0.0,
                    "unrealizedProfitLoss": 412.99999999999727,
                    "weeklyLossLimit": 0.0,
                    "weeklyProfitLoss": 0.0,
                    "weeklyProfitTrigger": 0.0
                }
            },
            "positions": [
                {
                    "type": "NinjaTrader.Cbi.Position",
                    "account": "Sim110",
                    "instrument": "MGC 04-25",
                    "instrumentType": "Future",
                    "marketPosition": "Long",
                    "quantity": 1,
                    "averagePrice": 2916.8,
                    "marketPrice": 2958.1,
                    "unrealizedProfitLoss": 412.99999999999727
                }
            ]
        }
    ],
    "success": true
}
{
  "error": "Invalid request"
}
PreviousAccountsNextGET Accounts

Last updated 2 months ago