mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 00:05:15 +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
|
||||
}
|
||||
|
||||
// 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"`
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user