mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
grid2: improve log
This commit is contained in:
parent
0cf43ffb11
commit
47759236e0
|
@ -363,7 +363,7 @@ func (s *Strategy) handleOrderFilled(o types.Order) {
|
|||
Tag: "grid",
|
||||
}
|
||||
|
||||
s.logger.Infof("SUBMIT ORDER: %s", orderForm.String())
|
||||
s.logger.Infof("SUBMIT GRID REVERSE ORDER: %s", orderForm.String())
|
||||
|
||||
if createdOrders, err := s.orderExecutor.SubmitOrders(context.Background(), orderForm); err != nil {
|
||||
s.logger.WithError(err).Errorf("can not submit arbitrage order")
|
||||
|
@ -372,13 +372,6 @@ func (s *Strategy) handleOrderFilled(o types.Order) {
|
|||
}
|
||||
}
|
||||
|
||||
type InvestmentBudget struct {
|
||||
baseInvestment fixedpoint.Value
|
||||
quoteInvestment fixedpoint.Value
|
||||
baseBalance fixedpoint.Value
|
||||
quoteBalance fixedpoint.Value
|
||||
}
|
||||
|
||||
func (s *Strategy) checkRequiredInvestmentByQuantity(baseBalance, quoteBalance, quantity, lastPrice fixedpoint.Value, pins []Pin) (requiredBase, requiredQuote fixedpoint.Value, err error) {
|
||||
// check more investment budget details
|
||||
requiredBase = fixedpoint.Zero
|
||||
|
|
Loading…
Reference in New Issue
Block a user