mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-13 09:23:04 +00:00
74e5cf6fc9
Added user data tracking logic Added LastReceiveTime, SocketStatus and SubscriptionStatus properties to UpdateSubscription Added SharedTransferStatus Enum and property to SharedDeposit Added PositionMode property to SharedPosition model Added IsZero property to SharedQuantity Renamed IWebSocket LastActionTime to LastReceiveTime Updated CryptoExchangeWebsocketClient LastReceiveTime logic Updated Subscription status change event handler to run sync instead of separate task
33 lines
806 B
C#
33 lines
806 B
C#
namespace CryptoExchange.Net.Trackers.UserData.Objects
|
|
{
|
|
/// <summary>
|
|
/// User data update
|
|
/// </summary>
|
|
/// <typeparam name="T">Data type</typeparam>
|
|
public class UserDataUpdate<T>
|
|
{
|
|
/// <summary>
|
|
/// Source
|
|
/// </summary>
|
|
public UpdateSource Source { get; set; }
|
|
/// <summary>
|
|
/// Exchange name
|
|
/// </summary>
|
|
public string Exchange { get; set; }
|
|
/// <summary>
|
|
/// Data
|
|
/// </summary>
|
|
public T Data { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// ctor
|
|
/// </summary>
|
|
public UserDataUpdate(UpdateSource source, string exchange, T data)
|
|
{
|
|
Source = source;
|
|
Exchange = exchange;
|
|
Data = data;
|
|
}
|
|
}
|
|
}
|