跳转至

融资融券

MarginTradingSummaryMapping

字段映射 融资融券交易总量-市场合计

MarginTradingSummary

MarginTradingSummary(
    market: Literal[
        "全部", "沪市", "深市", "京市"
    ] = "全部",
    start_date: Optional[str] = None,
    end_date: Optional[str] = None,
    date: Optional[str] = None,
    size: Optional[int] = 100,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 融资融券交易总量-市场合计

Notes
from wisecon.stock.margin import *

# 查询 融资融券交易总量-市场合计
data = MarginTradingSummary(market="全部").load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
market Literal['全部', '沪市', '深市', '京市']

市场类型

'全部'
start_date Optional[str]

开始日期

None
end_date Optional[str]

结束日期

None
date Optional[str]

日期

None
size Optional[int]

返回数据量

100
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

自定义日志打印函数

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\margin\summary.py
def __init__(
        self,
        market: Literal["全部", "沪市", "深市", "京市"] = "全部",
        start_date: Optional[str] = None,
        end_date: Optional[str] = None,
        date: Optional[str] = None,
        size: Optional[int] = 100,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.margin import *

        # 查询 融资融券交易总量-市场合计
        data = MarginTradingSummary(market="全部").load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        market: 市场类型
        start_date: 开始日期
        end_date: 结束日期
        date: 日期
        size: 返回数据量
        verbose: 是否打印日志
        logger: 自定义日志打印函数
        **kwargs: 其他参数
    """
    self.market = market
    self.start_date = start_date
    self.end_date = end_date
    self.date = date
    self.size = size
    self.mapping = MarginTradingSummaryMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="融资融券交易总量-市场合计")
    self.conditions = []

MarginTradingAccountMapping

字段映射 融资融券账户统计-两融账户信息

MarginTradingAccount

MarginTradingAccount(
    cycle: Literal["day", "month"] = "day",
    start_date: Optional[str] = None,
    end_date: Optional[str] = None,
    date: Optional[str] = None,
    size: Optional[int] = 100,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 融资融券账户统计-两融账户信息

Notes
from wisecon.stock.margin import *

# 查询 融资融券账户统计-两融账户信息
data = MarginTradingAccount(market="全部").load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
cycle Literal['day', 'month']

统计周期

'day'
start_date Optional[str]

开始日期

None
end_date Optional[str]

结束日期

None
date Optional[str]

日期

None
size Optional[int]

返回数据量

100
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

自定义日志打印函数

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\margin\account.py
def __init__(
        self,
        cycle: Literal["day", "month"] = "day",
        start_date: Optional[str] = None,
        end_date: Optional[str] = None,
        date: Optional[str] = None,
        size: Optional[int] = 100,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.margin import *

        # 查询 融资融券账户统计-两融账户信息
        data = MarginTradingAccount(market="全部").load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        cycle: 统计周期
        start_date: 开始日期
        end_date: 结束日期
        date: 日期
        size: 返回数据量
        verbose: 是否打印日志
        logger: 自定义日志打印函数
        **kwargs: 其他参数
    """
    self.cycle = cycle
    self.start_date = start_date
    self.end_date = end_date
    self.date = date
    self.size = size
    self.mapping = MarginTradingAccountMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="融资融券账户统计-两融账户信息")
    self.conditions = []
    self.validate_date_format(date=[date, start_date, end_date])

MarginTradingPlateMapping

字段映射 融资融券账户统计-板块融资融券

MarginTradingPlate

MarginTradingPlate(
    plate_name: Literal["行业", "概念", "地域"] = "行业",
    cycle: Literal[1, 3, 5, 10] = 1,
    size: Optional[int] = 50,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 融资融券账户统计-板块融资融券

Notes
from wisecon.stock.margin import *

# 查询 融资融券账户统计-板块融资融券
data = MarginTradingPlate(plate_name="行业").load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
plate_name Literal['行业', '概念', '地域']

板块类型: ["行业", "概念", "地域"]

'行业'
cycle Literal[1, 3, 5, 10]

统计周期

1
size Optional[int]

返回数据量

50
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

自定义日志打印函数

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\margin\plate.py
def __init__(
        self,
        plate_name: Literal["行业", "概念", "地域"] = "行业",
        cycle: Literal[1, 3, 5, 10] = 1,
        size: Optional[int] = 50,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.margin import *

        # 查询 融资融券账户统计-板块融资融券
        data = MarginTradingPlate(plate_name="行业").load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        plate_name: 板块类型: `["行业", "概念", "地域"]`
        cycle: 统计周期
        size: 返回数据量
        verbose: 是否打印日志
        logger: 自定义日志打印函数
        **kwargs: 其他参数
    """
    self.plate_name = plate_name
    self.cycle = cycle
    self.size = size
    self.mapping = MarginTradingPlateMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="融资融券账户统计-板块融资融券")
    self.conditions = []

MarginTradingStockMapping

字段映射 融资融券交易明细-个股融资融券

MarginTradingStock

MarginTradingStock(
    market: Literal[
        "沪深A股",
        "沪市A股",
        "科创板",
        "深市A股",
        "创业板",
        "京市A股",
    ] = None,
    start_date: Optional[str] = None,
    end_date: Optional[str] = None,
    date: Optional[str] = None,
    cycle: Literal[1, 3, 5, 10] = 1,
    size: Optional[int] = 50,
    verbose: Optional[bool] = False,
    logger: Optional[Callable] = None,
    **kwargs: Any
)

查询 融资融券交易明细-个股融资融券

Notes
from wisecon.stock.margin import *

# 查询 融资融券交易明细-个股融资融券
data = MarginTradingStock(date="2024-10-30", cycle=1).load()
data.to_frame(chinese_column=True)

data = MarginTradingStock(market="沪深A股", date="2024-10-30", cycle=1).load()
data.to_frame(chinese_column=True)

data = MarginTradingStock(market="科创板", date="2024-10-30", cycle=1).load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
market Literal['沪深A股', '沪市A股', '科创板', '深市A股', '创业板', '京市A股']

市场名称: ["沪深A股", "沪市A股", "科创板", "深市A股", "创业板", "京市A股"]

None
start_date Optional[str]

开始日期

None
end_date Optional[str]

结束日期

None
date Optional[str]

日期

None
cycle Literal[1, 3, 5, 10]

统计周期

1
size Optional[int]

返回数据量

50
verbose Optional[bool]

是否打印日志

False
logger Optional[Callable]

自定义日志打印函数

None
**kwargs Any

其他参数

{}
Source code in wisecon\stock\margin\stock.py
def __init__(
        self,
        market: Literal["沪深A股", "沪市A股", "科创板", "深市A股", "创业板", "京市A股"] = None,
        start_date: Optional[str] = None,
        end_date: Optional[str] = None,
        date: Optional[str] = None,
        cycle: Literal[1, 3, 5, 10] = 1,
        size: Optional[int] = 50,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.margin import *

        # 查询 融资融券交易明细-个股融资融券
        data = MarginTradingStock(date="2024-10-30", cycle=1).load()
        data.to_frame(chinese_column=True)

        data = MarginTradingStock(market="沪深A股", date="2024-10-30", cycle=1).load()
        data.to_frame(chinese_column=True)

        data = MarginTradingStock(market="科创板", date="2024-10-30", cycle=1).load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        market: 市场名称: `["沪深A股", "沪市A股", "科创板", "深市A股", "创业板", "京市A股"]`
        start_date: 开始日期
        end_date: 结束日期
        date: 日期
        cycle: 统计周期
        size: 返回数据量
        verbose: 是否打印日志
        logger: 自定义日志打印函数
        **kwargs: 其他参数
    """
    self.market = market
    self.cycle = cycle
    self.start_date = start_date
    self.end_date = end_date
    self.date = date
    self.size = size
    self.mapping = MarginTradingStockMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="融资融券交易明细-个股融资融券")
    self.conditions = []
    self.validate_date_format(date=[date, start_date, end_date])

MarginTradingDailyMapping

字段映射 融资融券交易总量

MarginTradingDaily

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

查询 融资融券交易总量

Notes
from wisecon.stock.margin import *

# 查询 融资融券交易总量-市场合计
data = MarginTradingDaily().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\margin\daily.py
def __init__(
        self,
        verbose: Optional[bool] = False,
        logger: Optional[Callable] = None,
        **kwargs: Any
):
    """
    Notes:
        ```python
        from wisecon.stock.margin import *

        # 查询 融资融券交易总量-市场合计
        data = MarginTradingDaily().load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        verbose: 是否打印日志
        logger: 自定义日志打印函数
        **kwargs: 其他参数
    """
    self.mapping = MarginTradingDailyMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(description="融资融券交易总量")
    self.conditions = []