leapcat-market

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

LeapCat Market Data Skill

LeapCat 市场数据 Skill

Access market data, stock quotes, K-line charts, indices, and platform configuration. All commands in this skill are public and do not require authentication.
获取市场数据、股票报价、K线图、指数以及平台配置信息。本Skill中的所有命令都是公开的,无需身份验证

Prerequisites

前置要求

  • Node.js 18+ is required (commands use
    npx leapcat@latest
    which auto-downloads the CLI)
  • No authentication required for any command in this skill
  • 需要 Node.js 18+ 版本(命令使用
    npx leapcat@latest
    会自动下载CLI)
  • 本Skill中的所有命令都不需要身份验证

Commands

命令

market quote

market quote

Get the real-time quote for a specific stock.
bash
npx leapcat@latest market quote --symbol <symbol> --exchange <exchange> --json
Parameters:
  • --symbol <symbol>
    — Stock ticker symbol (e.g.,
    AAPL
    ,
    9988.HK
    )
  • --exchange <exchange>
    — Exchange code (e.g.,
    NASDAQ
    ,
    HKEX
    )
获取指定股票的实时报价。
bash
npx leapcat@latest market quote --symbol <symbol> --exchange <exchange> --json
参数:
  • --symbol <symbol>
    — 股票代码(例如:
    AAPL
    9988.HK
  • --exchange <exchange>
    — 交易所代码(例如:
    NASDAQ
    HKEX

market kline

market kline

Get historical K-line (candlestick) data for a stock.
bash
npx leapcat@latest market kline --symbol <symbol> --exchange <exchange> --period <period> --json
Parameters:
  • --symbol <symbol>
    — Stock ticker symbol
  • --exchange <exchange>
    — Exchange code
  • --period <period>
    — K-line period (e.g.,
    1m
    ,
    5m
    ,
    15m
    ,
    1h
    ,
    1d
    ,
    1w
    )
获取股票的历史K线(蜡烛图)数据。
bash
npx leapcat@latest market kline --symbol <symbol> --exchange <exchange> --period <period> --json
参数:
  • --symbol <symbol>
    — 股票代码
  • --exchange <exchange>
    — 交易所代码
  • --period <period>
    — K线周期(例如:
    1m
    5m
    15m
    1h
    1d
    1w

market kline-latest

market kline-latest

Get the latest K-line data point for a stock.
bash
npx leapcat@latest market kline-latest --symbol <symbol> --exchange <exchange> --period <period> --json
Parameters:
  • --symbol <symbol>
    — Stock ticker symbol
  • --exchange <exchange>
    — Exchange code
  • --period <period>
    — K-line period
获取股票的最新K线数据点。
bash
npx leapcat@latest market kline-latest --symbol <symbol> --exchange <exchange> --period <period> --json
参数:
  • --symbol <symbol>
    — 股票代码
  • --exchange <exchange>
    — 交易所代码
  • --period <period>
    — K线周期

market stock-detail

market stock-detail

Get detailed information about a specific stock (company info, sector, market cap, etc.).
bash
npx leapcat@latest market stock-detail --symbol <symbol> --exchange <exchange> --json
Parameters:
  • --symbol <symbol>
    — Stock ticker symbol
  • --exchange <exchange>
    — Exchange code
获取指定股票的详细信息(公司信息、所属行业、市值等)。
bash
npx leapcat@latest market stock-detail --symbol <symbol> --exchange <exchange> --json
参数:
  • --symbol <symbol>
    — 股票代码
  • --exchange <exchange>
    — 交易所代码

market indices

market indices

Get current market index data (e.g., S&P 500, Hang Seng, NASDAQ Composite).
bash
npx leapcat@latest market indices --json
获取当前市场指数数据(例如:标普500、恒生指数、纳斯达克综合指数)。
bash
npx leapcat@latest market indices --json

market overview

market overview

Get a general market overview including major market movements and summaries.
bash
npx leapcat@latest market overview --json
获取市场总览,包括主要市场走势和摘要信息。
bash
npx leapcat@latest market overview --json

market stocks

market stocks

List available stocks, optionally filtered by exchange or keyword. Useful for searching stocks by name.
bash
npx leapcat@latest market stocks [--exchange <exchange>] [--keyword <search-term>] --json
Parameters:
  • --exchange <exchange>
    — Filter by exchange code (optional)
  • --keyword <search-term>
    — Search stocks by name or symbol (optional)
列出可用的股票,可选择按交易所或关键词过滤。适用于按名称搜索股票。
bash
npx leapcat@latest market stocks [--exchange <exchange>] [--keyword <search-term>] --json
参数:
  • --exchange <exchange>
    — 按交易所代码过滤(可选)
  • --keyword <search-term>
    — 按股票名称或代码搜索(可选)

config exchange-rate

config exchange-rate

Get current exchange rates used by the platform.
bash
npx leapcat@latest config exchange-rate --json
获取平台使用的当前汇率。
bash
npx leapcat@latest config exchange-rate --json

config fee-rate

config fee-rate

Get the platform's trading fee rate schedule.
bash
npx leapcat@latest config fee-rate --json
获取平台的交易费率表。
bash
npx leapcat@latest config fee-rate --json

config withdrawal-fees

config withdrawal-fees

Get the fee schedule for withdrawals.
bash
npx leapcat@latest config withdrawal-fees --json
获取提现费用表。
bash
npx leapcat@latest config withdrawal-fees --json

Workflow

工作流

Browse the Market

浏览市场

  1. Market overview — Run
    market overview --json
    for a high-level market summary.
  2. View indices — Run
    market indices --json
    to see major index performance.
  3. Search stocks — Run
    market stocks --keyword <term> --json
    to find stocks by name or symbol.
  1. 市场总览 — 运行
    market overview --json
    获取高层级的市场摘要。
  2. 查看指数 — 运行
    market indices --json
    查看主要指数表现。
  3. 搜索股票 — 运行
    market stocks --keyword <term> --json
    按名称或代码查找股票。

Research a Specific Stock

研究特定股票

  1. Get stock detail — Run
    market stock-detail --symbol <symbol> --exchange <exchange> --json
    for company information.
  2. Get current quote — Run
    market quote --symbol <symbol> --exchange <exchange> --json
    for real-time pricing.
  3. View price history — Run
    market kline --symbol <symbol> --exchange <exchange> --period 1d --json
    for historical price data.
  1. 获取股票详情 — 运行
    market stock-detail --symbol <symbol> --exchange <exchange> --json
    查看公司信息。
  2. 获取当前报价 — 运行
    market quote --symbol <symbol> --exchange <exchange> --json
    获取实时定价。
  3. 查看价格历史 — 运行
    market kline --symbol <symbol> --exchange <exchange> --period 1d --json
    获取历史价格数据。

Check Platform Configuration

检查平台配置

  1. Exchange rates — Run
    config exchange-rate --json
    to see currency conversion rates.
  2. Fee rates — Run
    config fee-rate --json
    to understand trading costs.
  3. Withdrawal fees — Run
    config withdrawal-fees --json
    to see withdrawal cost structure.
  1. 汇率 — 运行
    config exchange-rate --json
    查看货币兑换汇率。
  2. 费率 — 运行
    config fee-rate --json
    了解交易成本。
  3. 提现费用 — 运行
    config withdrawal-fees --json
    查看提现成本结构。

Error Handling

错误处理

ErrorCauseResolution
INVALID_SYMBOL
Unrecognized stock symbolSearch with
market stocks --keyword <term> --json
INVALID_EXCHANGE
Unrecognized exchange codeCheck available exchanges via
market stocks --json
INVALID_PERIOD
Unsupported K-line periodUse one of:
1m
,
5m
,
15m
,
1h
,
1d
,
1w
MARKET_DATA_UNAVAILABLE
Data source temporarily unavailableRetry after a short delay
错误原因解决方案
INVALID_SYMBOL
无法识别的股票代码使用
market stocks --keyword <term> --json
搜索
INVALID_EXCHANGE
无法识别的交易所代码通过
market stocks --json
检查可用的交易所
INVALID_PERIOD
不支持的K线周期使用以下之一:
1m
5m
15m
1h
1d
1w
MARKET_DATA_UNAVAILABLE
数据源暂时不可用稍等片刻后重试