diff --git a/CryptoExchange.Net.UnitTests/CryptoExchange.Net.UnitTests.csproj b/CryptoExchange.Net.UnitTests/CryptoExchange.Net.UnitTests.csproj index 3a1cfb3..f708097 100644 --- a/CryptoExchange.Net.UnitTests/CryptoExchange.Net.UnitTests.csproj +++ b/CryptoExchange.Net.UnitTests/CryptoExchange.Net.UnitTests.csproj @@ -1,7 +1,7 @@ - netcoreapp5.0 + net6.0 false diff --git a/Examples/BlazorClient/BlazorClient.csproj b/Examples/BlazorClient/BlazorClient.csproj index 193f946..8469e65 100644 --- a/Examples/BlazorClient/BlazorClient.csproj +++ b/Examples/BlazorClient/BlazorClient.csproj @@ -5,15 +5,15 @@ - - - - - - - - - + + + + + + + + + diff --git a/Examples/BlazorClient/Pages/SpotClient.razor b/Examples/BlazorClient/Pages/SpotClient.razor index 4df8700..d6d5019 100644 --- a/Examples/BlazorClient/Pages/SpotClient.razor +++ b/Examples/BlazorClient/Pages/SpotClient.razor @@ -14,6 +14,7 @@ @using Bybit.Net.Clients.SpotApi @using CoinEx.Net.Clients.SpotApi @using CryptoExchange.Net.Interfaces +@using CryptoExchange.Net.Interfaces.CommonClients @using FTX.Net.Clients.TradeApi @using Huobi.Net.Clients.SpotApi @using Kraken.Net.Clients.SpotApi @@ -33,14 +34,14 @@ var clients = new ISpotClient[] { - binanceClient.SpotApi.ComonSpotClient, - bitfinexClient.SpotApi.ComonSpotClient, - bittrexClient.SpotApi.ComonSpotClient, + binanceClient.SpotApi.CommonSpotClient, + bitfinexClient.SpotApi.CommonSpotClient, + bittrexClient.SpotApi.CommonSpotClient, bybitClient.SpotApi.CommonSpotClient, - coinexClient.SpotApi.ComonSpotClient, - ftxClient.TradeApi.ComonSpotClient, - huobiClient.SpotApi.ComonSpotClient, - krakenClient.SpotApi.ComonSpotClient, + coinexClient.SpotApi.CommonSpotClient, + ftxClient.TradeApi.CommonSpotClient, + huobiClient.SpotApi.CommonSpotClient, + krakenClient.SpotApi.CommonSpotClient, kucoinClient.SpotApi.CommonSpotClient }; diff --git a/Examples/ConsoleClient/ConsoleClient.csproj b/Examples/ConsoleClient/ConsoleClient.csproj index c2f71b3..adf3f8c 100644 --- a/Examples/ConsoleClient/ConsoleClient.csproj +++ b/Examples/ConsoleClient/ConsoleClient.csproj @@ -2,19 +2,19 @@ Exe - net5.0 + net6.0 - - - - - - - - - + + + + + + + + + diff --git a/Examples/ConsoleClient/Exchanges/BinanceExchange.cs b/Examples/ConsoleClient/Exchanges/BinanceExchange.cs index fd7b750..918358e 100644 --- a/Examples/ConsoleClient/Exchanges/BinanceExchange.cs +++ b/Examples/ConsoleClient/Exchanges/BinanceExchange.cs @@ -61,7 +61,7 @@ namespace ConsoleClient.Exchanges var result = await client.SpotApi.Trading.PlaceOrderAsync( symbol, side.ToLower() == "buy" ? Binance.Net.Enums.OrderSide.Buy: Binance.Net.Enums.OrderSide.Sell, - type == "market" ? Binance.Net.Enums.OrderType.Market : Binance.Net.Enums.OrderType.Limit, + type == "market" ? Binance.Net.Enums.SpotOrderType.Market : Binance.Net.Enums.SpotOrderType.Limit, quantity, price: price, timeInForce: type == "market" ? null: Binance.Net.Enums.TimeInForce.GoodTillCanceled);