nautechsystems/nautilus_trader · error
Unsupported order type for Binance Futures: {order_type:?}
Error message
Unsupported order type for Binance Futures: {order_type:?} What it means
Error "Unsupported order type for Binance Futures: {order_type:?}" thrown in nautechsystems/nautilus_trader.
Source
Thrown at crates/adapters/binance/src/futures/http/client.rs:3361
| OrderType::MarketIfTouched
| OrderType::LimitIfTouched
| OrderType::TrailingStopMarket
)
}
/// Converts a Nautilus order type to a Binance Futures order type.
pub(crate) fn order_type_to_binance_futures(
order_type: OrderType,
) -> anyhow::Result<BinanceFuturesOrderType> {
match order_type {
OrderType::Market => Ok(BinanceFuturesOrderType::Market),
OrderType::Limit => Ok(BinanceFuturesOrderType::Limit),
OrderType::StopMarket => Ok(BinanceFuturesOrderType::StopMarket),
OrderType::StopLimit => Ok(BinanceFuturesOrderType::Stop),
OrderType::MarketIfTouched => Ok(BinanceFuturesOrderType::TakeProfitMarket),
OrderType::LimitIfTouched => Ok(BinanceFuturesOrderType::TakeProfit),
OrderType::TrailingStopMarket => Ok(BinanceFuturesOrderType::TrailingStopMarket),
_ => anyhow::bail!("Unsupported order type for Binance Futures: {order_type:?}"),
}
}
#[cfg(test)]
mod tests {
use nautilus_core::time::get_atomic_clock_realtime;
use nautilus_network::http::{HttpStatus, StatusCode};
use rstest::rstest;
use tokio_util::bytes::Bytes;
use super::*;
use crate::common::enums::BinanceTradingStatus;
#[rstest]
fn test_rate_limit_config_usdm_has_request_weight_and_orders() {
let config = BinanceRawFuturesHttpClient::rate_limit_config(BinanceProductType::UsdM);
assert_eq!(config.request_quota.burst_size().get(), 2_400);View on GitHub (pinned to a4b06ed870)
When it happens
Trigger: Thrown at crates/adapters/binance/src/futures/http/client.rs:3361 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/074d6ec5661ad08b.
Report an issue: GitHub.