Prompt file imported from GoatWang/oysterun-ccstock-workenv-en (
.codex/prompts/check_price.md). Copyright stays with the author.
Check Real-Time Price
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 English:
📊 <company name> (<ticker>)
Market: <market>
Current Price: <price> <currency>
Change: <change> (<change_pct>%)
Volume: <volume>
Updated At: <timestamp>
- Report the formatted result to the user.