Add event
This commit is contained in:
@@ -71,12 +71,6 @@ public class StrategyDeployedEvent : PlatformMetricsEvent
|
||||
|
||||
[Id(3)]
|
||||
public string StrategyName { get; set; } = string.Empty;
|
||||
|
||||
[Id(4)]
|
||||
public decimal InitialVolume { get; set; }
|
||||
|
||||
[Id(5)]
|
||||
public decimal InitialPnL { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -105,18 +99,12 @@ public class PositionOpenedEvent : PlatformMetricsEvent
|
||||
public Guid PositionId { get; set; }
|
||||
|
||||
[Id(2)]
|
||||
public Guid StrategyId { get; set; }
|
||||
public Ticker Ticker { get; set; }
|
||||
|
||||
[Id(3)]
|
||||
public string Ticker { get; set; } = string.Empty;
|
||||
public decimal Volume { get; set; }
|
||||
|
||||
[Id(4)]
|
||||
public decimal Size { get; set; }
|
||||
|
||||
[Id(5)]
|
||||
public decimal NotionalValue { get; set; }
|
||||
|
||||
[Id(6)]
|
||||
public TradeDirection Direction { get; set; }
|
||||
}
|
||||
|
||||
@@ -130,16 +118,16 @@ public class PositionClosedEvent : PlatformMetricsEvent
|
||||
public Guid PositionId { get; set; }
|
||||
|
||||
[Id(2)]
|
||||
public Guid StrategyId { get; set; }
|
||||
public Ticker Ticker { get; set; }
|
||||
|
||||
[Id(3)]
|
||||
public string Ticker { get; set; } = string.Empty;
|
||||
|
||||
[Id(4)]
|
||||
public decimal RealizedPnL { get; set; }
|
||||
|
||||
[Id(5)]
|
||||
[Id(4)]
|
||||
public decimal Volume { get; set; }
|
||||
|
||||
[Id(5)]
|
||||
public decimal InitialVolume { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -158,7 +146,7 @@ public class TradeExecutedEvent : PlatformMetricsEvent
|
||||
public Guid StrategyId { get; set; }
|
||||
|
||||
[Id(4)]
|
||||
public string Ticker { get; set; } = string.Empty;
|
||||
public Ticker Ticker { get; set; }
|
||||
|
||||
[Id(5)]
|
||||
public decimal Volume { get; set; }
|
||||
|
||||
@@ -65,11 +65,11 @@ public class PlatformSummaryGrainState
|
||||
|
||||
// Volume breakdown by asset
|
||||
[Id(17)]
|
||||
public Dictionary<string, decimal> VolumeByAsset { get; set; } = new();
|
||||
public Dictionary<Ticker, decimal> VolumeByAsset { get; set; } = new();
|
||||
|
||||
// Position count breakdown
|
||||
[Id(18)]
|
||||
public Dictionary<string, int> PositionCountByAsset { get; set; } = new();
|
||||
public Dictionary<Ticker, int> PositionCountByAsset { get; set; } = new();
|
||||
|
||||
[Id(19)]
|
||||
public Dictionary<TradeDirection, int> PositionCountByDirection { get; set; } = new();
|
||||
|
||||
@@ -93,13 +93,13 @@ public class PlatformSummaryViewModel
|
||||
/// Volume breakdown by asset/ticker
|
||||
/// </summary>
|
||||
[Id(13)]
|
||||
public required Dictionary<string, decimal> VolumeByAsset { get; set; }
|
||||
public required Dictionary<Ticker, decimal> VolumeByAsset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Position count breakdown by asset/ticker
|
||||
/// </summary>
|
||||
[Id(14)]
|
||||
public required Dictionary<string, int> PositionCountByAsset { get; set; }
|
||||
public required Dictionary<Ticker, int> PositionCountByAsset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Position count breakdown by direction (Long/Short)
|
||||
|
||||
Reference in New Issue
Block a user