Skip to content

Commit

Permalink
Merge pull request shidenggui#46 from lamter/easyquant
Browse files Browse the repository at this point in the history
_init_clock_handler初始化
  • Loading branch information
shidenggui authored Jul 13, 2016
2 parents 5072a57 + 12c4f41 commit af099f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ __pycache__/
account.json
# C extensions
*.so
tmp/
log/

# Distribution / packaging
.Python
Expand Down
3 changes: 1 addition & 2 deletions easyquant/push_engine/clock_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ def __init__(self, event_engine, now=None, tzinfo=None):
self.clock_moment_handlers = deque()
self.clock_interval_handlers = set()

if self.trading_state:
self._init_clock_handler()
self._init_clock_handler()

def _init_clock_handler(self):
"""
Expand Down
3 changes: 2 additions & 1 deletion unitest_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

__author__ = 'Shawn'

main_engine = MainEngine('ht')
# 需要制定一个有效的证券账户信息
main_engine = MainEngine('ht', "tmp/ht.json")


class BaseTest(unittest.TestCase):
Expand Down

0 comments on commit af099f5

Please sign in to comment.