Trying to quantrocket master exchanges --regions 'north_america' --sec-types 'STK'
returns a connection timeout while working from Australia:
Traceback (most recent call last):
File "/opt/conda/bin/quantrocket", line 11, in
sys.exit(main())
File "/opt/conda/lib/python3.6/site-packages/quantrocket/cli/commands.py", line 97, in main
result, exit_code = func(**args)
File "/opt/conda/lib/python3.6/site-packages/quantrocket/master.py", line 50, in _cli_list_exchanges
return json_to_cli(list_exchanges, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/quantrocket/cli/utils/output.py", line 37, in json_to_cli
json_response = func(*args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/quantrocket/master.py", line 45, in list_exchanges
response = houston.get("/master/exchanges", params=params)
File "/opt/conda/lib/python3.6/site-packages/requests/sessions.py", line 521, in get
return self.request('GET', url, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/quantrocket/houston.py", line 135, in request
return super(Houston, self).request(method, url, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/opt/conda/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/requests/adapters.py", line 521, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='houston', port=80): Read timed out. (read timeout=30)
It is not my connection speed (which is broadband) but rather responsiveness of IB web site from Australia (which redirects to www.interactivebrokers.com.au for Australian clients, which, I suppose is a proxy on itself and all this contribute to response time significantly). Anyway, there needs to be a way to increase the timeout as it is not possible to complete even simple operations with the IB web site.
Thanks!