unify active position #283

Merged
scionaltera merged 1 commit from fix-active-position into master 2020-11-25 12:26:16 -08:00
scionaltera commented 2020-11-25 00:48:47 -08:00 (Migrated from github.com)

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.

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.
Commenting is not possible because the repository is archived.
No description provided.