From 982a679703df0ac9a7b7a48ad678d2edc5368212 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Tue, 21 May 2024 16:10:51 +0900 Subject: [PATCH] Fix selection of filled positions --- src/future/table_mgmt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/future/table_mgmt.rs b/src/future/table_mgmt.rs index 2d5fe44..487ae58 100644 --- a/src/future/table_mgmt.rs +++ b/src/future/table_mgmt.rs @@ -254,7 +254,7 @@ async fn update_repeat_task( pub async fn select_filled_positions() -> Result, Box> { let select_table_name = String::from("future_ordered_coin_list"); let select_columns = String::from("*"); - let mut select_condition_build = String::from("WHERE (status = 'FILLED' or status = 'SIMUL')"); + let mut select_condition_build = String::from("WHERE order_type = 'POSITIONING' and (status = 'FILLED' or status = 'SIMUL')"); let select_condition = Some(select_condition_build);