Compare commits
2 Commits
ebdee8fa70
...
704c66a044
| Author | SHA1 | Date |
|---|---|---|
|
|
704c66a044 | |
|
|
6e669f0948 |
|
|
@ -275,12 +275,14 @@ async def open_history_client(
|
||||||
f'{times}'
|
f'{times}'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# XXX, debug any case where the latest 1m bar we get is
|
||||||
|
# already another "sample's-step-old"..
|
||||||
if end_dt is None:
|
if end_dt is None:
|
||||||
inow: int = round(time.time())
|
inow: int = round(time.time())
|
||||||
if (
|
if (
|
||||||
(inow - times[-1])
|
_time_step := (inow - times[-1])
|
||||||
>
|
>
|
||||||
timeframe
|
timeframe * 2
|
||||||
):
|
):
|
||||||
await tractor.pause()
|
await tractor.pause()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -452,7 +452,13 @@ def ldshm(
|
||||||
)
|
)
|
||||||
# last chance manual overwrites in REPL
|
# last chance manual overwrites in REPL
|
||||||
# await tractor.pause()
|
# await tractor.pause()
|
||||||
assert aids
|
if not aids:
|
||||||
|
log.warning(
|
||||||
|
f'No gaps were found !?\n'
|
||||||
|
f'fqme: {fqme!r}\n'
|
||||||
|
f'timeframe: {period_s!r}\n'
|
||||||
|
f"WELL THAT'S GOOD NOOZ!\n"
|
||||||
|
)
|
||||||
tf2aids[period_s] = aids
|
tf2aids[period_s] = aids
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue