From 47b122acd9c53e0817cb71a0ca495d6c42707441 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Thu, 2 May 2024 17:57:48 +0900 Subject: [PATCH] Fix selling bug --- src/strategy_team/strategy_008.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy_team/strategy_008.rs b/src/strategy_team/strategy_008.rs index bafaaa1..c63a15f 100644 --- a/src/strategy_team/strategy_008.rs +++ b/src/strategy_team/strategy_008.rs @@ -441,7 +441,7 @@ pub async fn list_up_for_sell( { is_sell = true; break; - } else if count_candles == maximum_candles { + } else if server_epoch - element.transact_time > (1_800_000) * maximum_candles { // time up selling is_sell = true; break;