跳转至

市场全貌

LastDayMarketSummaryMapping

字段映射 市场总貌

LastDayMarketSummary

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

查询 市场总貌

Notes
from wisecon.stock.market import *

# 查询ETF市场当前行情
data = LastDayMarketSummary().load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

自定义日志打印函数

None
**kwargs Any

其他参数

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

        # 查询ETF市场当前行情
        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="市场总貌")