shorten timeup
This commit is contained in:
parent
40193b171a
commit
d61cc14bd5
|
|
@ -125,7 +125,7 @@ pub async fn list_up_for_sell() -> Result<(), Box<dyn std::error::Error + Send +
|
||||||
is_sell = true;
|
is_sell = true;
|
||||||
} else if element.pure_profit_percent <= -0.8 {
|
} else if element.pure_profit_percent <= -0.8 {
|
||||||
is_sell = true;
|
is_sell = true;
|
||||||
} else if server_epoch - element.transact_time >= (1_800_000) * 1 {
|
} else if server_epoch - element.transact_time >= (600_000) * 1 {
|
||||||
// time up selling
|
// time up selling
|
||||||
is_sell = true;
|
is_sell = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ pub async fn list_up_for_sell() -> Result<(), Box<dyn std::error::Error + Send +
|
||||||
is_sell = true;
|
is_sell = true;
|
||||||
} else if element.pure_profit_percent <= -0.8 {
|
} else if element.pure_profit_percent <= -0.8 {
|
||||||
is_sell = true;
|
is_sell = true;
|
||||||
} else if server_epoch - element.transact_time >= (1_800_000) * 1 {
|
} else if server_epoch - element.transact_time >= (600_000) * 1 {
|
||||||
// time up selling
|
// time up selling
|
||||||
is_sell = true;
|
is_sell = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user