Quantitative Market Research Tool
Paste the following prompt into your AI chat to install this skill:
Please refer to https://skillhub.cn/install/skillhub.md to install @user_9d5a2a39/aistockresearcher.
About this skill
The Core Problem It Addresses
Financial market data analysis frequently contends with fragmented information sources, requiring logins to disparate platforms or navigating different APIs. Analytical frameworks are often siloed, making it difficult to integrate technical, fundamental, flow, and sentiment data into a unified perspective. For individual developers or researchers, building a quantitative analysis pipeline that supports multi-asset, multi-market, and multi-horizon analysis is prohibitively complex. 股票研究员 (v9.5) tackles these issues. It is a toolkit built on the Python standard library, aiming to provide engineers and quantitative enthusiasts a zero pip dependency (core functionality) starting point for quickly prototyping analyses covering major global markets.
Core Capabilities and How It Works
The tool uses a modular design. The core analysis pipeline can be summarized in the following steps:
- Data Acquisition and Unification: It fetches market, financial, and money flow data via free public interfaces from Tencent and Eastmoney (requiring no API Key), and automatically handles code parsing for different asset types like A-shares, Hong Kong stocks, US stocks, indices, futures, funds, and convertible bonds. Optional installation of
akshareenables access to broader macro and bond data. - Multi-Dimensional Quantitative Computation: After data retrieval, the tool performs a series of calculations. This includes basic valuation (PE/PB percentile), financial health analysis, and more complex quantitative metrics such as Sector Relative Strength (RPS), Market Breadth, Volatility Regime, and Value Investing Score (DCF, Moat, etc.). A key unified entry point is
quant_analyze_asset(code), which automatically identifies the asset type and invokes the corresponding analyzer. - Forecasting and Consensus Generation: Prediction is not the output of a single model. The tool provides a
MultiHorizonForecaster, which integrates signals from ten dimensions (e.g., technical, flow, macro, sentiment) to predict direction and probability from 1 day to 6 months ahead. Going further, v9.5 introduces the Master Council (MasterCouncil), which simulates six classic investment master strategies (e.g., Soros's macro-reflexivity, Livermore's key points) to independently score the same asset. The results are then weighted by confidence to form a 'consensus' reference, helping to understand bullish/bearish viewpoints from different strategic lenses. - Strategy Validation and Output: The tool includes a simple backtesting engine (
BacktestEngine) and portfolio optimization (allocate_portfolio) functionality, implementing models like mean-variance optimization using pure standard library methods. The final output follows a structured report template that explicitly marks data quality (actual/derived/estimated) and includes a clear disclaimer, emphasizing its nature as for learning reference only and not investment advice.
Scope and Important Caveats
Before considering its use, it is crucial to understand the following limitations:
- Network Environment: The data sources are primarily domestic servers. The tool must be used on a direct domestic network. Enabling a VPN or proxy will cause connection failures.
- Data Nature: The data provided has a delay of approximately 3-5 seconds and is not real-time. Forecast results are based on historical pattern statistics and must not be equated with earnings predictions or future guarantees.
- Feature Dependencies: Advanced features (e.g., comprehensive bond analysis, fund NAV) require the optional dependency akshare. The tool automatically degrades gracefully if it is not installed.
- Positioning and Responsibility: This is a technical learning tool and analytical framework prototype. All its outputs, including scores and forecasts, should not be used as the basis for actual investment decisions. Users must assume all investment risks themselves.
This tool is suitable for learning quantitative analysis workflows, testing trading strategy concepts, and conducting multi-dimensional market data visualization research.
Use Cases
- Before a Monday morning meeting, quickly assess the relative strength (RPS) and internal dispersion of watched industry sectors (e.g., New Energy, Semiconductors) from the past week to judge the sector rotation stage.
- Holding a simulated portfolio of stocks, ETF funds, and a small amount of convertible bonds, calculate the portfolio's overall VaR (Value at Risk) and maximum drawdown, then perform mean-variance optimization to adjust asset allocation.
- Conduct deep research on a US stock, requiring a one-time retrieval of its historical PE/PB percentiles, recent money flow data, and multi-horizon model (1 day to 6 months) probability forecasts for an upward move.
- Validate the effectiveness of a simple trading strategy based on MACD and RSI on 5 years of CSI 300 index data, requiring backtesting and calculation of metrics like annualized return and win rate.
Best For
- A personal quant enthusiast needing to quickly set up a multi-market, multi-asset analysis prototype in a local Python environment to learn and validate trading ideas.
- A financial researcher or analyst requiring quick access to multi-dimensional quantitative metrics and graphical market regime assessments for writing industry or stock research reports.
- A student or trader managing a small simulated portfolio, seeking to perform risk attribution analysis (e.g., drawdown profiling) and receive rebalancing and optimization suggestions.
- A technical developer interested in classic investment strategies (e.g., value investing, master strategies) who wants to implement them in code and quantitatively compare different strategic viewpoints on the same asset.
Related Skills
Performs project discrimination, classification, and structured extraction on bidding documents, outputting standardized data with support for manual review.
Expert in multi-platform data collection, integration, and interpretation, delivering market research, sentiment monitoring, ROI analysis, and visual reporting for data-driven decision-making.
Aggregates 11 stock selection strategies into a single entry point, supporting single-strategy and multi-strategy combinations with concurrent acceleration and HTML visualization reports.
This skill uses AI to intelligently analyze data features, automatically recommend and generate interactive HTML visualization dashboards, supporting multiple chart types.