1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-10-28 22:10:42 +00:00
Files
CryptoExchange.Net/CryptoExchange.Net/SharedApis/Models/SharedFuturesKline.cs
T
Jan Korf ae7504c26c Shared API's V2 (#289)
Added V2 Shared API's infrastructure
Added request coalescing
Added rate limiting admission logic
Fixed some rate limiting issues
2026-09-23 09:15:39 +02:00

47 lines
1.3 KiB
C#

using System;
using System.Diagnostics;
namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Mark/index price kline
/// </summary>
[DebuggerDisplay("[{OpenTime}] O: {OpenPrice} H: {HighPrice} L: {LowPrice} C: {ClosePrice}")]
public record SharedFuturesKline : 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>
/// ctor
/// </summary>
public SharedFuturesKline(SharedSymbol? sharedSymbol, string symbol, DateTime openTime, decimal closePrice, decimal highPrice, decimal lowPrice, decimal openPrice)
: base(sharedSymbol, symbol)
{
OpenTime = openTime;
ClosePrice = closePrice;
HighPrice = highPrice;
LowPrice = lowPrice;
OpenPrice = openPrice;
}
}
}