get_top_movers
Retrieve top gaining or losing stocks on a specified date. Returns up to 100 stocks with percentage price change.
Instructions
Return top stocks by percentage price change on a given trading date.
Uses split-adjusted closing prices (AdjC) to compute change_pct = (today - prev) / prev * 100.
Args: date: Trading date in YYYY-MM-DD or YYYYMMDD format. direction: "up" for top gainers, "down" for top losers. Default: "up". n: Number of stocks to return (1–100). Default: 10.
Returns: dict with keys: - date: the requested trading date - previous_date: the comparison base date - direction: "up" or "down" - items: list of up to n dicts, each with: - code: stock code (5-digit) - close: today's closing price - prev_close: previous day's closing price - change_pct: percentage price change
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| direction | No | up | |
| n | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||