-
Notifications
You must be signed in to change notification settings - Fork 89
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
Driver: Include non-surplus-capturing-jit-orders in the driver /solve #3048
Driver: Include non-surplus-capturing-jit-orders in the driver /solve #3048
Conversation
}; | ||
acc.insert(trade.uid(), order); | ||
} | ||
Trade::Jit(_) => { |
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.
here we are skipping the clearing prices for ALL JIT orders, I am not sure it is correct, or it is has to be only for non-surplus-capturing ones.
46d980d
to
8cbe5ec
Compare
Added time-to-happy-moo label as this fix is important for proper selection of winners in autopilot. |
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.
AFAICS the issue did not mention to alter the meaning of what it means for a solution to be non-empty which seems like the source of at least a portion of the diff.
My understanding is that the only goal is to make solvers report JIT orders even if they don't increase the score and not propagate solutions with potentially 0 score.
Would it be possible to specify the owners list while building a fake auction for the quotes? services/crates/driver/src/domain/quote.rs Line 186 in 8cbe5ec
This is required for another PR(#3038) to avoid some ugly workaround. |
@squadgazzz Yeah, definitely, but it is totally unrelated to this PR. I can address it in another PR if you want 👌 |
Ok, NVM, I'll rebase my PR once this one is merged. |
a83e017
to
fc59ea6
Compare
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.
Almost there
f384174
to
48c5aad
Compare
48c5aad
to
302d53f
Compare
# Description With #2961, we made sure only Limit orders are sent to driver for solving. For quoting, driver still uses Market orders, and removing this is captured with #2543, and resolving this would allow us to completely remove `class` type in driver. But for now, I think we don't use Liquidity type for anything. Liquidity orders are not part of the Auction, so solvers also cant refer to them in their solutions, so I think removing them is not even a breaking change. Still checking if we want to remove them from the solvers API as well. edit: went down a rabit hole of removing from solvers API and since the code change is huge, will do it in a separate PR. Would allow for cleaner implementation of #3048 ## How to test Existing tests.
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.
LGTM. Nice
06596b8
to
9069596
Compare
9069596
to
b31da69
Compare
Description
Include the non-surplus-capturing JIT orders in the driver
/solve
response. For more context, please see #3004Changes
/solve
responseHow to test
Related Issues
Fixes #3004