SPB Git

Repository Public Research preview

config.py 1.8 KB 33 lines python

1"""Shared paths and sample definitions."""2from pathlib import Path34ROOT = Path(__file__).resolve().parents[1]5BUNDLE = ROOT / "RESEARCH_DATA_R02"          # sealed research bundle (read-only, not in git)6EXT = ROOT / "data" / "external"             # public third-party downloads (not in git)7DER = ROOT / "data" / "derived"              # derived panels (not in git: contain vendor data)8RES = ROOT / "results"                       # aggregated outputs (in git)9FIG = ROOT / "paper" / "figures"10TAB = ROOT / "paper" / "tables"11for p in (DER, RES, FIG, TAB):12    p.mkdir(parents=True, exist_ok=True)1314TENORS = ["1M", "3M", "1Y"]15TENOR_YEARS = {"1M": 1 / 12, "3M": 0.25, "1Y": 1.0}1617# ISO3 country (or aggregate) behind each currency; EMU = euro area aggregate in World Bank data.18CCY_ISO3 = {19    "AUD": "AUS", "BRL": "BRA", "CAD": "CAN", "CHF": "CHE", "CLP": "CHL", "COP": "COL",20    "CZK": "CZE", "DKK": "DNK", "EUR": "EMU", "GBP": "GBR", "HKD": "HKG", "HUF": "HUN",21    "IDR": "IDN", "ILS": "ISR", "INR": "IND", "JPY": "JPN", "KRW": "KOR", "KWD": "KWT",22    "MXN": "MEX", "MYR": "MYS", "NOK": "NOR", "NZD": "NZL", "PEN": "PER", "PHP": "PHL",23    "PLN": "POL", "RUB": "RUS", "SEK": "SWE", "SGD": "SGP", "THB": "THA", "TRY": "TUR",24    "TWD": "TWN", "ZAR": "ZAF",25}26# Hard pegs / currency boards against USD or EUR over the sample, and the short KWD series,27# are excluded from the baseline sample (option-implied asymmetry is mechanically constrained).28EXCLUDE_BASELINE = ["HKD", "KWD", "DKK", "TWD"]   # TWD: no World Bank exposure data29G10 = ["AUD", "CAD", "CHF", "EUR", "GBP", "JPY", "NOK", "NZD", "SEK"]30SAMPLE_START = "2006-01-04"   # first date with 10-delta quotes for most pairs31SAMPLE_END = "2025-06-25"32RUB_END = "2022-02-23"        # onshore RUB market closed to non-residents after sanctions33
Files main
Menu

Theme