From 57f4d56ec5513f3c3e2afef090b6937844588c10 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 18 Jun 2020 19:00:03 +0800 Subject: [PATCH] save market object in the trading context --- bbgo/context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bbgo/context.go b/bbgo/context.go index 2ee496898..38451ccb9 100644 --- a/bbgo/context.go +++ b/bbgo/context.go @@ -12,6 +12,7 @@ type TradingContext struct { Trades []Trade TradeStartTime time.Time Symbol string + Market Market } func (c *TradingContext) AddKLine(kline KLine) KLineWindow {