Open starslab opened 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.
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.
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.
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.
Something like this? There are great projects out there, I just made this so I can see the data quick and dirty.
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!
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.
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.
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!