Indicators
API endpoint for discovering available indicator classes and their parameters.
router = APIRouter(prefix='/api', tags=['indicators'])
module-attribute
SKIP_PARAMS = {'self', 'max_history', 'kwargs'}
module-attribute
_get_package_label(cls)
Derive a display group name from the indicator's module path.
Source code in src/onesecondtrader/dashboard/routers/indicators.py
_build_param_specs(cls, class_name, registry, *, _nested=False)
Build parameter spec dicts for an indicator class.
When _nested is True (sub-parameter introspection), indicator_class
type params are skipped to avoid infinite recursion.
Source code in src/onesecondtrader/dashboard/routers/indicators.py
api_indicators()
async
Return available indicator classes with their parameter specs.