Xueqiu Summary & Investment Advisor for Openclaw

An intelligent investment assistant that scrapes top financial influencers and real-time stock data from Xueqiu to provide actionable market summaries.

chenmuwen0930-rgb
v1.0.0
Feb 25, 2026
0
366
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install snowtrace

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install snowtrace using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Xueqiu Summary & Investment Advisor?

The Xueqiu Summary skill is a professional investment analysis tool designed for the Openclaw Skills ecosystem. It automates the collection of the latest posts from prominent financial influencers (Big Vs) and correlates their insights with your personal stock portfolio or watchlist. By leveraging advanced web automation, it bypasses complex WAF protections to deliver a structured report in Chinese, providing a high-level overview of market sentiment and specific stock performance.

This skill serves as a bridge between social sentiment and hard market data, helping investors stay informed without manually browsing through endless feeds. It utilizes a combination of Playwright for browser-based scraping and optimized curl commands for high-speed quote fetching, ensuring a robust and efficient data pipeline for financial research.

Xueqiu Summary & Investment Advisor Use Cases

  • Automatically tracking the latest investment theses from top-tier Xueqiu influencers like Duan Yongping.
  • Monitoring real-time price movements, PE ratios, and market caps for personal watchlists across A-shares, HK, and US markets.
  • Generating automated profit/loss reports based on custom portfolio configurations.
  • Identifying consensus or divergence among multiple influencers regarding specific market sectors or stocks.
  • Receiving daily AI-summarized investment suggestions based on abnormal market fluctuations.

How Xueqiu Summary & Investment Advisor Works

  1. Environment Validation: The system checks for the required XQ_A_TOKEN and reads the local watchlist and portfolio configuration files.
  2. Influencer Scraping: It launches a headless Chromium instance via Playwright with stealth plugins to bypass WAF and retrieve the latest 5 original posts from specified user IDs.
  3. Market Data Acquisition: The skill fetches real-time quotes. If a portfolio file exists, it uses curl for speed; otherwise, it fetches the user's full Xueqiu watchlist via browser automation.
  4. Data Correlation: The AI analyzes the text from influencers to find mentions of stocks in the user's portfolio and assigns sentiment signals (bullish/bearish).
  5. Report Generation: It compiles a 5-part Markdown report including influencer summaries, market overviews, correlation analysis, and personalized investment references.

Xueqiu Summary & Investment Advisor Setup

First, ensure you have Node.js and curl installed. Set your Xueqiu token as an environment variable:

export XQ_A_TOKEN="your_xq_a_token_here"

Run the automated installation script within the skill directory to set up dependencies and Playwright:

bash ./install.sh

Or install manually:

npm install playwright-extra puppeteer-extra-plugin-stealth
npx playwright install chromium

Xueqiu Summary & Investment Advisor Data Schema & Taxonomy

The skill manages data through two primary JSON files and structured API responses:

Configuration Files

File Description Key Fields
watchlist.json List of influencers to track user_id, name, note
portfolio.json User's actual holdings symbol, shares, cost

Output Taxonomy

  • Influencer Data: Includes post text (truncated to 500 chars), interaction counts (likes, retweets), and timestamps.
  • Market Data: Includes current price, percent change, pe_ttm, and market_capital formatted by currency (CNY/HKD/USD).

Xueqiu Summary & Investment Advisor Advanced Features

  • Anti-WAF Stealth Mode: Uses playwright-extra-plugin-stealth to mimic human browsing behavior and navigate Alibaba Cloud WAF.
  • Multi-Market Support: Seamlessly handles A-shares (SH/SZ), Hong Kong (HK), and US stock market data.
  • Automated P/L Calculation: Automatically calculates profit and loss metrics if cost basis data is provided in portfolio.json.
  • Hybrid Fetching Architecture: Dynamically switches between headless browsers and lightweight curl requests to optimize for both security and speed.
  • Partial Failure Resilience: The reporting engine is designed to continue generating insights even if specific influencer APIs or market segments are temporarily unavailable.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*