浏览代码

修改htx市价单下单数量

gepangpang 1 年之前
父节点
当前提交
2f1c405a16
共有 1 个文件被更改,包括 1 次插入0 次删除
  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");