Account Positions

List Account Positions

A position with a quantity of 0 is considered closed. We purge these positions overnight.

Equity option positions will also include an expires-at timestamp.

For profit/loss calculations, you should rely on the live quote data as much as possible to ensure up-to-date calculations (see Streaming Market Data).

mark and mark-price above are deprecated and should not be used in profit/loss calculations. Instead, you can use price from the DXLink Trade market event, or bidPrice & askPrice from the DXLink Quote market event.

Path Parameters
account_number
String
required
Account number of the account
GET
/accounts/{account_number}/positions
{
    "data": {
        "items": [
            {
                "account-number": "5WT00000",
                "symbol": "AAPL",
                "instrument-type": "Equity",
                "underlying-symbol": "AAPL",
                "quantity": "100",
                "quantity-direction": "Long",
                "close-price": "282.48",
                "average-open-price": "288.7",
                "average-yearly-market-close-price": "123.18",
                "average-daily-market-close-price": "282.48",
                "multiplier": 1,
                "cost-effect": "Credit",
                "is-suppressed": false,
                "is-frozen": false,
                "restricted-quantity": "0.0",
                "realized-day-gain": "0.0",
                "realized-day-gain-effect": "None",
                "realized-day-gain-date": "2022-11-01",
                "realized-today": "0.0",
                "realized-today-effect": "None",
                "realized-today-date": "2022-11-01",
                "created-at": "2022-08-22T17:56:51.872+00:00",
                "updated-at": "2022-11-01T21:49:54.095+00:00"
            }
        ]
    },
    "context": "/accounts/5WT00000/positions"
}