Fix panic

This commit is contained in:
Sik Yoon 2024-01-07 04:18:42 +09:00
parent e3369c5cfa
commit 1c4b922752

View File

@ -1824,8 +1824,8 @@ pub async fn query_sell_order(
match v {
Ok(T) => {
if T.get("status").unwrap().as_str().unwrap() == "FILLED"
|| T.get("status").unwrap().as_str().unwrap() == "PARTIALLY_FILLED"
if T.get("status").is_some_and(|a| a.as_str().unwrap() == "FILLED")
|| T.get("status").is_some_and(|a| a.as_str().unwrap() == "PARTIALLY_FILLED")
{
let quote_asset_precision_option = exchange_info_vec
.iter()