nautechsystems/nautilus_trader · error

missing positive trigger_price for Binance algo order type {

Error message

missing positive trigger_price for Binance algo order type {:?}

What it means

Error "missing positive trigger_price for Binance algo order type {:?}" thrown in nautechsystems/nautilus_trader.

Source

Thrown at crates/adapters/binance/src/futures/http/models.rs:1670

        Ok(report)
    }

    fn parse_trigger_price(&self, price_precision: u8) -> anyhow::Result<Option<Price>> {
        let raw_trigger_price = match self.order_type {
            BinanceFuturesOrderType::TrailingStopMarket => self
                .trigger_price
                .as_deref()
                .or(self.activate_price.as_deref()),
            _ => self.trigger_price.as_deref(),
        };
        let trigger_price = raw_trigger_price
            .map(|price| parse_positive_price_at_precision(price, price_precision, "trigger_price"))
            .transpose()?
            .flatten();

        if trigger_price.is_none() && requires_algo_trigger_price(self.order_type) {
            anyhow::bail!(
                "missing positive trigger_price for Binance algo order type {:?}",
                self.order_type
            );
        }

        Ok(trigger_price)
    }

    fn parse_trailing_offset(&self) -> anyhow::Result<Option<Decimal>> {
        if self.order_type != BinanceFuturesOrderType::TrailingStopMarket {
            return Ok(None);
        }

        self.callback_rate
            .as_deref()
            .map(parse_callback_rate_basis_points)
            .transpose()
            .map(Option::flatten)

View on GitHub (pinned to a4b06ed870)

When it happens

Trigger: Thrown at crates/adapters/binance/src/futures/http/models.rs:1670 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nautechsystems/nautilus_trader@a4b06ed870 (2026-08-16). Data as JSON: /api/errors/6d9c67924c8d6802. Report an issue: GitHub.