mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2025-01-03 09:29:39 +00:00
Compare commits
3 commits
685ddf0868
...
072dd22edc
Author | SHA1 | Date | |
---|---|---|---|
|
072dd22edc | ||
|
111c91c6a8 | ||
|
d7224b0442 |
2 changed files with 4 additions and 5 deletions
|
@ -120,7 +120,7 @@ book_min() {
|
|||
|
||||
set_fiat() {
|
||||
echo -e "[1] USD [default]\n[2] EUR\n[3] CAD\n[4] AUD\n[5] CUSTOM"
|
||||
read -p 'Select an option ' fiat
|
||||
read -p 'Select an option: ' fiat_select
|
||||
case $fiat_select in
|
||||
1) FIAT=USD
|
||||
fiat=usd
|
||||
|
@ -149,8 +149,8 @@ coin_price() {
|
|||
THEIR_FIAT=$(curl -s "https://api.coingecko.com/api/v3/simple/price?ids=$THEIR_COIN,$YOUR_COIN&vs_currencies=$fiat" | jq -r ".$THEIR_COIN.$fiat")
|
||||
TAKER_RATE=$(echo "scale=8;( $THEIR_FIAT / $YOUR_FIAT )" | bc | sed -e 's/^-\./-0./' -e 's/^\./0./')
|
||||
MAKER_RATE=$(echo "scale=8;(1 / $TAKER_RATE /1)" | bc | sed -e 's/^-\./-0./' -e 's/^\./0./')
|
||||
$cy"$THEIR_FIAT $FIAT$nc2/$grn2$theircoin$nc2 which is $red2$TAKER_RATE $yourcoin$nc2/$grn2$theircoin$nc2"
|
||||
$cy"$YOUR_FIAT $FIAT$nc2/$red2$yourcoin$nc2 which is $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin$nc2"
|
||||
$cy"$THEIR_FIAT $FIAT$nc2/$grn2$theircoin$nc2 which is $red2$TAKER_RATE $yourcoin$nc2/$grn2$theircoin$nc2\n"
|
||||
$cy"$YOUR_FIAT $FIAT$nc2/$red2$yourcoin$nc2 which is $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin$nc2\n";
|
||||
}
|
||||
|
||||
buy_sell() {
|
||||
|
@ -188,7 +188,7 @@ buy_sell() {
|
|||
echo -e "Rate to be paid: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin$nc2\n"
|
||||
;;
|
||||
2) read -p "How much YOUR $yourcapital do you want to SELL [example: 1] " AMOUNT
|
||||
$cy "\n4. Rate to charge:\n";$nc
|
||||
echo -e "\n4. Rate to charge:\n"
|
||||
echo -e "[1] LIMIT: Specific Crypto Rate $grn2$theircoin$nc2/$red2$yourcoin$nc2\n[2] LIMIT: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin $cy2+/- CUSTOM Percent$nc2\n[3] LIMIT: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin$nc2\n[4] MARKET +$PERCENT%: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin $cy2+ $PERCENT%$nc2\n[ENTER] LIMIT: Specific rate $cy2$FIAT$nc2/$red2$yourcoin$nc2"
|
||||
read -p 'Select an option: ' RATESEL
|
||||
case $RATESEL in
|
||||
|
|
|
@ -30,7 +30,6 @@ fi
|
|||
$SWAP_DATADIR/venv/bin/pip install .
|
||||
|
||||
# BasicSwap
|
||||
git clone basicswap
|
||||
# Switch to new repo: basicswap/basicswap
|
||||
cd $SWAP_DATADIR/basicswap
|
||||
git remote set-url origin https://github.com/basicswap/basicswap
|
||||
|
|
Loading…
Reference in a new issue