Scanner parameters
get_scanner_parametersBrowse the IBKR market scanner catalogue to find valid scan codes, instruments, locations, and filters for scanner queries. Use it to discover supported inputs before running a scan.
Instructions
Browse IBKR's market scanner catalogue to find valid inputs for run_scanner.
Sections:
- scan_codes: what a scan ranks by (e.g. TOP_PERC_GAIN, MOST_ACTIVE, HOT_BY_VOLUME),
with the instrument types each supports.
- instruments: instrument types (e.g. STK for US stocks, IND.US, FUT.US).
- locations: markets and exchanges (e.g. STK.US.MAJOR, STK.NASDAQ), nested via parent.
- filters: filter tags for run_scanner's `filters` (e.g. avgVolumeAbove), with
their value type and, for choice filters, the allowed values.
`query` matches codes and names (case-insensitive substring; for filters also the
filter group and category); `instrument` keeps only entries for that instrument
type. Default limit 50, at most 500; `total` says how many matched. The catalogue
is fetched once per gateway session, so the first call can take a few seconds.
Errors: not_found when nothing matches or the instrument type is unknown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of items to return. Omit for the tool's default; larger values are capped. The result's truncated flag says whether more were available. | |
| query | No | Case-insensitive text to look for in codes and names, e.g. gain. | |
| section | Yes | What to list: scan_codes (what a scan ranks by), instruments (instrument types), locations (markets and exchanges) or filters (filter tags). | |
| instrument | No | Only entries that work with this instrument type, e.g. STK. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | The substring filter applied, if any. | |
| total | Yes | How many entries matched, before the limit. | |
| filters | No | ||
| section | Yes | ||
| locations | No | ||
| truncated | No | True when the result was cut to the limit. | |
| fetched_at | Yes | When the catalogue was fetched from IBKR (UTC). | |
| instrument | No | The instrument filter applied, if any. | |
| scan_codes | No | ||
| instruments | No |