GET Positions

Returns list of all open positions for all instruments in a specific account.

Get list of all positions

GET /v1/api/accounts/{account}/positions

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Query Parameters

NameTypeRequiredDescription

account

string

Required

Name of account in NT8

Code Examples (coming soon)

// Some code

Response

{
    "positions": [
        {
            "type": "NinjaTrader.Cbi.Position",
            "account": "Sim101",
            "instrument": "ES 12-24",
            "instrumentType": "Future",
            "marketPosition": "Long",
            "quantity": 4,
            "averagePrice": 5779.8125,
            "marketPrice": 5796.25,
            "unrealizedProfitLoss": 3287.5
        }
    ],
    "success": true
}

Last updated