From 2c5b553d211eb19155eda3068d6395ab0bfd6b8d Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 22 Jun 2022 23:29:29 +0800 Subject: [PATCH] skeleton: add notation --- pkg/strategy/skeleton/strategy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/strategy/skeleton/strategy.go b/pkg/strategy/skeleton/strategy.go index 322b4764b..bb3e56a06 100644 --- a/pkg/strategy/skeleton/strategy.go +++ b/pkg/strategy/skeleton/strategy.go @@ -152,6 +152,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se return } + // totalQuantity = quantityAmount / currentPrice totalQuantity := quantityAmount.Div(currentPrice) // Place a market order to the exchange