This repository was archived by the owner on Apr 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Fee&OrderQuote Endpoint: Implemention with legacy logic. #1155
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7839319
to
420bb25
Compare
Merged
10043bd
to
647b760
Compare
Codecov Report
@@ Coverage Diff @@
## main #1155 +/- ##
==========================================
+ Coverage 67.43% 67.69% +0.26%
==========================================
Files 135 135
Lines 27799 28101 +302
==========================================
+ Hits 18746 19023 +277
- Misses 9053 9078 +25 |
nlordell
reviewed
Sep 30, 2021
vkgnosis
reviewed
Oct 1, 2021
nlordell
reviewed
Oct 4, 2021
nlordell
reviewed
Oct 4, 2021
nlordell
reviewed
Oct 4, 2021
nlordell
reviewed
Oct 4, 2021
nlordell
reviewed
Oct 4, 2021
nlordell
reviewed
Oct 4, 2021
nlordell
reviewed
Oct 4, 2021
nlordell
reviewed
Oct 4, 2021
ec12a5a
to
562883a
Compare
nlordell
reviewed
Oct 7, 2021
nlordell
reviewed
Oct 7, 2021
nlordell
reviewed
Oct 12, 2021
nlordell
reviewed
Oct 12, 2021
nlordell
reviewed
Oct 12, 2021
nlordell
reviewed
Oct 12, 2021
nlordell
reviewed
Oct 12, 2021
nlordell
reviewed
Oct 12, 2021
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.
Like the new OrderQuoter
type! Just feel like it should be in post_quote
module (as that is where its used and the logic that uses it lives).
Some issues with the OpenAPI spec.
Otherwise looks great to me!
nlordell
reviewed
Oct 12, 2021
Co-authored-by: Nicholas Rodrigues Lordello <[email protected]>
nlordell
approved these changes
Oct 13, 2021
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Depends on #1169
based on the specification defined in #1143, we implement the fee calculating logic of the existing route along with the building of an Order Quote that is returned by this endpoint.
response
method into the new file making it generically operate on all ofOrderQuoteResponse
,BuyResponse
andSellResponse
. We had to open up a few fields in theOrderQuote
to be public so that we could convertOrderQuoteResponse
into the legacyBuy/SellResponse
types. Furthermore, now, the legacy fee endpoint requires andorder_validator
and makes use of partial order validation on the Partial Order constructed from a legacy buy/sell request. Hopefully this minimal data doesn't lead to an order validation Error (or else we may have to introduce a validation override flag of some sort).Test Plan
OrderQuoteResponse
With this api request
We get back the following response