Delete unnecessary operation
This commit is contained in:
parent
dd234f2448
commit
886ee5bbee
|
|
@ -113,7 +113,7 @@ pub async fn list_up_for_buy(
|
|||
let mut filtered_data = FilteredData::new();
|
||||
filtered_data.symbol = element.symbol.clone();
|
||||
filtered_data.closetime = rt_30m_vec.last().unwrap().close_time;
|
||||
filtered_data.current_price = rust_decimal::prelude::FromPrimitive::from_f64(rt_30m_vec.last().unwrap().close_price).unwrap();;
|
||||
filtered_data.current_price = rust_decimal::prelude::FromPrimitive::from_f64(rt_30m_vec.last().unwrap().close_price).unwrap();
|
||||
filtered_data_2nd_lock.push(filtered_data);
|
||||
}
|
||||
}
|
||||
|
|
@ -157,8 +157,6 @@ pub async fn list_up_for_buy(
|
|||
}| *close_time,
|
||||
);
|
||||
if supertrend_search_result.is_ok() {
|
||||
let current_price: Decimal = rust_decimal::prelude::FromPrimitive::from_f64(rt_30m_vec.last().unwrap().close_price).unwrap();
|
||||
|
||||
if supertrend_vec[supertrend_search_result.unwrap()].area.contains("DOWN")
|
||||
&& supertrend_vec[supertrend_search_result.unwrap()].band_value > element.current_price.to_f64().unwrap()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user