Skip to content

Conversation

kbearXD
Copy link
Collaborator

@kbearXD kbearXD commented Apr 7, 2025

No description provided.

// UseCancelAllOrdersApiWhenClose uses a different API to cancel all the orders on the market when closing a grid
UseCancelAllOrdersApiWhenClose bool `json:"useCancelAllOrdersApiWhenClose"`
// UniversalCancelAllOrdersWhenClose close all orders even though the orders don't belong to this strategy
UniversalCancelAllOrdersWhenClose bool `json:"universalCancelAllOrdersWhenClose"`
Copy link
Owner

Choose a reason for hiding this comment

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

cancelAllOrdersWhenClose

@c9s c9s changed the title FEATURE: use UniversalCancelAllOrders FEATURE: [grid2] use UniversalCancelAllOrders Apr 9, 2025
}

return werr
bbgo.Sync(ctx, s)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add a comment for why to Sync here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will move it to closeGrid and add the comment.

@kbearXD kbearXD force-pushed the kbearXD/grid2/use-UniversalCancelAllOrders branch from d18e7b5 to 6c5d5b9 Compare April 9, 2025 08:41
@kbearXD kbearXD requested a review from gx578007 April 9, 2025 08:42
@kbearXD kbearXD enabled auto-merge April 9, 2025 09:51
@kbearXD kbearXD merged commit b3348e5 into main Apr 11, 2025
2 checks passed
@kbearXD kbearXD deleted the kbearXD/grid2/use-UniversalCancelAllOrders branch April 11, 2025 06:32
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.

4 participants