|
|
@@ -593,7 +593,7 @@ pub fn format_order_item(order: serde_json::Value, ct_val: Decimal) -> Order {
|
|
|
}
|
|
|
|
|
|
pub fn format_position_item(position: &serde_json::Value, ct_val: &Decimal) -> Position {
|
|
|
- let symbol = position["symbol"].as_str().unwrap().to_string();
|
|
|
+ let symbol = position["pair"].as_str().unwrap().to_string();
|
|
|
let margin_level = Decimal::from_str(&position["lever_rate"].to_string()).unwrap();
|
|
|
let amount = Decimal::from_f64(position["volume"].as_f64().unwrap()).unwrap() * ct_val;
|
|
|
|