From 19f01bbca6540de4a86cbc63959838626eb3b77f Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 14 Mar 2022 14:30:41 +0800 Subject: [PATCH] add doc comment --- pkg/bbgo/tradecollector.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/bbgo/tradecollector.go b/pkg/bbgo/tradecollector.go index 3c0f64e97..a69089b4e 100644 --- a/pkg/bbgo/tradecollector.go +++ b/pkg/bbgo/tradecollector.go @@ -41,10 +41,12 @@ func NewTradeCollector(symbol string, position *types.Position, orderStore *Orde } } +// OrderStore returns the order store used by the trade collector func (c *TradeCollector) OrderStore() *OrderStore { return c.orderStore } +// Position returns the position used by the trade collector func (c *TradeCollector) Position() *types.Position { return c.position }