@riocrypto/common-server 1.0.2155 → 1.0.2156
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.
|
@@ -71,6 +71,7 @@ declare class ClusterClient {
|
|
|
71
71
|
updateExternalTradingAlgorithmLimitPrice(id: string, limitPrice: number): Promise<void>;
|
|
72
72
|
startExternalTradingAlgorithm(id: string): Promise<ExternalTradingAlgorithm>;
|
|
73
73
|
stopExternalTradingAlgorithm(id: string): Promise<ExternalTradingAlgorithm>;
|
|
74
|
+
getExternalTradingAlgorithm(id: string): Promise<ExternalTradingAlgorithm>;
|
|
74
75
|
}
|
|
75
76
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
76
77
|
export {};
|
|
@@ -450,6 +450,16 @@ class ClusterClient {
|
|
|
450
450
|
return response.data;
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
+
getExternalTradingAlgorithm(id) {
|
|
454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
+
const response = yield this.axios.get(`${this.baseUrl}/api/trading/external/algorithms/${id}`, {
|
|
456
|
+
headers: {
|
|
457
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
458
|
+
},
|
|
459
|
+
});
|
|
460
|
+
return response.data;
|
|
461
|
+
});
|
|
462
|
+
}
|
|
453
463
|
}
|
|
454
464
|
const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
455
465
|
// Retrieve secrets asynchronously
|