feat(core): add internal crypto isin resolution and subtitle mapping
This commit is contained in:
@@ -61,6 +61,15 @@ public class TradeProposalDto
|
||||
[JsonPropertyName("instrumentType")]
|
||||
public string InstrumentType { get; set; } = "Stock"; // "Stock", "Option", "CFD", "Crypto"
|
||||
|
||||
[JsonPropertyName("assetType")]
|
||||
public string AssetType { get; set; } = "stock"; // "stock", "etf", "crypto", "bond"
|
||||
|
||||
[JsonPropertyName("hasCfd")]
|
||||
public bool HasCfd { get; set; }
|
||||
|
||||
[JsonPropertyName("derivativeProductCategories")]
|
||||
public List<string> DerivativeProductCategories { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("derivativeIsin")]
|
||||
public string? DerivativeIsin { get; set; }
|
||||
|
||||
@@ -141,6 +150,21 @@ public class TradeProposalDto
|
||||
[JsonPropertyName("pnlPercent")]
|
||||
public decimal? PnlPercent { get; set; }
|
||||
|
||||
[JsonPropertyName("closeReason")]
|
||||
public string? CloseReason { get; set; }
|
||||
|
||||
[JsonPropertyName("userExitTimestamp")]
|
||||
public DateTime? UserExitTimestamp { get; set; }
|
||||
|
||||
[JsonPropertyName("hasPendingExitAlert")]
|
||||
public bool HasPendingExitAlert { get; set; } = false;
|
||||
|
||||
[JsonPropertyName("pendingExitReason")]
|
||||
public string? PendingExitReason { get; set; }
|
||||
|
||||
[JsonPropertyName("hourlyUpdates")]
|
||||
public List<TradeHourlyUpdateDto>? HourlyUpdates { get; set; }
|
||||
|
||||
[JsonPropertyName("createdAt")]
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user