Explorar el Código

exchange 添加 clone

gepangpang hace 2 años
padre
commit
2cf1b2747e
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      standard/src/binance_swap.rs
  2. 1 1
      standard/src/exchange.rs

+ 1 - 0
standard/src/binance_swap.rs

@@ -1,6 +1,7 @@
 use std::collections::BTreeMap;
 use std::io::{Error, ErrorKind};
 use std::result::Result;
+
 use async_trait::async_trait;
 use rust_decimal::Decimal;
 use rust_decimal_macros::dec;

+ 1 - 1
standard/src/exchange.rs

@@ -50,7 +50,7 @@ pub enum ExchangeEnum {
 /// params.insert("access_key".to_string(), "your_access_key".to_string());
 /// params.insert("access_key".to_string(), "your_secret_key".to_string());
 /// let exchange = Exchange::new(ExchangeEnum::BinanceSwap, "BTC_USDT".to_string(), false, params);
-#[derive(Debug)]
+#[derive(Debug, Clone)]
 pub struct Exchange;
 
 impl Exchange {