Fix wrong column name
This commit is contained in:
parent
2fbce18948
commit
2d50f9cdbb
|
|
@ -379,13 +379,13 @@ pub async fn cancel_open_positioning_order(
|
|||
)
|
||||
.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);
|
||||
|
||||
let update_values = vec![
|
||||
(String::from("status"), String::from("FILLED")), // status
|
||||
(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
|
||||
];
|
||||
let update_condition = vec![
|
||||
|
|
@ -484,13 +484,13 @@ pub async fn query_open_positioning_order(
|
|||
)
|
||||
.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);
|
||||
|
||||
let update_values = vec![
|
||||
(String::from("status"), value_build), // status
|
||||
(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
|
||||
];
|
||||
let update_condition = vec![
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user