ib-api-reloaded / ib_async

Python sync/async framework for Interactive Brokers API (replaces ib_insync)
BSD 2-Clause "Simplified" License
463 stars 73 forks source link

reqMultiPositions () method #41

Open phctrade opened 4 months ago

phctrade commented 4 months ago

I am trying to use reqMultiPositions for an Advisor Group in my FA account such that I request and track aggregated positions across the Advisor group. I had help with this for sending orders so that is set but I am not having luck with using this method to capture aggregated positions. On TWS, I am able to see aggregated (unallocated positions) but I am not able to use the reqPositionsMulti method to extract and track them in my code...The code and traceback is below.

iwmgroup_pos = ib.reqPositionsMulti(3, "IWM_Group1", "")


AttributeError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_7540\398524094.py in ----> 1 iwmgroup_pos = ib.reqPositionsMulti(3, "IWM_Group1", "")

AttributeError: 'IB' object has no attribute 'reqPositionsMulti'

gnzsnz commented 4 months ago

check #25 it seems to be doing what you need