pdr-backend icon indicating copy to clipboard operation
pdr-backend copied to clipboard

[Analytics] Extend plot_predictoor_income.py

Open idiom-bytes opened this issue 1 year ago • 0 comments
trafficstars

Motivation

We want to extend the plots generated to obtain insights into predictoor_income The goal here is to simply serve the data from the lake, to the dashboard with very few calculations.

We're going to now create the remaining 2x plots image

DoD

  • [x] extend plot_predictoor_income.py to render two additional plots revenue and expenses
  • [x] revenue will break down revenue by type (stake, df, etc...)
  • [x] expenses will break down losses as a result of guessing incorrectly (for now... no fees, etc..)
  • [x] to complete these plots, review the bronze_predictions table to improve how we estimate losses, and improve data enrichment.
  • [x] plot should support multiple user addresses (user_ids), and feeds (contract_ids) that sum/show the total.
  • [x] tests should cover both single and multiple user addresses as a filter
  • [x] tests should cover both single and multiple feeds as a filter
  • [x] verify that basic plot is rendering as expected

idiom-bytes avatar Feb 15 '24 21:02 idiom-bytes