1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-09 17:06:19 +00:00
2024-09-27 09:17:44 +02:00

49 lines
1.3 KiB
C#

using System;
namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Kline info
/// </summary>
public record SharedKline
{
/// <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(DateTime openTime, decimal closePrice, decimal highPrice, decimal lowPrice, decimal openPrice, decimal volume)
{
OpenTime = openTime;
ClosePrice = closePrice;
HighPrice = highPrice;
LowPrice = lowPrice;
OpenPrice = openPrice;
Volume = volume;
}
}
}