1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-11-05 21:08:10 +00:00

Added SharedSymbolModel base class to SharedFuturesKline, SharedKline, SharedTrade models

This commit is contained in:
Jkorf 2025-11-03 11:25:10 +01:00
parent 8d5b6a53f3
commit 1bfdec1484
3 changed files with 8 additions and 6 deletions

View File

@ -5,7 +5,7 @@ namespace CryptoExchange.Net.SharedApis
/// <summary> /// <summary>
/// Mark/index price kline /// Mark/index price kline
/// </summary> /// </summary>
public record SharedFuturesKline public record SharedFuturesKline : SharedSymbolModel
{ {
/// <summary> /// <summary>
/// Open time /// Open time
@ -31,7 +31,8 @@ namespace CryptoExchange.Net.SharedApis
/// <summary> /// <summary>
/// ctor /// ctor
/// </summary> /// </summary>
public SharedFuturesKline(DateTime openTime, decimal closePrice, decimal highPrice, decimal lowPrice, decimal openPrice) public SharedFuturesKline(SharedSymbol? sharedSymbol, string symbol, DateTime openTime, decimal closePrice, decimal highPrice, decimal lowPrice, decimal openPrice)
: base(sharedSymbol, symbol)
{ {
OpenTime = openTime; OpenTime = openTime;
ClosePrice = closePrice; ClosePrice = closePrice;

View File

@ -5,7 +5,7 @@ namespace CryptoExchange.Net.SharedApis
/// <summary> /// <summary>
/// Kline info /// Kline info
/// </summary> /// </summary>
public record SharedKline public record SharedKline : SharedSymbolModel
{ {
/// <summary> /// <summary>
/// Open time /// Open time
@ -35,7 +35,8 @@ namespace CryptoExchange.Net.SharedApis
/// <summary> /// <summary>
/// ctor /// ctor
/// </summary> /// </summary>
public SharedKline(DateTime openTime, decimal closePrice, decimal highPrice, decimal lowPrice, decimal openPrice, decimal volume) public SharedKline(SharedSymbol? sharedSymbol, string symbol, DateTime openTime, decimal closePrice, decimal highPrice, decimal lowPrice, decimal openPrice, decimal volume)
: base(sharedSymbol, symbol)
{ {
OpenTime = openTime; OpenTime = openTime;
ClosePrice = closePrice; ClosePrice = closePrice;

View File

@ -5,7 +5,7 @@ namespace CryptoExchange.Net.SharedApis
/// <summary> /// <summary>
/// Public trade info /// Public trade info
/// </summary> /// </summary>
public record SharedTrade public record SharedTrade : SharedSymbolModel
{ {
/// <summary> /// <summary>
/// Quantity of the trade /// Quantity of the trade
@ -27,7 +27,7 @@ namespace CryptoExchange.Net.SharedApis
/// <summary> /// <summary>
/// ctor /// ctor
/// </summary> /// </summary>
public SharedTrade(decimal quantity, decimal price, DateTime timestamp) public SharedTrade(SharedSymbol? sharedSymbol, string symbol, decimal quantity, decimal price, DateTime timestamp) : base(sharedSymbol, symbol)
{ {
Quantity = quantity; Quantity = quantity;
Price = price; Price = price;