Table of Contents

NervProj: Restoring my crypto coins monitoring project

Okay so, I have a coin monitoring system I built some time ago: it's in python and it will retrive price data for many coins on a regular basis, and store that data into a postgresql database. It was producing some errors or conflicts or corruptions sometimes but on the whole it was working reasonably well. Until I decided to get ride of my fully corrupted RAID array, and thus mess up completely my main server structure lol.

Yet that tool was actually very handy (I then created a GUI on top of it to get some visuals on the coin price actions), so I think it's now high time I try and put this back on rails!

Our current status

Thinking about NervProj current design

Auto python env creation

Initial version of coingecko script

Adding support to store history datasets

Arbitrary arguments for nvp scripts

One small issue I see with this ā€œadditional argsā€ mechanism is that for instance this line nvp run coingecko --help will should the help for the run command: the --help argument is not ā€œunknownā€ to it's collected as usualā€¦ šŸ˜ Not quite sure how to deal with this, but well, I can live with this for now anyway.

Support to list/add/remove monitored coins

I can actually add multiple monitored coins at once separating them with a comma on the command line

Restoring full history of coin prices

Backing up those databases correctly

ā€œWhy am I getting so obcessed with backups ?ā€ you may askā€¦ well, as I said at the beginning of this post I got a recurring corruption issue on one disc in a RAID 6 array of 7 discs where I was basically storing all my data for, well, everything. So Everything I was getting a new problem, broken docker container, corrupted database, lost files, etcā€¦ a nightmare. And I don't want this to happen to me anymore, no way lol.

Conclusion & next steps