mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2026-04-07 02:01:12 +00:00
Fixed example
This commit is contained in:
parent
aab30e05f0
commit
24123261e5
@ -3,7 +3,9 @@ using System.Collections.Generic;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Binance.Net;
|
||||||
using Binance.Net.Clients;
|
using Binance.Net.Clients;
|
||||||
|
using Bybit.Net;
|
||||||
using Bybit.Net.Clients;
|
using Bybit.Net.Clients;
|
||||||
using ConsoleClient.Exchanges;
|
using ConsoleClient.Exchanges;
|
||||||
using CryptoExchange.Net.Authentication;
|
using CryptoExchange.Net.Authentication;
|
||||||
@ -15,19 +17,19 @@ namespace ConsoleClient
|
|||||||
{
|
{
|
||||||
static Dictionary<string, IExchange> _exchanges = new Dictionary<string, IExchange>
|
static Dictionary<string, IExchange> _exchanges = new Dictionary<string, IExchange>
|
||||||
{
|
{
|
||||||
{ "Binance", new BinanceExchange() },
|
{ "Binance", new Exchanges.BinanceExchange() },
|
||||||
{ "Bybit", new BybitExchange() }
|
{ "Bybit", new Exchanges.BybitExchange() }
|
||||||
};
|
};
|
||||||
|
|
||||||
static async Task Main(string[] args)
|
static async Task Main(string[] args)
|
||||||
{
|
{
|
||||||
BinanceRestClient.SetDefaultOptions(options =>
|
BinanceRestClient.SetDefaultOptions(options =>
|
||||||
{
|
{
|
||||||
options.ApiCredentials = new ApiCredentials("APIKEY", "APISECRET");
|
options.ApiCredentials = new BinanceCredentials("APIKEY", "APISECRET");
|
||||||
});
|
});
|
||||||
BybitRestClient.SetDefaultOptions(options =>
|
BybitRestClient.SetDefaultOptions(options =>
|
||||||
{
|
{
|
||||||
options.ApiCredentials = new ApiCredentials("APIKEY", "APISECRET");
|
options.ApiCredentials = new BybitCredentials("APIKEY", "APISECRET");
|
||||||
});
|
});
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user