Skip to content

Commit 835ad3d

Browse files
author
rob
committed
reduce timeout for ib bar data to 20 secods
1 parent e42c02b commit 835ad3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sysbrokers/IB/client/ib_price_client.py

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
from sysobjects.contracts import futuresContract
2525
from sysexecution.trade_qty import tradeQuantity
2626

27+
TIMEOUT_SECONDS_ON_HISTORICAL_DATA = 10
28+
2729

2830
class tickerWithBS(object):
2931
def __init__(self, ticker, BorS: str):
@@ -272,6 +274,7 @@ def _ib_get_historical_data_of_duration_and_barSize(
272274
whatToShow=whatToShow,
273275
useRTH=True,
274276
formatDate=2,
277+
timeout=TIMEOUT_SECONDS_ON_HISTORICAL_DATA,
275278
)
276279
df = util.df(bars)
277280

0 commit comments

Comments
 (0)