Skip to content

Commit

Permalink
Revert "Feature/shared"
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf authored Sep 27, 2024
1 parent 79783bf commit 6bb45e7
Show file tree
Hide file tree
Showing 27 changed files with 311 additions and 4,656 deletions.
38 changes: 16 additions & 22 deletions CryptoClients.Net/CryptoClients.Net.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<Nullable>enable</Nullable>
Expand Down Expand Up @@ -37,32 +37,26 @@
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup Label="Deterministic Build" Condition="'$(Configuration)' == 'Release'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ConfigureAwaitChecker.Analyzer" Version="5.0.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Binance.Net" Version="10.5.0" />
<PackageReference Include="Bitfinex.Net" Version="7.8.0" />
<PackageReference Include="BitMart.Net" Version="1.2.0" />
<PackageReference Include="Bybit.Net" Version="3.14.0" />
<PackageReference Include="CoinEx.Net" Version="7.7.0" />
<PackageReference Include="CoinGecko.Net" Version="2.6.0" />
<PackageReference Include="GateIo.Net" Version="1.6.0" />
<PackageReference Include="JK.BingX.Net" Version="1.11.0" />
<PackageReference Include="JK.Bitget.Net" Version="1.10.0" />
<PackageReference Include="JK.Mexc.Net" Version="1.8.0" />
<PackageReference Include="JK.OKX.Net" Version="2.4.0" />
<PackageReference Include="JKorf.HTX.Net" Version="6.1.0" />
<PackageReference Include="KrakenExchange.Net" Version="4.12.0" />
<PackageReference Include="Kucoin.Net" Version="5.14.0" />
<PackageReference Include="Binance.Net" Version="10.2.1" />
<PackageReference Include="Bitfinex.Net" Version="7.7.0" />
<PackageReference Include="BitMart.Net" Version="1.1.1" />
<PackageReference Include="Bybit.Net" Version="3.13.1" />
<PackageReference Include="CoinEx.Net" Version="7.6.0" />
<PackageReference Include="CoinGecko.Net" Version="2.5.0" />
<PackageReference Include="GateIo.Net" Version="1.5.0" />
<PackageReference Include="JK.BingX.Net" Version="1.9.0" />
<PackageReference Include="JK.Bitget.Net" Version="1.9.1" />
<PackageReference Include="JK.Mexc.Net" Version="1.7.2" />
<PackageReference Include="JK.OKX.Net" Version="2.3.0" />
<PackageReference Include="JKorf.HTX.Net" Version="6.0.2" />
<PackageReference Include="KrakenExchange.Net" Version="4.11.0" />
<PackageReference Include="Kucoin.Net" Version="5.12.0" />
</ItemGroup>
<PropertyGroup>
<DocumentationFile>CryptoClients.Net.xml</DocumentationFile>
Expand Down
1,843 changes: 68 additions & 1,775 deletions CryptoClients.Net/CryptoClients.Net.xml

Large diffs are not rendered by default.

66 changes: 15 additions & 51 deletions CryptoClients.Net/Enums/Exchange.cs
Original file line number Diff line number Diff line change
@@ -1,97 +1,61 @@
using Binance.Net;
using BingX.Net;
using Bitfinex.Net;
using Bitget.Net;
using BitMart.Net;
using Bybit.Net;
using CoinEx.Net;
using GateIo.Net;
using HTX.Net;
using Kraken.Net;
using Kucoin.Net;
using Mexc.Net;
using OKX.Net;
using System.Collections;
using System.Collections.Generic;

namespace CryptoClients.Net.Enums
namespace CryptoClients.Net.Enums
{
/// <summary>
/// Exchange
/// </summary>
public static class Exchange
public enum Exchange
{
/// <summary>
/// Binance
/// </summary>
public static string Binance => BinanceExchange.ExchangeName;
Binance,
/// <summary>
/// BingX
/// </summary>
public static string BingX => BingXExchange.ExchangeName;
BingX,
/// <summary>
/// Bitfinex
/// </summary>
public static string Bitfinex => BitfinexExchange.ExchangeName;
Bitfinex,
/// <summary>
/// Bitget
/// </summary>
public static string Bitget => BitgetExchange.ExchangeName;
Bitget,
/// <summary>
/// BitMart
/// </summary>
public static string BitMart => BitMartExchange.ExchangeName;
BitMart,
/// <summary>
/// Bybit
/// </summary>
public static string Bybit => BybitExchange.ExchangeName;
Bybit,
/// <summary>
/// CoinEx
/// </summary>
public static string CoinEx => CoinExExchange.ExchangeName;
CoinEx,
/// <summary>
/// Gate.io
/// </summary>
public static string GateIo => "GateIo";
GateIo,
/// <summary>
/// HTX
/// </summary>
public static string HTX => HTXExchange.ExchangeName;
HTX,
/// <summary>
/// Kraken
/// </summary>
public static string Kraken => KrakenExchange.ExchangeName;
Kraken,
/// <summary>
/// Kucoin
/// </summary>
public static string Kucoin => KucoinExchange.ExchangeName;
Kucoin,
/// <summary>
/// Mexc
/// </summary>
public static string Mexc => MexcExchange.ExchangeName;
Mexc,
/// <summary>
/// OKX
/// </summary>
public static string OKX => OKXExchange.ExchangeName;

/// <summary>
/// All exchange names
/// </summary>
public static string[] All { get; } = new[]
{
Binance,
BingX,
Bitfinex,
Bitget,
BitMart,
Bybit,
CoinEx,
GateIo,
HTX,
Kraken,
Kucoin,
Mexc,
OKX
};
OKX
}
}
Loading

0 comments on commit 6bb45e7

Please sign in to comment.