chore: fix some comments

Signed-off-by: hidewrong <hidewrong@outlook.com>
This commit is contained in:
hidewrong 2024-04-17 11:10:40 +08:00
parent fe53319817
commit d6d428ed9f
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