add stock manager to the context

This commit is contained in:
c9s 2020-08-04 18:45:36 +08:00
parent caf7ea3679
commit a37117a593

View File

@ -19,6 +19,7 @@ type TradingContext struct {
Balances map[string]types.Balance
Quota map[string]types.Balance
ProfitAndLossCalculator *ProfitAndLossCalculator
StockManager *StockManager
}
func (c *TradingContext) SetCurrentPrice(price float64) {