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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user