Bladeren bron

exchange 添加 clone

gepangpang 2 jaren geleden
bovenliggende
commit
2cf1b2747e
2 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  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 {