From 5791e392f50adf3459a02db31c0d13d51df2782e Mon Sep 17 00:00:00 2001 From: luchenhan Date: Mon, 29 Apr 2024 16:38:55 +0800 Subject: [PATCH] chore: fix function names in comment Signed-off-by: luchenhan --- pkg/exchange/okex/okexapi/get_order_history_request.go | 2 +- pkg/strategy/grid2/strategy.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)