BitBotFactory / MikaLendingBot

Automated lending on Cryptocurrency exchanges Poloniex and Bitfinex
http://poloniexlendingbot.readthedocs.io/en/latest/index.html
MIT License
1.11k stars 344 forks source link

Feature Request - Ability to view Market Analysis data in web dashboard #312

Open starslab opened 7 years ago

starslab commented 7 years ago

If the WebUI could display a graph showing the Market Analysis data that has been gathered for each currency, that might help with fine-tuning.....

Fantastic project, btw!

laxdog commented 7 years ago

I've been toying with ways to do this while rewriting the market analysis stuff.

Ultimately I decided it's better for me to just save the data to the DB and allow others to do something with it as I'm not great at anything frontend.

So, with all that noted. I'm planning on adding another table that will hold, orders placed, order filled, active balance, inactive balance. Then of course I'm already recording the top 10 orders and amount for each currency.

Once this work is complete, hopefully someone can help out and add a view for these things. The one I'd really like to see is a graph of the rates with a set of points of when you offered loans and when they got filled. I think this would help a lot.

rnevet commented 7 years ago

To get this amount of information to the front we need to create REST for fetching is from the DB, it will be a nice amount of work.

laxdog commented 7 years ago

I can do that if you think it's the best way to go about it. I'd thought the javascript could have queried the DB itself, but maybe that's not possible.

I've done a bit of work with flask and REST before though, so don't mind picking that up when I've time.

kryztoval commented 7 years ago

I am not good at UX, but I am ok at showing data. So showing the market data that has been collected in a trend is no issue if I have the values available.

kryztoval commented 7 years ago

Something like this? There are great projects out there, I just made this so I can see the data quick and dirty.

ghost commented 7 years ago

If you consider using the plotly library, then I could try to scratch together a pull request for you once my college finals are over.

However, it would require the python plotly module to be installed via 'pip'. I understand that you may rather not have to depend on another python module.

I believe that plotly would make the graph you mentioned with the rates and the point when you set those rates rather trivial. (IMO). It would also not require much knowledge of front-end development since plotly does all that dirty work for you.

I would enjoy the opportunity to contribute to this project. Let me know if you would consider my pull request.

If you are interested then I can start working on it once my finals are over. Thanks!

ghost commented 7 years ago

Here is an example of what I can do in Plotly. I used my lendinghistory.csv file, given by Poloniex, as sample data. The colorscale is the amount loaned, and when you hover over you will see the lending rate.

simple-plot-from-csv.html.txt

laxdog commented 7 years ago

If we were doing it via python, I could do it too. But I think the point here was that we would expose the data to the front end so that it could be done in JS.

It takes the load off the bot, which means it doesn't impact it's calculations and data recording. It also opens up the number of people that could help out with it I think.

Also, having a REST interface to the data means we could do a lot more with it in other ways in the future. Other applications could interface with it, or multiple bots could use the same data.