Skip to main content

assembleRLConfig

Validate an RLConfigInput and assemble the freqtrade freqai config block, without saving. The frontend merges the returned block into the bot/backtest config JSON before creating the entity. Validation surfaces typed, legible errors (unsupported model_type, invalid training window, …) rather than raw FreqAI tracebacks.

Requires the 'reinforcement_learning' feature (Pro and Enterprise plans only) and 'create-strategy' on the organization.

assembleRLConfig(
input: RLConfigInput!
ownerID: String!
): RLConfigResult!

Arguments

assembleRLConfig.input ● RLConfigInput! non-null input

assembleRLConfig.ownerID ● String! non-null scalar

Type

RLConfigResult object

Result of assembling + validating an RLConfigInput. freqaiBlock is the freqtrade freqai config map the frontend merges into the bot/backtest config at config["freqai"]; freqaimodel is the selector merged at config["freqaimodel"] (always "ReinforcementLearner").