Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
51bitquant committed Jul 21, 2022
1 parent e122e9f commit b1c9aee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/tv_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ def run():
tv_engine.start_all_strategies()
main_engine.write_log("start all tv strategies")

t1 = Thread(target=start_tv_server)
t1.daemon = True
t1.start()

while True:
sleep(10)

Expand Down
4 changes: 4 additions & 0 deletions tv_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ def run():
tv_engine.start_all_strategies()
main_engine.write_log("start all tv strategies")

t1 = Thread(target=start_tv_server)
t1.daemon = True
t1.start()

while True:
sleep(10)

Expand Down

0 comments on commit b1c9aee

Please sign in to comment.