mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-17 11:23:00 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using CryptoExchange.Net.RateLimiter;
|
||||
|
||||
namespace CryptoExchange.Net.Interfaces
|
||||
{
|
||||
public interface IExchangeClient
|
||||
{
|
||||
IRequestFactory RequestFactory { get; set; }
|
||||
void AddRateLimiter(IRateLimiter limiter);
|
||||
void RemoveRateLimiters();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
|
||||
namespace CryptoExchange.Net.Interfaces
|
||||
{
|
||||
public interface IRequest
|
||||
{
|
||||
Uri Uri { get; }
|
||||
WebHeaderCollection Headers { get; set; }
|
||||
string Method { get; set; }
|
||||
|
||||
void SetProxy(string host, int port);
|
||||
IResponse GetResponse();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
namespace CryptoExchange.Net.Interfaces
|
||||
{
|
||||
public interface IRequestFactory
|
||||
{
|
||||
IRequest Create(string uri);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.IO;
|
||||
|
||||
namespace CryptoExchange.Net.Interfaces
|
||||
{
|
||||
public interface IResponse
|
||||
{
|
||||
Stream GetResponseStream();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user