Delete unnecessary code
This commit is contained in:
parent
4bce70f7b7
commit
367809a919
|
|
@ -628,18 +628,6 @@ pub async fn query_open_positioning_order(
|
||||||
|
|
||||||
if T.get("status").unwrap().as_str().unwrap() == "FILLED" {
|
if T.get("status").unwrap().as_str().unwrap() == "FILLED" {
|
||||||
println!("Positioning {} {}", order.position, order.symbol);
|
println!("Positioning {} {}", order.position, order.symbol);
|
||||||
// update available_usdt
|
|
||||||
if order.used_usdt > cummulative_quote_qty {
|
|
||||||
add_available_usdt(decimal_sub(
|
|
||||||
order.used_usdt,
|
|
||||||
cummulative_quote_qty,
|
|
||||||
));
|
|
||||||
} else {
|
|
||||||
sub_available_usdt(decimal_sub(
|
|
||||||
cummulative_quote_qty,
|
|
||||||
order.used_usdt,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if T.get("status").unwrap().as_str().unwrap() == "CANCELED" {
|
} else if T.get("status").unwrap().as_str().unwrap() == "CANCELED" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user