Foreword

The philosophy of DSH is “everything is a plugin”. If you typically run tasks, check code, and converse with Agents within dsh web, but occasionally need to view real-time quotes for A-shares, Hong Kong stocks, or US stocks, the common practice is to open Xueqiu in another browser tab or install a status bar/skin-type plugin. These methods usually only display a few lines of quotes, have limited functionality, and may not integrate with the conversation context.

dsh-xueqiu is a DSH network-connected tool plugin: it allows you to view real-time quotes, K-line charts, time-sharing charts, hot rankings, search, 7x24 news feeds, and trending users for A-shares, Hong Kong stocks, and US stocks without logging in. Maintained by kangjinghang, it uses the MIT license, its UI is mounted on official DSH slots, and it disappears completely upon uninstallation without modifying the DSH source code.

What is this

dsh-xueqiu can be understood as a mini Xueqiu quotes panel embedded in the DSH web interface:

  • The panel is docked above the input box and does not obscure the conversation history.
  • The persistent quotes area is draggable for quickly viewing indices and watchlists.
  • You can directly call Agent tools within the conversation to query quotes, K-line charts, hot rankings, news feeds, and trending users.
  • Data comes from Xueqiu’s public web APIs and does not require logging into Xueqiu first.

It is not an independent quotes terminal, but a lightweight quotes tool designed for DSH users and Agent developers.

Core Features

Real-time Quotes and Watchlists

Supports viewing real-time quotes for A-shares, Hong Kong stocks, and US stocks without logging in. The plugin provides local persistent storage for watchlists. If you choose to log in via Cookie, it can also sync your watchlist from Xueqiu’s cloud.

K-line and Time-sharing Charts

Supports K-line candlestick charts, volume, MA lines, and 7 time periods. Also supports time-sharing charts, average price lines, and closing price benchmarks.

Xueqiu Content Capabilities

Supports Xueqiu hot rankings, stock search, and post search. It also allows viewing 7x24 news feeds and trending users for individual stocks.

Agent Tools

The plugin exposes the following tools for direct invocation within conversations:

xueqiu_quote
xueqiu_kline
xueqiu_search
xueqiu_hot
xueqiu_news
xueqiu_kol

For example, to query real-time quotes, you can use xueqiu_quote, and for K-line charts, you can use xueqiu_kline.

Interface and Interaction

The panel is docked above the input box and features a persistent draggable quotes area. The quotes area supports click-to-expand/collapse, dragging to reposition, and the handle in the bottom-right corner adjusts width; double-clicking the handle resets it.

The plugin follows DSH’s light and dark themes.

Request Stability

The plugin includes built-in request throttling, a 30-second watchdog, TTL caching, Cookie self-healing, and rate-limiting backoff. The goal is to reduce the probability of errors during long idle sessions, repeated requests, or when Cookies become invalid.

Installation and Enabling

First, confirm you intend to use it in the dsh web environment. The installation command is as follows:

dsh plugin --profile web add dsh-xueqiu

After adding, restart dsh web once:

dsh web

Then refresh the page. If the panel does not appear directly, check the bottom-right corner for the persistent quotes area. If present, click it to expand the panel.

Note: DSH plugins run with the permissions of the current dsh process. Before installing, it is recommended to review the source code and license to ensure you trust its data sources, request behavior, and Cookie handling.

Typical Usage

Viewing the Panel

After installation and restart, the panel will dock above the input box. You can:

  1. Use Esc or “Collapse —” to collapse the panel.
  2. Click the quotes area or the index bar at the bottom to re-expand it.
  3. Drag the quotes area in the bottom-right corner to reposition it.
  4. Use the handle in the bottom-right corner to adjust the width. Double-click the handle to reset.

Viewing Quotes and K-line Charts

In the panel, click a watchlist stock, index card, or hot ranking row to enter the stock details. In the details view, you can see quote data, switch between K-line/time-sharing charts, view financial indicators, and see trending users.

K-line charts support switching between 7 time periods. Time-sharing charts display the day’s minute-by-minute lines, average price lines, and closing price benchmarks.

Invoking Tools in Conversations

Within DSH conversations, you can directly ask the Agent to use the plugin tools:

xueqiu_quote to check real-time quotes
xueqiu_kline to check K-line charts
xueqiu_search to search for stocks
xueqiu_hot to check hot rankings
xueqiu_news to check 7x24 news feeds
xueqiu_kol to check trending users for a stock

Optional Xueqiu Login

If you do not log in, the plugin uses the anonymous access capabilities provided by Xueqiu’s public APIs. If you wish to use Xueqiu’s cloud watchlist, you can paste your browser Cookie to log in.

After logging in:

  • It automatically fetches your Xueqiu cloud watchlist.
  • Adding/removing watchlist stocks will attempt to sync to the cloud.
  • The Cookie is only stored locally and is cleared upon logout.

Refresh Frequency

The documentation provides the following refresh strategy:

  • Intraday quotes refresh every 20 seconds; content refreshes every 60 seconds.
  • After market close, it automatically reduces to every 60 seconds / 3 minutes.

Trading hours are calculated based on fixed local timezone times, excluding statutory holidays and adjusted schedules, and are for reference only.

Use Cases and Considerations

This plugin is suitable for:

  • Viewing quotes while writing code or running tasks in DSH web.
  • Wanting the Agent to directly invoke tools for quotes, K-line charts, hot rankings, news feeds, etc.
  • Not wanting to open a separate browser for occasional quote queries.
  • Local users needing to access Xueqiu’s public web API data without logging in.

Points to note before use:

  • Data comes from Xueqiu’s public web APIs; it is not an official Xueqiu product and is not affiliated with the Xueqiu website/Xueqiu company.
  • For learning and research purposes only; does not constitute any investment advice.
  • Do not make high-frequency requests; comply with the target website’s terms.
  • APIs may change at any time, potentially causing functionality to fail.
  • Cookies are only stored locally and are cleared upon logout.
  • The plugin UI is mounted on official slots and disappears completely upon uninstallation without modifying the DSH source code.
  • The plugin runs with the permissions of the current dsh process; review the source code and license before installing.

Conclusion

After integrating Xueqiu quotes into a DSH plugin, dsh-xueqiu’s core value lies in two points: first, not having to leave the DSH web interface, and second, being able to directly invoke quote tools within conversations. It is suitable for those who use DSH as their daily workbench and have a need for lightweight quote viewing.

Related Links:

  • Directory Page: https://www.skillhub.cn/plugins/kangjinghang/dsh-xueqiu
  • GitHub: https://github.com/kangjinghang/dsh-xueqiu

It should be noted that the community directory is an independent site and has no official affiliation with DeepSeek or幻方. The “plugin directory” mentioned in this article is also not an official app store.