Fix wrong column name

This commit is contained in:
Sik Yoon 2024-05-21 12:47:28 +09:00
parent 2fbce18948
commit 2d50f9cdbb

View File

@ -379,13 +379,13 @@ pub async fn cancel_open_positioning_order(
) )
.unwrap(); .unwrap();
let buy_price = decimal_div(cummulative_quote_qty, base_qty_ordered) let entry_price = decimal_div(cummulative_quote_qty, base_qty_ordered)
.round_dp_with_strategy(8, RoundingStrategy::ToZero); .round_dp_with_strategy(8, RoundingStrategy::ToZero);
let update_values = vec![ let update_values = vec![
(String::from("status"), String::from("FILLED")), // status (String::from("status"), String::from("FILLED")), // status
(String::from("used_usdt"), cummulative_quote_qty.to_string()), // used_usdt (String::from("used_usdt"), cummulative_quote_qty.to_string()), // used_usdt
(String::from("buy_price"), buy_price.to_string()), // buy_price (String::from("entry_price"), entry_price.to_string()), // entry_price
(String::from("base_qty_ordered"),base_qty_ordered.to_string()), // base_qty_ordered (String::from("base_qty_ordered"),base_qty_ordered.to_string()), // base_qty_ordered
]; ];
let update_condition = vec![ let update_condition = vec![
@ -484,13 +484,13 @@ pub async fn query_open_positioning_order(
) )
.unwrap(); .unwrap();
let buy_price = decimal_div(cummulative_quote_qty, base_qty_ordered) let entry_price = decimal_div(cummulative_quote_qty, base_qty_ordered)
.round_dp_with_strategy(8, RoundingStrategy::ToZero); .round_dp_with_strategy(8, RoundingStrategy::ToZero);
let update_values = vec![ let update_values = vec![
(String::from("status"), value_build), // status (String::from("status"), value_build), // status
(String::from("used_usdt"), cummulative_quote_qty.to_string()), // used_usdt (String::from("used_usdt"), cummulative_quote_qty.to_string()), // used_usdt
(String::from("buy_price"), buy_price.to_string()), // buy_price (String::from("entry_price"), entry_price.to_string()), // entry_price
(String::from("base_qty_ordered"), base_qty_ordered.to_string()), // base_qty_ordered (String::from("base_qty_ordered"), base_qty_ordered.to_string()), // base_qty_ordered
]; ];
let update_condition = vec![ let update_condition = vec![