You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As #727 will permit to have multiple data source for an oracle value, we should get the uco price from other source.
Describe the solution you'd like
CoinMarketCap do not explose a free API to get currency price. But we can parse the HTML page containing the UCO price. https://coinmarketcap.com/currencies/uniris/markets/
On this page there is multiple price information, one global and one per exchange. We could get all there price information and add them into the aggregator
* Update UCO service provider to list of providers #727
[Config Change]
* Updating UCO service to compute mean of provider results #727
* Updating tests #727
* Formatting #727
* Removing unneeded duplicate service #727
* refactor services prices fetching
* formatting code #727
* Refactor to integrate with #728 and #729 wip
* Fixing tests and formatting
* Adding tests for error cases, formatting
* Parallelize service values fetching
* Linting
* Fixing test after mock renaming
* Adding general failsafe clause
* add coin marketcap and coin paprika as uco price providers
* Integrating #769
* Fixing legacy tests
* Fixing tests
* Adding option to kill task on timeout
* Increase log severity when no data returned by service
* Slight optimisation
* Compute median instead of mean
* transform prices from keyword list to map in coingecko
* Make service result parsing more resilient
* lowercasing key for code resilience
* Fixing index issue
* Fixing flaky test
* Unlink fetching processes to avoid termination of scheduler if service crash
* updated coin marketcap and coin paprika
* updated marketcap implementation
* Refactoring median function
* Refactoring Agregator, adapting tests accordingly.
* Reducing max nesting level to please credo plus format big numbers
* Fix remaining bugs
Co-authored-by: tenmoves <hamza.belhaj07@gmail.com>
Co-authored-by: Neylix <julien.leclerc05@protonmail.com>
Is your feature request related to a problem?
As #727 will permit to have multiple data source for an oracle value, we should get the uco price from other source.
Describe the solution you'd like
CoinMarketCap do not explose a free API to get currency price. But we can parse the HTML page containing the UCO price.
https://coinmarketcap.com/currencies/uniris/markets/
On this page there is multiple price information, one global and one per exchange. We could get all there price information and add them into the aggregator
Additional context
For HTML parsing we can use Floki : https://hexdocs.pm/floki/Floki.html
The text was updated successfully, but these errors were encountered: