KLine
KLineMapping
¶
字段映射 股票-KLine
KLine
¶
KLine(
security_code: Optional[str] = None,
plate_code: Optional[str] = None,
end_date: Optional[str] = "20500101",
size: Optional[int] = 120,
period: Literal[
"1m", "5m", "15m", "30m", "60m", "1D", "1W", "1M"
] = "5m",
adjust: Literal[
"前复权", "后赋权", "不赋权"
] = "前复权",
verbose: Optional[bool] = False,
logger: Optional[Callable] = None,
**kwargs: Any
)
查询 股票-KLine
注意:非交易日时,1分钟线1m
无数据。
Notes
Parameters:
Name | Type | Description | Default |
---|---|---|---|
security_code
|
Optional[str]
|
股票代码 |
None
|
plate_code
|
Optional[str]
|
板块代码 |
None
|
end_date
|
Optional[str]
|
截止日期 |
'20500101'
|
size
|
Optional[int]
|
返回数据条数 |
120
|
period
|
Literal['1m', '5m', '15m', '30m', '60m', '1D', '1W', '1M']
|
K线周期 |
'5m'
|
adjust
|
Literal['前复权', '后赋权', '不赋权']
|
复权类型 |
'前复权'
|
verbose
|
Optional[bool]
|
是否打印日志 |
False
|
logger
|
Optional[Callable]
|
日志对象 |
None
|
**kwargs
|
Any
|
其他参数 |
{}
|
Source code in wisecon\stock\kline\kline.py
KlineMinMapping
¶
字段映射 股票-KlineMin
KlineMin
¶
KlineMin(
security_code: Optional[str] = None,
plate_code: Optional[str] = None,
n_days: Optional[int] = 1,
verbose: Optional[bool] = False,
logger: Optional[Callable] = None,
**kwargs: Any
)
查询 股票-KlineMin,可以获取最大近5天的分钟级K线数据
Notes
Parameters:
Name | Type | Description | Default |
---|---|---|---|
security_code
|
Optional[str]
|
股票代码 |
None
|
plate_code
|
Optional[str]
|
板块代码 |
None
|
n_days
|
Optional[int]
|
查询天数 |
1
|
verbose
|
Optional[bool]
|
是否打印日志 |
False
|
logger
|
Optional[Callable]
|
日志对象 |
None
|
**kwargs
|
Any
|
其他参数 |
{}
|