Crypto Flow - Airflow tasks for buying the dip and dollar cost averaging
Assumed you can setup your own Apache Airflow environment.
- Install Apache Airflow
- Copy Cryptoflow files to your dags folder (run or see
make dags
command in Makefile) - Configure variables
See variables_example.json for example configuration.
To configure an exchange, simply add Airflow varibles for your exchange API keys.
Currently supported exchanges are:
- COINBASEPRO_KEY
- COINBASEPRO_PASSPHRASE
- COINBASEPRO_SECRET
- GEMINI_KEY
- GEMINI_SECRET
- CRYPTOFLOW_SLACK_WEBHOOK
If you added the CRYPTOFLOW_CONFIG variable you can adjust buy options there. Alternatively, you can update the buy options in cryptoflow/config.py
.
- Fork this repo.
- Create an entry to the DEFAULT_CF_CONFIG dictionary for each new coin you want to add.
- Run
make generate
. - Submit a pull request.
DEFAULT_CF_CONFIG dictionary: https://github.com/foospidy/cryptoflow/blob/main/dags/cryptoflow/default_config.py#L4
Example entry:
"BTC": {
"btd": {
"amount_usd": 5,
"dip_price": 33000,
"schedule": "*/60 * * * *",
"smallest_unit": 8
},
"dca": {
"amount_usd": 10,
"schedule": "0 5 * * 1"
}
},