Baseline: Ausgangszustand vor Modularisierung
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>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
namespace PolyTraderSharp.Models
|
||||
{
|
||||
public class Position
|
||||
{
|
||||
[MongoDB.Bson.Serialization.Attributes.BsonId]
|
||||
public string TokenId { get; set; } = string.Empty;
|
||||
public string MarketSlug { get; set; } = string.Empty;
|
||||
public string ConditionId { get; set; } = string.Empty;
|
||||
public int SourceTraderId { get; set; }
|
||||
public string SourceTraderName { get; set; } = string.Empty;
|
||||
public string SourceTraderAddress { get; set; } = string.Empty;
|
||||
public string MarketQuestion { get; set; } = string.Empty;
|
||||
public string Outcome { get; set; } = string.Empty;
|
||||
public string Side { get; set; } = "BUY";
|
||||
public decimal EntryPrice { get; set; }
|
||||
public decimal Size { get; set; } // Shares
|
||||
public decimal AmountUsd { get; set; }
|
||||
public decimal CurrentPrice { get; set; }
|
||||
public decimal CurrentValueUsd { get; set; }
|
||||
public System.DateTime? ExpiryDate { get; set; }
|
||||
public System.DateTime OpenedAt { get; set; } = System.DateTime.UtcNow;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user