1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-17 11:23:00 +00:00

Merge pull request #17 from ridicoulous/orderBookUpdateEvent

added orderbook update event
This commit is contained in:
Jan Korf
2019-09-04 16:27:02 +02:00
committed by GitHub
3 changed files with 37 additions and 14 deletions
+7 -7
View File
@@ -26,8 +26,8 @@ namespace CryptoExchange.Net.Objects
/// <summary>
/// Base for order book options
/// </summary>
public class OrderBookOptions: BaseOptions
{
public class OrderBookOptions : BaseOptions
{
/// <summary>
/// The name of the order book implementation
/// </summary>
@@ -43,7 +43,7 @@ namespace CryptoExchange.Net.Objects
/// <param name="name">The name of the order book implementation</param>
/// <param name="sequencesAreConsecutive">Whether each update should have a consecutive id number. Used to identify and reconnect when numbers are skipped.</param>
public OrderBookOptions(string name, bool sequencesAreConsecutive)
{
{
OrderBookName = name;
SequenceNumbersAreConsecutive = sequencesAreConsecutive;
}
@@ -52,7 +52,7 @@ namespace CryptoExchange.Net.Objects
/// <summary>
/// Base client options
/// </summary>
public class ClientOptions: BaseOptions
public class ClientOptions : BaseOptions
{
/// <summary>
@@ -74,7 +74,7 @@ namespace CryptoExchange.Net.Objects
/// <summary>
/// Base for rest client options
/// </summary>
public class RestClientOptions: ClientOptions
public class RestClientOptions : ClientOptions
{
/// <summary>
/// List of rate limiters to use
@@ -96,7 +96,7 @@ namespace CryptoExchange.Net.Objects
/// </summary>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
public T Copy<T>() where T:RestClientOptions, new()
public T Copy<T>() where T : RestClientOptions, new()
{
var copy = new T
{
@@ -119,7 +119,7 @@ namespace CryptoExchange.Net.Objects
/// <summary>
/// Base for socket client options
/// </summary>
public class SocketClientOptions: ClientOptions
public class SocketClientOptions : ClientOptions
{
/// <summary>
/// Whether or not the socket should automatically reconnect when losing connection