ib: fix op error when `end_dt` is `None`: the first query
parent
98c043815a
commit
1e1e64f7f9
|
@ -212,7 +212,7 @@ _pacing: str = (
|
||||||
async def wait_on_data_reset(
|
async def wait_on_data_reset(
|
||||||
proxy: MethodProxy,
|
proxy: MethodProxy,
|
||||||
reset_type: str = 'data',
|
reset_type: str = 'data',
|
||||||
timeout: float = float('inf'),
|
timeout: float = 16, # float('inf'),
|
||||||
|
|
||||||
task_status: TaskStatus[
|
task_status: TaskStatus[
|
||||||
tuple[
|
tuple[
|
||||||
|
@ -351,7 +351,10 @@ async def get_bars(
|
||||||
|
|
||||||
bars, bars_array, dt_duration = out
|
bars, bars_array, dt_duration = out
|
||||||
|
|
||||||
if not bars:
|
if (
|
||||||
|
not bars
|
||||||
|
and end_dt
|
||||||
|
):
|
||||||
log.warning(
|
log.warning(
|
||||||
f'History is blank for {dt_duration} from {end_dt}'
|
f'History is blank for {dt_duration} from {end_dt}'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue