FEATURE: recover the grid when there is error at grid opening#1152
FEATURE: recover the grid when there is error at grid opening#1152
Conversation
|
Hi @kbearXD, This pull request may get 367 BBG. To receive BBG token, please left your polygon address as an issue comment in this pull request with the following format, e.g., Once this pull request is merged, your BBG token will be sent to your wallet. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1152 +/- ##
==========================================
- Coverage 19.98% 19.92% -0.07%
==========================================
Files 452 453 +1
Lines 34281 34387 +106
==========================================
Hits 6852 6852
- Misses 26883 26989 +106
Partials 546 546
Continue to review full report in Codecov by Sentry.
|
| } | ||
| } | ||
|
|
||
| func (s *GridOrderStates) AddCreatedOrders(createdOrders ...types.Order) { |
| var errs error | ||
|
|
||
| for _, order := range s.Orders { | ||
| if order.OrderID == 0 { |
| GridProfitStats *GridProfitStats `persistence:"grid_profit_stats"` | ||
| Position *types.Position `persistence:"position"` | ||
|
|
||
| // this is used to check all generated orders are placed |
There was a problem hiding this comment.
update comment GridOrderStates is used to ...
| s.logger.Infof(sb.String()) | ||
| } | ||
|
|
||
| func (s *Strategy) debugSubmitOrders(desc string, orders []types.SubmitOrder) { |
There was a problem hiding this comment.
Yes, but that's only for types.Order.
| "go.uber.org/multierr" | ||
| ) | ||
|
|
||
| type GridOrder struct { |
There was a problem hiding this comment.
Call this OrderTag to avoid confusing?
| RecoverGridByScanningTrades bool `json:"recoverGridByScanningTrades"` | ||
| SkipSpreadCheck bool `json:"skipSpreadCheck"` | ||
| RecoverGridByScanningTrades bool `json:"recoverGridByScanningTrades"` | ||
| RecoverFailedOrdersWhenGridOpening bool `json:"recoverFailedOrdersWhenGridOpening"` |
There was a problem hiding this comment.
rename to RecoverFailedOrdersWhenOpeningGrid
3717569 to
456aff4
Compare
No description provided.