← 返回
数据分析 Key

Mx Select Stock

基于妙想 (Meixiang) 智能选股 API,按用户提供的指标、行业或板块条件筛选 A 股、港股、美股等股票,返回完整 CSV 数据并提供列说明,避免使用过时的金融信息。
基于妙想 (Meixiang) 智能选股 API,按用户提供的指标、行业或板块条件筛选 A 股、港股、美股等股票,返回完整 CSV 数据并提供列说明,避免使用过时的金融信息。
xpmars
数据分析 clawhub v1.0.0 1 版本 99937.5 Key: 需要
★ 1
Stars
📥 1,579
下载
💾 35
安装
1
版本
#latest

概述

妙想智能选股 Skill (mx_select_stock)

Overview

This skill enables safe, up‑to‑date stock screening using the Meixiang (妙想) stock‑screening service. It supports custom filters on market, financial indicators, and sector/category constraints, returning a full data table (CSV) with Chinese column headers and a supplemental description file.

Prerequisites

  1. Obtain an API key from the Meixiang Skills page.
  2. Export the key to the environment variable MX_APIKEY:

```bash

export MX_APIKEY="your_api_key_here"

```

  1. Ensure curl is installed (standard on macOS).

Usage Steps

  1. Formulate the query – translate the user’s natural‑language request into a JSON payload containing at least:
    • keyword – the screening condition (e.g., "今日涨幅2%的股票")
    • pageNo – page number (default 1)
    • pageSize – number of rows per page (max 100, adjust as needed)
  2. Execute the POST request:

```bash

curl -X POST \

--location 'https://mkapi2.dfcfs.com/finskillshub/api/claw/stock-screen' \

--header 'Content-Type: application/json' \

--header "apikey:${MX_APIKEY}" \

--data '{"keyword":"","pageNo":1,"pageSize":20}'

```

  1. Parse the JSON response – important fields:
    • status / message – overall request success.
    • data.code / data.msg – business‑level status.
    • data.data.result.columns – column definitions.
    • data.data.result.dataList – rows of stock data.
    • responseConditionList – condition statistics.
  2. Transform column titles – map each key to its Chinese title from the columns array, then build a CSV where the header line uses the Chinese titles.
  3. Save output (optional):

```bash

# Save raw JSON

curl ... > mx_select_stock_raw.json

# Save CSV