chore(): bump typescript and types/node versions

This commit is contained in:
tiagosiebler
2025-01-21 15:26:40 +00:00
parent 39ce4c4929
commit 50bae8b1c2
4 changed files with 40 additions and 30 deletions

View File

@@ -68,6 +68,17 @@ wsClient.on('reconnected', (data) => {
// Option v5
// wsClient.subscribeV5('publicTrade.BTC', 'option');
const topics = ['kline.5.XRPUSDT', 'kline.5.BTCUSDT', 'kline.5.ETHUSDT'];
// Use the subscribeV5() call for most subscribe calls with v5 websockets
wsClient.subscribeV5(topics, 'spot');
// Alternatively, you can also use objects in the wsClient.subscribe() call
// wsClient.subscribe({
// topic: 'orderook.50.BTCUSDT',
// category: 'spot',
// });
/**
* For private V5 topics, just call the same subscribeV5() method on the ws client or use the original subscribe() method.
*
@@ -79,10 +90,6 @@ wsClient.on('reconnected', (data) => {
// wsClient.subscribeV5('execution', 'linear');
// wsClient.subscribeV5(['order', 'wallet', 'greek'], 'linear');
const topics = ['kline.5.XRPUSDT', 'kline.5.BTCUSDT', 'kline.5.ETHUSDT'];
wsClient.subscribeV5(topics, 'spot');
// To unsubscribe from topics (after a 5 second delay, in this example):
setTimeout(() => {
console.log('unsubscribing');