Function crypto_msg_type::get_ws_commands
source · pub fn get_ws_commands(
exchange: &str,
msg_types: &[MessageType],
symbols: &[String],
subscribe: bool,
configs: Option<&HashMap<String, String>>
) -> Vec<String>
Expand description
Translate to websocket subscribe/unsubscribe commands.
configs
Some msg_type
requires a config, for example,
Candlestick
requires an interval
parameter.