Update filtering

This commit is contained in:
Sik Yoon 2024-05-25 04:50:10 +09:00
parent ab6ae5e667
commit bc8b1f12d5
2 changed files with 4 additions and 4 deletions

View File

@ -174,11 +174,11 @@ pub async fn list_up_for_sell(alldata: &AllData) -> Result<(), Box<dyn std::erro
// TODO: BNB 코인이 없으면
if !element.current_price.is_zero() {
if element.pure_profit_percent >= 0.8 {
if element.pure_profit_percent >= 0.5 {
is_sell = true;
} else if element.pure_profit_percent <= -0.8 {
} else if element.pure_profit_percent <= -0.5 {
is_sell = true;
} else if server_epoch - element.transact_time >= (600_000) * 1 {
} else if server_epoch - element.transact_time >= (300_000) * 1 {
// time up selling
is_sell = true;
} else if over_turned == true {

View File

@ -178,7 +178,7 @@ pub async fn list_up_for_sell(alldata: &AllData) -> Result<(), Box<dyn std::erro
is_sell = true;
} else if element.pure_profit_percent <= -0.8 {
is_sell = true;
} else if server_epoch - element.transact_time >= (600_000) * 1 {
} else if server_epoch - element.transact_time >= (300_000) * 1 {
// time up selling
is_sell = true;
} else if over_turned == true {