|
|
@@ -239,6 +239,7 @@ impl Platform for KucoinSwap {
|
|
|
"clientOid": custom_id,
|
|
|
"symbol": symbol_format,
|
|
|
"leverage": "10",
|
|
|
+ "reduceOnly":false,
|
|
|
"price": price.to_string(),
|
|
|
});
|
|
|
let size = (amount / amount_size).floor();
|
|
|
@@ -248,13 +249,15 @@ impl Platform for KucoinSwap {
|
|
|
params["side"] = json!("buy");
|
|
|
}
|
|
|
"pd" => {
|
|
|
- params["side"] = json!("sell")
|
|
|
+ params["side"] = json!("sell");
|
|
|
+ params["reduceOnly"] = json!(true);
|
|
|
}
|
|
|
"kk" => {
|
|
|
params["side"] = json!("sell");
|
|
|
}
|
|
|
"pk" => {
|
|
|
params["side"] = json!("buy");
|
|
|
+ params["reduceOnly"] = json!(true);
|
|
|
}
|
|
|
_ => { error!("下单参数错误"); }
|
|
|
};
|