feat(quant): WBS-FE-BE-100 complete Vue3 Vite8 SPA & .NET10 FastEndpoints refactoring
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 13s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 19s

This commit is contained in:
2026-07-22 15:14:28 +09:00
parent fd8ff3d51e
commit 2fe4cb288f
100 changed files with 7975 additions and 804 deletions
@@ -1,11 +1,33 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace QuantEngine.Core.Interfaces
{
/// <summary>
/// Core Domain Interface for PostgreSQL History-First Operating Model.
/// Strictly enforces SOLID principles, 3NF Data Integrity, and Provenance Payload Tracking.
/// </summary>
public interface IPostgresqlHistoryStore
{
/// <summary>
/// Appends a raw market or factor history record to PostgreSQL with JSONB Provenance.
/// </summary>
Task<int> AppendAsync(string domain, IDictionary<string, object?> payload);
/// <summary>
/// Retrieves the latest versioned snapshot for a given operational history domain.
/// </summary>
Task<IReadOnlyList<IDictionary<string, object?>>> SnapshotAsync(string domain, int limit = 500);
/// <summary>
/// Records a sell strategy waterfall execution step for auditability and game-theoretic risk tracking.
/// </summary>
Task<long> RecordWaterfallExecutionAsync(string runId, string ticker, int rank, string stage, string action, int targetQty, decimal? targetPrice, decimal? bidAskSpreadBps, decimal? slippageBps, string status, string rationale);
/// <summary>
/// Records a blocked order or gate restriction to the Shadow Ledger without hiding calculation values.
/// </summary>
Task<long> RecordShadowLedgerAsync(string runId, string ticker, string blockedGate, string blockedReason, decimal shadowPrice, int shadowQty, decimal? shadowTpPrice, decimal? shadowSlPrice);
}
}