|
|
@@ -18,7 +18,7 @@ use global::params::Params;
|
|
|
use global::trace_stack::TraceStack;
|
|
|
use standard::{Account, Market, Order, Platform, Position, PositionModeEnum, SpecialTicker};
|
|
|
use standard::exchange::{Exchange};
|
|
|
-use standard::exchange::ExchangeEnum::{BinanceSwap, BitgetSwap, BybitSwap, CoinexSwap, GateSwap, HtxSwap, KucoinSwap};
|
|
|
+use standard::exchange::ExchangeEnum::{BinanceSwap, BitgetSwap, BybitSwap, CoinexSwap, GateSwap, HtxSwap, KucoinSwap, PhemexSwap};
|
|
|
|
|
|
use crate::model::{LocalPosition, OrderInfo};
|
|
|
use crate::predictor::Predictor;
|
|
|
@@ -232,6 +232,10 @@ impl ClearCore {
|
|
|
"htx_usdt_swap" => {
|
|
|
Exchange::new(HtxSwap, symbol, params.colo != 0i8, exchange_params, order_sender, error_sender).await
|
|
|
}
|
|
|
+ "phemex_usdt_swap" => {
|
|
|
+ // standard::utils::proxy_handle(Some("phemex"));
|
|
|
+ Exchange::new(PhemexSwap, symbol, params.colo != 0i8, exchange_params, order_sender, error_sender).await
|
|
|
+ }
|
|
|
_ => {
|
|
|
error!("203未找到对应的交易所rest枚举!");
|
|
|
panic!("203未找到对应的交易所rest枚举!");
|