跳转至

股票排行

StockRankDetailMapping

字段映射 个股上榜统计

StockRankDetail

StockRankDetail(
    market: Optional[
        Literal[
            "沪市A股",
            "科创板",
            "深市A股",
            "创业板",
            "京市A股",
        ]
    ] = None,
    start_date: Optional[str] = None,
    end_date: Optional[str] = None,
    date: Optional[str] = None,
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 个股上榜统计

Notes
from wisecon.stock.ranking import *

data = StockRankDetail().load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
market Optional[Literal['沪市A股', '科创板', '深市A股', '创业板', '京市A股']]

市场类型, 可选值: 沪市A股, 科创板, 深市A股, 创业板, 京市A股, 默认值: None

None
start_date Optional[str]

开始日期, 格式: yyyy-MM-dd, 默认值: None

None
end_date Optional[str]

结束日期, 格式: yyyy-MM-dd, 默认值: None

None
date Optional[str]

日期, 格式: yyyy-MM-dd, 默认值: None

None
size Optional[int]

数据条数

20
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

日志记录器

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\ranking\stock_rank_detail.py
def __init__(
        self,
        market: Optional[Literal["沪市A股", "科创板", "深市A股", "创业板", "京市A股"]] = None,
        start_date: Optional[str] = None,
        end_date: Optional[str] = None,
        date: Optional[str] = None,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.ranking import *

        data = StockRankDetail().load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        market: 市场类型, 可选值: 沪市A股, 科创板, 深市A股, 创业板, 京市A股, 默认值: None
        start_date: 开始日期, 格式: yyyy-MM-dd, 默认值: None
        end_date: 结束日期, 格式: yyyy-MM-dd, 默认值: None
        date: 日期, 格式: yyyy-MM-dd, 默认值: None
        size: 数据条数
        verbose: 是否打印日志
        logger: 日志记录器
        **kwargs: 其他参数
    """
    self.market = market
    self.start_date = start_date
    self.end_date = end_date
    self.date = date
    self.size = size
    self.mapping = StockRankDetailMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="龙虎榜详情",)
    self.conditions = []
    self.validate_date_format(date=[date, start_date, end_date])

StockRankStatisticMapping

字段映射 个股上榜统计

StockRankStatistic

StockRankStatistic(
    statistics_cycle: Literal[
        "1m", "3m", "6m", "12m"
    ] = "1m",
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 个股上榜统计

Notes
from wisecon.stock.ranking import *

data = StockRankStatistic(statistics_cycle="1m").load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
statistics_cycle Literal['1m', '3m', '6m', '12m']

统计周期, 可选值: 1m, 3m, 6m, 12m, 默认值: 1m

'1m'
size Optional[int]

数据条数

20
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

日志记录器

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\ranking\stock_rank_statistic.py
def __init__(
        self,
        statistics_cycle: Literal["1m", "3m", "6m", "12m"] = "1m",
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.ranking import *

        data = StockRankStatistic(statistics_cycle="1m").load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        statistics_cycle: 统计周期, 可选值: 1m, 3m, 6m, 12m, 默认值: 1m
        size: 数据条数
        verbose: 是否打印日志
        logger: 日志记录器
        **kwargs: 其他参数
    """
    self.statistics_cycle = statistics_cycle
    self.size = size
    self.mapping = StockRankStatisticMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="个股上榜统计",)
    self.conditions = []

InstitutionSeatMapping

字段映射 机构席位追踪

InstitutionSeat

InstitutionSeat(
    statistics_cycle: Literal[
        "1m", "3m", "6m", "12m"
    ] = "1m",
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 机构席位追踪

Notes
from wisecon.stock.ranking import *

data = InstitutionSeat(statistics_cycle="1m").load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
statistics_cycle Literal['1m', '3m', '6m', '12m']

统计周期, 可选值: 1m, 3m, 6m, 12m, 默认值: 1m

'1m'
size Optional[int]

数据条数

20
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

日志记录器

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\ranking\institution_seat.py
def __init__(
        self,
        statistics_cycle: Literal["1m", "3m", "6m", "12m"] = "1m",
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.ranking import *

        data = InstitutionSeat(statistics_cycle="1m").load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        statistics_cycle: 统计周期, 可选值: 1m, 3m, 6m, 12m, 默认值: 1m
        size: 数据条数
        verbose: 是否打印日志
        logger: 日志记录器
        **kwargs: 其他参数
    """
    self.statistics_cycle = statistics_cycle
    self.size = size
    self.mapping = InstitutionSeatMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="机构席位追踪",)
    self.conditions = []

InstitutionTradeRankMapping

字段映射 机构买卖每日统计

InstitutionTradeRank

InstitutionTradeRank(
    start_date: Optional[str] = None,
    end_date: Optional[str] = None,
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 机构买卖每日统计

Notes
from wisecon.stock.ranking import *

data = InstitutionTradeRank(start_date="2024-10-23").load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
start_date Optional[str]

开始日期

None
end_date Optional[str]

结束日期

None
size Optional[int]

数据条数

20
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

日志记录器

None
**kwargs Any

其他参数

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

        data = InstitutionTradeRank(start_date="2024-10-23").load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        start_date: 开始日期
        end_date: 结束日期
        size: 数据条数
        verbose: 是否打印日志
        logger: 日志记录器
        **kwargs: 其他参数
    """
    self.start_date = start_date
    self.end_date = end_date
    self.size = size
    self.mapping = InstitutionTradeRankMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="机构买卖每日统计",)
    self.conditions = []
    self.validate_date_format(date=[start_date, end_date], _format="%Y-%m-%d")

DepartmentActiveMapping

字段映射 每日活跃营业部

DepartmentActive

DepartmentActive(
    start_date: Optional[str] = None,
    end_date: Optional[str] = None,
    date: Optional[str] = None,
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 每日活跃营业部

Notes
from wisecon.stock.ranking import *

data = DepartmentActive(date="2024-10-28").load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
start_date Optional[str]

开始日期, 格式: yyyy-MM-dd, 默认值: None

None
end_date Optional[str]

结束日期, 格式: yyyy-MM-dd, 默认值: None

None
date Optional[str]

日期, 格式: yyyy-MM-dd, 默认值: None

None
size Optional[int]

数据条数

20
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

日志记录器

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\ranking\department_active.py
def __init__(
        self,
        start_date: Optional[str] = None,
        end_date: Optional[str] = None,
        date: Optional[str] = None,
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.ranking import *

        data = DepartmentActive(date="2024-10-28").load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        start_date: 开始日期, 格式: yyyy-MM-dd, 默认值: None
        end_date: 结束日期, 格式: yyyy-MM-dd, 默认值: None
        date: 日期, 格式: yyyy-MM-dd, 默认值: None
        size: 数据条数
        verbose: 是否打印日志
        logger: 日志记录器
        **kwargs: 其他参数
    """
    self.start_date = start_date
    self.end_date = end_date
    self.date = date
    self.size = size
    self.mapping = DepartmentActiveMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="每日活跃营业部",)
    self.conditions = []
    self.validate_date_format(date=[date, start_date, end_date])

DepartmentRankMapping

字段映射 营业部排行

DepartmentRank

DepartmentRank(
    statistics_cycle: Literal[
        "1m", "3m", "6m", "12m"
    ] = "1m",
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 营业部排行

Notes
from wisecon.stock.ranking import *

data = DepartmentRank(statistics_cycle="1m").load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
statistics_cycle Literal['1m', '3m', '6m', '12m']

统计周期, 可选值: 1m, 3m, 6m, 12m, 默认值: 1m

'1m'
size Optional[int]

数据条数

20
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

日志记录器

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\ranking\department_rank.py
def __init__(
        self,
        statistics_cycle: Literal["1m", "3m", "6m", "12m"] = "1m",
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.ranking import *

        data = DepartmentRank(statistics_cycle="1m").load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        statistics_cycle: 统计周期, 可选值: 1m, 3m, 6m, 12m, 默认值: 1m
        size: 数据条数
        verbose: 是否打印日志
        logger: 日志记录器
        **kwargs: 其他参数
    """
    self.statistics_cycle = statistics_cycle
    self.size = size
    self.mapping = DepartmentRankMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="营业部排行",)
    self.conditions = []

DepartmentStatisticMapping

字段映射 营业部统计

DepartmentStatistic

DepartmentStatistic(
    statistics_cycle: Literal[
        "1m", "3m", "6m", "12m"
    ] = "1m",
    size: Optional[int] = 20,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 营业部统计

Notes
from wisecon.stock.ranking import *

data = DepartmentStatistic(statistics_cycle="1m").load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
statistics_cycle Literal['1m', '3m', '6m', '12m']

统计周期, 可选值: 1m, 3m, 6m, 12m, 默认值: 1m

'1m'
size Optional[int]

数据条数

20
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

日志记录器

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\ranking\department_statistic.py
def __init__(
        self,
        statistics_cycle: Literal["1m", "3m", "6m", "12m"] = "1m",
        size: Optional[int] = 20,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.ranking import *

        data = DepartmentStatistic(statistics_cycle="1m").load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        statistics_cycle: 统计周期, 可选值: 1m, 3m, 6m, 12m, 默认值: 1m
        size: 数据条数
        verbose: 是否打印日志
        logger: 日志记录器
        **kwargs: 其他参数
    """
    self.statistics_cycle = statistics_cycle
    self.size = size
    self.mapping = DepartmentStatisticMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="营业部统计",)
    self.conditions = []