Skip to content

Commit

Permalink
CryptoExchange.Net v8.0.0, shared interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf authored Sep 27, 2024
2 parents 468d039 + d76e488 commit 79783bf
Show file tree
Hide file tree
Showing 27 changed files with 4,660 additions and 315 deletions.
38 changes: 22 additions & 16 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,26 +37,32 @@
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup Label="Deterministic Build" Condition="'$(Configuration)' == 'Release'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<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" />
<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" />
</ItemGroup>
<PropertyGroup>
<DocumentationFile>CryptoClients.Net.xml</DocumentationFile>
Expand Down
1,851 changes: 1,779 additions & 72 deletions CryptoClients.Net/CryptoClients.Net.xml

Large diffs are not rendered by default.

66 changes: 51 additions & 15 deletions CryptoClients.Net/Enums/Exchange.cs
Original file line number Diff line number Diff line change
@@ -1,61 +1,97 @@
namespace CryptoClients.Net.Enums
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
{
/// <summary>
/// Exchange
/// </summary>
public enum Exchange
public static class Exchange
{
/// <summary>
/// Binance
/// </summary>
Binance,
public static string Binance => BinanceExchange.ExchangeName;
/// <summary>
/// BingX
/// </summary>
BingX,
public static string BingX => BingXExchange.ExchangeName;
/// <summary>
/// Bitfinex
/// </summary>
Bitfinex,
public static string Bitfinex => BitfinexExchange.ExchangeName;
/// <summary>
/// Bitget
/// </summary>
Bitget,
public static string Bitget => BitgetExchange.ExchangeName;
/// <summary>
/// BitMart
/// </summary>
BitMart,
public static string BitMart => BitMartExchange.ExchangeName;
/// <summary>
/// Bybit
/// </summary>
Bybit,
public static string Bybit => BybitExchange.ExchangeName;
/// <summary>
/// CoinEx
/// </summary>
CoinEx,
public static string CoinEx => CoinExExchange.ExchangeName;
/// <summary>
/// Gate.io
/// </summary>
GateIo,
public static string GateIo => "GateIo";
/// <summary>
/// HTX
/// </summary>
HTX,
public static string HTX => HTXExchange.ExchangeName;
/// <summary>
/// Kraken
/// </summary>
Kraken,
public static string Kraken => KrakenExchange.ExchangeName;
/// <summary>
/// Kucoin
/// </summary>
Kucoin,
public static string Kucoin => KucoinExchange.ExchangeName;
/// <summary>
/// Mexc
/// </summary>
Mexc,
public static string Mexc => MexcExchange.ExchangeName;
/// <summary>
/// OKX
/// </summary>
OKX
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
};
}
}
Loading

0 comments on commit 79783bf

Please sign in to comment.