Skip to content

Commit 1f4a7eb

Browse files
committed
(fix) pass symbol into ticker messages for ws2
1 parent 7f014d0 commit 1f4a7eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/transports/ws2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,8 @@ class WSv2 extends EventEmitter {
751751

752752
if (this._transform) {
753753
data = (chanData.symbol || '')[0] === 't'
754-
? new TradingTicker(msg[1])
755-
: new FundingTicker(msg[1])
754+
? new TradingTicker([chanData.symbol, ...msg[1]])
755+
: new FundingTicker([chanData.symbol, ...msg[1]])
756756
}
757757

758758
const internalMessage = [chanData.chanId, 'ticker', data]

0 commit comments

Comments
 (0)