-
Notifications
You must be signed in to change notification settings - Fork 44
fix: order status enums #377
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
base: main
Are you sure you want to change the base?
Conversation
|
@varex83 is attempting to deploy a commit to the dYdX Trading Team on Vercel. A member of the Team first needs to authorize it. |
| - `FILLED` | ||
| - `CANCELED` | ||
| - `BEST_EFFORT_CANCELED` | ||
| - `BEST_EFFORT_OPENED` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in oder_status enum. I have created a separate PR: #379
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is api_order_status enum even used anywhere? If not, i think we can close this pr? @varex83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is references ApiOrderStatus, which is located here in Rust, it contains two variants OrderStatus and BestEffortOpenedStatus, so that's why it should be here. But I think we should re-think or documentation or Rust implementation, since OrderStatus enum has BestEffortCanceled field, which, I believe, should be part of BestEffortOpenedStatus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, so in that case, let's merge this one first, as it reflects whats in the rust client. We can revise this if we decide to revise the rust implementation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@varex83 what do you think? seems also now we have some conflicts
Closes #376