Delete unnecessary parameter
This commit is contained in:
parent
7ee0abc465
commit
c952119628
|
|
@ -230,7 +230,7 @@ pub async fn list_up_for_buy(
|
|||
remove_keys(&mut filtered_data, keys_to_remove).await;
|
||||
|
||||
let final_filtered_data = duplicate_filter(1, &filtered_data).await?;
|
||||
insert_pre_suggested_coins(1, false, &final_filtered_data, &alldata).await;
|
||||
insert_pre_suggested_coins(1, false, &final_filtered_data).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ pub async fn list_up_for_buy(
|
|||
remove_keys(&mut filtered_data, keys_to_remove).await;
|
||||
|
||||
let final_filtered_data = duplicate_filter(2, &filtered_data).await?;
|
||||
insert_pre_suggested_coins(2, false, &final_filtered_data, &alldata).await;
|
||||
insert_pre_suggested_coins(2, false, &final_filtered_data).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ pub async fn list_up_for_buy(
|
|||
remove_keys(&mut filtered_data, keys_to_remove).await;
|
||||
|
||||
let final_filtered_data = duplicate_filter(3, &filtered_data).await?;
|
||||
insert_pre_suggested_coins(3, false, &final_filtered_data, &alldata).await;
|
||||
insert_pre_suggested_coins(3, false, &final_filtered_data).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ pub async fn list_up_for_buy(
|
|||
remove_keys(&mut filtered_data, keys_to_remove).await;
|
||||
|
||||
let final_filtered_data = duplicate_filter(4, &filtered_data).await?;
|
||||
insert_pre_suggested_coins(4, false, &final_filtered_data, &alldata).await;
|
||||
insert_pre_suggested_coins(4, false, &final_filtered_data).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ pub async fn list_up_for_buy(
|
|||
remove_keys(&mut filtered_data, keys_to_remove).await;
|
||||
|
||||
let final_filtered_data = duplicate_filter(5, &filtered_data).await?;
|
||||
insert_pre_suggested_coins(5, false, &final_filtered_data, &alldata).await;
|
||||
insert_pre_suggested_coins(5, false, &final_filtered_data).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ pub async fn list_up_for_buy(
|
|||
remove_keys(&mut filtered_data, keys_to_remove).await;
|
||||
|
||||
let final_filtered_data = duplicate_filter(6, &filtered_data).await?;
|
||||
insert_pre_suggested_coins(6, false, &final_filtered_data, &alldata).await;
|
||||
insert_pre_suggested_coins(6, false, &final_filtered_data).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ pub async fn list_up_for_buy(
|
|||
remove_keys(&mut filtered_data, keys_to_remove).await;
|
||||
|
||||
let final_filtered_data = duplicate_filter(7, &filtered_data).await?;
|
||||
insert_pre_suggested_coins(7, false, &final_filtered_data, &alldata).await;
|
||||
insert_pre_suggested_coins(7, false, &final_filtered_data).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@ pub async fn list_up_for_buy(
|
|||
remove_keys(&mut filtered_data, keys_to_remove).await;
|
||||
|
||||
let final_filtered_data = duplicate_filter(8, &filtered_data).await?;
|
||||
insert_pre_suggested_coins(8, false, &final_filtered_data, &alldata).await;
|
||||
insert_pre_suggested_coins(8, false, &final_filtered_data).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ pub async fn list_up_for_buy(
|
|||
// remove_keys(&mut filtered_data, keys_to_remove).await;
|
||||
|
||||
let final_filtered_data = duplicate_filter(9, &filtered_data).await?;
|
||||
insert_pre_suggested_coins(9, false, &final_filtered_data, &alldata).await;
|
||||
insert_pre_suggested_coins(9, false, &final_filtered_data).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,8 +87,7 @@ pub async fn execute_list_up_for_sell(
|
|||
pub async fn insert_pre_suggested_coins(
|
||||
registerer: i32,
|
||||
is_long: bool,
|
||||
filtered_coins: &HashMap<String, FilteredDataValue>,
|
||||
alldata: &AllData,
|
||||
filtered_coins: &HashMap<String, FilteredDataValue>
|
||||
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
// Check the existance of record that is registered by this strategist
|
||||
let mut dest_table_name = String::from("suggested_coin_list");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user