1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-20 12:53:02 +00:00
Files
CryptoExchange.Net/CryptoExchange.Net/Trackers/Trades/TradesCompare.cs
T
Jan Korf 9e86a08327 Trackers (#218)
Fix for intermittently failing rate limiting test
Added ConnectionId to RequestDefinition to correctly handle connection and path rate limiting configuration
Added ValidateMessage method to websocket Query object to filter messages even though it is matched to the query based on the  ListenIdentifier
Added KlineTracker and TradeTracker implementation
2024-10-28 10:36:19 +01:00

38 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace CryptoExchange.Net.Trackers.Trades
{
/// <summary>
/// Trades statistics comparison
/// </summary>
public record TradesCompare
{
/// <summary>
/// Number of trades
/// </summary>
public CompareValue TradeCountDif { get; set; } = new CompareValue(null, null);
/// <summary>
/// Average trade price
/// </summary>
public CompareValue? AveragePriceDif { get; set; }
/// <summary>
/// Volume weighted average trade price
/// </summary>
public CompareValue? VolumeWeightedAveragePriceDif { get; set; }
/// <summary>
/// Volume of the trades
/// </summary>
public CompareValue VolumeDif { get; set; } = new CompareValue(null, null);
/// <summary>
/// Volume of the trades in quote asset
/// </summary>
public CompareValue QuoteVolumeDif { get; set; } = new CompareValue(null, null);
/// <summary>
/// The volume weighted Buy/Sell ratio. A 0.7 ratio means 70% of the trade volume was a buy.
/// </summary>
public CompareValue? BuySellRatioDif { get; set; }
}
}