Search and rank stocks
fp_stocksSearch and rank last trading day's listed shares by gain, loss, volume, or industry. Find top gainers, most traded stocks, or a ticker symbol.
Instructions
Search and rank listed shares traded on the last trading day: top gainers, losers, most traded, by industry.
Use for "biggest gainers today", "most traded banks", "find the ticker of X". Each row has ins_code and symbol: pass the symbol to fp_stock for the full quote. Prices are rial, value is billion Toman. Shares that did not trade are left out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows to return. | |
| query | No | Part of the ticker or company name, Persian, e.g. 'فولاد'. | |
| market | No | bourse: Tehran Stock Exchange; farabourse: Iran Farabourse; farabourse_base: its base market. | |
| sort_by | No | change_pct: today's gain (closing price vs yesterday). value: traded value. | value |
| industry | No | Industry group name or code, e.g. 'بانک', 'خودرو', '27'. fp_industries lists them. | |
| ascending | No | True lists the lowest first (biggest losers for change_pct). |