Git Product home page Git Product logo

dcanod's Introduction

DCANod

Nexo logo Ghostfolio logo

Simple Open Source CLI application to DCA with Nexo Pro & Ghostfolio

GitHub package.json version (branch) Shield: Contributions Welcome Shield: License: AGPL v3 GitHub issues GitHub pull requests GitHub code size in bytes

Intro

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.

Install

pnpm i -g dcanod

Setup command

To configure DCANod to work with Nexo Pro and Ghostfolio, simply execute:

dcanod-cli setup
✔ [Nexo] key:  … <nexo-api-key>
✔ [Nexo] secret:  … <nexo-api-secret>
✔ [Ghostfolio] hostname:  … <ghostfolio-hostname>
✔ [Ghostfolio] port:  … <ghostfolio-port>
✔ [Ghostfolio] secret:  … <ghostfolio-secret-token>
✔ [Ghostfolio] (optionnal) account id :<account-id>
✔ Configuration saved

This will create a config.json file in ~/.config/dcanod by default. You can use another config file using option -c.

dcanod-cli setup -c /tmp/dcanod/newconfig.json

Buy command

Buy a specific amount of crypto.

dcanod-cli buy BTC/USDT 15

Automating with Crontab

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:

crontab -e

To run DCANod every Monday at 8 AM, add the following line to the crontab:

0 8 * * 1 dcanod-cli BTC/USDT 20

Build locally

pnpm build

Tests

pnpm test
pnpm prettier

dcanod's People

Contributors

aussedatlo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

dcanod's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.