save market object in the trading context

This commit is contained in:
c9s 2020-06-18 19:00:03 +08:00
parent 965ab59580
commit 57f4d56ec5

View File

@ -12,6 +12,7 @@ type TradingContext struct {
Trades []Trade
TradeStartTime time.Time
Symbol string
Market Market
}
func (c *TradingContext) AddKLine(kline KLine) KLineWindow {