Skip to navigation

Managed Accounts

View as MarkdownOpen in Claude

Introduction

A single user name can handle more than one account. The TWS will automatically send a list of managed accounts once the connection is established. The list can also be fetched via the EClient.reqManagedAccts method.


Request Managed Accounts

EClient.reqManagedAccts()

Requests the accounts to which the logged user has access to.

self.reqManagedAccts()

Receive Managed Accounts

EWrapper.managedAccounts(accountsList)

Returns a string of all available accounts for the logged in user. Occurs automatically on initial API client connection.

accountsList
string

A comma-separated string with the managed account ids.


def managedAccounts(self, accountsList: str):
print("Account list:", accountsList)