From c4ea78cb5d504909a57d1ff73c1f5e68ecdf0241 Mon Sep 17 00:00:00 2001 From: xCryptoTools <> Date: Tue, 25 Apr 2023 00:06:36 +0200 Subject: [PATCH] Improved parameter name --- config.inc.php | 4 ++-- doge-twitter-php-bot.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.inc.php b/config.inc.php index 4b3e669..759e930 100644 --- a/config.inc.php +++ b/config.inc.php @@ -70,8 +70,8 @@ $bybit['derivate_symbol_to_buy'] = 'DOGEUSDT'; // Symbol to buy $bybit['quantity_to_buy'] = 1000; -// Set to false to only buy if there is no active trade on the symbol yet. Can prevent double trades -$bybit['only_buy_if_not_active'] = true; +// Set to true to only buy if there is no active trade on the symbol yet. Can prevent double trades +$bybit['only_buy_if_no_position'] = true; // Stop loss and Take profit. Percentages are the move of the underlying ticker (excluding leverage!) $bybit['stop_loss_percentage'] = 5; // Example: '5'. Can be set to false to disable stop loss. diff --git a/doge-twitter-php-bot.php b/doge-twitter-php-bot.php index 5a08540..72c3da4 100644 --- a/doge-twitter-php-bot.php +++ b/doge-twitter-php-bot.php @@ -27,7 +27,7 @@ // Place ByBit trade if needed if ($tweet_contains_keyword === true && $bybit['enable'] === true) { - if ($bybit['only_buy_if_not_active'] === false || bybit_has_open_position($bybit) === false) { + if ($bybit['only_buy_if_no_position'] === false || bybit_has_open_position($bybit) === false) { bybit_order($bybit); } }