shell-trader CLI
for lnmarkets and maybe more exchanges
shellscript for interacting with lnmarkets
todo
maybe do a ftx, if some1 is interested
setup
clone the repository
git clone https://github.com/dni/shell-trader
setup lnmarkets CLI
make the script executable
sudo chmod +x ~/repos/trading/shell-trader/lnm.sh
symlink the script to /usr/bin
sudo ln -s ~/repos/trading/shell-trader/lnm.sh /usr/bin/lnm
setting up the enviroment variable
cd ~/repos/trading/shell-trader
mv .env.lnm.example .env.lnm
$EDITOR .env.lnm
usage
buy_limit / sell_limit
- required arguments: $qty, $leverage, $price
- optional arguments: $stoploss, $takeprofit
lnm sell_limit $qty $leverage $price $stoploss $takeprofit
buy_market / sell_market
- required arguments: $qty, $leverage
- optional arguments: $stoploss, $takeprofit
lnm buy_market $qty $leverage $stoploss $takeprofit
positions
lnm positions
lnm positions open
add_margin / take_profit
lnm add_margin $pid $amount
lnm take_profit $pid $amount
close/ cancel
lnm close $pid
lnm cancel $pid
close_all / cancel_all
lnm close_all
lnm cancel_all
ticker / index_history
lnm ticker
lnm index_history
user / balance
lnm user
lnm balance