1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-22 07:16:34 +00:00
2018-02-28 13:53:29 +01:00

26 lines
720 B
C#

using CryptoExchange.Net.Interfaces;
namespace CryptoExchange.Net.Authentication
{
public abstract class AuthenticationProvider
{
protected ApiCredentials credentials;
protected AuthenticationProvider(ApiCredentials credentials)
{
this.credentials = credentials;
}
public abstract string AddAuthenticationToUriString(string uri);
public abstract IRequest AddAuthenticationToRequest(IRequest request);
protected string ByteToString(byte[] buff)
{
var sbinary = "";
foreach (byte t in buff)
sbinary += t.ToString("X2"); /* hex format */
return sbinary;
}
}
}