1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2026-04-07 02:01:12 +00:00

Fixed example

This commit is contained in:
JKorf 2026-03-25 21:40:40 +01:00
parent aab30e05f0
commit 24123261e5

View File

@ -3,7 +3,9 @@ using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using Binance.Net;
using Binance.Net.Clients;
using Bybit.Net;
using Bybit.Net.Clients;
using ConsoleClient.Exchanges;
using CryptoExchange.Net.Authentication;
@ -15,19 +17,19 @@ namespace ConsoleClient
{
static Dictionary<string, IExchange> _exchanges = new Dictionary<string, IExchange>
{
{ "Binance", new BinanceExchange() },
{ "Bybit", new BybitExchange() }
{ "Binance", new Exchanges.BinanceExchange() },
{ "Bybit", new Exchanges.BybitExchange() }
};
static async Task Main(string[] args)
{
BinanceRestClient.SetDefaultOptions(options =>
{
options.ApiCredentials = new ApiCredentials("APIKEY", "APISECRET");
options.ApiCredentials = new BinanceCredentials("APIKEY", "APISECRET");
});
BybitRestClient.SetDefaultOptions(options =>
{
options.ApiCredentials = new ApiCredentials("APIKEY", "APISECRET");
options.ApiCredentials = new BybitCredentials("APIKEY", "APISECRET");
});
while (true)