risk: make calculateAccountNetValue public

This commit is contained in:
c9s 2022-07-22 13:36:03 +08:00
parent a1387bb4dd
commit 3cf5175baa
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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")