Git Product home page Git Product logo

redstone-api's Issues

Fix signature verification

Previously our signature verification was based on arweave signatures. However, we don't store them in DB anymore. We should switch to evm signature verification.

Improve tests using mocks

Our current tests in redstone-api send real HTTP requests, which makes them dependent on the network and work more like integration tests. We should mock the HTTP requests to just test the redstone-api code (without testing the real api response).

Let's not remove the old tests. We can move them to the __tests__/real folder. The new tests (with mocks) can be put to the __tests__/mock folder.

Analyze price deviation of the avalanche-prod data service (for Jeremi)

We would like to analyze price deviation of some assets delivered by RedStone HTTP Api. This information is extremely important for RedStone oracles to evaluate risks and prevent price manipulation attacks.

Assets

The full list of assets to analyze is below:

  • "ETH"
  • "USDT"
  • "PNG"
  • "AVAX"
  • "XAVA"
  • "LINK"
  • "BTC"
  • "FRAX"
  • "YAK"
  • "QI"
  • "USDC"
  • "YYAV3SA1"
  • "sAVAX"
  • "SAV2"
  • "TJ_AVAX_USDC_LP"
  • "PNG_AVAX_USDC_LP"
  • "YY_TJ_AVAX_USDC_LP"
  • "MOO_TJ_AVAX_USDC_LP"

HTTP Api

Here is the link to the RedStone HTTP Api documentation: https://api.docs.redstone.finance/http-api/prices
You can use the redstone-avalanche-prod-1 provider.

Time intervals and time range

We would like to analyze historical price of each asset on the max available range (up to 1 year), breaking it on the following time intervals:

  • 5m
  • 10m
  • 30m
  • 1h
  • 1d

Expected result

We would like to get the chart with the historical deviations for each of the assets (and for each interval).
We would also like to calcualte max deviation (in percents) for each of the assets (and for each interval).

You can work on your own repository and you can use any tools and languages. In case of any questions please feel free to email me at [email protected], I'll be happy to help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.