mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-11-06 13:28:03 +00:00
50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using System;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Kline info
|
|
/// </summary>
|
|
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;
|
|
}
|
|
}
|
|
}
|