@@ -111,7 +111,7 @@ pub fn handle_force_order(res_data: &ResponseData) -> ForceOrder {
let side = json_value["side"].as_str().unwrap().to_string();
let price = Decimal::from_str(json_value["price"].as_str().unwrap()).unwrap();
let mut amount = Decimal::from_str(json_value["size"].as_str().unwrap()).unwrap();
- if side == "Sell" {
+ if side == "Buy" {
amount = -amount
}
let mut value = price * amount;