unify active position #283
No reviewers
Labels
No labels
blocked
breaking
bug
dependencies
duplicate
enhancement
good first issue
help wanted
question
tech debt
testing
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
scion/arbitrader!283
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-active-position"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Looks like the ActivePosition got split across TradingService and TradingScheduler which is making the behavior of tracking active positions act strangely, especially if you have quit and restarted the program, because it is being tracked independently in two places. This PR moves ownership of the ActivePosition over to TradingService and makes TradingScheduler access it via getter and setter.