Account Positions (NEW)
Account Positions (NEW)
Returns a list of positions for the given account. /v1/api/portfolio/accounts or /portfolio/subaccounts must be called prior to this endpoint. This endpoint provides near-real time updates and removes caching otherwise found in the /portfolio/{accountId}/positions/{pageId} endpoint.
Authentication
AuthorizationBearer
SSO bearer token.
Path parameters
accountId
Query parameters
model
direction
The chronologic order of orders to sort by.
* `a` - Display in ascending order.
* `d` - Display in descending order.
Allowed values:
Response
response with position details
assetClass
Asset class of the requested instrument.
avgCost
The account's average cost for its position.
avgPrice
The account's average price for its position.
conid
IB contract ID for the instrument.
currency
Currency in which the instrument trades.
description
Contract's local symbol
group
Industry sub-categorization of the instrument.
isLastToLoq
marketPrice
Current market price of the instrument, in the instrument's currency.
marketValue
Current market value of the account's position in the instrument, in the instrument's currency.
model
Name of the model portfolio in which the account is invested that contributes this position.
position
Size of position in units of instrument.
realizedPnl
Realized PnL for the instrument in the instrument's currency.
secType
The security type of the instrument.
sector
Industry sector categorization of the instrument.
timestamp
Time taken to retrieve position data in milliseconds.
unrealizedPnl
Unrealized PnL for the instrument in the account.
Errors
401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error

