Function crypto_msg_parser::exchanges::bitmex::price_to_id[][src]

pub fn price_to_id(symbol: &str, price: f64) -> usize
Expand description

convert price to ID https://www.bitmex.com/app/wsAPI#OrderBookL2 ID = (100000000 * symbolIdx) - (price / tickSize)