mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add stock manager to the context
This commit is contained in:
parent
caf7ea3679
commit
a37117a593
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user