浏览代码

binance_usdt_spot -> binance_spot

skyfffire 2 年之前
父节点
当前提交
63a545600a
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      config.toml.sample
  2. 1 1
      strategy/src/exchange_disguise.rs
  3. 1 1
      strategy/src/quant.rs

+ 1 - 1
config.toml.sample

@@ -20,7 +20,7 @@ close = 0.0002
 lever_rate = 0.1
 # quant的run_strategy函数,用于定期检查使用,单位是毫秒
 interval = 100
-# 参考交易所,可选[gate_usdt_swap, kucoin_usdt_swap, binance_usdt_swap, binance_usdt_spot]
+# 参考交易所,可选[gate_usdt_swap, kucoin_usdt_swap, binance_usdt_swap, binance_spot]
 ref_exchange = ["binance_usdt_swap"]
 # 参考交易对
 ref_pair = ["blz_usdt"]

+ 1 - 1
strategy/src/exchange_disguise.rs

@@ -42,7 +42,7 @@ pub async fn run_reference_exchange(bool_v1 :Arc<AtomicBool>, exchange_name: Str
         "binance_usdt_swap" => {
             reference_binance_swap_run(bool_v1, quant_arc, name, symbols, exchange_params).await;
         }
-        "binance_usdt_spot" => {
+        "binance_spot" => {
             reference_binance_spot_run(bool_v1, quant_arc, name, symbols, exchange_params).await;
         }
         "gate_usdt_swap" => {

+ 1 - 1
strategy/src/quant.rs

@@ -192,7 +192,7 @@ impl Quant {
                 "binance_usdt_swap" => {
                     Exchange::new(BinanceSwap, symbol, params.colo != 0i8, exchange_params, order_sender, error_sender).await
                 },
-                "binance_usdt_spot" => {
+                "binance_spot" => {
                     Exchange::new(BinanceSpot, symbol, params.colo != 0i8, exchange_params, order_sender, error_sender).await
                 }
                 _ => {