Skip to content

Commit

Permalink
Removed deprecated V1 and V2 API's
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Feb 26, 2024
1 parent 8d440d6 commit bc05fb7
Show file tree
Hide file tree
Showing 47 changed files with 5 additions and 8,087 deletions.
30 changes: 0 additions & 30 deletions ByBit.Net/Clients/BybitRestClient.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
using Bybit.Net.Clients.CopyTradingApi;
using Bybit.Net.Clients.GeneralApi;
using Bybit.Net.Clients.InverseFuturesApi;
using Bybit.Net.Clients.InversePerpetualApi;
using Bybit.Net.Clients.UsdPerpetualApi;
using Bybit.Net.Interfaces.Clients;
using Bybit.Net.Interfaces.Clients.CopyTradingApi;
using Bybit.Net.Interfaces.Clients.GeneralApi;
using Bybit.Net.Interfaces.Clients.InverseFuturesApi;
using Bybit.Net.Interfaces.Clients.InversePerpetualApi;
using Bybit.Net.Interfaces.Clients.SpotApi.v1;
using Bybit.Net.Interfaces.Clients.UsdPerpetualApi;
using CryptoExchange.Net;
using Bybit.Net.Clients.SpotApi.v1;
using Bybit.Net.Clients.SpotApi.v3;
using Bybit.Net.Interfaces.Clients.SpotApi.v3;
using Bybit.Net.Interfaces.Clients.DerivativesApi;
Expand All @@ -27,19 +17,9 @@ namespace Bybit.Net.Clients
/// <inheritdoc cref="IBybitRestClient" />
public class BybitRestClient : BaseRestClient, IBybitRestClient
{
/// <inheritdoc />
public IBybitRestClientGeneralApi GeneralApi { get; }
/// <inheritdoc />
public IBybitRestClientSpotApiV1 SpotApiV1 { get; }
/// <inheritdoc />
public IBybitRestClientSpotApiV3 SpotApiV3 { get; }
/// <inheritdoc />
public IBybitRestClientInversePerpetualApi InversePerpetualApi { get; }
/// <inheritdoc />
public IBybitRestClientInverseFuturesApi InverseFuturesApi { get; }
/// <inheritdoc />
public IBybitRestClientUsdPerpetualApi UsdPerpetualApi { get; }
/// <inheritdoc />
public IBybitRestClientCopyTradingApi CopyTradingApi { get; }
/// <inheritdoc />
public IBybitRestClientDerivativesApi DerivativesApi { get; }
Expand Down Expand Up @@ -69,12 +49,7 @@ public BybitRestClient(HttpClient? httpClient, ILoggerFactory? loggerFactory, Ac
optionsDelegate(options);
Initialize(options);

InversePerpetualApi = AddApiClient(new BybitRestClientInversePerpetualApi(_logger, httpClient, options));
InverseFuturesApi = AddApiClient(new BybitRestClientInverseFuturesApi(_logger, httpClient, options));
UsdPerpetualApi = AddApiClient(new BybitRestClientUsdPerpetualApi(_logger, httpClient, options));
SpotApiV1 = AddApiClient(new BybitRestClientSpotApiV1(_logger, httpClient, options));
SpotApiV3 = AddApiClient(new BybitRestClientSpotApiV3(_logger, httpClient, options));
GeneralApi = AddApiClient(new BybitRestClientGeneralApi(_logger, this, httpClient, options));
CopyTradingApi = AddApiClient(new BybitRestClientCopyTradingApi(_logger, httpClient, options));
DerivativesApi = AddApiClient(new BybitRestClientDerivativesApi(_logger, httpClient, options));
V5Api = AddApiClient(new V5.BybitRestClientApi(_logger, httpClient, options));
Expand All @@ -96,12 +71,7 @@ public static void SetDefaultOptions(Action<BybitRestOptions> optionsDelegate)
/// <inheritdoc />
public void SetApiCredentials(ApiCredentials credentials)
{
InversePerpetualApi.SetApiCredentials(credentials);
InverseFuturesApi.SetApiCredentials(credentials);
UsdPerpetualApi.SetApiCredentials(credentials);
SpotApiV1.SetApiCredentials(credentials);
SpotApiV3.SetApiCredentials(credentials);
GeneralApi.SetApiCredentials(credentials);
CopyTradingApi.SetApiCredentials(credentials);
DerivativesApi.SetApiCredentials(credentials);
V5Api.SetApiCredentials(credentials);
Expand Down
1 change: 0 additions & 1 deletion ByBit.Net/Clients/BybitSocketClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using CryptoExchange.Net;
using System;
using Bybit.Net.Interfaces.Clients;
using Bybit.Net.Interfaces.Clients.UsdPerpetualApi;
using Bybit.Net.Interfaces.Clients.SpotApi.v3;
using Bybit.Net.Interfaces.Clients.DerivativesApi.UnifiedMarginApi;
using Bybit.Net.Interfaces.Clients.DerivativesApi.ContractApi;
Expand Down
101 changes: 0 additions & 101 deletions ByBit.Net/Clients/GeneralApi/BybitRestClientGeneralApi.cs

This file was deleted.

Loading

0 comments on commit bc05fb7

Please sign in to comment.