@janfabian/astroport-dca-bot
v1.0.0-beta7
Published
ASTROPORT-DCA-BOT ===
Downloads
5
Readme
ASTROPORT-DCA-BOT
Prerequisites
- node v18
Installation
npm i
npm run build
cp .env.example .env
Provide MNEMONIC environment variable in the .env file.
The address of this mnemonic will pay fees for gas if used for dca purchases. This account is also used for all commands modifying DCA contract state.
Usage
npm run bot help
Examples
# creates a new dca order, initial 1000 uluna, with target axlUSDC, interval 60 seconds and dca amount 10 uluna
npm run bot -- create-order -i 1000 uluna -t ibc/B3504E092456BA618CC28AC671A71FB08C6CA0FD0BE7C8A5B5A3E2DD933CC9E4 -n 60 -a 10
# adds address where orders are already created before
npm run bot -- add-address terra1zefg0es5vn8cee4px0xkmpa3l57raqj25vcfjx
# adds 1000 uluna for bot tip fees
npm run bot -- add-bot-tip -a 10000 uluna
# starts bot watching for addresses added via `add-address` or `create-dca-order` command
npm run bot -- start