From 53c74828b4a15ce9110958a0242a3c78ddb01dcd Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Mon, 8 Jan 2024 00:07:25 +0900 Subject: [PATCH] DIsable Filtering --- src/coex/assets_managing_team.rs | 2 +- src/strategy_team/strategy_manager.rs | 60 +++++++++++++-------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/coex/assets_managing_team.rs b/src/coex/assets_managing_team.rs index a08dd06..eca4805 100644 --- a/src/coex/assets_managing_team.rs +++ b/src/coex/assets_managing_team.rs @@ -105,7 +105,7 @@ pub async fn set_unit_usdt() { let asset_info = select_asset_manage_announcement().await; 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 let update_table_name = String::from("asset_manage_announcement"); diff --git a/src/strategy_team/strategy_manager.rs b/src/strategy_team/strategy_manager.rs index 38723ff..e61115a 100644 --- a/src/strategy_team/strategy_manager.rs +++ b/src/strategy_team/strategy_manager.rs @@ -43,18 +43,18 @@ pub async fn execute_list_up_for_buy( // task_vec.push(tokio::spawn(async move { // crate::strategy_team::strategy_003::list_up_for_buy(all_data_c3).await; // })); - task_vec.push(tokio::spawn(async move { - crate::strategy_team::strategy_003::list_up_for_buy(all_data_c3).await; - })); + // task_vec.push(tokio::spawn(async move { + // crate::strategy_team::strategy_003::list_up_for_buy(all_data_c3).await; + // })); task_vec.push(tokio::spawn(async move { crate::strategy_team::strategy_004::list_up_for_buy(all_data_c4).await; })); // task_vec.push(tokio::spawn(async move { // crate::strategy_team::strategy_005::list_up_for_buy(all_data_c5).await; // })); - task_vec.push(tokio::spawn(async move { - crate::strategy_team::strategy_006::list_up_for_buy(all_data_c6).await; - })); + // task_vec.push(tokio::spawn(async move { + // crate::strategy_team::strategy_006::list_up_for_buy(all_data_c6).await; + // })); // let all_data_ct = all_data.clone(); // task_vec.push(tokio::spawn(async move { // 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 mut task_vec = Vec::new(); - task_vec.push(tokio::spawn(async move { - crate::strategy_team::strategy_003::list_up_for_sell( - &all_data_c3, - &exchange_info_vec_c3, - &trade_fee_vec_c3, - ) - .await; - })); + // task_vec.push(tokio::spawn(async move { + // crate::strategy_team::strategy_003::list_up_for_sell( + // &all_data_c3, + // &exchange_info_vec_c3, + // &trade_fee_vec_c3, + // ) + // .await; + // })); task_vec.push(tokio::spawn(async move { crate::strategy_team::strategy_004::list_up_for_sell( @@ -101,23 +101,23 @@ pub async fn execute_list_up_for_sell( .await; })); - task_vec.push(tokio::spawn(async move { - crate::strategy_team::strategy_005::list_up_for_sell( - &all_data_c5, - &exchange_info_vec_c5, - &trade_fee_vec_c5, - ) - .await; - })); + // task_vec.push(tokio::spawn(async move { + // crate::strategy_team::strategy_005::list_up_for_sell( + // &all_data_c5, + // &exchange_info_vec_c5, + // &trade_fee_vec_c5, + // ) + // .await; + // })); - task_vec.push(tokio::spawn(async move { - crate::strategy_team::strategy_006::list_up_for_sell( - &all_data_c6, - &exchange_info_vec_c6, - &trade_fee_vec_c6, - ) - .await; - })); + // task_vec.push(tokio::spawn(async move { + // crate::strategy_team::strategy_006::list_up_for_sell( + // &all_data_c6, + // &exchange_info_vec_c6, + // &trade_fee_vec_c6, + // ) + // .await; + // })); try_join_all(task_vec).await?; Ok(())