mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 02:48:57 +08:00
fixed python data_driver
This commit is contained in:
parent
ff30c6e1a0
commit
53da26723f
@ -47,13 +47,3 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
"""
|
||||
|
||||
from .data_driver import (DataDriverFactory,
|
||||
BaseInfoDriver,
|
||||
BlockInfoDriver,
|
||||
KDataDriver)
|
||||
|
||||
__all__ = ['DataDriverFactory',
|
||||
'BaseInfoDriver',
|
||||
'BlockInfoDriver',
|
||||
'KDataDriver']
|
||||
|
@ -43,6 +43,9 @@ class jqdataKDataDriver(KDataDriver):
|
||||
def __init__(self):
|
||||
super(jqdataKDataDriver, self).__init__('jqdata')
|
||||
|
||||
def clone(self):
|
||||
return jqdataKDataDriver()
|
||||
|
||||
def _init(self):
|
||||
"""【重载接口】(可选)初始化子类私有变量"""
|
||||
self._max = {
|
||||
|
@ -45,6 +45,9 @@ class PytdxKDataDriver(KDataDriver):
|
||||
def __init__(self):
|
||||
super(PytdxKDataDriver, self).__init__('pytdx')
|
||||
|
||||
def _clone(self):
|
||||
return PytdxKDataDriver()
|
||||
|
||||
def _init(self):
|
||||
"""【重载接口】(可选)初始化子类私有变量"""
|
||||
self._max = {
|
||||
|
Loading…
Reference in New Issue
Block a user