Update filtering

This commit is contained in:
Sik Yoon 2024-05-25 05:38:19 +09:00
parent e1f50efd79
commit 566ea51ee6
2 changed files with 4 additions and 4 deletions

View File

@ -174,9 +174,9 @@ 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.5 {
if element.pure_profit_percent >= 0.2 {
is_sell = true;
} else if element.pure_profit_percent <= -0.5 {
} else if element.pure_profit_percent <= -0.2 {
is_sell = true;
} else if server_epoch - element.transact_time >= (300_000) * 1 {
// time up selling

View File

@ -174,9 +174,9 @@ 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.5 {
if element.pure_profit_percent >= 0.2 {
is_sell = true;
} else if element.pure_profit_percent <= -0.5 {
} else if element.pure_profit_percent <= -0.2 {
is_sell = true;
} else if server_epoch - element.transact_time >= (300_000) * 1 {
// time up selling