019b620ab9b4943e6bdc65d4ff5f489990fe2587
asset_bridge.py: connects Fable's AssetDirectory (operational layer, runtime-mutable, JSON-backed listing status) with our AssetProfile (taxonomic layer, frozen, invariant classification). Functions: - sync_asset_to_profile(directory, symbol): sync one asset's TRADING exchanges from directory to AssetProfile.exchanges - sync_exchanges_from_directory(directory): sync all matching assets - get_universe_stats(directory): matched/unmatched counts 49 tests covering: - normalize_symbol (7 edge cases) - ExchangeListing validation (4 tests) - AssetRecord listing queries (5 tests) - AssetDirectory CRUD + persistence (14 tests) - symbols_for_exchange filtering by status (4 tests) - venue_symbol mapping (3 tests) - Bridge sync (8 tests with state save/restore) - Integration with ScenarioFactory + get_assets_on_exchange (4 tests) Total: 1246 tests across 49 files, all green, zero regressions. Fable's assets/ package preserved intact, interfaces retained.
Description
Sentiment analysis engine with ONNX FinBERT + LoRA adapters
Languages
Python
99.9%
Dockerfile
0.1%