Phase 3a: Core-Domänenmodelle in den Core verschoben

- AccountState, Position, MarketData nach src/PolyTrader.Core/Models/
  (Namespace PolyTraderSharp.Models beibehalten → keine Consumer-Änderung).
- AccountState: ungenutzte usings (MongoDB.Driver, PolyTraderSharp.Extensions)
  entfernt (Core darf App-Shim nicht referenzieren).
- MongoDB.Driver 2.24.0 als Core-Paket (für BsonId-Attribute).
- Build 0 Fehler.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
bergm
2026-07-01 16:27:28 +02:00
co-authored by Claude Opus 4.8
parent e2c01432cd
commit 8b3264f240
4 changed files with 4 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
namespace PolyTraderSharp.Models
{
public class MarketData
{
[MongoDB.Bson.Serialization.Attributes.BsonId] public string Id { get; set; } = string.Empty;
public string ConditionId { get; set; } = string.Empty;
public string Question { get; set; } = string.Empty;
public string Slug { get; set; } = string.Empty;
public DateTime? EndDate { get; set; }
public bool Active { get; set; }
public bool Closed { get; set; }
public string Category { get; set; } = string.Empty;
// Will store the JSON array string of token IDs, e.g. "[\"123\", \"456\"]"
public string ClobTokenIds { get; set; } = string.Empty;
public string Outcomes { get; set; } = string.Empty; // e.g. "[\"Yes\", \"No\"]"
public bool NegRisk { get; set; }
}
}