Log a warning on no symcache support in a backend

account_tests
Tyler Goodlet 2023-07-17 17:31:12 -04:00
parent e4731eff10
commit a05a82486d
2 changed files with 8 additions and 3 deletions

View File

@ -59,7 +59,10 @@ async def load_provider_search(
),
open_symcache(brokermod) as symcache,
):
assert symcache
if not symcache.mktmaps:
log.warning(
f'BACKEND DOES NOT (yet) support symcaching: `{brokermod.name}`'
)
# keep search engine stream up until cancelled
await trio.sleep_forever()

View File

@ -1,5 +1,5 @@
# piker: trading gear for hackers
# Copyright (C) Tyler Goodlet (in stewardship for piker0)
# Copyright (C) Tyler Goodlet (in stewardship for pikers)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@ -15,7 +15,9 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
'''
Position (pos) info and display to track ur PnLz B)
UI components to display real-time and historical
`.accounting.Position` cross-asset PnL(s) as well as manage market
agnostic asset ownership state.
'''
from __future__ import annotations