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

28 lines
647 B
C#

using System;
namespace CryptoExchange.Net.Authentication
{
public class ApiCredentials
{
/// <summary>
/// The api key
/// </summary>
public string Key { get; }
/// <summary>
/// The api secret
/// </summary>
public string Secret { get; }
public ApiCredentials() { }
public ApiCredentials(string key, string secret)
{
if(string.IsNullOrEmpty(key) || string.IsNullOrEmpty(secret))
throw new ArgumentException("Apikey or apisecret not provided");
Key = key;
Secret = secret;
}
}
}