Repository navigation
Respect priceQuality in streamed quotes - #5007
Conversation
|
Reminder: Please consider backward compatibility when modifying the API specification.
Caused by: |
|
Claude finished @fleupold's task in 2m 12s —— View job PR Review: Respect priceQuality in streamed quotes
I reviewed the full diff. This is a well-scoped, correct change and I found no blocking issues. What I verified
Nice, focused PR. 👍 |
MartinquaXD
left a comment
There was a problem hiding this comment.
I wonder if forbidding fast streamed quotes is unnecessarily restrictive but I'm fine with not supporting it as it would be strictly better for the caller to use optimal instead.
| optimal_quotes.iter().all(|quote| !quote.verified), | ||
| "expected optimal streaming quotes to be unverified, got {optimal_quotes:?}" |
There was a problem hiding this comment.
Should we also have such an assertion on the verified request? It's not required that there is a verified quote in the responses but in practice all quotes in e2e tests should be verified so we could tighten the test slightly by asserting that at least 1 quote is verified.
Description
Up until now streamed quotes would ignore the price quality tag that is passed in and always return
verifiedquote semantics. This PR makes it so thatoptimalare handled according to their proper semantics, whilefastquotes get rejected (streams are faster than fast quotes)Changes
fastquote is requested via streamingHow to test
Adjusted existing e2e test