PostProcessReview
Post Process Review: triggers AI Process Review when research status is Reach SL.
| API | Description |
|---|---|
| GET api/postprocessreview/GetAll |
Gets all records from [dbo].[AgentPromptOptimization] with full column details. |
| GET api/postprocessreview/result?requestId={requestId} |
Gets full details of AgentPromptOptimization records for the given RequestID where IsResult = 1. |
| GET api/postprocessreview/optimization?requestId={requestId} |
Gets AgentPromptOptimization records for the given RequestID. |
| GET api/postprocessreview?researchId={researchId}&symbol={symbol} |
Executes Post Process Review for the given Research ID. Validates that research status is "Reach SL", then calls AI Process Review URL with Symbol and RequestID. |
AgentPrompt
APIs for agent prompts. Get, Add, Update via SPs GetAgentPrompts, AddAgentPrompt, UpdateAgentPrompt.
| API | Description |
|---|---|
| GET api/agent-prompt?promptId={promptId} |
Gets agent prompts from SP GetAgentPrompts. Optional promptID to filter by specific prompt. |
| GET api/agent-prompt/{promptId} |
Gets a single agent prompt by ID. GET api/agent-prompt/20 |
| GET api/agent-prompt/by-version?workflowTypeId={workflowTypeId}&agentId={agentId}&version={version} |
Gets a workflow agent prompt for a specific version. SP GetWorkflowAgentPromptByVersions. GET api/agent-prompt/by-version?workflowTypeId=1&agentId=2&version=3 |
| POST api/agent-prompt/promote-version |
Promotes a workflow agent prompt version. SP PromoteWorkflowAgentPromptVersion. POST api/agent-prompt/promote-version |
| GET api/agent-prompt/supported-prompt-versions?agentId={agentId}&workflowTypeId={workflowTypeId} |
Returns supported prompt version numbers for a given AgentID and WorkflowTypeID using SP GetWorkflowAgentSupportedPromptVersions. |
| GET api/agent-prompt/supported-ai-providers |
Gets supported AI models from [dbo].[AgentAIModel] including token pricing. GET api/agent-prompt/supported-ai-providers |
| POST api/agent-prompt |
Creates a new agent prompt via SP AddAgentPrompt. |
| PUT api/agent-prompt/{id} |
Updates an agent prompt via SP UpdateAgentPrompt. |
N8n
API controller for n8n Workflow and Execution integration. Proxies requests to n8n API with X-N8N-API-KEY authentication. See: https://docs.n8n.io/api/api-reference/
PerformanceAuditorTradingScheduler
No description available.
| API | Description |
|---|---|
| GET api/prompt/performance-auditor-trading-scheduler?agentAudit={agentAudit} |
GET api/prompt/performance-auditor-trading-scheduler?agentAudit=1|2 |
| GET api/ai-trading-analysis/GetExistAIScheduledDailyPlan?investorId={investorId}&requestId={requestId} |
GET api/ai-trading-analysis/GetExistAIScheduledDailyPlan?investorId=…&requestId=… (requestId optional) |
| POST api/ai-trading-analysis/PerformTradingScheduledAnalysis |
POST api/ai-trading-analysis/PerformTradingScheduledAnalysis Body: { "requestId": "…", "investorId": n } |
Agent
APIs for agent orchestration, workflows, and strategy management. Create, update, and activate agents.
| API | Description |
|---|---|
| GET api/agent |
Returns all active agents. |
| GET api/agent/workflows |
Returns all supported agent workflows from AgentsWorkflow table. |
| GET api/agent/strategies |
Returns all strategies. |
| GET api/agent/progress?requestId={requestId}&agentId={agentId} |
Returns execution progress per agent from AgentPromptAudit. Requires RequestId and AgentID. Returns percentage based on completed vs total expected for that agent. |
| GET api/agent/summary/{requestId}?agentId={agentId} |
Returns agent analysis summary for the given request ID. Optional agentId filter. |
| POST api/agent/add |
Creates a new agent using SP AddAgent. POST with body: AgentName, Description, AI_Model_Provider, AI_Model_Name, IsActive, WorkflowID, AgentUrl. |
| PUT api/agent/update/{id} |
Updates an existing agent using SP UpdateAgent. PUT with route id and body: AgentName, Description, AI_Model_Provider, AI_Model_Name, IsActive, WorkflowID, AgentUrl. |
| PUT api/agent/activate |
Turn On/Off a specific agent. PUT with body: AgentID, WorkFlowID (optional scope), IsActive. |
AIModelBilling
No description available.
| API | Description |
|---|---|
| GET api/ai-model-billing/version |
GET api/ai-model-billing/version — confirm deploy after publish. |
| GET api/ai-model-billing/record?requestId={requestId}&executionId={executionId}&promptName={promptName}&aiModel={aiModel}&sync={sync}&async={async} |
Records AI billing from n8n. Debate prompts always run synchronously (up to ~90s poll). n8n HTTP Request node timeout must be 120 seconds. |
PerformanceAuditorAnalyst
No description available.
| API | Description |
|---|---|
| GET api/prompt/performance-auditor?version={version}&workflowTypeId={workflowTypeId} |
No description available. |
Research
APIs for research creation, retrieval, status updates, strategy execution, price candles chart data, and review executions.
Workflow
APIs for workflow CRUD operations on AgentsWorkflow table. Get all workflows, get by ID, create new, or update WorkflowName, Description, IsActive.
| API | Description |
|---|---|
| GET api/workflow |
Returns all workflows from AgentsWorkflow table. |
| GET api/workflow/{id} |
Returns a single workflow by ID. |
| PUT api/workflow/{id} |
Updates workflow WorkflowName, Description, IsActive. PUT with route id and body. |
| POST api/workflow |
Creates a new workflow. POST with body: WorkflowName, Description, IsActive. |
WorkflowAIAgent
APIs for workflow AI agents. Returns agents per workflow from SP GetWorkflowAIAgents.
| API | Description |
|---|---|
| GET api/workflow-ai-agents?workflowId={workflowId} |
Returns only SP fields: AgentID, WorkflowID, WorkflowName, AgentName, Description, AI_Model_Provider, IsActive, MaxRetries, PromptID, ExecutionOrder, SystemPrompt, UserPromptTemplate, VersionNumber, AgentUrl, CreatedDate |
AITradingScheduledPlan
Investor trading schedule data from stored procedures GetTodayTradingScheduledPlan and GetWeeklyTradingScheduledPlan.
| API | Description |
|---|---|
| GET api/ai-trading-scheduled-plan/GetTodayTradingScheduledPlan?investorId={investorId} |
GET api/ai-trading-scheduled-plan/GetTodayTradingScheduledPlan?investorId=… |
| GET api/ai-trading-scheduled-plan/GetWeeklyTradingScheduledPlan?investorId={investorId} |
GET api/ai-trading-scheduled-plan/GetWeeklyTradingScheduledPlan?investorId=… |
CheckSupportedStocks
APIs for checking and listing supported stock tickers from the TaapiStocks database.
| API | Description |
|---|---|
| GET api/CheckSupportedStocks?ticker={ticker} |
Checks whether a given ticker exists in TaapiStocks. Returns true if supported, false otherwise. |
| GET api/CheckSupportedStocks/list |
Returns all supported stocks from TaapiStocks as a list of Id and StockTicker. |
MultiAgentStateMachine
No description available.
| API | Description |
|---|---|
| GET api/multiagentstatemachine |
Gets all records from [dbo].[MultiAgentStateMachine]. |
| GET api/multiagentstatemachine/workflowtype/{workflowTypeId} |
Gets MultiAgentStateMachine records filtered by WorkflowTypeID. |
| POST api/multiagentstatemachine/addpoint |
AddPoint: Adds a workflow multi-agent state machine by calling [dbo].[AddMultiAgentStateMachine]. |
| POST api/multiagentstatemachine/addmultiagentstatemachinestep |
Adds a new state row to [dbo].[MultiAgentStateMachine] via [dbo].[AddMultiAgentStateMachineStep]. |
| PUT api/multiagentstatemachine/{id} |
Updates [dbo].[MultiAgentStateMachine] by ID. Does not modify ID or WorkFlowTypeID. |
| PUT api/multiagentstatemachine/updateagentexecutionstate |
Updates agent execution state details by calling [dbo].[UpdateMultiAgentStateMachineExecutionDetails]. Matches rows by AgentID and WorkflowTypeID. |
MacroAnalyst
Returns Macro Analyst agent prompts by version.
| API | Description |
|---|---|
| GET api/MacroAnalyst?version={version}&workflowTypeId={workflowTypeId} |
Returns Macro Analyst agent prompt by version. |
SummaryAnalystData
Returns Summary Analyst agent prompts by version.
| API | Description |
|---|---|
| GET api/SummaryAnalystData?version={version}&workflowTypeId={workflowTypeId} |
Returns Summary Analyst agent prompt by version. |
EquitySelection
Returns Equity Selection agent prompts by version.
| API | Description |
|---|---|
| GET api/EquitySelection?version={version}&workflowTypeId={workflowTypeId} |
Returns Equity Selection agent prompt by version. |
SentimentalAnalyst
Returns Sentiment Analyst agent prompts by version.
| API | Description |
|---|---|
| GET api/SentimentalAnalyst?version={version}&workflowTypeId={workflowTypeId} |
Returns Sentiment Analyst agent prompt by version. |
TechnicalAnalyst
Returns Technical Analyst agent prompts by version.
| API | Description |
|---|---|
| GET api/TechnicalAnalyst?version={version}&workflowTypeId={workflowTypeId} |
Returns Technical Analyst agent prompt by version. |
FudamentalAnalyst
Returns Fundamental Analyst agent prompts by version.
| API | Description |
|---|---|
| GET api/FudamentalAnalyst?version={version}&workflowTypeId={workflowTypeId} |
Returns Fundamental Analyst agent prompt by version. |
ResearchDebateManager
Returns Research Debate Manager agent prompts by version.
| API | Description |
|---|---|
| GET api/ResearchDebateManager?version={version}&workflowTypeId={workflowTypeId} |
Returns Research Debate Manager agent prompt by version. |
RiskManager
Returns Risk Manager agent prompts by version.
| API | Description |
|---|---|
| GET api/RiskManager?version={version}&workflowTypeId={workflowTypeId} |
Returns Risk Manager agent prompt by version. |
TradingPortfolioManager
Returns Trading Portfolio Manager agent prompts by version.
| API | Description |
|---|---|
| GET api/TradingPortfolioManager?version={version}&workflowTypeId={workflowTypeId} |
Returns Trading Portfolio Manager agent prompt by version. |