Loading...
Loading...
Stock Screener - Screen all market stocks based on conditions to identify targets that match your strategy
npx skill4agent add chengzuopeng/stock-sdk-mcp stock-screener{
"tool": "get_all_a_share_quotes",
"arguments": {
"market": "all" // or "sh"/"sz"/"kc"/"cy"
}
}{
"tool": "get_all_hk_quotes",
"arguments": {}
}{
"tool": "get_all_us_quotes",
"arguments": {
"market": "all" // or "NASDAQ"/"NYSE"
}
}{
"tool": "get_concept_constituents", // or get_industry_constituents
"arguments": {
"code": "sector code"
}
}// Example screening logic (processed internally by AI)
const results = allQuotes.filter(stock => {
// Price change condition
if (condition.minChangePercent && stock.changePercent < condition.minChangePercent) return false;
if (condition.maxChangePercent && stock.changePercent > condition.maxChangePercent) return false;
// P/E ratio condition
if (condition.maxPE && stock.pe > condition.maxPE) return false;
if (condition.minPE && stock.pe < condition.minPE) return false;
// Market capitalization condition (unit: 100 million)
if (condition.minMarketCap && stock.totalMarketCap < condition.minMarketCap) return false;
return true;
});sort((a, b) => b.changePercent - a.changePercent)sort((a, b) => b.amount - a.amount)sort((a, b) => b.totalMarketCap - a.totalMarketCap)## 📋 Screening Results
**Screening Conditions**: STAR Market + Today's increase > 5%
**Number of Results**: 15 stocks
| Rank | Code | Name | Current Price | Price Change | Trading Amount (100 million) | P/E Ratio |
|------|------|------|---------------|--------------|------------------------------|-----------|
| 1 | 688XXX | XXX | 88.88 | +12.5% | 5.6 | 35.2 |
| 2 | 688XXX | XXX | 66.66 | +10.2% | 3.2 | 28.5 |
| ... | ... | ... | ... | ... | ... | ... |
💡 **Tip**: For further analysis of a specific stock, you can say "Analyze the first one"Conditions: Price change >= 9.9% (A-shares)
Tool: get_all_a_share_quotes -> filter changePercent >= 9.9Conditions: Market capitalization > 500 million && PE < 15 && PE > 0
Tool: get_all_a_share_quotes -> filterConditions: Today's trading volume > 5-day average trading volume * 2 && Increase > 3%
Tool: First obtain market quotes, then retrieve K-lines one by one for calculationget_all_a_share_quotes