Fix selection of filled positions
This commit is contained in:
parent
80252e235b
commit
982a679703
|
|
@ -254,7 +254,7 @@ async fn update_repeat_task(
|
||||||
pub async fn select_filled_positions() -> Result<Vec<PositionCoinList>, Box<dyn std::error::Error + Send + Sync>> {
|
pub async fn select_filled_positions() -> Result<Vec<PositionCoinList>, Box<dyn std::error::Error + Send + Sync>> {
|
||||||
let select_table_name = String::from("future_ordered_coin_list");
|
let select_table_name = String::from("future_ordered_coin_list");
|
||||||
let select_columns = String::from("*");
|
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);
|
let select_condition = Some(select_condition_build);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user