DIsable Filtering

This commit is contained in:
Sik Yoon 2024-01-08 00:07:25 +09:00
parent 9a863b82f9
commit 53c74828b4
2 changed files with 31 additions and 31 deletions

View File

@ -105,7 +105,7 @@ pub async fn set_unit_usdt() {
let asset_info = select_asset_manage_announcement().await; let asset_info = select_asset_manage_announcement().await;
let mut set_unit_trade_usdt = Decimal::new(0, 8); let mut set_unit_trade_usdt = Decimal::new(0, 8);
set_unit_trade_usdt = dec!(30.0); // $30 for each trade set_unit_trade_usdt = dec!(150.0); // $150 for each trade
// update fields in [asset_manage_announcement] table // update fields in [asset_manage_announcement] table
let update_table_name = String::from("asset_manage_announcement"); let update_table_name = String::from("asset_manage_announcement");

View File

@ -43,18 +43,18 @@ pub async fn execute_list_up_for_buy(
// task_vec.push(tokio::spawn(async move { // task_vec.push(tokio::spawn(async move {
// crate::strategy_team::strategy_003::list_up_for_buy(all_data_c3).await; // crate::strategy_team::strategy_003::list_up_for_buy(all_data_c3).await;
// })); // }));
task_vec.push(tokio::spawn(async move { // task_vec.push(tokio::spawn(async move {
crate::strategy_team::strategy_003::list_up_for_buy(all_data_c3).await; // crate::strategy_team::strategy_003::list_up_for_buy(all_data_c3).await;
})); // }));
task_vec.push(tokio::spawn(async move { task_vec.push(tokio::spawn(async move {
crate::strategy_team::strategy_004::list_up_for_buy(all_data_c4).await; crate::strategy_team::strategy_004::list_up_for_buy(all_data_c4).await;
})); }));
// task_vec.push(tokio::spawn(async move { // task_vec.push(tokio::spawn(async move {
// crate::strategy_team::strategy_005::list_up_for_buy(all_data_c5).await; // crate::strategy_team::strategy_005::list_up_for_buy(all_data_c5).await;
// })); // }));
task_vec.push(tokio::spawn(async move { // task_vec.push(tokio::spawn(async move {
crate::strategy_team::strategy_006::list_up_for_buy(all_data_c6).await; // crate::strategy_team::strategy_006::list_up_for_buy(all_data_c6).await;
})); // }));
// let all_data_ct = all_data.clone(); // let all_data_ct = all_data.clone();
// task_vec.push(tokio::spawn(async move { // task_vec.push(tokio::spawn(async move {
// crate::strategy_team::strategy_test::strategist_test(all_data_ct).await; // crate::strategy_team::strategy_test::strategist_test(all_data_ct).await;
@ -83,14 +83,14 @@ pub async fn execute_list_up_for_sell(
let trade_fee_vec_c6 = trade_fee_vec.clone(); let trade_fee_vec_c6 = trade_fee_vec.clone();
let mut task_vec = Vec::new(); let mut task_vec = Vec::new();
task_vec.push(tokio::spawn(async move { // task_vec.push(tokio::spawn(async move {
crate::strategy_team::strategy_003::list_up_for_sell( // crate::strategy_team::strategy_003::list_up_for_sell(
&all_data_c3, // &all_data_c3,
&exchange_info_vec_c3, // &exchange_info_vec_c3,
&trade_fee_vec_c3, // &trade_fee_vec_c3,
) // )
.await; // .await;
})); // }));
task_vec.push(tokio::spawn(async move { task_vec.push(tokio::spawn(async move {
crate::strategy_team::strategy_004::list_up_for_sell( crate::strategy_team::strategy_004::list_up_for_sell(
@ -101,23 +101,23 @@ pub async fn execute_list_up_for_sell(
.await; .await;
})); }));
task_vec.push(tokio::spawn(async move { // task_vec.push(tokio::spawn(async move {
crate::strategy_team::strategy_005::list_up_for_sell( // crate::strategy_team::strategy_005::list_up_for_sell(
&all_data_c5, // &all_data_c5,
&exchange_info_vec_c5, // &exchange_info_vec_c5,
&trade_fee_vec_c5, // &trade_fee_vec_c5,
) // )
.await; // .await;
})); // }));
task_vec.push(tokio::spawn(async move { // task_vec.push(tokio::spawn(async move {
crate::strategy_team::strategy_006::list_up_for_sell( // crate::strategy_team::strategy_006::list_up_for_sell(
&all_data_c6, // &all_data_c6,
&exchange_info_vec_c6, // &exchange_info_vec_c6,
&trade_fee_vec_c6, // &trade_fee_vec_c6,
) // )
.await; // .await;
})); // }));
try_join_all(task_vec).await?; try_join_all(task_vec).await?;
Ok(()) Ok(())