Account Summary
The get_account_summary() function returns all relevant account details identical to Trader Workstation’s “Account” window. Users may query to receive all available data or a narrow window based on the [Account Summary Tag](/tws-api/doc/account-portfolio-data/account-summary/account-summary-tags).
get_account_summary(
tags: String. Account summary key value to receive data for. See [Account Summary Tags](/tws-api/doc/account-portfolio-data/account-summary/account-summary-tags) for details.
group: String. Indicates a Financial Advisor’s allocation group to reference account details for. Non-advisor account structures should always pass “All”.
Default value passed, “All”.
timeout: Integer. Timeout before the request disconnects. Function-specific timeout default of 5 second.
)
Total size of the request may vary depending on number of accounts held in the account, and the number of tags requested.
Response Object
{AccountId}: Dictionary. Contains all tag value pairs for the designated accountId.
{
{Tag}: Dictionary. Contains the value of the affiliated tag along with the relevant currency.
value: String. Contains the alphanumeric value affiliated with the designated tag.
currency: String. Returns the currency used to denote the value. May return an empty string if returning value does not contain a price.
}

