From 3cf5175baa04eb28fc7989a8d050217bfc9b2921 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 22 Jul 2022 13:36:03 +0800 Subject: [PATCH] risk: make calculateAccountNetValue public --- pkg/risk/account_value.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")