Merge pull request #1619 from hidewrong/main

chore: fix some comments
This commit is contained in:
c9s 2024-04-23 15:43:29 +08:00 committed by GitHub
commit 4523902f0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -283,13 +283,13 @@ func (c *RestClient) newAuthenticatedRequest(
return req, nil
}
// ErrorResponse is the custom error type that is returned if the API returns an
// error.
type ErrorField struct {
Code int `json:"code"`
Message string `json:"message"`
}
// ErrorResponse is the custom error type that is returned if the API returns an
// error.
type ErrorResponse struct {
*requestgen.Response
Err ErrorField `json:"error"`

View File

@ -56,7 +56,7 @@ func (ds *DynamicSpread) GetBidSpread() (bidSpread float64, err error) {
}
}
// DynamicSpreadAmp uses kline amplitude to calculate spreads
// DynamicAmpSpread uses kline amplitude to calculate spreads
type DynamicAmpSpread struct {
types.IntervalWindow