3737using CryptoExchange . Net . Objects . Options ;
3838using CryptoExchange . Net . Objects . Sockets ;
3939using CryptoExchange . Net . SharedApis ;
40+ using DeepCoin . Net . Clients ;
41+ using DeepCoin . Net . Interfaces . Clients ;
42+ using DeepCoin . Net . Objects ;
43+ using DeepCoin . Net . Objects . Options ;
4044using GateIo . Net . Clients ;
4145using GateIo . Net . Interfaces . Clients ;
4246using GateIo . Net . Objects . Options ;
@@ -100,6 +104,8 @@ public class ExchangeSocketClient : IExchangeSocketClient
100104 /// <inheritdoc />
101105 public ICryptoComSocketClient CryptoCom { get ; }
102106 /// <inheritdoc />
107+ public IDeepCoinSocketClient DeepCoin { get ; }
108+ /// <inheritdoc />
103109 public IGateIoSocketClient GateIo { get ; }
104110 /// <inheritdoc />
105111 public IHTXSocketClient HTX { get ; }
@@ -208,6 +214,7 @@ public ExchangeSocketClient()
208214 Coinbase = new CoinbaseSocketClient ( ) ;
209215 CoinEx = new CoinExSocketClient ( ) ;
210216 CryptoCom = new CryptoComSocketClient ( ) ;
217+ DeepCoin = new DeepCoinSocketClient ( ) ;
211218 GateIo = new GateIoSocketClient ( ) ;
212219 HTX = new HTXSocketClient ( ) ;
213220 HyperLiquid = new HyperLiquidSocketClient ( ) ;
@@ -236,6 +243,7 @@ public ExchangeSocketClient(
236243 Action < CoinExSocketOptions > ? coinExSocketOptions = null ,
237244 Action < CoinbaseSocketOptions > ? coinbaseSocketOptions = null ,
238245 Action < CryptoComSocketOptions > ? cryptoComSocketOptions = null ,
246+ Action < DeepCoinSocketOptions > ? deepCoinSocketOptions = null ,
239247 Action < GateIoSocketOptions > ? gateIoSocketOptions = null ,
240248 Action < HTXSocketOptions > ? htxSocketOptions = null ,
241249 Action < HyperLiquidSocketOptions > ? hyperLiquidSocketOptions = null ,
@@ -280,6 +288,7 @@ Action<TOptions> SetGlobalSocketOptions<TOptions, TCredentials>(GlobalExchangeOp
280288 coinbaseSocketOptions = SetGlobalSocketOptions ( global , coinbaseSocketOptions , credentials ? . Coinbase ) ;
281289 coinExSocketOptions = SetGlobalSocketOptions ( global , coinExSocketOptions , credentials ? . CoinEx ) ;
282290 cryptoComSocketOptions = SetGlobalSocketOptions ( global , cryptoComSocketOptions , credentials ? . CryptoCom ) ;
291+ deepCoinSocketOptions = SetGlobalSocketOptions ( global , deepCoinSocketOptions , credentials ? . DeepCoin ) ;
283292 gateIoSocketOptions = SetGlobalSocketOptions ( global , gateIoSocketOptions , credentials ? . GateIo ) ;
284293 htxSocketOptions = SetGlobalSocketOptions ( global , htxSocketOptions , credentials ? . HTX ) ;
285294 hyperLiquidSocketOptions = SetGlobalSocketOptions ( global , hyperLiquidSocketOptions , credentials ? . HyperLiquid ) ;
@@ -303,6 +312,7 @@ Action<TOptions> SetGlobalSocketOptions<TOptions, TCredentials>(GlobalExchangeOp
303312 HTX = new HTXSocketClient ( htxSocketOptions ?? new Action < HTXSocketOptions > ( ( x ) => { } ) ) ;
304313 HyperLiquid = new HyperLiquidSocketClient ( hyperLiquidSocketOptions ?? new Action < HyperLiquidSocketOptions > ( ( x ) => { } ) ) ;
305314 CryptoCom = new CryptoComSocketClient ( cryptoComSocketOptions ?? new Action < CryptoComSocketOptions > ( ( x ) => { } ) ) ;
315+ DeepCoin = new DeepCoinSocketClient ( deepCoinSocketOptions ?? new Action < DeepCoinSocketOptions > ( ( x ) => { } ) ) ;
306316 GateIo = new GateIoSocketClient ( gateIoSocketOptions ?? new Action < GateIoSocketOptions > ( ( x ) => { } ) ) ;
307317 Kraken = new KrakenSocketClient ( krakenSocketOptions ?? new Action < KrakenSocketOptions > ( ( x ) => { } ) ) ;
308318 Kucoin = new KucoinSocketClient ( kucoinSocketOptions ?? new Action < KucoinSocketOptions > ( ( x ) => { } ) ) ;
@@ -328,6 +338,7 @@ public ExchangeSocketClient(
328338 ICoinbaseSocketClient coinbase ,
329339 ICoinExSocketClient coinEx ,
330340 ICryptoComSocketClient cryptoCom ,
341+ IDeepCoinSocketClient deepCoin ,
331342 IGateIoSocketClient gateIo ,
332343 IHTXSocketClient htx ,
333344 IHyperLiquidSocketClient hyperLiquid ,
@@ -348,6 +359,7 @@ public ExchangeSocketClient(
348359 Coinbase = coinbase ;
349360 CoinEx = coinEx ;
350361 CryptoCom = cryptoCom ;
362+ DeepCoin = deepCoin ;
351363 GateIo = gateIo ;
352364 HTX = htx ;
353365 HyperLiquid = hyperLiquid ;
@@ -384,6 +396,7 @@ private void InitSharedClients()
384396 CoinEx . SpotApiV2 . SharedClient ,
385397 CoinEx . FuturesApi . SharedClient ,
386398 CryptoCom . ExchangeApi . SharedClient ,
399+ DeepCoin . ExchangeApi . SharedClient ,
387400 GateIo . SpotApi . SharedClient ,
388401 GateIo . PerpetualFuturesApi . SharedClient ,
389402 HTX . SpotApi . SharedClient ,
@@ -426,6 +439,7 @@ public void SetApiCredentials(string exchange, string apiKey, string apiSecret,
426439 case "Coinbase" : Coinbase . SetApiCredentials ( new ApiCredentials ( apiKey , apiSecret ) ) ; break ;
427440 case "CoinEx" : CoinEx . SetApiCredentials ( new ApiCredentials ( apiKey , apiSecret ) ) ; break ;
428441 case "CryptoCom" : CryptoCom . SetApiCredentials ( new ApiCredentials ( apiKey , apiSecret ) ) ; break ;
442+ case "DeepCoin" : DeepCoin . SetApiCredentials ( new DeepCoinApiCredentials ( apiKey , apiSecret , apiPass ?? throw new ArgumentException ( "ApiPass required for DeepCoin credentials" , nameof ( apiPass ) ) ) ) ; break ;
429443 case "GateIo" : GateIo . SetApiCredentials ( new ApiCredentials ( apiKey , apiSecret ) ) ; break ;
430444 case "HTX" : HTX . SetApiCredentials ( new ApiCredentials ( apiKey , apiSecret ) ) ; break ;
431445 case "HyperLiquid" : HyperLiquid . SetApiCredentials ( new ApiCredentials ( apiKey , apiSecret ) ) ; break ;
@@ -648,6 +662,7 @@ public async Task UnsubscribeAllAsync()
648662 Coinbase . UnsubscribeAllAsync ( ) ,
649663 CoinEx . UnsubscribeAllAsync ( ) ,
650664 CryptoCom . UnsubscribeAllAsync ( ) ,
665+ DeepCoin . UnsubscribeAllAsync ( ) ,
651666 GateIo . UnsubscribeAllAsync ( ) ,
652667 HTX . UnsubscribeAllAsync ( ) ,
653668 HyperLiquid . UnsubscribeAllAsync ( ) ,
0 commit comments