replaced get_barset with get_bars, test for positions fixed #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
-get_barset no longer exists, replaced by get_bars (requires import of TimeFrame)
-In tests, it appears that trying to get Position is failing due to buying then immediately selling test stock; to make a position request, I believe the stock needs to be held, so I changed the purchase amount to 2 shares (I know this is not elegant, maybe someone will have a better idea, just wanted to bring awareness to why tests were failing).
Thanks!
BD