mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
ftx: remove legacy balances method
This commit is contained in:
parent
270ae51c9b
commit
eaa81f1313
|
@ -43,20 +43,3 @@ func (r *walletRequest) DepositHistory(ctx context.Context, since time.Time, unt
|
|||
return d, nil
|
||||
}
|
||||
|
||||
func (r *walletRequest) Balances(ctx context.Context) (balances, error) {
|
||||
resp, err := r.
|
||||
Method("GET").
|
||||
ReferenceURL("api/wallet/balances").
|
||||
DoAuthenticatedRequest(ctx)
|
||||
|
||||
if err != nil {
|
||||
return balances{}, err
|
||||
}
|
||||
|
||||
var b balances
|
||||
if err := json.Unmarshal(resp.Body, &b); err != nil {
|
||||
return balances{}, fmt.Errorf("failed to unmarshal balance response body to json: %w", err)
|
||||
}
|
||||
|
||||
return b, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user