跳转至

市场全貌

LastDayMarketSummaryMapping

字段映射 市场总貌

LastDayMarketSummary

LastDayMarketSummary(
    verbose: Annotated[Optional[bool], "", False] = False,
    logger: Annotated[Optional[Callable], "", False] = None,
    **kwargs: Annotated[Any, "", False]
)

查询 查询昨日市场(深市、沪市、创业板)总体交易数据

Notes
from wisecon.stock.market import *

# 市场总貌:查询昨日市场(深市、沪市、创业板)总体交易数据
data = LastDayMarketSummary().load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
verbose Annotated[Optional[bool], '', False]

是否打印日志

False
logger Annotated[Optional[Callable], '', False]

自定义日志打印函数

None
**kwargs Annotated[Any, '', False]

其他参数

{}
Source code in wisecon\stock\market\summary.py
def __init__(
        self,
        verbose: Annotated[Optional[bool], "", False] = False,
        logger: Annotated[Optional[Callable], "", False] = None,
        **kwargs: Annotated[Any, "", False],
):
    """
    Notes:
        ```python
        from wisecon.stock.market import *

        # 市场总貌:查询昨日市场(深市、沪市、创业板)总体交易数据
        data = LastDayMarketSummary().load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        verbose: 是否打印日志
        logger: 自定义日志打印函数
        **kwargs: 其他参数
    """
    self.mapping = LastDayMarketSummaryMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="市场总貌")