1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-09 17:06:19 +00:00

Added support for decentralized exchanges

This commit is contained in:
Noé Comte 2018-07-26 22:56:27 +02:00
parent 525ae41245
commit 861a69c043
2 changed files with 14 additions and 0 deletions

View File

@ -1,4 +1,5 @@
using CryptoExchange.Net.Interfaces;
using System.Security;
namespace CryptoExchange.Net.Authentication
{
@ -6,11 +7,18 @@ namespace CryptoExchange.Net.Authentication
{
public ApiCredentials Credentials { get; }
public SecureString PrivateKey { get; }
protected AuthenticationProvider(ApiCredentials credentials)
{
Credentials = credentials;
}
protected AuthenticationProvider(SecureString privateKey)
{
PrivateKey = privateKey;
}
public virtual string AddAuthenticationToUriString(string uri, bool signed)
{
return uri;

View File

@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.IO;
using System.Security;
using CryptoExchange.Net.Authentication;
using CryptoExchange.Net.Logging;
using CryptoExchange.Net.RateLimiter;
@ -17,6 +18,11 @@ namespace CryptoExchange.Net
/// </summary>
public ApiCredentials ApiCredentials { get; set; }
/// <summary>
/// The private key instead of api credentials
/// </summary>
public SecureString PrivateKey { get; set; }
/// <summary>
/// Proxy to use
/// </summary>