融资融券
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
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
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
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
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
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
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股']
|
市场名称: |
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
MarginTradingDailyMapping
¶
字段映射 融资融券交易总量
MarginTradingDaily
¶
MarginTradingDaily(
verbose: Optional[bool] = False,
logger: Optional[Callable] = None,
**kwargs: Any
)
查询 融资融券交易总量
Notes
Parameters:
Name | Type | Description | Default |
---|---|---|---|
verbose
|
Optional[bool]
|
是否打印日志 |
False
|
logger
|
Optional[Callable]
|
自定义日志打印函数 |
None
|
**kwargs
|
Any
|
其他参数 |
{}
|