Skip to main content

validateBotConfig

Run a short-lived Freqtrade preflight against the bot's current config. Mounts the four config files the real bot would receive into a sandbox container and runs freqtrade show-config; returns whether Freqtrade accepted the merged configuration plus the raw stderr on rejection. Cached by config-hash so repeat calls on an unchanged bot are instant. Use this to catch KeyError/SchemaValidationError- class bugs BEFORE the user starts the bot.

Scope: run — preflight materialises the same decrypted exchange config that startBot would and spawns a real (throwaway) Job in the cluster, so access parity with startBot is required. view was too permissive because read-only users have no business triggering cluster resource creation.

validateBotConfig(
id: ID!
): BotPreflightResult!

Arguments

validateBotConfig.id ● ID! non-null scalar

Type

BotPreflightResult object

Verdict from running freqtrade show-config in a sandbox against the bot's would-be configuration. Returned by validateBotConfig. Transient — no backing DB table.