Skip to content

Conversation

dboyliao
Copy link
Collaborator

No description provided.

@dboyliao dboyliao requested a review from c9s as a code owner May 23, 2025 03:09
cbOrder, err := req.Do(ctx)
if err != nil {
return nil, errors.Wrapf(err, "failed to get order: %v", q.OrderID)
return nil, errors.Wrapf(err, "failed to get order: %v", q.UUID)
Copy link
Collaborator

@kbearXD kbearXD May 23, 2025

Choose a reason for hiding this comment

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

In line 383-387, we may query by q.OrderID. Should we add q.OrderID into the error message ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The order id is a hash value of q.UUID.
I was thinking knowing q.UUID is sufficient to know q.OrderID.

But I think you get a point.
If I choose to support q.OrderID as query condition as well, I should include it into the message as well.
I will include the entire q into the message with %+v.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

@dboyliao dboyliao requested a review from kbearXD May 23, 2025 08:41
@@ -260,6 +260,7 @@ type OrderQuery struct {
Symbol string
OrderID string
ClientOrderID string
UUID string
Copy link
Owner

Choose a reason for hiding this comment

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

call it OrderUUID? Align with the OrderID field

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@dboyliao dboyliao force-pushed the dboy/add-uuid-order-query branch 2 times, most recently from cdb6133 to 885bf04 Compare May 26, 2025 02:26
@dboyliao dboyliao requested a review from c9s May 26, 2025 02:39
@dboyliao dboyliao force-pushed the dboy/add-uuid-order-query branch from 885bf04 to 322a994 Compare May 26, 2025 06:31
@dboyliao dboyliao enabled auto-merge May 26, 2025 06:32
@dboyliao dboyliao merged commit 09191c5 into main May 26, 2025
3 checks passed
@dboyliao dboyliao deleted the dboy/add-uuid-order-query branch May 26, 2025 06:42
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.

3 participants