Skip to content

Research workspace controls

The floating assistant lists enabled real HTTP model profiles. Missing model configuration produces a setup error; explicit market-data test mode does not authorize a simulated assistant answer. Native CLI choices retain their existing installation and authorization checks. Model keys stay in the local environment.

Drag the assistant header to move it, or its bottom corner to resize it. The corner also accepts arrow keys. Size persists in browser storage and is bounded again when the viewport changes, including while the panel is closed.

Knowledge Q&A separates the answer from Sources and full citation. Retrieval settings collapse independently. Select a source title to open its full chunk and original-file preview; large answers and references scroll separately.

Company and sector research

Use Market Research in the sidebar to choose Market Analysis, Stock Analysis, or Watchlist Pools and Screening. The combined page contains Current Watchlists, Strategy Screening, and Excel Import and Export. Choose the pool above the tabs. Excel transfer applies to the active market. Use Screen with this pool to carry the selection into screening. Earlier links resolve to the corresponding tab.

Type part of a name or code in Stock Analysis and choose a suggestion with the mouse or arrow keys and Enter. The suggestions use the selected market's local security catalogue. A complete code can also be entered directly. Sections stay visible while editing. Open Five-level order book above the tabs and select Refresh order book to view the published bids and asks. The panel shows the source, timestamp, currency, and quantity unit. Missing levels or quantities appear as dashes.

In Quotes and sectors, select benchmarks and a period, then choose Query benchmark trends. A single index displays closing levels. Multiple indices display returns rebased to a shared start date. The panel lists its source and latest close. Use Query quotes and sectors to refresh the quote, history, and sector sections independently.

Market News shows publisher summaries and original links when supplied. Sort by publication time, market importance, or publisher-reported read counts. Highlighted stories include the reasons for their score. With no read counts, the list follows publication time and the status explains the fallback. Choose article frequency, weighted TF-IDF, or BGE semantic extraction for keywords. The status identifies the method used. Open older economic and financial reports from the Report Library.

Stock Analysis shares one security between Fundamentals, Technical analysis, Financial analysis, News and disclosures, Relationships, and Events and risk. Enter the company once, then load the relevant section. The company overview includes business details, listing date, sector, and a source link for covered mainland and Hong Kong listings. Financial statements color the difference from the same period in the prior year. The peer table uses a blue scale within each comparable metric. The risk view reports daily volatility, maximum drawdown over the available history, and the latest reported turnover. The relationships view contains rule-based and CLI-assisted graphs, history scoped to the selected security, evidence and exports. Company news defaults to the latest 30 calendar days. Select a preset or enter both dates to narrow the source's available coverage. In Financial analysis, expand Disclosure records after reading the statements to see report periods, announcement dates, covered metrics, and data sources. Quick evidence reopens direct relationships from a saved rule result. Open Relationships to choose a mode. Submit a query or start a Skill run to see the current worker stage and elapsed time. Use the cancel action to stop the run, or switch tabs, modes, or securities to release work owned by the previous view. A completed graph opens automatically, and saved runs remain available through history or export. The events view uses the announcement dates supplied with available mainland financial statements and shows the source for each date. Switching sections cancels unfinished transient reads. Existing fundamentals URLs open the financial section. Macroeconomic research remains independent. Financial coverage restrictions, such as unavailable HK statements, still apply. Set the chart period and bar count in the technical view and select Analyze technical indicators. The results show moving averages, RSI, MACD and recent volume with a short interpretation for each reading. A-shares can display 20- and 60-bar performance relative to the Shanghai Composite when both endpoint dates match. The price chart and related news or research publish independently when their respective sources finish.

The technical section also provides gainers, decliners, leaders, and trend boards. Enter an industry keyword to filter the returned name, symbol, and industry fields. The trend score combines the current change and turnover and is shown beside the raw change and amount.

Use Analyze with AI at the top of an eligible page, select a CLI and model, and choose Run AI analysis. The panel shows progress and opens the saved HTML for preview and download. The quote, financial and news controls load their data independently.

Factor research and execution

Strategy research workbench

In Strategy Construction → Strategy Research Workbench, choose an engine, market, data source, and saved strategy or Qlib model. Apply a stock pool or enter symbols for an ordinary or graphical backtest. For Qlib, choose a registered dataset and its native universe, then review the proposed training, validation, and evaluation dates.

Enter an experiment name and select Save Configuration. Select Check and Prepare Data. For a trainable Qlib model, select Start Training once the data is ready. Start the backtest when the required earlier steps are complete. The run history and current revision appear in Runs and Results. Use the saved experiment selector or reload the experiment URL to resume it.

The configuration displays fields for the selected engine and data source. The snapshot identifier appears when Research Snapshot is selected. Qlib uses its registered dataset and can filter the selected native universe. Only the applicable next action appears after configuration is saved. Completed results show headline metrics, equity and drawdown first. Open the detail sections for factor or training metrics, trades, attribution and execution evidence available for the selected engine.

Edits create a revision when saved. An execution-only change such as slippage keeps the compatible prepared data and Qlib training run, and requires a new backtest. Earlier runs keep the settings and results used at submission. In Compare Versions, select a baseline, other completed results, and an optional common benchmark. The comparison can be reopened from Saved Comparisons. The workbench uses the existing engines for metrics and attribution and shows the available evidence for each result.

In Strategy Simulation → Backtest and Simulation → Backtest, expand Saved Backtests and Benchmarks. Choose the market and select one or more saved ordinary, workshop, or Qlib runs. Compare their curves using the saved benchmarks or a public market index. The comparison uses the common dates and rebases each series to one at the first close. The lower table shows the full run's costs, trades, and settings. Public index returns use closing prices.

In Factor Research → Factor Mining, choose an archived market dataset or apply a stock pool with a historical date range. Under Quick Configuration and Mining, choose a preset and the prediction horizon. Preview the split dates, data fields, fees, and budgets before selecting Start Mining. Traditional, grid, genetic, Ridge, Lasso, Elastic Net, LightGBM, XGBoost, and small MLP presets run locally with zero language-model calls. The four Agent presets use the configured research provider and call budget.

The candidates retain their expression or frozen model, training sample counts or discovery statistics, and the underlying dataset. Use the existing candidate freeze and validation actions to evaluate them. The optional models profile supplies SciPy and the additional local model libraries.

Open Backtest Stock Pool in a standard backtest, the strategy library's quick backtest, or the graphical workshop. Choose a watchlist, saved resource pool, public index, ETF basket, or the local security directory. Load members, search by code or name, and check the rows to run. Page selection accumulates across pages. Select Apply Stock Pool to use the checked list for this run.

For a quick workflow check, choose Workflow Test Pool (流程测试池). Loading it checks the small list automatically. Apply it and choose a short date range with enough data for the selected strategy. The mainland China and US presets contain three securities each. The Hong Kong preset contains two. Qlib takes up to three instruments covered by the selected dataset or training run. The saved pool marks the run as workflow validation.

Historical market presets

Open Backtest Stock Pool and choose a Stock Pool Category. Existing Pools includes watchlists, saved resources, and other sources for the current market. Quick Workflow Check offers a short list for verifying the workflow.

  • Strategy Self-test asks for a pool size and a historical period. Use the 12-stock small pool to check the workflow, the 120-stock target to evaluate a strategy, or the 500-stock target for pre-launch research. Choose the full period or a bull, bear, or mixed market.
  • Paper Replication asks for a paper and an index. The index choices follow the selected market. The preview includes the forecast horizon, available study splits, source paper, and replication status.

The preview shows the pool's purpose, dates, constituent source, reference benchmark, and known data requirements. Choose Load List to see the actual available count, then Apply Stock Pool. In ordinary and workshop backtests, applying the list sets the usable evaluation dates. The workshop shows its security limit when the preset target exceeds it. For saved-run comparison, select the reference index from the available benchmarks.

By default the application uses data/research_presets. If you set ALL_IN_ONE_DATA_DIR, it uses the research_presets folder under that data root. Keep the directory in persistent storage. Loading a preset creates or reuses its versioned pool manifest. Starting a run reads the saved daily partitions and downloads only the missing market data needed by the selected run. A repeat uses the saved partition for the same symbol and date range. An interrupted download can be retried. These files are excluded from Git.

The public reference archive spans October 2014 through August 2025. The included A-share and U.S. cohorts are derived from the archive's observation windows. Exact point-in-time membership and corporate-action accounting require independent source data. Paper entries record the published protocol and label archive-backed runs as partial replications. Saved comparisons show available paper reference metrics separately from calculated metrics. See the HistoricalIndexPrices archive.

The Hong Kong medium and large pools and the CogAlpha HSCI variant require membership/hsci.parquet under the preset data root and per-symbol daily files at membership/hsci_prices/<folder_symbol>.parquet. The membership file requires index_folder, folder_symbol, company_name, price_start, price_end and price_rows. The daily files require date and OHLCV columns. For Hong Kong cash-equity simulation, enter dated per-symbol board lots in the execution settings. The workshop applies its 200-symbol limit. Qlib intersects the preset with the selected registered dataset and reads that dataset's own history.

Rule-based Selection offers liquidity, momentum, low volatility, and a composite ranking. It starts with a 20-session window and a top-20 selection. The data cutoff precedes the evaluation start, or the training start for a fixed model experiment. Liquidity uses reported traded value when present and close times volume as a proxy otherwise. The workshop can screen an imported real-market snapshot. Historical index membership comes from registered dated lists. Current CSI membership requires explicit confirmation for a historical run.

In Strategy Construction → Qlib Lab, choose a market and registered dataset, then select Apply dataset. Pick an instrument pool from that dataset and edit its suggested train, validation, and test dates. Use the statistical backtest controls to run momentum or mean reversion directly. To evaluate a learned model, first train it, then select the completed run in Signal Backtest. Choose a portfolio strategy, a benchmark, fees, and a date range inside the saved test signals. Expand the attribution table to inspect benchmark-relative returns, fee drag, drawdown, and turnover. The summary and daily series can be downloaded for comparison.

The Qlib training and statistical backtest selectors use the registered dataset's member intervals. The signal backtest selector can narrow a completed training run to securities with available predictions. Each run records the symbols, selection source, and screening settings when applied.

Expand Qlib Execution and Fees to set the buy and sell rates, minimum charge, slippage, price timing, and volume cap. The defaults are 5 and 15 basis points for buy and sell, an account-currency minimum of 5, and 5 basis points of adverse slippage at the following close. The cap is 1% of the average volume over 20 preceding trading sessions. Q-learning evaluations use the following close. Ensure the registered dataset has a date after the final backtest session.

Qlib's model picker shows missing dependencies in the configured Qlib interpreter. The PyTorch MLP requires PyTorch in that interpreter. Q-learning allocation uses past benchmark returns to learn a long-or-cash policy. Select Top-K Positive-Score Rank Weight to give zero-score cash signals their intended effect in the portfolio.

Open Strategy Construction → Factor Research → Monitoring to track known factors on a chosen universe. In Mining, select data, register a study, generate candidates, inspect their evidence, freeze the set, and run validation. The Strategy Library contains My Strategies and Preset Templates. Save a named copy of a template to customize it.

In the graphical workshop, select a saved version and use Backtest saved version to open the run controls. Specify the market, a named stock pool or manual symbols, and an evaluation interval. For a historical experiment, enter ordered train, validation, and test dates. Choose Train Models to fit the model nodes from the declared training period. For the backtest, select fixed training and out-of-sample testing to apply the model on the test dates. Reuse the same version and snapshot to reuse its fitted models. Use a direct quantitative backtest for rule-only graphs and Agent replay for dated archived decisions. The Agent report shows dates with and without matching evidence.

Select the Core-satellite portfolio template to start from a broad ETF core, a tactical sector ETF sleeve, and a cash reserve. The HTML report shows profit and loss by security and sleeve alongside costs and reconciliation. Portfolio methods such as HRP and minimum variance require SciPy from the models profile.

The workshop's portfolio templates include fixed weights with a drift band, shrinkage mean–variance, maximum diversification, Black–Litterman, historical CVaR, multi-period allocation with a turnover penalty, and Wasserstein robust CVaR. Load a template and open the Portfolio node to edit its parameters. Inspect the saved allocation diagnostics for solver constraints, the estimated frontier, or the radius calibration results. Black–Litterman accepts dated views and starts from the configured equilibrium weights when none are active.

The workshop's execution cost menu includes 5, 10, and 20 basis point scenarios with a common volume cap. For a sensitivity check, run the same saved version, data snapshot, and dates for each scenario. The report includes the number of incomplete orders and the value of incomplete orders with a usable reference price.

In Simulation → Backtest and Simulation → Paper Trading, expand Execution Costs and Assumptions before creating an account. The account overview records the chosen settings. Mainland stock accounts default to 3 basis points of commission per side, a CNY 5 minimum, 5 basis points of slippage, dated taxes and fees, and next-day sale eligibility. The fills endpoint returns the fee components and the execution reference price.

Workbench workflows

Open AI Workbench → Workflow Center → Edit and Run. Name the recipe, add registered research steps, fill the fields in the step editor, and adjust their order with the move controls. Validate and save a version. Choose that version to run it. History shows step outcomes and links to each result. Cancellation stops remaining steps and requests cancellation of the running step.

The news list and keyword strength chart use the selected filters and the same seven-day window. The status shows the window and the size of the bounded keyword sample. The chart uses TF-IDF with title, source and recency weighting. The factor progress pane scrolls within a fixed height.

Stock recommendations open on the candidate list. Candidate comparison compares factors and configurations. Backtesting uses the current recommendation results and displays performance, attribution and trades.

Set the board, ranking, and row count, then select Load quotes and sectors. The index and sector results update independently. The homepage Sector performance overview shows the count, source and time of the returned observations. Partial coverage is not fake data, but it also does not establish full-market breadth. Configured development data remains labelled.

The Market Sentiment Radar shows three readings: intraday index momentum, sector breadth and sector consistency. A zero has a numeric label. Sector readings require a complete provider-reported universe, and the ranking card can still show a partial list. A flat sector counts in the breadth denominator. Use the market controls to select coverage and the language control to switch the interface independently.

Sector tables use market-specific gain and loss colors, with one zero-centered scale per signed metric and a separate magnitude scale for traded amount. The macro table colors changes from the previous observation within unit groups. The Overview also shows scheduled Chinese releases in Beijing time and links to the official calendar when the included schedule is exhausted.

News and notifications

News geography and topic are independent filters. A cross-border item can affect several markets. Only items matching an explicit transmission channel enter the default list: monetary/fiscal policy, regulation/trade, supply/energy or material market/company events. Ordinary unrelated politics and entertainment are excluded. Unknown locations and source times stay unknown. Each item includes inclusion reasons and affected asset tags; these rules are not price predictions or a claim that every relevant original has been found. Original news records are retained. Policy and word lists live in egs/config/data/market_news.yaml.

Overview presents up to 16 distinct headlines from the latest seven calendar days, grouped by geography and subject. Expand a headline summary or open the News Center for filtering. News Center keywords use the selected market, geography, subject and current calendar day in Asia/Shanghai. The API also accepts scope=week, month or all. Unknown publication times remain available in unbounded news listings. Time-bounded results use verified source times.

Overview offers Tokenization and TF-IDF and Lightweight BERT extraction. The default combines Jieba, the finance dictionary, TF-IDF, headline weight, distinct stories, source diversity and freshness. Keyword chips carry their supporting headline. Topic rows group related stories and show a representative headline and count. The dictionary and ranking policy live in egs/config/data/news_topics.yaml.

Optional BGE phrase extraction

Choose the BERT mode to use a local quantized CPU model or an OpenAI-compatible embedding endpoint. The model compares phrases with a bounded set of headline embeddings and reduces duplication among the selected phrases. The interface displays the effective method and uses the lexical result if BGE is unavailable.

For local inference, install the news-bge extra with uv sync --locked --extra news-bge or install egs/requirements/news-bge.lock.txt with pip in the intended environment. Run the setup module from a source checkout or use the installed console command aiquant-news-bge.

python -m src.engine.market.news_bge_install --target ./data/news_models/bge-small-zh-v1.5

The command previews the fixed repository revision, download size and target. Type y when you approve. For automation, pass --confirm-download after the operator has approved the download. The installer verifies the pinned ONNX and tokenizer files, runs a CPU embedding probe and publishes the model directory. It then selects local mode in the current workspace's .env. Use --download-only to keep the existing ranking settings. The default download is about 24.45 MB. The model comes from the pinned Xenova ONNX conversion.

An existing trusted ONNX model directory needs tokenizer.json and either onnx/model_quantized.onnx or model.onnx. Configure the mode and directory in the workspace's private .env. For a remote service, supply the base URL through the same file and store the API key there. Refresh Overview after changing the configuration.

Setting Use
ALL_IN_ONE_NEWS_BGE_MODE auto detects a local model, local requires the configured directory, remote connects to an endpoint and off uses lexical ranking
ALL_IN_ONE_NEWS_BGE_DIRECTORY Path to the local ONNX model directory
ALL_IN_ONE_NEWS_BGE_URL OpenAI-compatible API base URL including /v1 when required by the service
ALL_IN_ONE_NEWS_BGE_API_KEY Optional endpoint bearer key
ALL_IN_ONE_NEWS_BGE_MODEL Model identifier reported by the remote service

Remote authorization uses a bearer header and requires HTTPS for non-loopback endpoints. An administrator should use an endpoint approved to receive public headlines. Provider errors are shown as a fallback state without credential or URL details in the interface.

The inbox defaults to today in Asia/Shanghai. Choose a date or View history to inspect earlier records. The badge and mark-as-read action use the displayed scope. Dates use original occurrence time, not the time an old task was imported. Repeated successes collapse into an expandable group. History is not replayed as toasts; unresolved critical events retain a compact carryover summary. Reading or dismissing a card never changes the business source or deletes its history.

Operation logs

The floating assistant can use active-page context for model, CLI and knowledge questions. Preview the scope and evidence or turn it off before sending; stale or unavailable data is explicitly excluded.

INFO logs identify page selection, explicit actions, queued/started reads, meaningful source stages, cancellation and completion. They include operation identifiers and elapsed times without prompts or uploaded contents. Heartbeats, polling and repeated automatic callbacks stay at DEBUG. Progress reports stages, not invented percentages. Model requests can consume time before returning a response; changing pages cancels eligible page-owned work as described in navigation cancellation.

Interaction limits and copy are configured in egs/config/ui/research_workspace.yaml; daily inbox configuration remains in egs/config/ui/notifications.yaml.

Loading performance

Homepage operations use a small service facade. Domain exports and feature renderers load on demand, one lightweight worker warms initially, and independent account, market and news callbacks no longer queue behind each other. Raw observations share a runtime-scoped JSON cache; stored source times remain unchanged. Worker logs distinguish assignment, readiness and business stages. Cached navigation and first data completion are separate timings; real source gates and network delays still apply. A hard cancellation may require a replacement worker on the next action.

Sections appear as they become ready

Suitable research views also offer explicit CLI + Skill analysis with frozen page evidence, process events, cancellation and saved HTML reports. Overview serves account and market observations through the floating assistant.

The active page and its controls appear first. The homepage loads account, market, local-task, headlines and keyword sections independently. Stored NAV can appear before live holdings valuation, and index or sector results appear while the other request is pending. Board refreshes can reuse a short-lived provider observation. The page keeps its eight account metrics and six plots.

Pending tables can show stages such as fetching data and building charts. A failed section offers retry while completed content remains visible. Switching pages cancels unfinished work. Financial tables and charts use one saved snapshot per selection.

The application uses cumulative streamed updates for eligible read callbacks. Ordinary service/API return values and independent accepted-job lifecycles remain compatible. Writes retain their atomic behavior, and single-result forms/readers keep their existing independent request boundaries.