Forráskód Böngészése

修改htx市价单下单数量

gepangpang 1 éve
szülő
commit
2f1c405a16
1 módosított fájl, 1 hozzáadás és 0 törlés
  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");