{"record":{"id":"580806a44dedeade","repo":"nautechsystems/nautilus_trader","slug":"unsupported-product-type-for-binance-execution-cli","errorCode":null,"errorMessage":"Unsupported product type for Binance execution client: {product_type:?}","messagePattern":"Unsupported product type for Binance execution client: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/adapters/binance/src/factories.rs","lineNumber":204,"sourceCode":"                let account_type = AccountType::Margin;\n                let oms_type = binance_config.oms_type.unwrap_or(OmsType::Netting);\n\n                let core = ExecutionClientCore::new(\n                    trader_id,\n                    ClientId::from(name),\n                    *BINANCE_VENUE,\n                    oms_type,\n                    binance_config.account_id,\n                    account_type,\n                    None, // base_currency\n                    cache,\n                );\n\n                let client = BinanceFuturesExecutionClient::new(core, binance_config)?;\n                Ok(Box::new(client))\n            }\n            _ => {\n                anyhow::bail!(\n                    \"Unsupported product type for Binance execution client: {product_type:?}\"\n                )\n            }\n        }\n    }\n\n    fn name(&self) -> &'static str {\n        BINANCE\n    }\n\n    fn config_type(&self) -> &'static str {\n        stringify!(BinanceExecutionClientConfig)\n    }\n}\n\n#[cfg(test)]\nmod tests {\n    use std::{cell::RefCell, rc::Rc};","sourceCodeStart":186,"sourceCodeEnd":222,"githubUrl":"https://github.com/nautechsystems/nautilus_trader/blob/18893faf8b356be3320add8de2f861b0b647cf06/crates/adapters/binance/src/factories.rs#L186-L222","documentation":"The Binance execution client factory only supports specific product types (futures execution via BinanceFuturesExecutionClient). A BinanceProductType outside the handled match arms cannot be turned into an execution client and bails with this error.","triggerScenarios":"Creating a Binance execution (live trading) client through the factory with an unhandled BinanceProductType in the client config.","commonSituations":"Configuring a live execution node against a product type the v2 Binance adapter does not implement (e.g. options or an unsupported variant); copying a data-client config into an execution-client slot.","solutions":["Set product_type to a variant supported by the execution factory (futures: UsdM or CoinM, per the factory match arms)","Confirm the execution adapter for your product type exists; spot execution may need a different client path","Validate the BinanceProductType string in your node config against the enum definitions"],"exampleFix":"// before\nproduct_type: BinanceProductType::Options\n// after\nproduct_type: BinanceProductType::CoinM","handlingStrategy":"validation","validationCode":"fn is_supported_execution_product(pt: BinanceProductType) -> bool {\n    matches!(pt, BinanceProductType::UsdM | BinanceProductType::CoinM)\n}","typeGuard":"fn is_supported_execution_product(pt: BinanceProductType) -> bool {\n    matches!(pt, BinanceProductType::UsdM | BinanceProductType::CoinM)\n}","tryCatchPattern":"match exec_factory.create(client_id, &config) {\n    Err(e) if e.to_string().contains(\"Unsupported product type for Binance execution client\") => {\n        eprintln!(\"Execution is only supported for futures product types: {e}\");\n    }\n    r => r?,\n}","preventionTips":["Use separate validated configs for data vs execution clients","Check the execution factory match arms when choosing product_type","Dry-run node startup in a sandbox before live capital"],"tags":["rust","binance","factory","execution","product-type"],"backgroundTag":"unsupported-enum-value","analyzedSha":"18893faf8b356be3320add8de2f861b0b647cf06","analyzedAt":"2026-09-08T20:49:34.690Z","contentChangedAt":"2026-09-08T20:49:34.690Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}