Model Account Update
Introduction
EClient.reqAccountUpdatesMulti can be used in any account structure to create simultaneous account value subscriptions from one or multiple accounts and/or models. As with EClient.reqAccountUpdates, the data returned will match that displayed within the TWS Account Window.
Requesting Account Update by Model
EClient.reqAccountUpdatesMulti(reqId, account, modelCode, ledgerAndNLV)
Requests account updates for account and/or model.
EClient.reqAccountUpdatesMulti cannot be used with account="All" in IBroker accounts with more than 50 subaccounts. A profile name can be accepted in place of group in the account parameter for Financial Advisors.Identifier to label the request.
Account values can be requested for a particular account.
Values can also be requested for a model.
Returns light-weight request; only currency positions as opposed to account values and currency positions.
Python
Python (Full Example)
Java
C++
C#
VB.NET
Receiving Account Updates by Model
The resulting account and portfolio information will be delivered via EWrapper.accountUpdateMulti and EWrapper.accountUpdateMultiEnd.
EWrapper.accountUpdateMulti
EWrapper.accountUpdateMulti(requestId, account, modelCode, key, value, currency)
Provides the account updates.
The id of request.
The account with updates.
The model code with updates.
The name of parameter.
The value of parameter.
The currency of parameter.
Python
Java
C++
C#
VB.NET
EWrapper.accountUpdateMultiEnd
EWrapper.accountUpdateMultiEnd(requestId)
Indicates all the account updates have been transmitted.
The id of request.
Python
Java
C++
C#
VB.NET
Cancel Account Updates by Model
EClient.reqAccountUpdatesMulti(reqId, account, modelCode, ledgerAndNLV)
To cancel account update subscriptions, call EClient.reqAccountUpdatesMulti with ledgerAndNLV set to false.
Identifier to label the request.
Account values can be requested for a particular account.
Values can also be requested for a model.
Specify false to cancel your subscription.

