|
|
@@ -93,7 +93,7 @@ pub fn format_order_item(order: &Value, ct_val: Decimal) -> Order {
|
|
|
let price = Decimal::from_str(order["priceRp"].as_str().unwrap()).unwrap();
|
|
|
let amount = Decimal::from_str(order["orderQty"].as_str().unwrap()).unwrap() * ct_val;
|
|
|
let deal_amount = Decimal::from_str(order["cumQty"].as_str().unwrap()).unwrap() * ct_val;
|
|
|
- let avg_price = Decimal::from_str(order["cumValueRv"].as_str().unwrap()).unwrap();
|
|
|
+ let avg_price = Decimal::from_str(order["execPriceRp"].as_str().unwrap()).unwrap();
|
|
|
|
|
|
let status = order["ordStatus"].as_str().unwrap();
|
|
|
let custom_status;
|