feat(backend): add analysis and calendar endpoints

This commit is contained in:
2026-08-14 23:56:57 +02:00
parent 5c4b3165ba
commit f94e3b8164
2 changed files with 2 additions and 4 deletions
@@ -83,9 +83,7 @@ public class AnalyzeController : ControllerBase
var sentData = await sentTask;
decimal lastCandlePrice = taData?.Candles != null && taData.Candles.Count > 0 ? (decimal)taData.Candles.Last().Close : 0m;
decimal resolvedPrice = request.CurrentPrice ??
(lastCandlePrice > 0 ? lastCandlePrice :
(fundData != null && fundData.CurrentPrice > 0 ? fundData.CurrentPrice : 100.0m));
decimal resolvedPrice = request.CurrentPrice ?? (lastCandlePrice > 0 ? lastCandlePrice : 100.0m);
var rpcRequest = new ManualAnalysisRpcRequest(
Isin: targetIsin,
@@ -65,7 +65,7 @@ public class CalendarController : ControllerBase
var parsedEvents = rawEvents.Select(e =>
{
string eventIsin = e.Isin ?? string.Empty;
string ticker = e.Ticker ?? string.Empty;
string ticker = e.Ticker?.Ticker ?? string.Empty;
string companyName = e.CompanyName ?? string.Empty;
string eventType = e.EventType ?? string.Empty;
DateTime eventDate = e.Date;