Update filtering

This commit is contained in:
Sik Yoon 2024-04-26 19:47:04 +09:00
parent 7ab84cbe05
commit 8dd2b12ee6

View File

@ -284,7 +284,7 @@ pub async fn list_up_for_buy(
let current_price = rt_price_vec.last().unwrap().close_price;
let difference = (mean - rt_price_vec.last().unwrap().open_price).abs();
if current_price < rt_price_vec.last().unwrap().open_price + (0.25 * difference) {
if current_price < rt_price_vec.last().unwrap().open_price + (0.5 * difference) {
} else {
keys_to_remove.insert(symbol.clone());
}