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:
parent
525ae41245
commit
861a69c043
@ -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;
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user