Compare commits

..

3 commits

Author SHA1 Message Date
nahuhh
685ddf0868 placeorder_patch 2024-10-03 03:31:10 +00:00
nahuhh
8e94766620 add placeorder script 2024-10-03 03:31:10 +00:00
nahuhh
97d9615503 friendly update coincurve 2024-10-03 03:30:32 +00:00
2 changed files with 5 additions and 4 deletions

View file

@ -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_select
read -p 'Select an option ' fiat
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\n"
$cy"$YOUR_FIAT $FIAT$nc2/$red2$yourcoin$nc2 which is $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin$nc2\n";
$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"
}
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
echo -e "\n4. Rate to charge:\n"
$cy "\n4. Rate to charge:\n";$nc
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

View file

@ -30,6 +30,7 @@ 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