{"record":{"id":"84b45dd259cbdbfc","repo":"nautechsystems/nautilus_trader","slug":"invalid-ticksize-of-0-for-symbol-cannot-crea","errorCode":null,"errorMessage":"Invalid tickSize of 0 for symbol '{}', cannot create instrument","messagePattern":"Invalid tickSize of 0 for symbol '(.+?)', cannot create instrument","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/adapters/binance/src/common/parse.rs","lineNumber":314,"sourceCode":"        anyhow::bail!(\n            \"Symbol '{}' is not trading (status: {:?})\",\n            symbol.symbol,\n            symbol.status\n        );\n    }\n\n    let quote_currency = get_currency(symbol.quote_asset.as_str());\n    let settlement_currency = get_currency(symbol.margin_asset.as_str());\n\n    let instrument_id = format_instrument_id(&symbol.symbol, BinanceProductType::UsdM);\n    let raw_symbol = Symbol::new(symbol.symbol.as_str());\n\n    let price_filter = get_filter(&symbol.filters, \"PRICE_FILTER\")\n        .context(\"Missing PRICE_FILTER in symbol filters\")?;\n\n    let tick_size = parse_filter_price(price_filter, \"tickSize\")?;\n    if tick_size.is_zero() {\n        anyhow::bail!(\n            \"Invalid tickSize of 0 for symbol '{}', cannot create instrument\",\n            symbol.symbol,\n        );\n    }\n    let max_price = parse_filter_price(price_filter, \"maxPrice\").ok();\n    let min_price = parse_filter_price(price_filter, \"minPrice\").ok();\n\n    let lot_filter =\n        get_filter(&symbol.filters, \"LOT_SIZE\").context(\"Missing LOT_SIZE in symbol filters\")?;\n\n    let step_size = parse_filter_quantity(lot_filter, \"stepSize\")?;\n    let max_quantity = parse_filter_quantity(lot_filter, \"maxQty\").ok();\n    let min_quantity = parse_filter_quantity(lot_filter, \"minQty\").ok();\n\n    let min_notional = parse_futures_min_notional(&symbol.filters, quote_currency);\n\n    // Default margin (0.1 = 10x leverage)\n    let default_margin = Decimal::new(1, 1);","sourceCodeStart":296,"sourceCodeEnd":332,"githubUrl":"https://github.com/nautechsystems/nautilus_trader/blob/18893faf8b356be3320add8de2f861b0b647cf06/crates/adapters/binance/src/common/parse.rs#L296-L332","documentation":"A tradable instrument requires a strictly positive price increment. When the PRICE_FILTER of a USD-M symbol reports tickSize = 0, a valid Price precision/increment cannot be constructed, so the adapter aborts instrument creation. This almost always indicates malformed or corrupted exchange filter data from the exchange payload.","triggerScenarios":"parse_usdm_instrument_with_fees reads the PRICE_FILTER via get_filter and parse_filter_price and finds tickSize == 0 — e.g. an exchangeInfo payload with missing/zero tick size for the symbol, or a hand-crafted test fixture omitting it.","commonSituations":"Corrupted or partial exchangeInfo responses; synthetic fixtures built for tests that set tickSize to 0; exchange-side misconfiguration for a newly listed symbol.","solutions":["Check the raw exchangeInfo entry for the symbol and confirm its filters[PRICE_FILTER].tickSize value","Re-fetch exchangeInfo in case the payload was truncated/corrupted in transit","Fix the test fixture or data source so tickSize is a positive decimal","Skip the offending symbol when loading instruments if the exchange genuinely reports tickSize 0"],"exampleFix":"// before (fixture)\n\"PRICE_FILTER\": { \"tickSize\": \"0\", ... }\n// after\n\"PRICE_FILTER\": { \"tickSize\": \"0.10\", ... }","handlingStrategy":"validation","validationCode":"fn has_valid_tick_size(symbol: &BinanceSymbol) -> bool {\n    symbol.filters.iter()\n        .find(|f| f.filter_type == \"PRICE_FILTER\")\n        .and_then(|f| f.tick_size.as_deref())\n        .and_then(|t| t.parse::<Decimal>().ok())\n        .map(|t| !t.is_zero())\n        .unwrap_or(false)\n}","typeGuard":null,"tryCatchPattern":"match parse_usdm_instrument(symbol) {\n    Ok(inst) => instruments.push(inst),\n    Err(e) if e.to_string().contains(\"Invalid tickSize of 0\") => {\n        log::warn!(\"skipping symbol {} with zero tick size\", symbol.symbol);\n    }\n    Err(e) => return Err(e),\n}","preventionTips":["Sanity-check PRICE_FILTER fields (tickSize > 0) on any exchangeInfo data you cache or synthesize","Do not hand-build fixtures with zeroed tick sizes","Re-fetch exchangeInfo if a payload looks truncated or corrupted"],"tags":["binance","usdm-futures","instrument-parsing","tick-size","validation"],"backgroundTag":"invalid-config-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"}