Function crypto_crawler::subscribe_symbol
source · [−]pub async fn subscribe_symbol(
exchange: &str,
market_type: MarketType,
symbol: &str,
msg_types: &[MessageType],
tx: Sender<String>
)
Expand description
Subscribe to multiple message types of one symbol.
This API is suitable for client applications such as APP, website, etc.
String messages in tx
are already parsed by crypto-msg-parser
.