Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: [dca2] make the take-profit order of round from order to orders #1645

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

kbearXD
Copy link
Collaborator

@kbearXD kbearXD commented May 29, 2024

No description provided.

@kbearXD kbearXD force-pushed the kbearXD/dca2/flexible-recovery branch from 64280e8 to 1d0b4e5 Compare May 30, 2024 07:54
if order.Status != types.OrderStatusFilled {
rc.logger.Infof("take-profit order is %s not filled, so this round is not finished. Skip it", order.Status)
rc.logger.Infof("take-profit order is %s not filled, so this round is not finished. Keep collecting", order.Status)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the format? thanks!

for _, o := range round.TakeProfitOrders {
if types.IsActiveOrder(o) {
// Should not happen ! but we only log it
rc.logger.Errorf("there is at least one take-profit order (%d) is still active, please check it", o.OrderID)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can add prefix "unexpected error"

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and maybe print the symbol and the order? would prefer using #{orderID} format

@kbearXD kbearXD force-pushed the kbearXD/dca2/flexible-recovery branch from 8415678 to 60160cd Compare June 13, 2024 09:23
@kbearXD kbearXD merged commit 5098c3a into main Jun 13, 2024
3 checks passed
@kbearXD kbearXD deleted the kbearXD/dca2/flexible-recovery branch June 13, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants