跳转至

金融研究员指数

AnalystIndexMapping

字段映射 分析师指数

AnalystIndex

AnalystIndex(
    analyst_code: Optional[str] = None,
    size: Optional[int] = 100,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 分析师指数

Notes
from wisecon.stock.analyst import *

data = AnalystIndex(analyst_code="11000280036").load()
print(data.to_markdown(chinese_column=True))

Parameters:

Name Type Description Default
analyst_code Optional[str]

分析师代码

None
size Optional[int]

返回数据量

100
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

自定义日志打印函数

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\analyst\analyst_index.py
def __init__(
        self,
        analyst_code: Optional[str] = None,
        size: Optional[int] = 100,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.analyst import *

        data = AnalystIndex(analyst_code="11000280036").load()
        print(data.to_markdown(chinese_column=True))
        ```

    Args:
        analyst_code: 分析师代码
        size: 返回数据量
        verbose: 是否打印日志
        logger: 自定义日志打印函数
        **kwargs: 其他参数
    """
    self.analyst_code = analyst_code
    self.size = size
    self.mapping = AnalystIndexMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="分析师指数")
    self.conditions = []

ResearcherStockMapping

字段映射 分析师持股

ResearcherStock

ResearcherStock(
    analyst_code: Optional[str] = None,
    current: Optional[bool] = True,
    size: Optional[int] = 100,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 分析师持股

Notes
from wisecon.stock.analyst import *

# 查询当前数据
data = ResearcherStock(analyst_code="11000280036", current=True).load()
print(data.to_markdown(chinese_column=True))

# 查询历史数据
data = ResearcherStock(analyst_code="11000280036", current=False).load()
print(data.to_markdown(chinese_column=True))

Parameters:

Name Type Description Default
analyst_code Optional[str]

分析师代码

None
current Optional[bool]

是否当前持股

True
size Optional[int]

返回数据量

100
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

自定义日志打印函数

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\analyst\analyst_stock.py
def __init__(
        self,
        analyst_code: Optional[str] = None,
        current: Optional[bool] = True,
        size: Optional[int] = 100,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.analyst import *

        # 查询当前数据
        data = ResearcherStock(analyst_code="11000280036", current=True).load()
        print(data.to_markdown(chinese_column=True))

        # 查询历史数据
        data = ResearcherStock(analyst_code="11000280036", current=False).load()
        print(data.to_markdown(chinese_column=True))
        ```

    Args:
        analyst_code: 分析师代码
        current: 是否当前持股
        size: 返回数据量
        verbose: 是否打印日志
        logger: 自定义日志打印函数
        **kwargs: 其他参数
    """
    self.analyst_code = analyst_code
    self.current = current
    self.size = size
    self.mapping = ResearcherStockMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="分析师持股")
    self.conditions = []

AnalystYearRankMapping

字段映射 分析师指数-年度排行榜

AnalystYearRank

AnalystYearRank(
    year: Optional[str] = None,
    top_n: Optional[int] = None,
    industry_code: Optional[str] = None,
    size: Optional[int] = 50,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 分析师指数-年度排行榜

Notes
from wisecon.stock.analyst import *
from wisecon.stock.plate_mapping import *

# 查询全部 2024 年度排行榜
data = AnalystYearRank(year="2024").load()
print(data.to_markdown(chinese_column=True))

# 指定行业编码
data = AnalystYearRank(year="2024", industry_code="480000").load()
print(data.to_markdown(chinese_column=True))

# 查询行业编码
data = IndustryCode().load()
print(data.to_markdown(chinese_column=True))

Parameters:

Name Type Description Default
year Optional[str]

年份

None
top_n Optional[int]

排名

None
industry_code Optional[str]

行业代码

None
size Optional[int]

返回数据量

50
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

自定义日志打印函数

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\analyst\analyst_year_rank.py
def __init__(
        self,
        year: Optional[str] = None,
        top_n: Optional[int] = None,
        industry_code: Optional[str] = None,
        size: Optional[int] = 50,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.analyst import *
        from wisecon.stock.plate_mapping import *

        # 查询全部 2024 年度排行榜
        data = AnalystYearRank(year="2024").load()
        print(data.to_markdown(chinese_column=True))

        # 指定行业编码
        data = AnalystYearRank(year="2024", industry_code="480000").load()
        print(data.to_markdown(chinese_column=True))

        # 查询行业编码
        data = IndustryCode().load()
        print(data.to_markdown(chinese_column=True))
        ```

    Args:
        year: 年份
        top_n: 排名
        industry_code: 行业代码
        size: 返回数据量
        verbose: 是否打印日志
        logger: 自定义日志打印函数
        **kwargs: 其他参数
    """
    self.year = year
    self.top_n = top_n
    self.industry_code = industry_code
    self.size = size
    self.mapping = AnalystYearRankMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="分析师指数-年度排行榜")
    self.conditions = []