Skip to content

Commit

Permalink
update interval
Browse files Browse the repository at this point in the history
  • Loading branch information
51bitquant committed Mar 8, 2023
1 parent 2c616b0 commit 05edce3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion howtrader/trader/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def process_timer_event(self, event: Event) -> None:
"""
self.order_update_interval += 1

update_interval = SETTINGS.get('order_update_interval', 600)
update_interval = SETTINGS.get('order_update_interval', 300)

if self.order_update_interval >= update_interval:
self.order_update_interval = 0
Expand Down
2 changes: 1 addition & 1 deletion howtrader/trader/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"email.sender": "",
"email.receiver": "",

"order_update_interval": 600, # securing correct orders' status by synchronizing/updating orders through rest api
"order_update_interval": 300, # securing correct orders' status by synchronizing/updating orders through rest api
"update_server_time_interval": 300, # sync with server time
"passphrase": "howtrader", # tv passphrase
"port": 9999, # tv server port
Expand Down

0 comments on commit 05edce3

Please sign in to comment.