1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-20 12:53:02 +00:00

Ratelimit changes

This commit is contained in:
Jan Korf
2018-08-12 13:34:28 +02:00
parent 9dd1b7b318
commit e45858054e
9 changed files with 56 additions and 16 deletions
+30
View File
@@ -0,0 +1,30 @@
using System;
namespace CryptoExchange.Net
{
public class ApiProxy
{
/// <summary>
/// The host address of the proxy
/// </summary>
public string Host { get; }
/// <summary>
/// The port of the proxy
/// </summary>
public int Port { get; }
/// <summary>
/// Create new settings for a proxy
/// </summary>
/// <param name="host">The proxy hostname/ip</param>
/// <param name="port">The proxy port</param>
public ApiProxy(string host, int port)
{
if(string.IsNullOrEmpty(host) || port <= 0)
throw new ArgumentException("Proxy host or port not filled");
Host = host;
Port = port;
}
}
}