Update filtering
This commit is contained in:
parent
ab6ae5e667
commit
bc8b1f12d5
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user