BlockchainCommons / BlockchainCommons/spotbit

Code donation

Open
#67 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
36
Forks
17
PR merge metrics
No merged PRs in 30d

Description

For a couple of years i ran "lovac", the "low volume accumulator".
https://twitter.com/lovac27152702
It was a (flask based) stacking app which used the bitstamp API to get prices, place Marketorders on a (daily) basis and, especially proud: a buy-the-dip feature. So the app could detect a drop in price and even show it graphically.
I shut it down some month ago and i'm now happy to donate the code if anyone is interested:
https://gitlab.com/lovac/lovac-app
The code used SQLAlchemy and, for the statistical things pandas.

Here are some places in the code which might be interesting:
* testing whether the price is dipping via specific Bollingerbands: https://gitlab.com/lovac/lovac-app/-/blob/master/tests/lovac_services_tickerdata_tests.py#L56
* Various methods to import csv-data-files into the DB: https://gitlab.com/lovac/lovac-app/-/blob/master/lovac/tickerdata/__init__.py (i used https://bitcoincharts.com/charts/chart.json for that)
* The statistics for the bollinger-bands: https://gitlab.com/lovac/lovac-app/-/blob/master/lovac/tickerdata/statistics.py
* THe graphical representation took me some time. If that's a request at some point in time, i might be able to set it up again:
![image](https://user-images.githubusercontent.com/117085/177375960-73783b68-9d7c-46c4-9f11-25911804523c.png)
The red bubble represented the buy-the-dip. The bigger the bubble was, the more it bought.

Feel free to close this issue but maybe you find it interesting. Also happy to answer any questions or setup a call.
![image](https://user-images.githubusercontent.com/117085/177376263-f7de5d8d-eb78-485c-83a6-a0c10b34dcda.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.