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