Przeglądaj źródła

修改htx市价单下单数量

gepangpang 1 rok temu
rodzic
commit
2f1c405a16
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      standard/src/htx_swap.rs

+ 1 - 0
standard/src/htx_swap.rs

@@ -297,6 +297,7 @@ impl Platform for HtxSwap {
         });
         if price.eq(&Decimal::ZERO) {
             params["order_price_type"] = json!("market");
+            params["volume"] = json!(amount.to_string());
         } else {
             params["price"] = json!(price.to_string());
             params["order_price_type"] = json!("limit");