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.
acctIdstring
IB accountId of an account with a position in the requested conid.
allExchangesstring
Comma separated all exchanges on which the instrument trades.
assetClassstring
Asset class of the requested instrument.
avgCostdouble
The account's average cost for its position.
avgPricedouble
The account's average price for its position.
baseAvgCostdouble
Average cost in the account's base currency.
baseAvgPricedouble
Average price in the account's base currency.
baseMktPricedouble
Market price of instrument in the account's base currency.
baseMktValuedouble
Market value of the position in the account's base currency.
baseRealizedPnldouble
Realized PnL for the instrument in the account's base currency.
baseUnrealizedPnldouble
Unrealized PnL for the instrument in the account's base currency.
chineseNamestring
Chinese name of the instrument.
conExchMaplist of any
conidlong
IB contract ID for the instrument.
contractDescstring

Human-readable description of the instrument.

countryCodestring
Country in which the instrument is issued.
currencystring
Currency in which the instrument trades.
displayRuleobject
Object defining minimum increments used in displaying market data for the instrument.
exchsobject or null
exerciseStylestring or null
Style of exercise for options.
expirystring or null
Expiration of instrument, if applicable.
fullNamestring
Full display name of the instrument.
groupstring

Industry sub-categorization of the instrument.

hasOptionsboolean
Indicates whether instrument has options contracts available for trading at IB.
incrementRuleslist of objects
Array containing increment rules used when pricing orders for the instrument.
isEventContractboolean
Indicates whether the instrument is an Event Contract.
isUSboolean
Indicates whether the instrument is issued in the US.
lastTradingDaystring

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

listingExchangestring
The exchange on which the instrument is listed, or the primary exchange recognized by IB for the instrument.
mktPricedouble
Current market price of the instrument, in the instrument's currency.
mktValuedouble
Current market value of the account's position in the instrument, in the instrument's currency.
modelstring
Name of the model portfolio in which the account is invested that contributes this position.
multiplierdouble
Instrument's multiplier, if applicable.
namestring
Formal name of the entity or asset to which the instrument relates.
pageSizelong
Maximum number of accounts that can be returned in a single request.
positiondouble
Size of position in units of instrument.
putOrCallenum
The right of an options contract, if applicable.
realizedPnldouble
Realized PnL for the instrument in the instrument's currency.
sectorstring
Industry sector categorization of the instrument.
sectorGroupstring

Industry sub-categorization of the instrument.

strikestring
Strike price, if applicable. Returned as string.
tickerstring
Symbol associated with the instrument.
timelong
Time taken to retrieve position data in milliseconds.
typestring
Description of instrument, used to differentiate classes, if applicable.
undConidlong
Contract ID of underlying instrument, if applicable.
unrealizedPnldouble
Unrealized PnL for the instrument in the account.

Errors

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