1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-08 16:36:15 +00:00

Some renames

This commit is contained in:
Jkorf 2021-10-26 15:39:50 +02:00
parent e8ee4e5ebc
commit 6ce6a46ca3
11 changed files with 38 additions and 33 deletions

View File

@ -20,6 +20,9 @@ namespace CryptoExchange.Net.Converters
if (reader.Value == 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());
return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(t);
}

View File

@ -538,12 +538,12 @@
</member>
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonBalance.CommonAvailable">
<summary>
Amount available
Quantity available
</summary>
</member>
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonBalance.CommonTotal">
<summary>
Total amount
Total quantity
</summary>
</member>
<member name="T:CryptoExchange.Net.ExchangeInterfaces.ICommonTrade">
@ -752,7 +752,7 @@
</member>
<member name="F:CryptoExchange.Net.ExchangeInterfaces.IExchangeClient.OrderStatus.Canceled">
<summary>
cancelled order
canceled order
</summary>
</member>
<member name="F:CryptoExchange.Net.ExchangeInterfaces.IExchangeClient.OrderStatus.Filled">
@ -765,22 +765,22 @@
Common kline
</summary>
</member>
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonHigh">
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonHighPrice">
<summary>
High price for this kline
</summary>
</member>
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonLow">
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonLowPrice">
<summary>
Low price for this kline
</summary>
</member>
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonOpen">
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonOpenPrice">
<summary>
Open price for this kline
</summary>
</member>
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonClose">
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonKline.CommonClosePrice">
<summary>
Close price for this kline
</summary>
@ -895,9 +895,9 @@
Symbol name
</summary>
</member>
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonSymbol.CommonMinimumTradeSize">
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonSymbol.CommonMinimumTradeQuantity">
<summary>
Minimum trade size
Minimum trade quantity
</summary>
</member>
<member name="T:CryptoExchange.Net.ExchangeInterfaces.ICommonTicker">
@ -910,12 +910,12 @@
Symbol name
</summary>
</member>
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonTicker.CommonHigh">
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonTicker.CommonHighPrice">
<summary>
High price
</summary>
</member>
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonTicker.CommonLow">
<member name="P:CryptoExchange.Net.ExchangeInterfaces.ICommonTicker.CommonLowPrice">
<summary>
Low price
</summary>
@ -1382,7 +1382,7 @@
Event when the BestBid or BestAsk changes ie a Pricing Tick
</summary>
</member>
<member name="P:CryptoExchange.Net.Interfaces.ISymbolOrderBook.LastOrderBookUpdate">
<member name="P:CryptoExchange.Net.Interfaces.ISymbolOrderBook.UpdateTime">
<summary>
Timestamp of the last update
</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
</summary>
</member>
<member name="P:CryptoExchange.Net.OrderBook.SymbolOrderBook.LastOrderBookUpdate">
<member name="P:CryptoExchange.Net.OrderBook.SymbolOrderBook.UpdateTime">
<summary>
Timestamp of the last update
</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})">
<inheritdoc />
</member>
<member name="T:System.Diagnostics.CodeAnalysis.AllowNullAttribute">
</members>
</doc>
System.Diagnostics.CodeAnalysis.AllowNullAttribute">
<summary>
Specifies that <see langword="null"/> is allowed as an input even if the
corresponding type disallows it.

View File

@ -10,11 +10,11 @@
/// </summary>
public string CommonAsset { get; }
/// <summary>
/// Amount available
/// Quantity available
/// </summary>
public decimal CommonAvailable { get; }
/// <summary>
/// Total amount
/// Total quantity
/// </summary>
public decimal CommonTotal { get; }
}

View File

@ -165,7 +165,7 @@ namespace CryptoExchange.Net.ExchangeInterfaces
/// </summary>
Active,
/// <summary>
/// cancelled order
/// canceled order
/// </summary>
Canceled,
/// <summary>

View File

@ -10,19 +10,19 @@ namespace CryptoExchange.Net.ExchangeInterfaces
/// <summary>
/// High price for this kline
/// </summary>
decimal CommonHigh { get; }
decimal CommonHighPrice { get; }
/// <summary>
/// Low price for this kline
/// </summary>
decimal CommonLow { get; }
decimal CommonLowPrice { get; }
/// <summary>
/// Open price for this kline
/// </summary>
decimal CommonOpen { get; }
decimal CommonOpenPrice { get; }
/// <summary>
/// Close price for this kline
/// </summary>
decimal CommonClose { get; }
decimal CommonClosePrice { get; }
/// <summary>
/// Open time for this kline
/// </summary>

View File

@ -10,8 +10,8 @@
/// </summary>
public string CommonName { get; }
/// <summary>
/// Minimum trade size
/// Minimum trade quantity
/// </summary>
public decimal CommonMinimumTradeSize { get; }
public decimal CommonMinimumTradeQuantity { get; }
}
}

View File

@ -12,11 +12,11 @@
/// <summary>
/// High price
/// </summary>
public decimal CommonHigh { get; }
public decimal CommonHighPrice { get; }
/// <summary>
/// Low price
/// </summary>
public decimal CommonLow { get; }
public decimal CommonLowPrice { get; }
/// <summary>
/// Volume
/// </summary>

View File

@ -39,7 +39,7 @@ namespace CryptoExchange.Net.Interfaces
/// <summary>
/// Timestamp of the last update
/// </summary>
DateTime LastOrderBookUpdate { get; }
DateTime UpdateTime { get; }
/// <summary>
/// The number of asks in the book

View File

@ -107,7 +107,7 @@ namespace CryptoExchange.Net.OrderBook
/// <summary>
/// Timestamp of the last update
/// </summary>
public DateTime LastOrderBookUpdate { get; private set; }
public DateTime UpdateTime { get; private set; }
/// <summary>
/// The number of asks in the book
@ -416,7 +416,7 @@ namespace CryptoExchange.Net.OrderBook
AskCount = asks.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}");
CheckProcessBuffer();
OnOrderBookUpdate?.Invoke((item.Bids, item.Asks));
@ -645,7 +645,7 @@ namespace CryptoExchange.Net.OrderBook
return false;
}
LastOrderBookUpdate = DateTime.UtcNow;
UpdateTime = DateTime.UtcNow;
var listToChange = type == OrderBookEntryType.Ask ? asks : bids;
if (entry.Quantity == 0)
{

View File

@ -316,7 +316,7 @@ namespace CryptoExchange.Net
{
if (canceledException.CancellationToken == cancellationToken)
{
// Cancellation token cancelled by caller
// Cancellation token canceled by caller
log.Write(LogLevel.Warning, $"[{request.RequestId}] Request cancel requested");
return new WebCallResult<T>(null, null, default, new CancellationRequestedError());
}

View File

@ -417,7 +417,7 @@ namespace CryptoExchange.Net.Sockets
}
catch (OperationCanceledException)
{
// cancelled
// canceled
break;
}
catch (IOException ioe)
@ -478,7 +478,7 @@ namespace CryptoExchange.Net.Sockets
}
catch (OperationCanceledException)
{
// cancelled
// canceled
break;
}
catch (WebSocketException wse)
@ -645,7 +645,7 @@ namespace CryptoExchange.Net.Sockets
}
catch (OperationCanceledException)
{
// cancelled
// canceled
break;
}
}