mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
save market object in the trading context
This commit is contained in:
parent
965ab59580
commit
57f4d56ec5
|
@ -12,6 +12,7 @@ type TradingContext struct {
|
||||||
Trades []Trade
|
Trades []Trade
|
||||||
TradeStartTime time.Time
|
TradeStartTime time.Time
|
||||||
Symbol string
|
Symbol string
|
||||||
|
Market Market
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *TradingContext) AddKLine(kline KLine) KLineWindow {
|
func (c *TradingContext) AddKLine(kline KLine) KLineWindow {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user