Optional ReadonlydatamapperOverride for the Datamapper base URL (for testing).
Optional ReadonlysdmxOverride for the SDMX 3.0 base URL (for testing).
Optional ReadonlytimeoutRequest timeout in ms. Default 15_000.
Optional ReadonlyuserUser-Agent sent to IMF HTTP endpoints. Akamai currently rejects Node's default undici user-agent on the Datamapper API with HTTP 403, while browser/curl-style user-agents succeed.
Optional ReadonlymaxMax retry count for transient failures. Default 2.
Optional ReadonlyweoOptional WEO vintage tag to stamp on every projection returned by getWeoIndicator. Defaults to the current WEO cycle โ update in April / October when the IMF publishes a new flagship release.
Optional ReadonlysdmxIMF Data SDMX API subscription key, sent as the Ocp-Apim-Subscription-Key header on every SDMX call. The Datamapper transport is NOT authenticated and never receives this header. If omitted the client resolves the key via imf/config/auth.ts::resolveSdmxSubscriptionKey (the sole reader of IMF_SDMX_SUBSCRIPTION_KEY).
Optional ReadonlyonOptional diagnostic hook invoked when getWeoIndicatorsBatch() fail-softs one indicator to an empty series because the IMF transport/API call failed. The default is no-op so callers can opt in without polluting JSON stdout.
Client configuration