Erster Commit des bestehenden monolithischen WinForms-Copytraders, inklusive der Alt-Backups (*.bak), damit diese dauerhaft in der Historie rekonstruierbar bleiben. Threema-Lib unter libs/ wurde vendored (nested .git entfernt). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
namespace PolyTraderSharp.Models
|
|
{
|
|
public class ClosedTrade
|
|
{
|
|
[MongoDB.Bson.Serialization.Attributes.BsonId] public int TradeId { get; set; }
|
|
public int AccountId { get; set; }
|
|
public int SourceTraderId { get; set; }
|
|
public bool IsDemo { get; set; }
|
|
|
|
public string TokenId { get; set; } = string.Empty;
|
|
public string MarketSlug { get; set; } = string.Empty;
|
|
public string MarketQuestion { get; set; } = string.Empty;
|
|
public string Outcome { get; set; } = string.Empty;
|
|
|
|
public string Side { get; set; } = string.Empty;
|
|
public decimal EntryPrice { get; set; }
|
|
public decimal ExitPrice { get; set; }
|
|
public decimal Size { get; set; }
|
|
|
|
public decimal RealizedPnl { get; set; }
|
|
public decimal PnlPercent { get; set; }
|
|
public decimal TotalFees { get; set; }
|
|
|
|
public DateTime OpenedAt { get; set; }
|
|
public DateTime ClosedAt { get; set; }
|
|
public string ExitReason { get; set; } = string.Empty;
|
|
}
|
|
public class ClosedTradeRow : ClosedTrade
|
|
{
|
|
public string AccountName { get; set; } = string.Empty;
|
|
public string SourceTraderName { get; set; } = string.Empty;
|
|
|
|
[System.ComponentModel.Browsable(false)]
|
|
public string SourceTraderAddress { get; set; } = string.Empty;
|
|
}
|
|
}
|