Firesale Stress Test
Firesale Stress Test: Firesale Stress Test: specialized toolkit for 3+ finance workflows covered in the triggers section.
Overview
Constraints
Evidence Quality
Medium confidence — review before critical use
42 non-negotiable constraints
WHENWhen initializing banks from EBA_2018.csv
ACTIONCreate exactly 48 bank agents matching the NBANKS constant
CONSEQUENCEModel systemic risk calculations will be incorrect if fewer or more than 48 banks are created, as the get_extent_of_systemic_event function divides by NBANKS=48 and the balance sheet aggregation will not match EBA 2018 reported values
WHENWhen creating the AssetMarket during initialization
ACTIONInitialize asset prices to exactly 1.0 for each asset types using defaultdict
CONSEQUENCEInitial price of 1.0 is required for consistent price impact calculations using Cifuentes 2005 formula. If prices differ, the initial shock magnitude and contagion dynamics will be miscalibrated
WHENWhen calculating bank balance sheet values from EBA data
ACTIONVerify each parsed CSV values convert to valid floats without errors
CONSEQUENCECSV parsing with float() on unvalidated strings will raise ValueError at runtime, causing the entire model to crash before any simulation can run
FAQ
Discussion (0)
No comments yet. Be the first to share!
Changelog
v0.1.0: Initial release on Doramagic.ai. Auto-generated batch-v1 metadata and FAQs based on tangweigang-jpg/doramagic-skills.