Merge pull request #1625 from luchenhan/main

chore: fix function names in comment
This commit is contained in:
c9s 2024-05-21 14:50:33 +08:00 committed by GitHub
commit 7114b37967
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)