oceanprotocol / pdr-backend

Instructions & code to run predictoors, traders, more.
Apache License 2.0
33 stars 24 forks source link

[Predictoor/trader bot] A separate local process grabs chain data, then renders into webapp via streamlit/other #282

Closed trentmc closed 1 year ago

trentmc commented 1 year ago

Background / motivation

Status quo. In pdr_backend "simulation flow", locally generate & show matplotlib plots at the end of the sim. Show profit vs. time for traders, predicted vs actual for predictoors, etc.

Pre-requisite 1: In simulation flow, do matplotlib simulations in realtime #279

Pre-requisite 2: Put realtime plotting into bot flows. In pdr_backend "predictoor bot flow" & "trader bot flow", for local bots, the bot itself generates & shows matplotlib plots in realtime. #280

Pre-requisite 3: Plot from different process. In pdr_backend "bot flows", for local bots, a separate local process grabs chain data then generates & shows matplotlib plots in realtime. The separate process is a new directory pdr_backend/analytics. It uses subgraph query to grab chain data. Bonus: this allows bots to be run remotely too. #281

TODO for this issue:

trizin commented 1 year ago

Reflex is an alternative to Streamlit that I find more user-friendly and streamlined. While Streamlit certainly has its merits, I thought this might be worth sharing.

trentmc commented 1 year ago

Reflex is an alternative to Streamlit that I find more user-friendly and streamlined. While Streamlit certainly has its merits, I thought this might be worth sharing.

OK. I updated the ticket to give space for this and other options.

trentmc commented 1 year ago

We have a separate effort, going straight for analytics. See this slack msg. That includes [dr-anl#4. Therefore this issue is duplicate. Closing.