mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 19:08:48 +08:00
29 lines
819 B
C++
29 lines
819 B
C++
#!/usr/bin/python
|
||
# -*- coding: utf8 -*-
|
||
# cp936
|
||
|
||
#===============================================================================
|
||
# 作者:fasiondog
|
||
# 历史:1)20130128, Added by fasiondog
|
||
#===============================================================================
|
||
from hikyuu import *
|
||
|
||
import os
|
||
curdir = os.path.dirname(os.path.realpath(__file__))
|
||
head, tail = os.path.split(curdir)
|
||
head, tail = os.path.split(head)
|
||
head, tail = os.path.split(head)
|
||
|
||
import sys
|
||
if sys.platform == 'win32':
|
||
config_file = os.path.join(head, "test/data/hikyuu_win.ini")
|
||
else:
|
||
config_file = os.path.join(head, "test/data/hikyuu_linux.ini")
|
||
|
||
|
||
#starttime = time.time()
|
||
#print "Loading Day Data ..."
|
||
hikyuu_init(config_file)
|
||
sm = StockManager.instance()
|
||
#endtime = time.time()
|
||
#print "%.2fs" % (endtime-starttime) |