Prompt file imported from GoatWang/oysterun-ccstock-workenv (
.codex/prompts/check_price.md). Copyright stays with the author.
查詢即時股價
Fetch current stock price, change, and volume for a given ticker.
Usage
/check_price <ticker> [market]
Examples
/check_price TSLA
/check_price 2330 TW
/check_price 600519 CN
Instructions
When this command is invoked:
-
Parse arguments:
ticker: Stock ticker symbol (required)market: Market code —US,TW, orCN(optional, auto-detect if not provided)
-
Auto-detect market if not specified:
- Pure digits →
TW(Taiwan stocks use numeric tickers) - 6 digits starting with 6/0/3 →
CN(Shanghai/Shenzhen) - Otherwise →
US
- Pure digits →
-
Fetch price data using the market data fetcher:
cd $(pwd)/tool_scripts/market_data && uv run python fetcher_factory.py quote <ticker> --market <market>
- Format output in 繁體中文:
📊 <公司名稱> (<ticker>)
市場:<market>
現價:<price> <currency>
漲跌:<change> (<change_pct>%)
成交量:<volume>
更新時間:<timestamp>
- Report the formatted result to the user.