mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
Merge pull request #1343 from c9s/bhwu/max/remove-outdated-max-fields
FIX: [max] remove outdated margin fields
This commit is contained in:
commit
5c8c66a740
|
@ -664,8 +664,8 @@ func (e *Exchange) queryBalances(ctx context.Context, walletType maxapi.WalletTy
|
|||
Currency: cur,
|
||||
Available: b.Balance,
|
||||
Locked: b.Locked,
|
||||
NetAsset: b.Balance.Add(b.Locked).Sub(b.Debt),
|
||||
Borrowed: b.Borrowed,
|
||||
NetAsset: b.Balance.Add(b.Locked).Sub(b.Principal).Sub(b.Interest),
|
||||
Borrowed: b.Principal,
|
||||
Interest: b.Interest,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,9 +25,7 @@ type Account struct {
|
|||
Locked fixedpoint.Value `json:"locked"`
|
||||
|
||||
// v3 fields for M wallet
|
||||
Debt fixedpoint.Value `json:"debt"`
|
||||
Principal fixedpoint.Value `json:"principal"`
|
||||
Borrowed fixedpoint.Value `json:"borrowed"`
|
||||
Interest fixedpoint.Value `json:"interest"`
|
||||
|
||||
// v2 fields
|
||||
|
|
Loading…
Reference in New Issue
Block a user