跳转至

Tick

TickMapping

字段映射 股票实时tick数据

Tick

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

查询 股票实时tick数据

股票实时tick数据

Notes
from wisecon.stock.tick import Tick

# 查询证券代码301618的实时tick数据
data = Tick(code="301618").load()
print(data.to_frame(chinese_column=True))

Parameters:

Name Type Description Default
code Annotated[Optional[str], '', False]

证券代码

None
verbose Annotated[Optional[bool], '', False]

是否打印日志

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

日志打印函数

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

其他参数

{}
Source code in wisecon\stock\tick\tick.py
def __init__(
        self,
        code: Annotated[Optional[str], "", False] = None,
        verbose: Annotated[Optional[bool], "", False] = False,
        logger: Annotated[Optional[Callable], "", False] = None,
        **kwargs: Annotated[Any, "", False],
):
    """
    股票实时tick数据

    Notes:
        ```python
        from wisecon.stock.tick import Tick

        # 查询证券代码301618的实时tick数据
        data = Tick(code="301618").load()
        print(data.to_frame(chinese_column=True))
        ```

    Args:
        code: 证券代码
        verbose: 是否打印日志
        logger: 日志打印函数
        **kwargs: 其他参数
    """
    self.code = code
    self.mapping = TickMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="股票实时tick数据")