pub fn format_instrument_id(
symbol: &Ustr,
product_type: BinanceProductType,
) -> InstrumentIdExpand description
Converts a Binance symbol to a Nautilus instrument ID.
For USD-M futures, appends “-PERP” suffix to match Nautilus symbology. For COIN-M futures, keeps the symbol as-is (uses “_PERP” format).
§Examples
- (“BTCUSDT”, UsdM) → “BTCUSDT-PERP.BINANCE”
- (“ETHUSD_PERP”, CoinM) → “ETHUSD_PERP.BINANCE”