<div align="center">
npm install dcanodSimple Open Source CLI application to DCA with Nexo Pro & Ghostfolio
!GitHub package.json version (branch)


!GitHub issues
!GitHub pull requests
!GitHub code size in bytes
DCANod is an easy-to-use and lightweight command-line application built using Node.js and TypeScript.
It offers a hassle-free setup process, allowing users to quickly start performing recurring cryptocurrency purchases on the Nexo Pro exchange.
Additionally, the application seamlessly imports these transactions into their Ghostfolio instance,
providing a smooth and efficient experience for managing their crypto investments.
``shell`
pnpm i -g dcanod
To configure DCANod to work with Nexo Pro and Ghostfolio, simply execute:
`shell`
dcanod-cli setup
`shell`
✔ [Nexo] key: …
✔ [Nexo] secret: …
✔ [Ghostfolio] hostname: …
✔ [Ghostfolio] port: …
✔ [Ghostfolio] secret: …
✔ [Ghostfolio] (optionnal) account id : …
✔ Configuration saved
This will create a config.json file in ~/.config/dcanod by default.-c
You can use another config file using option .
`shell`
dcanod-cli setup -c /tmp/dcanod/newconfig.json
Buy a specific amount of crypto.
`shell`
dcanod-cli buy BTC/USDT 15
To automate the execution of DCANod on a recurring schedule, we can use the crontab utility on Unix-like systems.
Crontab allows us to set up scheduled tasks, such as running DCANod at specific intervals.
Edit the crontab file by executing the following command:
`shell`
crontab -e
To run DCANod every Monday at 8 AM, add the following line to the crontab:
`crontab`
0 8 1 dcanod-cli BTC/USDT 20
`shell`
pnpm build
`shell``
pnpm test
pnpm prettier