From 98e38bd383eb416df6b772ad41432514a69369fb Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Tue, 12 Nov 2024 12:30:41 -0800 Subject: [PATCH] swift maker example subscribes to multiple markets --- src/experimental-bots/swift/makerExample.ts | 35 +++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/experimental-bots/swift/makerExample.ts b/src/experimental-bots/swift/makerExample.ts index 0cf40695..559f6837 100644 --- a/src/experimental-bots/swift/makerExample.ts +++ b/src/experimental-bots/swift/makerExample.ts @@ -74,6 +74,41 @@ export class SwiftMaker { market_name: 'SOL-PERP', }) ); + ws.send( + JSON.stringify({ + action: 'subscribe', + market_type: 'perp', + market_name: 'BTC-PERP', + }) + ); + ws.send( + JSON.stringify({ + action: 'subscribe', + market_type: 'perp', + market_name: 'ETH-PERP', + }) + ); + ws.send( + JSON.stringify({ + action: 'subscribe', + market_type: 'perp', + market_name: 'APT-PERP', + }) + ); + ws.send( + JSON.stringify({ + action: 'subscribe', + market_type: 'perp', + market_name: 'MATIC-PERP', + }) + ); + ws.send( + JSON.stringify({ + action: 'subscribe', + market_type: 'perp', + market_name: 'ARB-PERP', + }) + ); } if (message['order'] && this.driftClient.isSubscribed) {