mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
skeleton: add notation
This commit is contained in:
parent
2550528f60
commit
2c5b553d21
|
@ -152,6 +152,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// totalQuantity = quantityAmount / currentPrice
|
||||||
totalQuantity := quantityAmount.Div(currentPrice)
|
totalQuantity := quantityAmount.Div(currentPrice)
|
||||||
|
|
||||||
// Place a market order to the exchange
|
// Place a market order to the exchange
|
||||||
|
|
Loading…
Reference in New Issue
Block a user