twitch_tools icon indicating copy to clipboard operation
twitch_tools copied to clipboard

Market Dashboard

Open thananon opened this issue 4 years ago • 6 comments

It will be nice if we have a website that shows every market activity. The idea is to display this page when market is open and everyone can see all market information. Who is the richest? Total gain/loss, bot level, etc.

image

thananon avatar Feb 26 '21 23:02 thananon

That's interesting. Let me understand the architecture design. Market dashboard should fetch REST API for the card info or other contents and connect socket.io for providing real time graph data.

Could you share your idea pls?

songyoskeng avatar Feb 27 '21 03:02 songyoskeng

@songyoskeng We have event emitter functionality from 9armbot.js through our webapp. This has been done through socket.io already. We just need another page to display the dashboard. I am looking to expand what we already have.

  • We can have a board that show 5 latest gacha winner.
  • Show current transaction (username calls !gacha, lose/win x armcoins).
  • We have a variable that tracks how many armcoin has been spent and how many armcoin we pay out to users.
  • We can show top 5 richest users.
  • etc

This way, maybe I can just leave livestream on for a while after I'm done for our users to play gacha.

thananon avatar Feb 27 '21 03:02 thananon

For a smaller project, #22 is a good starting point. We already have gif/alert webapp that we can modify to fit our goal.

thananon avatar Feb 27 '21 03:02 thananon

Use ReactJS Framework ?

Ba5nanas avatar Feb 27 '21 05:02 Ba5nanas

I think we should use what we have. May be try to create new widget and modify the style in that file. then use d3 to display graph. 🤔

songyoskeng avatar Feb 27 '21 05:02 songyoskeng

I've just create pull request #25 @thananon Could you pls review the code and Is that what you want ?

songyoskeng avatar Feb 27 '21 06:02 songyoskeng