|
|
@@ -26,6 +26,9 @@ impl HandleSwapInfo {
|
|
|
ExchangeEnum::KucoinSwap => {
|
|
|
kucoin_handle::handle_account_info(res_data, symbol)
|
|
|
}
|
|
|
+ ExchangeEnum::BitgetSpot =>{
|
|
|
+ bitget_spot_handle::handle_account_info(res_data, symbol)
|
|
|
+ }
|
|
|
_ => {
|
|
|
error!("参数错误!handle_account_info: {:?}",exchange);
|
|
|
panic!("参数错误!handle_account_info: {:?}", exchange);
|
|
|
@@ -48,6 +51,9 @@ impl HandleSwapInfo {
|
|
|
ExchangeEnum::KucoinSwap => {
|
|
|
kucoin_handle::handle_special_ticker(res_data)
|
|
|
}
|
|
|
+ ExchangeEnum::BitgetSpot =>{
|
|
|
+ bitget_spot_handle::handle_special_ticker(res_data)
|
|
|
+ }
|
|
|
_ => {
|
|
|
error!("参数错误!handle_special_ticker: {:?}",exchange);
|
|
|
panic!("参数错误!handle_special_ticker: {:?}", exchange);
|
|
|
@@ -67,6 +73,10 @@ impl HandleSwapInfo {
|
|
|
ExchangeEnum::KucoinSwap => {
|
|
|
kucoin_handle::handle_position(res_data, amount_size)
|
|
|
}
|
|
|
+ ExchangeEnum::BitgetSpot =>{
|
|
|
+ error!("暂未提供此交易所方法!handle_position:{:?}", exchange);
|
|
|
+ panic!("暂未提供此交易所方法!handle_position:{:?}", exchange);
|
|
|
+ }
|
|
|
_ => {
|
|
|
error!("参数错误!handle_position: {:?}",exchange);
|
|
|
panic!("参数错误!handle_position: {:?}", exchange);
|
|
|
@@ -86,6 +96,9 @@ impl HandleSwapInfo {
|
|
|
ExchangeEnum::KucoinSwap => {
|
|
|
kucoin_handle::handle_order(res_data, amount_size)
|
|
|
}
|
|
|
+ ExchangeEnum::BitgetSpot =>{
|
|
|
+ bitget_spot_handle::handle_order(res_data, amount_size)
|
|
|
+ }
|
|
|
_ => {
|
|
|
error!("参数错误!handle_order: {:?}",exchange);
|
|
|
panic!("参数错误!handle_order: {:?}", exchange);
|