Error when collecting ibkr data for GBTC

Hi there,

I'm getting the following error when trying to collect data for GBTC (FIBBG008748J88) from IB:

quantrocket_flightlog_1|2020-08-20 21:32:05 quantrocket.history: INFO [topetfs-1d] Collecting history from IBKR for 1 securities in topetfs-1d
    quantrocket_houston_1|172.18.0.14 - - [21/Aug/2020:01:32:05 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
  quantrocket_flightlog_1|2020-08-20 21:32:05 quantrocket.history: ERROR Traceback (most recent call last):
    quantrocket_houston_1|172.18.0.14 - - [21/Aug/2020:01:32:05 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
  quantrocket_flightlog_1|2020-08-20 21:32:05 quantrocket.history: ERROR   File "sym://qrocket_log_py", line 34, in wrapped
    quantrocket_houston_1|172.18.0.14 - - [21/Aug/2020:01:32:05 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
  quantrocket_flightlog_1|2020-08-20 21:32:05 quantrocket.history: ERROR   File "sym://qrocket_mule_py", line 61, in mule_collect_ibkr_historical_data_standard_queue
    quantrocket_houston_1|172.18.0.14 - - [21/Aug/2020:01:32:05 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
  quantrocket_flightlog_1|2020-08-20 21:32:05 quantrocket.history: ERROR   File "sym://qrocket_history_collect_ibkr_main_py", line 122, in collect_history
    quantrocket_houston_1|172.18.0.14 - - [21/Aug/2020:01:32:05 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
  quantrocket_flightlog_1|2020-08-20 21:32:05 quantrocket.history: ERROR   File "sym://qrocket_history_collect_ibkr_main_py", line 93, in get_securities_dict
    quantrocket_houston_1|172.18.0.14 - - [21/Aug/2020:01:32:05 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
  quantrocket_flightlog_1|2020-08-20 21:32:05 quantrocket.history: ERROR   File "sym://qrocket_history_collect_ibkr_models_py", line 152, in __init__
    quantrocket_houston_1|172.18.0.14 - - [21/Aug/2020:01:32:05 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
  quantrocket_flightlog_1|2020-08-20 21:32:05 quantrocket.history: ERROR   File "sym://qrocket_history_collect_ibkr_models_py", line 173, in _get_contract
    quantrocket_houston_1|172.18.0.14 - - [21/Aug/2020:01:32:05 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
  quantrocket_flightlog_1|2020-08-20 21:32:05 quantrocket.history: ERROR AttributeError: 'float' object has no attribute 'split'
    quantrocket_houston_1|172.18.0.14 - - [21/Aug/2020:01:32:05 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
  quantrocket_flightlog_1|2020-08-20 21:32:05 quantrocket.history: ERROR 
    quantrocket_houston_1|172.18.0.14 - - [21/Aug/2020:01:32:05 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"

Please advise.

David

A better error message is needed there, but the issue is that although that security is in your securities master database, you haven't collected the security listing from IBKR so some of the information required to request historical data is missing. The solution is to collect the security listing from IBKR then try again. It's the same as this issue (but with the history service instead of the realtime service):

Version 2.2.0 is now available and includes better error handling for this situation.