Good afternoon, hope you are doing well, Im having some issue to get data in papaer trading mode from IB.
Im watching the tutorial to get real time data, but I see some differences from the RUN_ME.py file from IBridgePy_Win_Anaconda38_64. In the video it seems there is a configuration.txt file that helps get the data and not sure how can I get it.
Im getting the following error using the RUN_ME.py file with the following instruction (despite conection seems to be working as you can see below):
run_me(fileName, globals())
Try brokerClient IB port=7496
port=7496 is correct and set port to userConfig.brokerClientConfig.IB_CLIENT
Connected to IB is successful using port=7496
IBridgePy version 16.5.2
fileName = example_show_real_time_prices.py
broker_client_factory.BrokerClient::request_data: EXIT, the following requestRecord failed
{reqId=0;status=Submitted;reqType=reqIds;followUp=True;param={}}
Traceback (most recent call last):
File "C:\Users\artur\Desktop\IBridgePy_Win_Anaconda38_64\RUN_ME.py", line 53, in <module>
run_me(fileName, globals())
File "C:\Users\artur\Desktop\IBridgePy_Win_Anaconda38_64\configuration.py", line 85, in run_me
finally_run(userConfig, LiveBacktest.LIVE)
File "C:\Users\artur\Desktop\IBridgePy_Win_Anaconda38_64\configuration.py", line 223, in finally_run
c.run()
File "C:\Users\artur\Desktop\IBridgePy_Win_Anaconda38_64\IBridgePy\MarketManagerBase.py", line 56, in run
self._run_once()
File "C:\Users\artur\Desktop\IBridgePy_Win_Anaconda38_64\IBridgePy\MarketManagerBase.py", line 52, in _run_once
self.trader.initialize_Function()
File "C:\Users\artur\Desktop\IBridgePy_Win_Anaconda38_64\IBridgePy\Trader.py", line 339, in initialize_Function
self._brokerService.submit_requests(ReqIds())
File "C:\Users\artur\Desktop\IBridgePy_Win_Anaconda38_64\broker_service_factory\BrokerService.py", line 293, in submit_requests
return self._brokerClient.request_data(*args)
File "C:\Users\artur\Desktop\IBridgePy_Win_Anaconda38_64\broker_client_factory\BrokerClient.py", line 351, in request_data
raise RuntimeError('%s server did not response to the request at all. Maybe the market is closed? Consider trying it later.' % (self.name, ))
RuntimeError: IB server did not response to the request at all. Maybe the market is closed? Consider trying it later.
Tyvm!
Hello Arturo,
A similar error has been discussed in this community post.
You can check out Dr Lui response on that.
Hope that helps!