This repository has been archived by the owner on Jun 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oracle.price.aggregated.interval
(#283)
* added dftx.indexer scaffolding * rewrote oracle into forward aggregation * added controller * added client oracles.ts * fix aggregated derivation * separated price client * refactor index * added price ticker * fixed dftx indexer issues * completed prices tests * fixed existing test failures * completed oracle invalidate test * fixed update.oracle.ts uncertainty test * Added interval indexers * Fixed tests * Modified interval to use time * Aggregate if no previous entries * Invalidate changes * Median time is in seconds * Added passing tests for interval indexer * Get rid of old controller names * Added controller functionality * Added controller functionality * Added whale api and tests * Fix code smell * Improve test coverage * Add greater than for prices * Sum up previous prices * Better aggregation * Fixed tests * Update packages/whale-api-client/src/api/prices.ts Co-authored-by: Fuxing Loh <[email protected]> * Change url * Update packages/whale-api-client/src/api/oracles.ts Co-authored-by: Fuxing Loh <[email protected]> * Increase limit * Fix test * Fix tests * Fix test url * Update src/module.indexer/model/dftx/set.oracle.data.ts Co-authored-by: Ivan Lee <[email protected]> * Convert to key * Averaged * Fix client tests * Implement forward aggregation * Comments * Add parse int pipe * Fix typo in tests * Reduce indentation depth and remove spread operator * Added invalidation * Revised algorithm * Split out into another indexer * Update src/module.indexer/model/dftx/set.oracle.data.interval.ts Co-authored-by: Fuxing Loh <[email protected]> * Update src/module.indexer/model/dftx/set.oracle.data.interval.ts Co-authored-by: Fuxing Loh <[email protected]> * PR Feedback * Fix tests Co-authored-by: Fuxing Loh <[email protected]> Co-authored-by: Fuxing Loh <[email protected]> Co-authored-by: Ivan Lee <[email protected]>
- Loading branch information
1 parent
29c05c6
commit c2ac70c
Showing
11 changed files
with
550 additions
and
62 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
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.