跳转至

新上市

NewIPOListMapping

字段映射 新股申购与中签查询

NewIPOList

NewIPOList(
    market: Optional[
        Literal[
            "全部股票",
            "沪市主板",
            "科创板",
            "深市主板",
            "创业板",
            "北交所",
            "可转债",
            "REITs",
        ]
    ] = "全部股票",
    size: Optional[int] = 50,
    start_date: Optional[str] = "2010-01-01",
    end_date: Optional[str] = None,
    date: Optional[str] = None,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 新股申购与中签查询

Notes
from wisecon.stock.new_ipo import *

data = NewIPOList(market="全部股票").load()
data.to_frame(chinese_column=True)

data = NewIPOList(market="沪市主板").load()
data.to_frame(chinese_column=True)

data = NewIPOList(market="科创板").load()
data.to_frame(chinese_column=True)

data = NewIPOList(market="深市主板").load()
data.to_frame(chinese_column=True)

data = NewIPOList(market="创业板").load()
data.to_frame(chinese_column=True)

data = NewIPOList(market="北交所").load()
data.to_frame(chinese_column=True)

data = NewIPOList(market="可转债").load()
data.to_frame(chinese_column=True)

data = NewIPOList(market="REITs").load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
market Optional[Literal['全部股票', '沪市主板', '科创板', '深市主板', '创业板', '北交所', '可转债', 'REITs']]

股票市场,默认为全部股票, ["沪市主板", "科创板", "深市主板", "创业板", "北交所", "可转债", "REITs"]

'全部股票'
size Optional[int]

返回数据条数

50
start_date Optional[str]

开始日期

'2010-01-01'
end_date Optional[str]

结束日期

None
date Optional[str]

指定日期

None
verbose Optional[bool]

是否显示详细信息

False
logger Optional[Callable]

日志记录器

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\new_ipo\new_ipo.py
def __init__(
        self,
        market: Optional[Literal["全部股票", "沪市主板", "科创板", "深市主板", "创业板", "北交所", "可转债", "REITs"]] = "全部股票",
        size: Optional[int] = 50,
        start_date: Optional[str] = "2010-01-01",
        end_date: Optional[str] = None,
        date: Optional[str] = None,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.new_ipo import *

        data = NewIPOList(market="全部股票").load()
        data.to_frame(chinese_column=True)

        data = NewIPOList(market="沪市主板").load()
        data.to_frame(chinese_column=True)

        data = NewIPOList(market="科创板").load()
        data.to_frame(chinese_column=True)

        data = NewIPOList(market="深市主板").load()
        data.to_frame(chinese_column=True)

        data = NewIPOList(market="创业板").load()
        data.to_frame(chinese_column=True)

        data = NewIPOList(market="北交所").load()
        data.to_frame(chinese_column=True)

        data = NewIPOList(market="可转债").load()
        data.to_frame(chinese_column=True)

        data = NewIPOList(market="REITs").load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        market: 股票市场,默认为全部股票, ["沪市主板", "科创板", "深市主板", "创业板", "北交所", "可转债", "REITs"]
        size: 返回数据条数
        start_date: 开始日期
        end_date: 结束日期
        date: 指定日期
        verbose: 是否显示详细信息
        logger: 日志记录器
        **kwargs: 其他参数
    """
    self.market = market
    self.size = size
    self.start_date = start_date
    self.end_date = end_date
    self.date = date
    self.mapping = NewIPOListMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="新股申购与中签查询")
    self.conditions = []
    self.validate_date_format(date=[start_date, end_date, date])