mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-02 03:48:19 +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
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .data_driver import (DataDriverFactory,
|
|
||||||
BaseInfoDriver,
|
|
||||||
BlockInfoDriver,
|
|
||||||
KDataDriver)
|
|
||||||
|
|
||||||
__all__ = ['DataDriverFactory',
|
|
||||||
'BaseInfoDriver',
|
|
||||||
'BlockInfoDriver',
|
|
||||||
'KDataDriver']
|
|
||||||
|
@ -43,6 +43,9 @@ class jqdataKDataDriver(KDataDriver):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(jqdataKDataDriver, self).__init__('jqdata')
|
super(jqdataKDataDriver, self).__init__('jqdata')
|
||||||
|
|
||||||
|
def clone(self):
|
||||||
|
return jqdataKDataDriver()
|
||||||
|
|
||||||
def _init(self):
|
def _init(self):
|
||||||
"""【重载接口】(可选)初始化子类私有变量"""
|
"""【重载接口】(可选)初始化子类私有变量"""
|
||||||
self._max = {
|
self._max = {
|
||||||
|
@ -45,6 +45,9 @@ class PytdxKDataDriver(KDataDriver):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(PytdxKDataDriver, self).__init__('pytdx')
|
super(PytdxKDataDriver, self).__init__('pytdx')
|
||||||
|
|
||||||
|
def _clone(self):
|
||||||
|
return PytdxKDataDriver()
|
||||||
|
|
||||||
def _init(self):
|
def _init(self):
|
||||||
"""【重载接口】(可选)初始化子类私有变量"""
|
"""【重载接口】(可选)初始化子类私有变量"""
|
||||||
self._max = {
|
self._max = {
|
||||||
|
Loading…
Reference in New Issue
Block a user