get_positions()
get_positions()
The get_positions() function requests position details for all accounts available to the user. Positions are returned in a dictionary keyed by account ID.
Request Arguments
timeout
Duration to wait for the response until termination. Function-specific timeout default of 10 seconds.
Response Object
Returns a dictionary keyed by account ID. Each value is a list of position objects for all contracts held in that account.
Properties
{AccountId}
A map keyed by account identifier (e.g., U1234567). Each key contains a list of position objects for that account.
contract
Contract Object for the instrument held.
position
The total number of shares held in the account.
avgCost
The average price across executions for the position.

