All Account Positions In An Instrument

View as MarkdownOpen in Claude

Get positions in accounts for a given instrument (no secDef await control)

Path parameters

conidlongRequired

Response

Object containing positions in the requested conid broken out by account.
acctIdstringOptional
IB accountId of an account with a position in the requested conid.
allExchangesstringOptional
Comma separated all exchanges on which the instrument trades.
assetClassstringOptional
Asset class of the requested instrument.
avgCostdoubleOptional
The account's average cost for its position.
avgPricedoubleOptional
The account's average price for its position.
baseAvgCostdoubleOptional
Average cost in the account's base currency.
baseAvgPricedoubleOptional
Average price in the account's base currency.
baseMktPricedoubleOptional
Market price of instrument in the account's base currency.
baseMktValuedoubleOptional
Market value of the position in the account's base currency.
baseRealizedPnldoubleOptional
Realized PnL for the instrument in the account's base currency.
baseUnrealizedPnldoubleOptional
Unrealized PnL for the instrument in the account's base currency.
chineseNamestringOptional
Chinese name of the instrument.
conExchMaplist of anyOptional
conidlongOptional
IB contract ID for the instrument.
contractDescstringOptional

Human-readable description of the instrument.

countryCodestringOptional
Country in which the instrument is issued.
currencystringOptional
Currency in which the instrument trades.
displayRuleobjectOptional
Object defining minimum increments used in displaying market data for the instrument.
exchsobject or nullOptional
exerciseStylestring or nullOptional
Style of exercise for options.
expirystring or nullOptional
Expiration of instrument, if applicable.
fullNamestringOptional
Full display name of the instrument.
groupstringOptional

Industry sub-categorization of the instrument.

hasOptionsbooleanOptional
Indicates whether instrument has options contracts available for trading at IB.
incrementRuleslist of objectsOptional
Array containing increment rules used when pricing orders for the instrument.
isEventContractbooleanOptional
Indicates whether the instrument is an Event Contract.
isUSbooleanOptional
Indicates whether the instrument is issued in the US.
lastTradingDaystringOptional

Last day of trading in the instrument, if applicable. Formatted YYYYMMDD.

listingExchangestringOptional
The exchange on which the instrument is listed, or the primary exchange recognized by IB for the instrument.
mktPricedoubleOptional
Current market price of the instrument, in the instrument's currency.
mktValuedoubleOptional
Current market value of the account's position in the instrument, in the instrument's currency.
modelstringOptional
Name of the model portfolio in which the account is invested that contributes this position.
multiplierdoubleOptional
Instrument's multiplier, if applicable.
namestringOptional
Formal name of the entity or asset to which the instrument relates.
pageSizelongOptional
Maximum number of accounts that can be returned in a single request.
positiondoubleOptional
Size of position in units of instrument.
putOrCallenumOptional
The right of an options contract, if applicable.
realizedPnldoubleOptional
Realized PnL for the instrument in the instrument's currency.
sectorstringOptional
Industry sector categorization of the instrument.
sectorGroupstringOptional

Industry sub-categorization of the instrument.

strikestringOptional
Strike price, if applicable. Returned as string.
tickerstringOptional
Symbol associated with the instrument.
timelongOptional
Time taken to retrieve position data in milliseconds.
typestringOptional
Description of instrument, used to differentiate classes, if applicable.
undConidlongOptional
Contract ID of underlying instrument, if applicable.
unrealizedPnldoubleOptional
Unrealized PnL for the instrument in the account.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error