Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue #61: self.positions throws attribute error with IB Broker #73

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

neilsmurphy
Copy link
Member

Added self.positions to collect positions defaultdict from IBStore.

…used.

self.positions = collections.defaultdict(Position) is consistent in all the other brokers, was missed in IB.
@neilsmurphy neilsmurphy requested a review from vladisld August 2, 2021 12:42
@neilsmurphy neilsmurphy self-assigned this Aug 2, 2021
@neilsmurphy neilsmurphy added the bug Something isn't working label Aug 2, 2021
@neilsmurphy
Copy link
Member Author

@vladisld Do you have a second to look at this?

@neilsmurphy neilsmurphy merged commit df030bc into master Aug 20, 2021
@neilsmurphy neilsmurphy deleted the positions_ib branch August 20, 2021 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strategy's self.positions throws AttributeError when cerebro.broker set to IBBroker
2 participants