mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
chore: fix some comments
Signed-off-by: hidewrong <hidewrong@outlook.com>
This commit is contained in:
parent
fe53319817
commit
d6d428ed9f
|
@ -283,13 +283,13 @@ func (c *RestClient) newAuthenticatedRequest(
|
||||||
return req, nil
|
return req, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrorResponse is the custom error type that is returned if the API returns an
|
|
||||||
// error.
|
|
||||||
type ErrorField struct {
|
type ErrorField struct {
|
||||||
Code int `json:"code"`
|
Code int `json:"code"`
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ErrorResponse is the custom error type that is returned if the API returns an
|
||||||
|
// error.
|
||||||
type ErrorResponse struct {
|
type ErrorResponse struct {
|
||||||
*requestgen.Response
|
*requestgen.Response
|
||||||
Err ErrorField `json:"error"`
|
Err ErrorField `json:"error"`
|
||||||
|
|
|
@ -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 {
|
type DynamicAmpSpread struct {
|
||||||
types.IntervalWindow
|
types.IntervalWindow
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user