mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-10 01:16:24 +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 CryptoExchange.Net.Interfaces;
|
||||||
|
using System.Security;
|
||||||
|
|
||||||
namespace CryptoExchange.Net.Authentication
|
namespace CryptoExchange.Net.Authentication
|
||||||
{
|
{
|
||||||
@ -6,11 +7,18 @@ namespace CryptoExchange.Net.Authentication
|
|||||||
{
|
{
|
||||||
public ApiCredentials Credentials { get; }
|
public ApiCredentials Credentials { get; }
|
||||||
|
|
||||||
|
public SecureString PrivateKey { get; }
|
||||||
|
|
||||||
protected AuthenticationProvider(ApiCredentials credentials)
|
protected AuthenticationProvider(ApiCredentials credentials)
|
||||||
{
|
{
|
||||||
Credentials = credentials;
|
Credentials = credentials;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected AuthenticationProvider(SecureString privateKey)
|
||||||
|
{
|
||||||
|
PrivateKey = privateKey;
|
||||||
|
}
|
||||||
|
|
||||||
public virtual string AddAuthenticationToUriString(string uri, bool signed)
|
public virtual string AddAuthenticationToUriString(string uri, bool signed)
|
||||||
{
|
{
|
||||||
return uri;
|
return uri;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Security;
|
||||||
using CryptoExchange.Net.Authentication;
|
using CryptoExchange.Net.Authentication;
|
||||||
using CryptoExchange.Net.Logging;
|
using CryptoExchange.Net.Logging;
|
||||||
using CryptoExchange.Net.RateLimiter;
|
using CryptoExchange.Net.RateLimiter;
|
||||||
@ -17,6 +18,11 @@ namespace CryptoExchange.Net
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public ApiCredentials ApiCredentials { get; set; }
|
public ApiCredentials ApiCredentials { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The private key instead of api credentials
|
||||||
|
/// </summary>
|
||||||
|
public SecureString PrivateKey { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Proxy to use
|
/// Proxy to use
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user