1
0
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:
JKorf
2018-02-28 13:53:29 +01:00
parent e2af98f2c9
commit 2bf860947a
23 changed files with 837 additions and 0 deletions
+14
View File
@@ -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();
}
}
+15
View File
@@ -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();
}
}
+8
View File
@@ -0,0 +1,8 @@
namespace CryptoExchange.Net.Interfaces
{
public interface IRequestFactory
{
IRequest Create(string uri);
}
}
+9
View File
@@ -0,0 +1,9 @@
using System.IO;
namespace CryptoExchange.Net.Interfaces
{
public interface IResponse
{
Stream GetResponseStream();
}
}