mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 15:10:59 +00:00
FTX: Margin lending/borrow rate history (#981)
* Adds lending rates/borrows to FTX and the command * Movements, renames, rpc test * Fleshing out rpc response * Allows rpcserver to calculate offline (but not gctcli). Expands tests * rn structs. add exchange_wrapper_issues support * Adds a nice yearly rate * Surprise yearly borrow rate! * Rn+Mv to margin package. Fixes some serious whoopsies * Adds average lend/borrow rates instead of sum * rm oopsie whoopsie * This is what the linter was having an issue with * re-gen * lintl * niteroos
This commit is contained in:
@@ -52,7 +52,14 @@ var (
|
||||
// ErrStartAfterTimeNow is an error for start end check calculations
|
||||
ErrStartAfterTimeNow = errors.New("start date is after current time")
|
||||
// ErrNilPointer defines an error for a nil pointer
|
||||
ErrNilPointer = errors.New("nil pointer")
|
||||
ErrNilPointer = errors.New("nil pointer")
|
||||
// ErrCannotCalculateOffline is returned when a request wishes to calculate
|
||||
// something offline, but has an online requirement
|
||||
ErrCannotCalculateOffline = errors.New("cannot calculate offline")
|
||||
// ErrNoResponse is returned when a response has no entries/is empty
|
||||
// when one is expected
|
||||
ErrNoResponse = errors.New("no response")
|
||||
|
||||
errCannotSetInvalidTimeout = errors.New("cannot set new HTTP client with timeout that is equal or less than 0")
|
||||
errUserAgentInvalid = errors.New("cannot set invalid user agent")
|
||||
errHTTPClientInvalid = errors.New("custom http client cannot be nil")
|
||||
|
||||
Reference in New Issue
Block a user