一键导入
validatetraderequest
Validate a user's trade request against business rules, portfolio constraints, and risk parameters.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate a user's trade request against business rules, portfolio constraints, and risk parameters.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | validateTradeRequest |
| description | Validate a user's trade request against business rules, portfolio constraints, and risk parameters. |
根据业务规则和约束验证交易请求。
interface ValidateTradeRequestInput {
tradingPlan: TradingPlan; // 要验证的交易计划
userPortfolio: UserPortfolio; // 当前投资组合
userPreference: UserPreference; // 用户偏好
dryRun?: boolean; // 试运行模式(默认:false)
}
interface ValidateTradeRequestOutput {
valid: boolean;
checks: {
tickerValid: boolean;
priceValid: boolean;
quantityValid: boolean;
sufficientFunds: boolean;
withinRiskLimits: boolean;
principlesCompliant: boolean;
};
warnings: string[];
errors: string[];
estimatedCost?: number; // 预计成本(如有效)
estimatedImpact?: { // 预计投资组合影响(如有效)
newCashBalance: number;
newPositionValue: number;
totalValue: number;
};
}
INVALID_PLAN: 交易计划无效VALIDATION_ERROR: 交易请求验证失败Analyze overall market sentiment, sector trends, and identify hot topics and stocks.
Analyze individual stocks, providing technical, fundamental, and sentiment analysis along with trading recommendations.
Analyze the results of executed trades to evaluate performance and extract lessons.
Verify if a trading plan complies with user-defined risk limits such as position size and stop-loss levels.
Collect market data, technical indicators, news, KOL views, and option data for financial analysis.
Create a detailed trading plan based on stock analysis, portfolio status, and user preferences.