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_DIRmake the script executable
sudo chmod +x $REPO_DIR/lnm.shsymlink the script to /usr/bin
sudo ln -s $REPO_DIR/lnm.sh /usr/bin/lnmsetting 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