Explorar el Código

可以清除仓位。

skyffire hace 1 año
padre
commit
302204d63b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      standard/src/bybit_swap.rs

+ 1 - 1
standard/src/bybit_swap.rs

@@ -420,7 +420,7 @@ impl Platform for BybitSwap {
             "orderType": order_type,
             "qty": json!(size),
             // 0.單向持倉 1.買側雙向持倉 2.賣側雙向持倉
-            "positionIdx": json!(1),
+            "positionIdx": json!(0),
             "reduceOnly": json!(false)
         });