This bot can perform Terraswap trades for you. This bot has been modified by Chigag Studio to perform trades on mAssets from Mirror Protocol.
- Create virtual environment:
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
Set the environment variables:
- create .env file at root of project
- write
PK=encoded_key
in .env - encoded_key is the private key of your wallet to trade with (read section below on how to find it)
Then execute the following commands:
. venv/bin/activate
(if not done yet)python cli.py
will start the CLI
price
: Show price for selling/buyingamount-luna
: Set the luna amount for buying bLunaamount-bluna
: Set the bLuna amount for selling bLunaamount-ust
: Set the UST amount for buying mAssetamount-mspy
: Set the mSPY amount for selling mSPYinv-sell-price
: Sets the price for when to sellbuy-price
: Sets the price for when to buyspread
: Sets the maximum spread (default 0,5%)mode-buy
: Sets the bot to buying mode (will toggle automatically when bought)mode-sell
: Sets the bot to selling mode (will toggle automatically when sold)buy
: Manually buys bLunasell
: Manually sells bLunamirror_buy
: Manually buys configured mAssetmirror_sell
: Manually sells configured mAssetbot
: Starts the bot. Stop it with [Ctrl]+[C]mirrorbot
: Starts the Mirror bot. Stop it with [Ctrl]+[C]
- Export the "private key" in your Terra Station
- Decode this base64 string and take the encoded key from the dict
- Online decode tool https://www.base64decode.org/