mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-14 01:42:55 +00:00
52 lines
1.5 KiB
C#
52 lines
1.5 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Kline info
|
|
/// </summary>
|
|
[DebuggerDisplay("[{OpenTime}] O: {OpenPrice} H: {HighPrice} L: {LowPrice} C: {ClosePrice} V: {Volume}")]
|
|
public record SharedKline : SharedSymbolModel
|
|
{
|
|
/// <summary>
|
|
/// Open time
|
|
/// </summary>
|
|
public DateTime OpenTime { get; set; }
|
|
/// <summary>
|
|
/// Close price
|
|
/// </summary>
|
|
public decimal ClosePrice { get; set; }
|
|
/// <summary>
|
|
/// High price
|
|
/// </summary>
|
|
public decimal HighPrice { get; set; }
|
|
/// <summary>
|
|
/// Low price
|
|
/// </summary>
|
|
public decimal LowPrice { get; set; }
|
|
/// <summary>
|
|
/// Open price
|
|
/// </summary>
|
|
public decimal OpenPrice { get; set; }
|
|
/// <summary>
|
|
/// Volume in the base asset
|
|
/// </summary>
|
|
public decimal Volume { get; set; }
|
|
|
|
/// <summary>
|
|
/// ctor
|
|
/// </summary>
|
|
public SharedKline(SharedSymbol? sharedSymbol, string symbol, DateTime openTime, decimal closePrice, decimal highPrice, decimal lowPrice, decimal openPrice, decimal volume)
|
|
: base(sharedSymbol, symbol)
|
|
{
|
|
OpenTime = openTime;
|
|
ClosePrice = closePrice;
|
|
HighPrice = highPrice;
|
|
LowPrice = lowPrice;
|
|
OpenPrice = openPrice;
|
|
Volume = volume;
|
|
}
|
|
}
|
|
}
|