-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify price estimation api (#1844)
Our price estimation API is annoying to work with and extend for 2 reasons: 1. it returns a stream (this was done for historic reasons and has been worked around more elegantly by now) 2. it supports fetching prices for multiple trades (only a single estimator could theoretically support that but it's really not worth it to keep it around for that one IMO) This PR also adds 2 changes: 1. removed some `debug_asserts`. These are unnecessary because we have the `SanitizedPriceEstimator` 2. remove rate limiting from the baseline estimator (it's very fast and does not need that). These 2 facts can make it very annoying to add new features and very hard to understand the code (IMO working with streams is always extremely annoying). ### Test Plan Unit tests still need to be updated to use the simpler API (hence the draft status)
- Loading branch information
1 parent
58308af
commit 6832df5
Showing
18 changed files
with
839 additions
and
1,352 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.