RoboSats / robosats

A simple and private bitcoin exchange
https://learn.robosats.com
GNU Affero General Public License v3.0
707 stars 141 forks source link

Exchange historical activity charts #135

Open Reckless-Satoshi opened 2 years ago

Reckless-Satoshi commented 2 years ago

Create exchange historical activity charts as a react components fetching data from /api/historical It could use plotly/chart.js/canvas.js .

Ideas of what these plots could look like (by @antonopulosL): IMG_20220513_123147_202 IMG_20220513_123251_341 IMG_20220513_123256_100 IMG_20220513_123312_908

Reckless-Satoshi commented 2 years ago

@AntonopulosL (Twitter) is mantaining a small Flourish widget that shows most of the data. It is embeded in the stats section of the documentation site: http://learn.robosats.com/stats

It does, however, require manual input by hand of the data in the endpoints /api/ticks and /api/historical . It would br egreat if we can build some components that use the data in a similar way directly from RoboSats API.

santochibtc commented 1 year ago

I am developing a Python script to generate the charts imagen imagen

Reckless-Satoshi commented 1 year ago

I am developing a Python script to generate the charts

Amazing! Are you pushing this work into any public repository so we can contribute to it?

santochibtc commented 1 year ago

I have uploaded it here https://github.com/santochibtc/robosatsCharts It only generates these graphs right now:

Reckless-Satoshi commented 1 year ago

I have uploaded it here https://github.com/santochibtc/robosatsCharts It only generates these graphs right now:

* Contracts per day

* Traded volume per day

* Cumulative volume

* Cumulative num contracts

Very cool! Let's follow up on the Issues of that repo. I see lot of potential if we turn it into a Streamlit app (and that's pretty easy!)