stashi is a CLI app that uses GMO Coin’s API to automate cryptocurrency accumulation with Dollar-Cost Averaging (DCA).
- You must have cargo installed.
- You must have set up API access with GMO Coin.
- Ensure you have an environment capable of running commands regularly, regardless of the time of day (e.g., via cron).
Install stashi using cargo:
$ cargo install --git https://github.com/erechorse/stashi.git
Create a config.toml file to manage your settings. The following parameters are required:
- key: Your API key
- secret: Your private key for the API
- amount: The amount to accumulate in JPY
Example config.toml:
key = "your_api_key"
secret = "your_secret_key"
amount = 1000 #JPY
To check if accumulation is possible, run:
$ stashi check /path/to/config.toml
To perform the accumulation, run:
$ stashi run /path/to/config.toml
To run stashi once a month, add the following line to your crontab:
0 6 1 * * stashi run /path/to/config.toml
This will execute the accumulation on the 1st of each month at 6:00 AM.