mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-28 22:10:42 +00:00
ae7504c26c
Added V2 Shared API's infrastructure Added request coalescing Added rate limiting admission logic Fixed some rate limiting issues
47 lines
1.3 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|