GET Position

Returns information on a specific position specified by instrument.

Get a specific position by instrument

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

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Query Parameters

NameTypeRequiredDescription

account

string

Required

Name of account in NT8

instrument

string

Required

URL-encoded instrument name

Code Examples (coming soon)

// Some code

Response

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

Last updated