chore: fix function names in comment

Signed-off-by: luchenhan <hanluchen@aliyun.com>
This commit is contained in:
luchenhan 2024-04-29 16:38:55 +08:00
parent 0a2b976165
commit 5791e392f5
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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)