mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
risk: make calculateAccountNetValue public
This commit is contained in:
parent
a1387bb4dd
commit
3cf5175baa
|
@ -103,7 +103,7 @@ func (c *AccountValueCalculator) NetValue(ctx context.Context) (fixedpoint.Value
|
|||
return accountValue, nil
|
||||
}
|
||||
|
||||
func calculateAccountNetValue(session *bbgo.ExchangeSession) (fixedpoint.Value, error) {
|
||||
func CalculateAccountNetValue(session *bbgo.ExchangeSession) (fixedpoint.Value, error) {
|
||||
accountValue := fixedpoint.Zero
|
||||
ctx := context.Background()
|
||||
c := NewAccountValueCalculator(session, "USDT")
|
||||
|
|
Loading…
Reference in New Issue
Block a user