Skip to content

dni/shell-trader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

 REPO_DIR=~/repos/shell-trader
 git clone https://github.com/dni/shell-trader $REPO_DIR

setup lnmarkets CLI

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

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

About

shellscript for interacting with lnmarkets.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages