feat(backend): add analysis and calendar endpoints
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user