|
|
@@ -101,6 +101,8 @@ pub fn format_order_item(order: &Value, ct_val: Decimal) -> Order {
|
|
|
custom_status = "REMOVE".to_string()
|
|
|
} else if vec!["New", "Init", "Created", "PartiallyFilled"].contains(&status) {
|
|
|
custom_status = "NEW".to_string()
|
|
|
+ } else if vec!["Rejected"].contains(&status) {
|
|
|
+ custom_status = "NULL".to_string()
|
|
|
} else {
|
|
|
error!("gate_swap:格式化订单状态错误!\nformat_order_item:order={:?}", order);
|
|
|
panic!("gate_swap:格式化订单状态错误!\nformat_order_item:order={:?}", order)
|