Tickers
tickers
Ticker normalization helpers for Yahoo Finance backed dataflows.
Functions:
| Name | Description |
|---|---|
get_yfinance_symbol_candidates |
Return Yahoo Finance ticker candidates for a user supplied symbol. |
describe_symbol_candidates |
Format attempted Yahoo Finance symbols for user-facing tool output. |
get_yfinance_symbol_candidates
Return Yahoo Finance ticker candidates for a user supplied symbol.
Explicit Yahoo Finance symbols such as AAPL, TSM, or 2330.TW are
accepted directly. Bare symbols are resolved by Yahoo Finance Search, so
Taiwan stock codes like 2330 and 8069 can be passed without suffixes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
The symbol to find candidates for. |
required |
Returns:
| Type | Description |
|---|---|
list[str]
|
list[str]: A list of candidate ticker symbols. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the ticker symbol is empty. |
Source code in src/tradingagents/dataflows/tickers.py
describe_symbol_candidates
Format attempted Yahoo Finance symbols for user-facing tool output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
The original symbol queried. |
required |
|
list[str]
|
The list of candidates attempted. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
A comma-separated string of candidates or the single matching symbol. |