mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-08 16:36:15 +00:00
Some renames
This commit is contained in:
parent
e8ee4e5ebc
commit
6ce6a46ca3
@ -20,6 +20,9 @@ namespace CryptoExchange.Net.Converters
|
|||||||
if (reader.Value == null)
|
if (reader.Value == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
if (reader.Value is double d)
|
||||||
|
return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(d);
|
||||||
|
|
||||||
var t = long.Parse(reader.Value.ToString());
|
var t = long.Parse(reader.Value.ToString());
|
||||||
return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(t);
|
return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(t);
|
||||||
}
|
}
|
||||||
|
@ -538,12 +538,12 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonBalance.CommonAvailable">
|
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonBalance.CommonAvailable">
|
||||||
<summary>
|
<summary>
|
||||||
Amount available
|
Quantity available
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonBalance.CommonTotal">
|
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonBalance.CommonTotal">
|
||||||
<summary>
|
<summary>
|
||||||
Total amount
|
Total quantity
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="T:CryptoExchange.Net.ExchangeInterfaces.ICommonTrade">
|
<member name="T:CryptoExchange.Net.ExchangeInterfaces.ICommonTrade">
|
||||||
@ -752,7 +752,7 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="F:CryptoExchange.Net.ExchangeInterfaces.IExchangeClient.OrderStatus.Canceled">
|
<member name="F:CryptoExchange.Net.ExchangeInterfaces.IExchangeClient.OrderStatus.Canceled">
|
||||||
<summary>
|
<summary>
|
||||||
cancelled order
|
canceled order
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="F:CryptoExchange.Net.ExchangeInterfaces.IExchangeClient.OrderStatus.Filled">
|
<member name="F:CryptoExchange.Net.ExchangeInterfaces.IExchangeClient.OrderStatus.Filled">
|
||||||
@ -765,22 +765,22 @@
|
|||||||
Common kline
|
Common kline
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonHigh">
|
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonHighPrice">
|
||||||
<summary>
|
<summary>
|
||||||
High price for this kline
|
High price for this kline
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonLow">
|
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonLowPrice">
|
||||||
<summary>
|
<summary>
|
||||||
Low price for this kline
|
Low price for this kline
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonOpen">
|
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonOpenPrice">
|
||||||
<summary>
|
<summary>
|
||||||
Open price for this kline
|
Open price for this kline
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonClose">
|
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonClosePrice">
|
||||||
<summary>
|
<summary>
|
||||||
Close price for this kline
|
Close price for this kline
|
||||||
</summary>
|
</summary>
|
||||||
@ -895,9 +895,9 @@
|
|||||||
Symbol name
|
Symbol name
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonSymbol.CommonMinimumTradeSize">
|
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonSymbol.CommonMinimumTradeQuantity">
|
||||||
<summary>
|
<summary>
|
||||||
Minimum trade size
|
Minimum trade quantity
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="T:CryptoExchange.Net.ExchangeInterfaces.ICommonTicker">
|
<member name="T:CryptoExchange.Net.ExchangeInterfaces.ICommonTicker">
|
||||||
@ -910,12 +910,12 @@
|
|||||||
Symbol name
|
Symbol name
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonTicker.CommonHigh">
|
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonTicker.CommonHighPrice">
|
||||||
<summary>
|
<summary>
|
||||||
High price
|
High price
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonTicker.CommonLow">
|
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonTicker.CommonLowPrice">
|
||||||
<summary>
|
<summary>
|
||||||
Low price
|
Low price
|
||||||
</summary>
|
</summary>
|
||||||
@ -1382,7 +1382,7 @@
|
|||||||
Event when the BestBid or BestAsk changes ie a Pricing Tick
|
Event when the BestBid or BestAsk changes ie a Pricing Tick
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:CryptoExchange.Net.Interfaces.ISymbolOrderBook.LastOrderBookUpdate">
|
<member name="P:CryptoExchange.Net.Interfaces.ISymbolOrderBook.UpdateTime">
|
||||||
<summary>
|
<summary>
|
||||||
Timestamp of the last update
|
Timestamp of the last update
|
||||||
</summary>
|
</summary>
|
||||||
@ -2554,7 +2554,7 @@
|
|||||||
Event when order book was updated, containing the changed bids and asks. Be careful! It can generate a lot of events at high-liquidity markets
|
Event when order book was updated, containing the changed bids and asks. Be careful! It can generate a lot of events at high-liquidity markets
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:CryptoExchange.Net.OrderBook.SymbolOrderBook.LastOrderBookUpdate">
|
<member name="P:CryptoExchange.Net.OrderBook.SymbolOrderBook.UpdateTime">
|
||||||
<summary>
|
<summary>
|
||||||
Timestamp of the last update
|
Timestamp of the last update
|
||||||
</summary>
|
</summary>
|
||||||
@ -4044,7 +4044,9 @@
|
|||||||
<member name="M:CryptoExchange.Net.Sockets.WebsocketFactory.CreateWebsocket(CryptoExchange.Net.Logging.Log,System.String,System.Collections.Generic.IDictionary{System.String,System.String},System.Collections.Generic.IDictionary{System.String,System.String})">
|
<member name="M:CryptoExchange.Net.Sockets.WebsocketFactory.CreateWebsocket(CryptoExchange.Net.Logging.Log,System.String,System.Collections.Generic.IDictionary{System.String,System.String},System.Collections.Generic.IDictionary{System.String,System.String})">
|
||||||
<inheritdoc />
|
<inheritdoc />
|
||||||
</member>
|
</member>
|
||||||
<member name="T:System.Diagnostics.CodeAnalysis.AllowNullAttribute">
|
</members>
|
||||||
|
</doc>
|
||||||
|
System.Diagnostics.CodeAnalysis.AllowNullAttribute">
|
||||||
<summary>
|
<summary>
|
||||||
Specifies that <see langword="null"/> is allowed as an input even if the
|
Specifies that <see langword="null"/> is allowed as an input even if the
|
||||||
corresponding type disallows it.
|
corresponding type disallows it.
|
||||||
|
@ -10,11 +10,11 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string CommonAsset { get; }
|
public string CommonAsset { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Amount available
|
/// Quantity available
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal CommonAvailable { get; }
|
public decimal CommonAvailable { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Total amount
|
/// Total quantity
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal CommonTotal { get; }
|
public decimal CommonTotal { get; }
|
||||||
}
|
}
|
||||||
|
@ -165,7 +165,7 @@ namespace CryptoExchange.Net.ExchangeInterfaces
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
Active,
|
Active,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// cancelled order
|
/// canceled order
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Canceled,
|
Canceled,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -10,19 +10,19 @@ namespace CryptoExchange.Net.ExchangeInterfaces
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// High price for this kline
|
/// High price for this kline
|
||||||
/// </summary>
|
/// </summary>
|
||||||
decimal CommonHigh { get; }
|
decimal CommonHighPrice { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Low price for this kline
|
/// Low price for this kline
|
||||||
/// </summary>
|
/// </summary>
|
||||||
decimal CommonLow { get; }
|
decimal CommonLowPrice { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Open price for this kline
|
/// Open price for this kline
|
||||||
/// </summary>
|
/// </summary>
|
||||||
decimal CommonOpen { get; }
|
decimal CommonOpenPrice { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Close price for this kline
|
/// Close price for this kline
|
||||||
/// </summary>
|
/// </summary>
|
||||||
decimal CommonClose { get; }
|
decimal CommonClosePrice { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Open time for this kline
|
/// Open time for this kline
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string CommonName { get; }
|
public string CommonName { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Minimum trade size
|
/// Minimum trade quantity
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal CommonMinimumTradeSize { get; }
|
public decimal CommonMinimumTradeQuantity { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,11 +12,11 @@
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// High price
|
/// High price
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal CommonHigh { get; }
|
public decimal CommonHighPrice { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Low price
|
/// Low price
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal CommonLow { get; }
|
public decimal CommonLowPrice { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Volume
|
/// Volume
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -39,7 +39,7 @@ namespace CryptoExchange.Net.Interfaces
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Timestamp of the last update
|
/// Timestamp of the last update
|
||||||
/// </summary>
|
/// </summary>
|
||||||
DateTime LastOrderBookUpdate { get; }
|
DateTime UpdateTime { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The number of asks in the book
|
/// The number of asks in the book
|
||||||
|
@ -107,7 +107,7 @@ namespace CryptoExchange.Net.OrderBook
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Timestamp of the last update
|
/// Timestamp of the last update
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime LastOrderBookUpdate { get; private set; }
|
public DateTime UpdateTime { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The number of asks in the book
|
/// The number of asks in the book
|
||||||
@ -416,7 +416,7 @@ namespace CryptoExchange.Net.OrderBook
|
|||||||
AskCount = asks.Count;
|
AskCount = asks.Count;
|
||||||
BidCount = bids.Count;
|
BidCount = bids.Count;
|
||||||
|
|
||||||
LastOrderBookUpdate = DateTime.UtcNow;
|
UpdateTime = DateTime.UtcNow;
|
||||||
log.Write(LogLevel.Debug, $"{Id} order book {Symbol} data set: {BidCount} bids, {AskCount} asks. #{item.EndUpdateId}");
|
log.Write(LogLevel.Debug, $"{Id} order book {Symbol} data set: {BidCount} bids, {AskCount} asks. #{item.EndUpdateId}");
|
||||||
CheckProcessBuffer();
|
CheckProcessBuffer();
|
||||||
OnOrderBookUpdate?.Invoke((item.Bids, item.Asks));
|
OnOrderBookUpdate?.Invoke((item.Bids, item.Asks));
|
||||||
@ -645,7 +645,7 @@ namespace CryptoExchange.Net.OrderBook
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
LastOrderBookUpdate = DateTime.UtcNow;
|
UpdateTime = DateTime.UtcNow;
|
||||||
var listToChange = type == OrderBookEntryType.Ask ? asks : bids;
|
var listToChange = type == OrderBookEntryType.Ask ? asks : bids;
|
||||||
if (entry.Quantity == 0)
|
if (entry.Quantity == 0)
|
||||||
{
|
{
|
||||||
|
@ -316,7 +316,7 @@ namespace CryptoExchange.Net
|
|||||||
{
|
{
|
||||||
if (canceledException.CancellationToken == cancellationToken)
|
if (canceledException.CancellationToken == cancellationToken)
|
||||||
{
|
{
|
||||||
// Cancellation token cancelled by caller
|
// Cancellation token canceled by caller
|
||||||
log.Write(LogLevel.Warning, $"[{request.RequestId}] Request cancel requested");
|
log.Write(LogLevel.Warning, $"[{request.RequestId}] Request cancel requested");
|
||||||
return new WebCallResult<T>(null, null, default, new CancellationRequestedError());
|
return new WebCallResult<T>(null, null, default, new CancellationRequestedError());
|
||||||
}
|
}
|
||||||
|
@ -417,7 +417,7 @@ namespace CryptoExchange.Net.Sockets
|
|||||||
}
|
}
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
// cancelled
|
// canceled
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
catch (IOException ioe)
|
catch (IOException ioe)
|
||||||
@ -478,7 +478,7 @@ namespace CryptoExchange.Net.Sockets
|
|||||||
}
|
}
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
// cancelled
|
// canceled
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
catch (WebSocketException wse)
|
catch (WebSocketException wse)
|
||||||
@ -645,7 +645,7 @@ namespace CryptoExchange.Net.Sockets
|
|||||||
}
|
}
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
// cancelled
|
// canceled
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user