Skip to content

Commit

Permalink
Only 4k seconds of 1s ohlc when no tsdb
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jul 15, 2022
1 parent 74f004c commit cee05e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions piker/brokers/ib/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ async def get_bars(

except RequestError as err:
msg = err.message
# why do we always need to rebind this?
# _err = err

if 'No market data permissions for' in msg:
# TODO: signalling for no permissions searches
Expand Down Expand Up @@ -778,7 +776,9 @@ def mk_init_msgs() -> dict[str, dict]:
# generally speaking these feeds don't
# include vlm data.
atype = syminfo['asset_type']
log.info(f'Non-volume asset {sym}@{atype}, skipping quote poll.')
log.info(
f'Non-vlm asset {sym}@{atype}, skipping quote poll...'
)

else:
# wait for real volume on feed (trading might be closed)
Expand Down
2 changes: 1 addition & 1 deletion piker/data/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ async def start_backfill(
# when no tsdb "last datum" is provided, we just load
# some near-term history.
periods = {
1: {'days': 1},
1: {'seconds': 4000},
60: {'days': 14},
}

Expand Down

0 comments on commit cee05e6

Please sign in to comment.