跳转至

Tick

TickMapping

字段映射 股票实时tick数据

Tick

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

查询 股票实时tick数据

Notes
from wisecon.stock.tick import Tick

data = Tick(code="301618").load()
print(data.to_frame(chinese_column=True))

Parameters:

Name Type Description Default
code Optional[str]

证券代码

None
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

日志打印函数

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\tick\tick.py
def __init__(
        self,
        code: Optional[str] = None,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.tick import 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数据")