make_bybit_symbol

Function make_bybit_symbol 

Source
pub fn make_bybit_symbol(
    raw_symbol: &str,
    product_type: BybitProductType,
) -> Ustr
Expand description

Constructs a full Bybit symbol from a raw symbol and product type.

Returns a Ustr for efficient string interning and comparisons.

§Examples

let symbol = make_bybit_symbol("ETHUSDT", BybitProductType::Linear);
assert_eq!(symbol.as_str(), "ETHUSDT-LINEAR");