- Notifications
You must be signed in to change notification settings - Fork3
Performs terra swap trades for luna/bLuna arbitrage and is able to watch collateral at Anchor to repay UST deposited in case of liquidation risk.
License
NotificationsYou must be signed in to change notification settings
FelixMohr/terratrader
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This bot can performTerraswap trades for you. It trades on theLuna/bLuna pair.
- Create virtual environment:
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
Set the environment variables:
PK
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 bLunainv-sell-price
: Sets the price for when to sell bLunabuy-price
: Sets the price for when to buy bLunaspread
: 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 bLunabot
: Starts the 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
npm install -g crypto-js
export NODE_PATH=/usr/local/lib/node_modules
(check that the path is correct, may need to delete "local")node scripts/decode_pk.js [ENCODED_PK] [WALLET_PASSWORD]
About
Performs terra swap trades for luna/bLuna arbitrage and is able to watch collateral at Anchor to repay UST deposited in case of liquidation risk.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.