placeorder: python3

This commit is contained in:
nahuhh 2024-11-08 21:49:42 +00:00
parent e2a574cf9b
commit dacdee2570
No known key found for this signature in database
GPG key ID: 6B0644AEAC099310

View file

@ -285,7 +285,7 @@ revert_config() {
check_bids() {
# oneshot. Check for matching offers before posting one
apply_config
FOUNDBID=$(python createoffers.py --configfile $taker --statefile $state --port=$PORT --oneshot --debug | grep "New bid")
FOUNDBID=$(python3 createoffers.py --configfile $taker --statefile $state --port=$PORT --oneshot --debug | grep "New bid")
if [[ $FOUNDBID ]]; then
$grn"Placed bid successfully! Check BasicSwapDEX to confirm\n";$nc
elif [[ $OB_AMOUNT < $OB_MIN && -z $FOUNDBID ]]; then
@ -300,7 +300,7 @@ check_bids() {
else
# Post as limit order on the book
$cy"No matching offers found. Posting to the orderbook\n";$nc
ORDERPLACED=$(python createoffers.py --configfile $maker --statefile $state --port=$PORT --oneshot | grep "New offer")
ORDERPLACED=$(python3 createoffers.py --configfile $maker --statefile $state --port=$PORT --oneshot | grep "New offer")
if [[ $ORDERPLACED ]]; then
revert_config
$grn"OFFER POSTED! Please check BasicSwapDEX to confirm\nOffer expires in 4hrs\n";$nc