Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/v2 api #69

Merged
merged 18 commits into from
Apr 6, 2024
Prev Previous commit
Next Next commit
Unused usings
JKorf committed Apr 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 16383dce3c09789078709ce551943a842a7f8d57
6 changes: 0 additions & 6 deletions CoinEx.Net/Clients/FuturesApi/CoinExRestClientFuturesApi.cs
Original file line number Diff line number Diff line change
@@ -4,22 +4,16 @@
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using CryptoExchange.Net.Objects;

Check failure on line 7 in CoinEx.Net/Clients/FuturesApi/CoinExRestClientFuturesApi.cs

GitHub Actions / build

The type or namespace name 'Objects' does not exist in the namespace 'CryptoExchange.Net' (are you missing an assembly reference?)
using CryptoExchange.Net.Authentication;

Check failure on line 8 in CoinEx.Net/Clients/FuturesApi/CoinExRestClientFuturesApi.cs

GitHub Actions / build

The type or namespace name 'Authentication' does not exist in the namespace 'CryptoExchange.Net' (are you missing an assembly reference?)
using CoinEx.Net.Objects.Internal;
using CryptoExchange.Net.CommonObjects;
using CryptoExchange.Net.Interfaces.CommonClients;
using Microsoft.Extensions.Logging;

Check failure on line 10 in CoinEx.Net/Clients/FuturesApi/CoinExRestClientFuturesApi.cs

GitHub Actions / build

The type or namespace name 'Logging' does not exist in the namespace 'Microsoft.Extensions' (are you missing an assembly reference?)
using CoinEx.Net.Objects.Options;
using CryptoExchange.Net.Interfaces;
using CryptoExchange.Net.Converters.MessageParsing;

Check failure on line 13 in CoinEx.Net/Clients/FuturesApi/CoinExRestClientFuturesApi.cs

GitHub Actions / build

The type or namespace name 'Converters' does not exist in the namespace 'CryptoExchange.Net' (are you missing an assembly reference?)
using CryptoExchange.Net.Clients;
using CryptoExchange.Net.Converters.SystemTextJson;
using CoinEx.Net.Objects.Models.V2;
using CoinEx.Net.Interfaces.Clients.SpotApiV2;
using CoinEx.Net.Enums;
using System.Linq;
using System.Globalization;
using CoinEx.Net.Interfaces.Clients.FuturesApi;

namespace CoinEx.Net.Clients.FuturesApi
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
using CoinEx.Net.Converters;
using CoinEx.Net.Enums;
using CryptoExchange.Net;
using CoinEx.Net.Enums;
using CryptoExchange.Net.Objects;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using CoinEx.Net.ExtensionMethods;
using CoinEx.Net.Objects.Models.V2;
using CoinEx.Net.Interfaces.Clients.SpotApiV2;
using System;
using CoinEx.Net.Interfaces.Clients.FuturesApi;

Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@
using System.Threading.Tasks;
using CoinEx.Net.Objects.Models.V2;
using CoinEx.Net.Enums;
using CoinEx.Net.Interfaces.Clients.SpotApiV2;
using CoinEx.Net.Interfaces.Clients.FuturesApi;
using System;

Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Objects;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using CoinEx.Net.Objects.Models.V2;
using System;
using CoinEx.Net.Interfaces.Clients.SpotApiV2;
using CryptoExchange.Net;
using CoinEx.Net.Interfaces.Clients.FuturesApi;

Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@
using CoinEx.Net.Objects.Sockets.V2.Subscriptions;
using CoinEx.Net.Objects.Sockets.V2.Queries;
using System.Linq;
using CoinEx.Net.Interfaces.Clients.SpotApiV2;
using CoinEx.Net.Interfaces.Clients.FuturesApi;

namespace CoinEx.Net.Clients.FuturesApi
1 change: 0 additions & 1 deletion CoinEx.Net/Clients/SpotApiV1/CoinExRestClientSpotApi.cs
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@
using CryptoExchange.Net.CommonObjects;
using System.Globalization;
using CryptoExchange.Net.Interfaces.CommonClients;
using Newtonsoft.Json.Linq;
using Microsoft.Extensions.Logging;
using CoinEx.Net.Objects.Options;
using CryptoExchange.Net.Interfaces;
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using CoinEx.Net.Converters;
using CoinEx.Net.Enums;
using CryptoExchange.Net;
using CoinEx.Net.Enums;
using CryptoExchange.Net.Objects;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using CoinEx.Net.ExtensionMethods;
using CoinEx.Net.Objects.Models.V2;
using CoinEx.Net.Interfaces.Clients.SpotApiV2;
using System;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Objects;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
2 changes: 0 additions & 2 deletions CoinEx.Net/CoinExV2AuthenticationProvider.cs
Original file line number Diff line number Diff line change
@@ -4,8 +4,6 @@
using System.Collections.Generic;
using System.Net.Http;
using CryptoExchange.Net.Objects;
using CryptoExchange.Net.Interfaces;
using CoinEx.Net.Objects.Internal;
using System.Linq;
using CryptoExchange.Net.Clients;
using CryptoExchange.Net.Converters.SystemTextJson;
1 change: 0 additions & 1 deletion CoinEx.Net/Converters/KlineIntervalConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Converters;
using System.Collections.Generic;

namespace CoinEx.Net.Converters
1 change: 0 additions & 1 deletion CoinEx.Net/Converters/OrderOptionConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Converters;
using System.Collections.Generic;

namespace CoinEx.Net.Converters
1 change: 0 additions & 1 deletion CoinEx.Net/Converters/OrderSideConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Converters;
using System.Collections.Generic;

namespace CoinEx.Net.Converters
1 change: 0 additions & 1 deletion CoinEx.Net/Converters/OrderSideIntConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Converters;
using System.Collections.Generic;

namespace CoinEx.Net.Converters
1 change: 0 additions & 1 deletion CoinEx.Net/Converters/OrderStatusConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Converters;
using System.Collections.Generic;

namespace CoinEx.Net.Converters
1 change: 0 additions & 1 deletion CoinEx.Net/Converters/OrderTypeConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Converters;
using System.Collections.Generic;

namespace CoinEx.Net.Converters
1 change: 0 additions & 1 deletion CoinEx.Net/Converters/OrderTypeIntConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Converters;
using System.Collections.Generic;

namespace CoinEx.Net.Converters
1 change: 0 additions & 1 deletion CoinEx.Net/Converters/TransactionRoleConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Converters;
using System.Collections.Generic;

namespace CoinEx.Net.Converters
1 change: 0 additions & 1 deletion CoinEx.Net/Converters/UpdateTypeConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Converters;
using System.Collections.Generic;

namespace CoinEx.Net.Converters
1 change: 0 additions & 1 deletion CoinEx.Net/Converters/WithdrawStatusConverter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CoinEx.Net.Enums;
using CryptoExchange.Net.Converters;
using System.Collections.Generic;

namespace CoinEx.Net.Converters
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/AccountType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/BorrowStatus.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/ContractType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/DepositStatus.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
6 changes: 1 addition & 5 deletions CoinEx.Net/Enums/MarginMode.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
namespace CoinEx.Net.Enums
{
/// <summary>
/// Margin mode
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/MovementMethod.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/OrderStatusV2.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/OrderTypeV2.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/OrderUpdateType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/PositionSide.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/PositionUpdateType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/PriceType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/StopOrderUpdateType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/TransferStatus.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/TriggerDirection.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/TriggerPriceType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
3 changes: 0 additions & 3 deletions CoinEx.Net/Enums/WithdrawStatusV2.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using CryptoExchange.Net.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoinEx.Net.Enums
{
5 changes: 1 addition & 4 deletions CoinEx.Net/ExtensionMethods/CoinExExtensionMethods.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Text.RegularExpressions;

namespace CoinEx.Net.ExtensionMethods
namespace CoinEx.Net.ExtensionMethods
{
/// <summary>
/// Extension methods specific to using the CoinEx API
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CryptoExchange.Net.Interfaces;
using CryptoExchange.Net.Interfaces.CommonClients;
using System;

namespace CoinEx.Net.Interfaces.Clients.FuturesApi
Original file line number Diff line number Diff line change
@@ -4,9 +4,6 @@
using CoinEx.Net.Objects.Models.V2;
using CoinEx.Net.Enums;
using System.Collections.Generic;
using System.Diagnostics.Metrics;
using System.Text.RegularExpressions;
using System;

namespace CoinEx.Net.Interfaces.Clients.FuturesApi
{
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@
using System.Threading;
using System.Threading.Tasks;
using CoinEx.Net.Objects.Models.V2;
using System.Collections.Generic;
using System;

namespace CoinEx.Net.Interfaces.Clients.FuturesApi
Original file line number Diff line number Diff line change
@@ -2,9 +2,6 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using CoinEx.Net.Enums;
using CoinEx.Net.Objects.Models;
using CoinEx.Net.Objects.Models.Socket;
using CoinEx.Net.Objects.Models.V2;
using CryptoExchange.Net.Interfaces;
using CryptoExchange.Net.Objects;
Original file line number Diff line number Diff line change
@@ -4,8 +4,6 @@
using CoinEx.Net.Objects.Models.V2;
using CoinEx.Net.Enums;
using System.Collections.Generic;
using System.Diagnostics.Metrics;
using System.Text.RegularExpressions;
using System;

namespace CoinEx.Net.Interfaces.Clients.SpotApiV2
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@
using System.Threading;
using System.Threading.Tasks;
using CoinEx.Net.Objects.Models.V2;
using System.Collections.Generic;
using System;

namespace CoinEx.Net.Interfaces.Clients.SpotApiV2
Original file line number Diff line number Diff line change
@@ -2,9 +2,6 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using CoinEx.Net.Enums;
using CoinEx.Net.Objects.Models;
using CoinEx.Net.Objects.Models.Socket;
using CoinEx.Net.Objects.Models.V2;
using CryptoExchange.Net.Interfaces;
using CryptoExchange.Net.Objects;
1 change: 0 additions & 1 deletion CoinEx.Net/Objects/Models/CoinExBalance.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using CoinEx.Net.Converters;
using CryptoExchange.Net.Converters;
using Newtonsoft.Json;

namespace CoinEx.Net.Objects.Models
1 change: 0 additions & 1 deletion CoinEx.Net/Objects/Models/CoinExDeposit.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using CoinEx.Net.Converters;
using CryptoExchange.Net.Converters;
using Newtonsoft.Json;

namespace CoinEx.Net.Objects.Models
1 change: 0 additions & 1 deletion CoinEx.Net/Objects/Models/CoinExDepositAddress.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using CryptoExchange.Net.Converters;
using Newtonsoft.Json;

namespace CoinEx.Net.Objects.Models
1 change: 0 additions & 1 deletion CoinEx.Net/Objects/Models/CoinExMiningDifficulty.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using CryptoExchange.Net.Converters;
using Newtonsoft.Json;

namespace CoinEx.Net.Objects.Models
Loading

Unchanged files with check annotations Beta

using CoinEx.Net.Interfaces.Clients;
using CryptoExchange.Net.Authentication;

Check failure on line 2 in CoinEx.Net/Clients/CoinExRestClient.cs

GitHub Actions / build

The type or namespace name 'Authentication' does not exist in the namespace 'CryptoExchange.Net' (are you missing an assembly reference?)
using Microsoft.Extensions.Logging;

Check failure on line 3 in CoinEx.Net/Clients/CoinExRestClient.cs

GitHub Actions / build

The type or namespace name 'Logging' does not exist in the namespace 'Microsoft.Extensions' (are you missing an assembly reference?)
using System.Net.Http;
using System;
using CoinEx.Net.Objects.Options;
using CryptoExchange.Net.Clients;

Check failure on line 7 in CoinEx.Net/Clients/CoinExRestClient.cs

GitHub Actions / build

The type or namespace name 'Clients' does not exist in the namespace 'CryptoExchange.Net' (are you missing an assembly reference?)
using CoinEx.Net.Interfaces.Clients.FuturesApi;
using CoinEx.Net.Clients.FuturesApi;
using CoinEx.Net.Interfaces.Clients;
using CryptoExchange.Net.Authentication;

Check failure on line 2 in CoinEx.Net/Clients/CoinExSocketClient.cs

GitHub Actions / build

The type or namespace name 'Authentication' does not exist in the namespace 'CryptoExchange.Net' (are you missing an assembly reference?)
using Microsoft.Extensions.Logging;

Check failure on line 3 in CoinEx.Net/Clients/CoinExSocketClient.cs

GitHub Actions / build

The type or namespace name 'Logging' does not exist in the namespace 'Microsoft.Extensions' (are you missing an assembly reference?)
using System;
using CoinEx.Net.Objects.Options;
using CryptoExchange.Net.Clients;

Check failure on line 6 in CoinEx.Net/Clients/CoinExSocketClient.cs

GitHub Actions / build

The type or namespace name 'Clients' does not exist in the namespace 'CryptoExchange.Net' (are you missing an assembly reference?)
using CoinEx.Net.Interfaces.Clients.FuturesApi;
using CoinEx.Net.Clients.FuturesApi;