diff --git a/pkg/exchange/max/maxapi/restapi.go b/pkg/exchange/max/maxapi/restapi.go index 85bad8521..8c7080099 100644 --- a/pkg/exchange/max/maxapi/restapi.go +++ b/pkg/exchange/max/maxapi/restapi.go @@ -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"` diff --git a/pkg/risk/dynamicrisk/dynamic_spread.go b/pkg/risk/dynamicrisk/dynamic_spread.go index f6fab9cb6..7800939ab 100644 --- a/pkg/risk/dynamicrisk/dynamic_spread.go +++ b/pkg/risk/dynamicrisk/dynamic_spread.go @@ -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