|
@@ -94,7 +94,7 @@ pub fn handle_position(res_data: &ResponseData, ct_val: &Decimal) -> Vec<Positio
|
|
|
|
|
|
|
|
// 处理order信息
|
|
// 处理order信息
|
|
|
pub fn handle_order(res_data: ResponseData, ct_val: Decimal) -> SpecialOrder {
|
|
pub fn handle_order(res_data: ResponseData, ct_val: Decimal) -> SpecialOrder {
|
|
|
- let res_data_json = res_data.data.as_array().unwrap();
|
|
|
|
|
|
|
+ let res_data_json = vec![res_data.data];
|
|
|
let mut order_info = Vec::new();
|
|
let mut order_info = Vec::new();
|
|
|
for item in res_data_json.iter() {
|
|
for item in res_data_json.iter() {
|
|
|
order_info.push(format_order_item(item, ct_val));
|
|
order_info.push(format_order_item(item, ct_val));
|