diff --git a/pkg/risk/account_value.go b/pkg/risk/account_value.go index 32646cd86..01c8caffe 100644 --- a/pkg/risk/account_value.go +++ b/pkg/risk/account_value.go @@ -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")