backend icon indicating copy to clipboard operation
backend copied to clipboard

Add support for Voting Incentive Markets (HH, Paladin)

Open Xeonus opened this issue 2 years ago • 1 comments

Problem statement

We are more and more relying on voting incentive market data like HiddenHand and Paladin. Currently, these data providers don't store historical data consistently (HH price data only takes current prices, not historicla ones, Paladin doesn't have historical data at all). Therefore, we should store it in our backend by doing end-of-round snapshots and exposing that data via the API

Specifications

  1. Expose data through api-v3 query object with input of market (hh, paladin), space (aura balancer) snapshot timestamp for single round data.
  2. If possible provide aggregated data for all timestamps with a single query if no timestamp was provided, response sorted as array with parent object ref as timestamp, e.g.:

{'aura': ['1656378000': { ... }, '1657591200': { ... }, ] }

HiddenHand

To obtain data for a specific round, one needs to provide the timestamp after the endpoint:

  • Aura: First round ended at timestamp 1656378000 and increases monotonically by 1213200 s (2 weeks).
  • Balancer: First round ended at timestamp 1649894400 and increased monotonically by 604800 s (1week)

Paladin

Swagger Docs

Xeonus avatar Jul 02 '24 09:07 Xeonus

Should also ingest enough data that we could potentially also facilitate voting/bribing through our own UI

franzns avatar Sep 03 '24 14:09 franzns