From 54b15b75d392d7bb60f2298ee0a42abca9fd273b Mon Sep 17 00:00:00 2001 From: Jkorf Date: Tue, 24 Mar 2026 17:25:58 +0100 Subject: [PATCH] Updated examples --- Examples/BlazorClient/BlazorClient.csproj | 50 ++++++++++---------- Examples/BlazorClient/Pages/OrderBooks.razor | 3 +- Examples/BlazorClient/Startup.cs | 3 +- Examples/ConsoleClient/ConsoleClient.csproj | 28 +++++------ Examples/SharedClients/SharedClients.csproj | 6 +-- 5 files changed, 46 insertions(+), 44 deletions(-) diff --git a/Examples/BlazorClient/BlazorClient.csproj b/Examples/BlazorClient/BlazorClient.csproj index f8ae891a..48fdb7bf 100644 --- a/Examples/BlazorClient/BlazorClient.csproj +++ b/Examples/BlazorClient/BlazorClient.csproj @@ -5,32 +5,32 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - + + + diff --git a/Examples/BlazorClient/Pages/OrderBooks.razor b/Examples/BlazorClient/Pages/OrderBooks.razor index 9f13dacc..3ba477ed 100644 --- a/Examples/BlazorClient/Pages/OrderBooks.razor +++ b/Examples/BlazorClient/Pages/OrderBooks.razor @@ -21,6 +21,7 @@ @using HTX.Net.Interfaces @using HyperLiquid.Net.Interfaces @using Kraken.Net.Interfaces +@using Kucoin.Net @using Kucoin.Net.Clients @using Kucoin.Net.Interfaces @using Mexc.Net.Interfaces @@ -83,7 +84,7 @@ // Since the Kucoin order book stream needs authentication we will need to provide API credentials beforehand KucoinRestClient.SetDefaultOptions(options => { - options.ApiCredentials = new ApiCredentials("KEY", "SECRET", "PASSPHRASE"); + options.ApiCredentials = new KucoinCredentials("KEY", "SECRET", "PASSPHRASE"); }); _books = new Dictionary diff --git a/Examples/BlazorClient/Startup.cs b/Examples/BlazorClient/Startup.cs index bc3c10bc..09a9d837 100644 --- a/Examples/BlazorClient/Startup.cs +++ b/Examples/BlazorClient/Startup.cs @@ -1,3 +1,4 @@ +using Binance.Net; using CryptoExchange.Net.Authentication; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; @@ -30,7 +31,7 @@ namespace BlazorClient // Register the clients, options can be provided in the callback parameter services.AddBinance(restOptions => { - restOptions.ApiCredentials = new ApiCredentials("KEY", "SECRET"); + restOptions.ApiCredentials = new BinanceCredentials("KEY", "SECRET"); }); services.AddAster(); diff --git a/Examples/ConsoleClient/ConsoleClient.csproj b/Examples/ConsoleClient/ConsoleClient.csproj index b2aafb86..f36fe6d0 100644 --- a/Examples/ConsoleClient/ConsoleClient.csproj +++ b/Examples/ConsoleClient/ConsoleClient.csproj @@ -6,20 +6,20 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/Examples/SharedClients/SharedClients.csproj b/Examples/SharedClients/SharedClients.csproj index ee9d21c3..c88abe1b 100644 --- a/Examples/SharedClients/SharedClients.csproj +++ b/Examples/SharedClients/SharedClients.csproj @@ -8,9 +8,9 @@ - - - + + +