zipline-live / zipline

Zipline-Live, a Pythonic Algorithmic Trading Library
http://www.zipline-live.io/
Apache License 2.0
394 stars 65 forks source link

Support FA accounts in IB Broker #87

Open tibkiss opened 6 years ago

tibkiss commented 6 years ago

Interactive Brokers provides 'Financial Advisor' (FA) accounts, which groups multiple accounts together. These accounts currently are not supported by zipline-live.

The support could be easily achieved by: 1) extending broker-uri with an optional account code. e.g.: --broker-uri localhost:7492:111:DU32145 2) store the specified account code in IBBroker's constructor (if specified) 3) set the m_account when placing an order: https://github.com/zipline-live/zipline/blob/7c68fb4e9ac723d180598d4a165bc99acf4e969c/zipline/gens/brokers/ib_broker.py#L664

githubbla commented 6 years ago

So this is implemented already?

florentchandelier commented 6 years ago

refer to #104