mexcdevelop / mexc-api-sdk

MIT License
173 stars 70 forks source link

How to request multiple data symbols using futures WebsocketAPI #41

Open komplekt17 opened 1 year ago

komplekt17 commented 1 year ago

Hello, I use next subscriber for getting klines of one symbol BTC_USDT { "method":"sub.kline", "param":{ "symbol":"BTC_USDT", "interval":"Min1" } } This subscriber works ok I try to use this subscriber: { "method":"sub.kline", "param":{ "symbols":['BTC_USDT', 'ETH_USDT', 'LTC_USDT'], "interval":"Min1" } } But I get error: { channel: 'rs.error', data: 'Contract [null] not exists', ts: 1684060854633 } How must I make a subscriber for getting klines of multiple symbols 'BTC_USDT', 'ETH_USDT', 'LTC_USDT'?