浏览代码

准备写ok交易所。

skyfffire 1 年之前
父节点
当前提交
3148557e21
共有 2 个文件被更改,包括 29 次插入1 次删除
  1. 2 1
      strategy/src/lib.rs
  2. 27 0
      strategy/src/okx_usdt_swap.rs

+ 2 - 1
strategy/src/lib.rs

@@ -10,4 +10,5 @@ mod binance_spot;
 mod gate_swap;
 mod kucoin_swap;
 mod kucoin_spot;
-mod bitget_spot;
+mod bitget_spot;
+mod okx_usdt_swap;

+ 27 - 0
strategy/src/okx_usdt_swap.rs

@@ -0,0 +1,27 @@
+// use std::collections::BTreeMap;
+// use std::sync::Arc;
+// use std::sync::atomic::AtomicBool;
+// use rust_decimal::Decimal;
+// use tokio::sync::Mutex;
+// use exchanges::response_base::ResponseData;
+// use crate::quant::Quant;
+
+// pub async fn okex_swap_run(bool_v1: Arc<AtomicBool>,
+//                            is_trade: bool,
+//                            quant_arc: Arc<Mutex<Quant>>,
+//                            name: String,
+//                            symbols: Vec<String>,
+//                            is_colo: bool,
+//                            exchange_params: BTreeMap<String, String>) {
+//
+// }
+//
+// async fn on_data(bot_arc_clone: Arc<Mutex<Quant>>,
+//                  update_flag_u: &mut Decimal,
+//                  multiplier: Decimal,
+//                  run_symbol: String,
+//                  max_buy: &mut Decimal,
+//                  min_sell: &mut Decimal,
+//                  data: ResponseData) {
+//
+// }