Update filtering
This commit is contained in:
parent
83a20c4393
commit
0425911286
|
|
@ -169,11 +169,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.6 {
|
||||
if element.pure_profit_percent >= 0.8 {
|
||||
is_sell = true;
|
||||
} else if element.pure_profit_percent <= -0.8 {
|
||||
is_sell = true;
|
||||
} else if server_epoch - element.transact_time >= (300_000) * 1 {
|
||||
} else if server_epoch - element.transact_time >= (600_000) * 1 {
|
||||
// time up selling
|
||||
is_sell = true;
|
||||
} else if over_turned == true {
|
||||
|
|
|
|||
|
|
@ -168,11 +168,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.6 {
|
||||
if element.pure_profit_percent >= 0.8 {
|
||||
is_sell = true;
|
||||
} else if element.pure_profit_percent <= -0.8 {
|
||||
is_sell = true;
|
||||
} else if server_epoch - element.transact_time >= (300_000) * 1 {
|
||||
} else if server_epoch - element.transact_time >= (600_000) * 1 {
|
||||
// time up selling
|
||||
is_sell = true;
|
||||
} else if over_turned == true {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user