Fix panic
This commit is contained in:
parent
e3369c5cfa
commit
1c4b922752
|
|
@ -1824,8 +1824,8 @@ pub async fn query_sell_order(
|
||||||
|
|
||||||
match v {
|
match v {
|
||||||
Ok(T) => {
|
Ok(T) => {
|
||||||
if T.get("status").unwrap().as_str().unwrap() == "FILLED"
|
if T.get("status").is_some_and(|a| a.as_str().unwrap() == "FILLED")
|
||||||
|| T.get("status").unwrap().as_str().unwrap() == "PARTIALLY_FILLED"
|
|| T.get("status").is_some_and(|a| a.as_str().unwrap() == "PARTIALLY_FILLED")
|
||||||
{
|
{
|
||||||
let quote_asset_precision_option = exchange_info_vec
|
let quote_asset_precision_option = exchange_info_vec
|
||||||
.iter()
|
.iter()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user