diff --git a/pkg/exchange/okex/okexapi/get_order_history_request.go b/pkg/exchange/okex/okexapi/get_order_history_request.go index 6fa318b35..f21506632 100644 --- a/pkg/exchange/okex/okexapi/get_order_history_request.go +++ b/pkg/exchange/okex/okexapi/get_order_history_request.go @@ -101,7 +101,7 @@ type GetOrderHistoryRequest struct { limit *uint64 `param:"limit,query"` } -// NewGetOrderHistoriesRequest is descending order by createdTime +// NewGetOrderHistoryRequest is descending order by createdTime func (c *RestClient) NewGetOrderHistoryRequest() *GetOrderHistoryRequest { return &GetOrderHistoryRequest{ client: c, diff --git a/pkg/strategy/grid2/strategy.go b/pkg/strategy/grid2/strategy.go index c742de011..5f27f0347 100644 --- a/pkg/strategy/grid2/strategy.go +++ b/pkg/strategy/grid2/strategy.go @@ -383,7 +383,7 @@ func (s *Strategy) verifyOrderTrades(o types.Order, trades []types.Trade) bool { return true } -// aggregateOrderQuoteAmountAndBaseFee collects the base fee quantity from the given order +// aggregateOrderQuoteAmountAndFee collects the base fee quantity from the given order // it falls back to query the trades via the RESTful API when the websocket trades are not all received. func (s *Strategy) aggregateOrderQuoteAmountAndFee(o types.Order) (fixedpoint.Value, fixedpoint.Value, string) { // try to get the received trades (websocket trades)