mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-30 13:13:59 +00:00
The package builder only read `field.default` when it flattened a QueryParams model into the arguments of a generated `obb` method, so a field declared with `default_factory` became a required argument. `obb.technical.realized_volatility_compare(data=...)` and `obb.quantitative.attribution/factors/risk_decomposition(...)` failed with "Missing required argument" for `models` / `periods`, although the REST API and the docstrings treat them as optional. Resolve the default the same way the flattening branch for other QueryParams annotations already did, and use that helper in all three places. Co-authored-by: dlee-bq <dlee@brightquery.com>