|
|
@@ -572,7 +572,7 @@ pub fn format_order_item(order: serde_json::Value, ct_val: Decimal) -> Order {
|
|
|
let price = Decimal::from_f64(order["price"].as_f64().unwrap()).unwrap();
|
|
|
let amount = Decimal::from_f64(order["volume"].as_f64().unwrap()).unwrap() * ct_val;
|
|
|
let deal_amount = Decimal::from_f64(order["trade_volume"].as_f64().unwrap()).unwrap() * ct_val;
|
|
|
- let avg_price = Decimal::from_f64(order["trade_avg_price"].as_f64().unwrap_or(0.0)).unwrap() * ct_val;
|
|
|
+ let avg_price = Decimal::from_f64(order["trade_avg_price"].as_f64().unwrap_or(0.0)).unwrap();
|
|
|
|
|
|
let status = order["status"].to_string();
|
|
|
|