提交 f114c56a 编写于 作者: Z zengbin93

0.5.2 新增 get_sub_section 方法

上级 ecbde056
......@@ -10,6 +10,7 @@ except ImportError:
warnings.warn(ta_lib_hint)
import pandas as pd
import numpy as np
from datetime import datetime
from czsc.utils import plot_ka, plot_kline
......@@ -698,3 +699,16 @@ class KlineAnalyze:
return bc
def get_sub_section(self, start_dt: datetime, end_dt: datetime, mode="bi"):
"""获取子区间
:param start_dt: datetime
子区间开始时间
:param end_dt: datetime
子区间结束时间
:param mode: str
需要获取的子区间对象类型,可取值 ['k', 'fx', 'bi', 'xd']
:return: list of dict
"""
raise NotImplementedError
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册