Skip to content

Commit

Permalink
add tv
Browse files Browse the repository at this point in the history
  • Loading branch information
51bitquant committed Jul 3, 2022
1 parent 3932147 commit 4bcfddd
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 331 deletions.
2 changes: 1 addition & 1 deletion howtrader/app/cta_strategy/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,8 +823,8 @@ def sync_strategy_data(self, strategy: CtaTemplate) -> None:
data.pop("trading")
self.sync_strategy_data_lock.acquire()
self.strategy_data[strategy.strategy_name] = data
self.sync_strategy_data_lock.release()
save_json(self.data_filename, self.strategy_data)
self.sync_strategy_data_lock.release()

def get_all_strategy_class_names(self) -> list:
"""
Expand Down
2 changes: 0 additions & 2 deletions howtrader/rpc/__init__.py

This file was deleted.

169 changes: 0 additions & 169 deletions howtrader/rpc/client.py

This file was deleted.

10 changes: 0 additions & 10 deletions howtrader/rpc/common.py

This file was deleted.

139 changes: 0 additions & 139 deletions howtrader/rpc/server.py

This file was deleted.

4 changes: 3 additions & 1 deletion howtrader/trader/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@
EVENT_QUOTE = "eQuote."
EVENT_CONTRACT = "eContract."
EVENT_LOG = "eLog"
EVENT_TRADINGVIEW = 'eTradingView'
EVENT_TV_SIGNAL = 'eTVSignal'
EVENT_TV_LOG = 'eTVLog'
EVENT_TV_STRATEGY = "eTVStrategy"
2 changes: 2 additions & 0 deletions howtrader/trader/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
"email.receiver": "",

"update_interval": 600,
"passphrase": "howtrader", # tv passphrase
"port": 9999, # tv server port

"datafeed.name": "",
"datafeed.username": "",
Expand Down
2 changes: 1 addition & 1 deletion howtrader/trader/ui/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def init_ui(self) -> None:
def show_exception(self, msg: str) -> None:
""""""
self.msg_edit.setText(msg)
self.show()
# self.show()

def _copy_text(self) -> None:
""""""
Expand Down
Loading

0 comments on commit 4bcfddd

Please sign in to comment.