capitalisk-dex 17.2.0 → 17.2.1
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/defaults/config.js +1 -0
- package/index.js +9 -9
- package/package.json +1 -1
package/defaults/config.js
CHANGED
package/index.js
CHANGED
|
@@ -459,7 +459,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
459
459
|
get actions() {
|
|
460
460
|
return {
|
|
461
461
|
getStatus: {
|
|
462
|
-
isPublic:
|
|
462
|
+
isPublic: this.options.apiIsPublic,
|
|
463
463
|
handler: () => {
|
|
464
464
|
return {
|
|
465
465
|
version: CapitaliskDEXModule.info.version,
|
|
@@ -476,7 +476,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
476
476
|
}
|
|
477
477
|
},
|
|
478
478
|
getMarket: {
|
|
479
|
-
isPublic:
|
|
479
|
+
isPublic: this.options.apiIsPublic,
|
|
480
480
|
handler: () => {
|
|
481
481
|
return {
|
|
482
482
|
baseSymbol: this.baseChainSymbol,
|
|
@@ -485,7 +485,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
485
485
|
}
|
|
486
486
|
},
|
|
487
487
|
getBids: {
|
|
488
|
-
isPublic:
|
|
488
|
+
isPublic: this.options.apiIsPublic,
|
|
489
489
|
handler: (action) => {
|
|
490
490
|
let query = {...action.params};
|
|
491
491
|
// Optimization.
|
|
@@ -511,7 +511,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
511
511
|
}
|
|
512
512
|
},
|
|
513
513
|
getAsks: {
|
|
514
|
-
isPublic:
|
|
514
|
+
isPublic: this.options.apiIsPublic,
|
|
515
515
|
handler: (action) => {
|
|
516
516
|
let query = {...action.params};
|
|
517
517
|
// Optimization.
|
|
@@ -537,7 +537,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
537
537
|
}
|
|
538
538
|
},
|
|
539
539
|
getOrders: {
|
|
540
|
-
isPublic:
|
|
540
|
+
isPublic: this.options.apiIsPublic,
|
|
541
541
|
handler: (action) => {
|
|
542
542
|
let query = {...action.params};
|
|
543
543
|
let orderIterator;
|
|
@@ -561,7 +561,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
561
561
|
}
|
|
562
562
|
},
|
|
563
563
|
getOrderBook: {
|
|
564
|
-
isPublic:
|
|
564
|
+
isPublic: this.options.apiIsPublic,
|
|
565
565
|
handler: (action) => {
|
|
566
566
|
let query = {...action.params};
|
|
567
567
|
let { depth } = query;
|
|
@@ -633,7 +633,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
633
633
|
}
|
|
634
634
|
},
|
|
635
635
|
getRecentPrices: {
|
|
636
|
-
isPublic:
|
|
636
|
+
isPublic: this.options.apiIsPublic,
|
|
637
637
|
handler: (action) => {
|
|
638
638
|
let priceEntryIterator = this.recentPricesSkipList.findEntriesFromMax();
|
|
639
639
|
let priceGenerator = this._getValuesGenerator(priceEntryIterator);
|
|
@@ -644,7 +644,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
644
644
|
}
|
|
645
645
|
},
|
|
646
646
|
getPendingTransfers: {
|
|
647
|
-
isPublic:
|
|
647
|
+
isPublic: this.options.apiIsPublic,
|
|
648
648
|
handler: (action) => {
|
|
649
649
|
let transferList = this._execQueryAgainstIterator(
|
|
650
650
|
action.params,
|
|
@@ -674,7 +674,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
674
674
|
}
|
|
675
675
|
},
|
|
676
676
|
getRecentTransfers: {
|
|
677
|
-
isPublic:
|
|
677
|
+
isPublic: this.options.apiIsPublic,
|
|
678
678
|
handler: (action) => {
|
|
679
679
|
let recentTransfersIterator = this.recentTransfersSkipList.findEntriesFromMax();
|
|
680
680
|
let transferGenerator = this._getNestedObjectValuesGenerator(recentTransfersIterator);
|