Skip to content

Feature: Add xueqiu comments/discussions command for individual stocks #576

@gucasbrg

Description

@gucasbrg

Feature Request

Add a xueqiu comments or xueqiu discuss command to fetch comments/discussions for a specific stock.

Current Behavior

Currently xueqiu supports these commands:

  • xueqiu stock SH600519 — stock quote (works)
  • xueqiu search 茅台 — search stocks (works)
  • xueqiu hot — trending posts (works)
  • xueqiu hot-stock — trending stocks (works)

But there's no way to get comments/discussions for a specific stock (e.g. posts in the discussion section of https://xueqiu.com/S/SH600519).

Proposed API

# Get latest comments/discussions for a stock
opencli xueqiu comments SH600519 --limit 10

# Or alternatively
opencli xueqiu discuss SH600519 --limit 10

Expected Output

Author Text Created_at Likes Comments Retweets
用户名 评论内容... 2026-03-29 42 5 3

Xueqiu API Reference

Xueqiu has a public API for stock discussions:

GET https://xueqiu.com/query/v1/symbol/search/status
Parameters: symbol=SH600519&count=10&sort=time
Cookie: required (from browser session)

Use Case

AI agents need to analyze market sentiment for specific stocks by reading investor discussions. The hot command only returns global trending posts, not stock-specific discussions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions