@nightlylabs/dex-sdk 0.3.18 → 0.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -7
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24474,9 +24474,9 @@ var Client = class _Client {
|
|
|
24474
24474
|
type: "SubscribeOracle",
|
|
24475
24475
|
content: { id: getRandomId() }
|
|
24476
24476
|
};
|
|
24477
|
-
await this.sendWsMessage(command);
|
|
24478
24477
|
const topic = getTopicFromCommand(command);
|
|
24479
24478
|
this._subscriptions.set(topic, callback);
|
|
24479
|
+
await this.sendWsMessage(command);
|
|
24480
24480
|
return this.unsubscribeIndexPricesUpdates;
|
|
24481
24481
|
}
|
|
24482
24482
|
async unsubscribeIndexPricesUpdates() {
|
|
@@ -24493,9 +24493,9 @@ var Client = class _Client {
|
|
|
24493
24493
|
type: "SubscribeBorrowLend",
|
|
24494
24494
|
content: { id: getRandomId() }
|
|
24495
24495
|
};
|
|
24496
|
-
await this.sendWsMessage(command);
|
|
24497
24496
|
const topic = getTopicFromCommand(command);
|
|
24498
24497
|
this._subscriptions.set(topic, callback);
|
|
24498
|
+
await this.sendWsMessage(command);
|
|
24499
24499
|
return this.unsubscribeIndexPricesUpdates;
|
|
24500
24500
|
}
|
|
24501
24501
|
async unsubscribeBorrowLendingUpdates() {
|
|
@@ -24512,9 +24512,9 @@ var Client = class _Client {
|
|
|
24512
24512
|
type: "SubscribeBoxes",
|
|
24513
24513
|
content: { id: getRandomId() }
|
|
24514
24514
|
};
|
|
24515
|
-
await this.sendWsMessage(command);
|
|
24516
24515
|
const topic = getTopicFromCommand(command);
|
|
24517
24516
|
this._subscriptions.set(topic, callback);
|
|
24517
|
+
await this.sendWsMessage(command);
|
|
24518
24518
|
return this.unsubscribeBoxOpeningUpdates;
|
|
24519
24519
|
}
|
|
24520
24520
|
async unsubscribeBoxOpeningUpdates() {
|
|
@@ -24531,9 +24531,9 @@ var Client = class _Client {
|
|
|
24531
24531
|
type: "SubscribeLiquidations",
|
|
24532
24532
|
content: { id: getRandomId() }
|
|
24533
24533
|
};
|
|
24534
|
-
await this.sendWsMessage(command);
|
|
24535
24534
|
const topic = getTopicFromCommand(command);
|
|
24536
24535
|
this._subscriptions.set(topic, callback);
|
|
24536
|
+
await this.sendWsMessage(command);
|
|
24537
24537
|
return this.unsubscribeLiquidationUpdates;
|
|
24538
24538
|
}
|
|
24539
24539
|
async unsubscribeLiquidationUpdates() {
|
|
@@ -24550,9 +24550,9 @@ var Client = class _Client {
|
|
|
24550
24550
|
type: "SubscribeUser",
|
|
24551
24551
|
content: { id: getRandomId(), userId }
|
|
24552
24552
|
};
|
|
24553
|
-
await this.sendWsMessage(command);
|
|
24554
24553
|
const topic = getTopicFromCommand(command);
|
|
24555
24554
|
this._subscriptions.set(topic, callback);
|
|
24555
|
+
await this.sendWsMessage(command);
|
|
24556
24556
|
return () => this.unsubscribeUserUpdates(userId);
|
|
24557
24557
|
}
|
|
24558
24558
|
async unsubscribeUserUpdates(userId) {
|
|
@@ -24569,9 +24569,9 @@ var Client = class _Client {
|
|
|
24569
24569
|
type: "SubscribePerpMarket",
|
|
24570
24570
|
content: { id: getRandomId(), market }
|
|
24571
24571
|
};
|
|
24572
|
-
await this.sendWsMessage(command);
|
|
24573
24572
|
const topic = getTopicFromCommand(command);
|
|
24574
24573
|
this._subscriptions.set(topic, callback);
|
|
24574
|
+
await this.sendWsMessage(command);
|
|
24575
24575
|
return () => this.unsubscribePerpMarketUpdates(market);
|
|
24576
24576
|
}
|
|
24577
24577
|
async unsubscribePerpMarketUpdates(market) {
|
|
@@ -24588,9 +24588,9 @@ var Client = class _Client {
|
|
|
24588
24588
|
type: "SubscribeSpotMarket",
|
|
24589
24589
|
content: { id: getRandomId(), market }
|
|
24590
24590
|
};
|
|
24591
|
-
await this.sendWsMessage(command);
|
|
24592
24591
|
const topic = getTopicFromCommand(command);
|
|
24593
24592
|
this._subscriptions.set(topic, callback);
|
|
24593
|
+
await this.sendWsMessage(command);
|
|
24594
24594
|
return () => this.unsubscribeSpotMarketUpdates(market);
|
|
24595
24595
|
}
|
|
24596
24596
|
async unsubscribeSpotMarketUpdates(market) {
|
package/dist/index.js
CHANGED
|
@@ -24422,9 +24422,9 @@ var Client = class _Client {
|
|
|
24422
24422
|
type: "SubscribeOracle",
|
|
24423
24423
|
content: { id: getRandomId() }
|
|
24424
24424
|
};
|
|
24425
|
-
await this.sendWsMessage(command);
|
|
24426
24425
|
const topic = getTopicFromCommand(command);
|
|
24427
24426
|
this._subscriptions.set(topic, callback);
|
|
24427
|
+
await this.sendWsMessage(command);
|
|
24428
24428
|
return this.unsubscribeIndexPricesUpdates;
|
|
24429
24429
|
}
|
|
24430
24430
|
async unsubscribeIndexPricesUpdates() {
|
|
@@ -24441,9 +24441,9 @@ var Client = class _Client {
|
|
|
24441
24441
|
type: "SubscribeBorrowLend",
|
|
24442
24442
|
content: { id: getRandomId() }
|
|
24443
24443
|
};
|
|
24444
|
-
await this.sendWsMessage(command);
|
|
24445
24444
|
const topic = getTopicFromCommand(command);
|
|
24446
24445
|
this._subscriptions.set(topic, callback);
|
|
24446
|
+
await this.sendWsMessage(command);
|
|
24447
24447
|
return this.unsubscribeIndexPricesUpdates;
|
|
24448
24448
|
}
|
|
24449
24449
|
async unsubscribeBorrowLendingUpdates() {
|
|
@@ -24460,9 +24460,9 @@ var Client = class _Client {
|
|
|
24460
24460
|
type: "SubscribeBoxes",
|
|
24461
24461
|
content: { id: getRandomId() }
|
|
24462
24462
|
};
|
|
24463
|
-
await this.sendWsMessage(command);
|
|
24464
24463
|
const topic = getTopicFromCommand(command);
|
|
24465
24464
|
this._subscriptions.set(topic, callback);
|
|
24465
|
+
await this.sendWsMessage(command);
|
|
24466
24466
|
return this.unsubscribeBoxOpeningUpdates;
|
|
24467
24467
|
}
|
|
24468
24468
|
async unsubscribeBoxOpeningUpdates() {
|
|
@@ -24479,9 +24479,9 @@ var Client = class _Client {
|
|
|
24479
24479
|
type: "SubscribeLiquidations",
|
|
24480
24480
|
content: { id: getRandomId() }
|
|
24481
24481
|
};
|
|
24482
|
-
await this.sendWsMessage(command);
|
|
24483
24482
|
const topic = getTopicFromCommand(command);
|
|
24484
24483
|
this._subscriptions.set(topic, callback);
|
|
24484
|
+
await this.sendWsMessage(command);
|
|
24485
24485
|
return this.unsubscribeLiquidationUpdates;
|
|
24486
24486
|
}
|
|
24487
24487
|
async unsubscribeLiquidationUpdates() {
|
|
@@ -24498,9 +24498,9 @@ var Client = class _Client {
|
|
|
24498
24498
|
type: "SubscribeUser",
|
|
24499
24499
|
content: { id: getRandomId(), userId }
|
|
24500
24500
|
};
|
|
24501
|
-
await this.sendWsMessage(command);
|
|
24502
24501
|
const topic = getTopicFromCommand(command);
|
|
24503
24502
|
this._subscriptions.set(topic, callback);
|
|
24503
|
+
await this.sendWsMessage(command);
|
|
24504
24504
|
return () => this.unsubscribeUserUpdates(userId);
|
|
24505
24505
|
}
|
|
24506
24506
|
async unsubscribeUserUpdates(userId) {
|
|
@@ -24517,9 +24517,9 @@ var Client = class _Client {
|
|
|
24517
24517
|
type: "SubscribePerpMarket",
|
|
24518
24518
|
content: { id: getRandomId(), market }
|
|
24519
24519
|
};
|
|
24520
|
-
await this.sendWsMessage(command);
|
|
24521
24520
|
const topic = getTopicFromCommand(command);
|
|
24522
24521
|
this._subscriptions.set(topic, callback);
|
|
24522
|
+
await this.sendWsMessage(command);
|
|
24523
24523
|
return () => this.unsubscribePerpMarketUpdates(market);
|
|
24524
24524
|
}
|
|
24525
24525
|
async unsubscribePerpMarketUpdates(market) {
|
|
@@ -24536,9 +24536,9 @@ var Client = class _Client {
|
|
|
24536
24536
|
type: "SubscribeSpotMarket",
|
|
24537
24537
|
content: { id: getRandomId(), market }
|
|
24538
24538
|
};
|
|
24539
|
-
await this.sendWsMessage(command);
|
|
24540
24539
|
const topic = getTopicFromCommand(command);
|
|
24541
24540
|
this._subscriptions.set(topic, callback);
|
|
24541
|
+
await this.sendWsMessage(command);
|
|
24542
24542
|
return () => this.unsubscribeSpotMarketUpdates(market);
|
|
24543
24543
|
}
|
|
24544
24544
|
async unsubscribeSpotMarketUpdates(market) {
|