Thanks for both responses.
Does any kind of restriction exist for requesting data from the actual day? We are not being able to get that data with any history service configuration.
For example I can request for 1 minute opening bar from yesterday without any problem. And it is taking less than 1 second:
create_db(db_name, conids=[conid], bar_size="1 min", start_date="2020-06-17", times=["09:30:00"], shard='off')
2020-06-18 15:46:48 UTC| <14>1 2020-06-18T15:46:48Z a0a9d11caad2 quantrocket_history_1 14483 - - Issuing to ibg1 historical data request for 2 D of 1 min TRADES for SPY STK (conid 756733) ending 20200618 15:47:00 GMT
2020-06-18 15:46:48 UTC| <14>1 2020-06-18T15:46:48Z a0a9d11caad2 quantrocket_history_1 14483 - - ibg1 client 3668 got IB error code 2104: Market data farm connection is OK:usfarm
2020-06-18 15:46:48 UTC| <14>1 2020-06-18T15:46:48Z a0a9d11caad2 quantrocket_history_1 14483 - - ibg1 client 3668 got IB error code 2107: HMDS data farm connection is inactive but should be available upon demand.ushmds.nj
2020-06-18 15:46:48 UTC| <14>1 2020-06-18T15:46:48Z a0a9d11caad2 quantrocket_history_1 14483 - - ibg1 client 3668 got IB error code 2107: HMDS data farm connection is inactive but should be available upon demand.ushmds
2020-06-18 15:46:48 UTC| <14>1 2020-06-18T15:46:48Z a0a9d11caad2 quantrocket_history_1 14483 - - ibg1 client 3668 got IB error code 2106: HMDS data farm connection is OK:ushmds
2020-06-18 15:46:48 UTC| <14>1 2020-06-18T15:46:48Z a0a9d11caad2 quantrocket_history_1 14483 - - Processing 527 raw bars from IB for SPY STK (conid 756733)
2020-06-18 15:46:49 UTC| <14>1 2020-06-18T15:46:49Z a0a9d11caad2 quantrocket_history_1 14483 - - Saving 1 historical bars for 1 securities to quantrocket.history.spy1mindb.sqlite
But when I try to request the same 1 minute bar data but from the actual day, the request is taking huge amount of time (More than 1 hour in some cases). Here the first 3 minutes of the log:
create_db(db_name, conids=[conid], bar_size="1 min", start_date="2020-06-18", times=["09:30:00"], shard='off')
2020-06-18 15:47:05 UTC| <14>1 2020-06-18T15:47:05Z a0a9d11caad2 quantrocket_history_1 14483 - - Issuing to ibg1 historical data request for 1 D of 1 min TRADES for SPY STK (conid 756733) ending 20200618 15:48:00 GMT
2020-06-18 15:47:05 UTC| <14>1 2020-06-18T15:47:05Z a0a9d11caad2 quantrocket_history_1 14483 - - ibg1 client 3681 got IB error code 2104: Market data farm connection is OK:usfarm
2020-06-18 15:47:05 UTC| <14>1 2020-06-18T15:47:05Z a0a9d11caad2 quantrocket_history_1 14483 - - ibg1 client 3681 got IB error code 2107: HMDS data farm connection is inactive but should be available upon demand.ushmds.nj
2020-06-18 15:47:05 UTC| <14>1 2020-06-18T15:47:05Z a0a9d11caad2 quantrocket_history_1 14483 - - ibg1 client 3681 got IB error code 2106: HMDS data farm connection is OK:ushmds
2020-06-18 15:47:06 UTC| <14>1 2020-06-18T15:47:06Z a0a9d11caad2 quantrocket_history_1 14483 - - Processing 138 raw bars from IB for SPY STK (conid 756733)
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - ┌──────────────────────────────┐
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - │ spy1mindb IB response times: │
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - │ ibg1 │
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - │ count 1.0 │
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - │ mean 0.2 │
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - │ std NaN │
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - │ min 0.2 │
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - │ 25% 0.2 │
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - │ 50% 0.2 │
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - │ 75% 0.2 │
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - │ max 0.2 │
2020-06-18 15:47:08 UTC| <14>1 2020-06-18T15:47:08Z a0a9d11caad2 quantrocket_history_1 14483 - - └──────────────────────────────┘
2020-06-18 15:48:05 UTC| <14>1 2020-06-18T15:48:05Z a0a9d11caad2 quantrocket_history_1 14483 - - ┌──────────────────────────────┐
2020-06-18 15:48:05 UTC| <14>1 2020-06-18T15:48:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ spy1mindb processing stages: │
2020-06-18 15:48:05 UTC| <14>1 2020-06-18T15:48:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ head timestamps 0 │
2020-06-18 15:48:05 UTC| <14>1 2020-06-18T15:48:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ historical data 0 │
2020-06-18 15:48:05 UTC| <14>1 2020-06-18T15:48:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ waiting for responses 0 │
2020-06-18 15:48:05 UTC| <14>1 2020-06-18T15:48:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ bar processing 0 │
2020-06-18 15:48:05 UTC| <14>1 2020-06-18T15:48:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ database storage 1 │
2020-06-18 15:48:05 UTC| <14>1 2020-06-18T15:48:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ completed 0 │
2020-06-18 15:48:05 UTC| <14>1 2020-06-18T15:48:05Z a0a9d11caad2 quantrocket_history_1 14483 - - └──────────────────────────────┘
2020-06-18 15:49:05 UTC| <14>1 2020-06-18T15:49:05Z a0a9d11caad2 quantrocket_history_1 14483 - - ┌──────────────────────────────┐
2020-06-18 15:49:05 UTC| <14>1 2020-06-18T15:49:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ spy1mindb processing stages: │
2020-06-18 15:49:05 UTC| <14>1 2020-06-18T15:49:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ head timestamps 0 │
2020-06-18 15:49:05 UTC| <14>1 2020-06-18T15:49:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ historical data 0 │
2020-06-18 15:49:05 UTC| <14>1 2020-06-18T15:49:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ waiting for responses 0 │
2020-06-18 15:49:05 UTC| <14>1 2020-06-18T15:49:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ bar processing 0 │
2020-06-18 15:49:05 UTC| <14>1 2020-06-18T15:49:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ database storage 1 │
2020-06-18 15:49:05 UTC| <14>1 2020-06-18T15:49:05Z a0a9d11caad2 quantrocket_history_1 14483 - - │ completed 0 │
2020-06-18 15:49:05 UTC| <14>1 2020-06-18T15:49:05Z a0a9d11caad2 quantrocket_history_1 14483 - - └──────────────────────────────┘