@riocrypto/common-server 1.0.2673 → 1.0.2674
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.
|
@@ -149,6 +149,7 @@ declare class ClusterClient {
|
|
|
149
149
|
}): Promise<ExternalTrade>;
|
|
150
150
|
deleteExternalTrade(id: string): Promise<void>;
|
|
151
151
|
getEmarketsTrade(id: string): Promise<EmarketsFXTrade>;
|
|
152
|
+
getTransnetworkTrade(id: string): Promise<TransnetworkFXTrade>;
|
|
152
153
|
updateExternalTradingAlgorithmLimitPrice(id: string, limitPrice: number): Promise<void>;
|
|
153
154
|
startExternalTradingAlgorithm({ type, provider, originCurrency, destinationCurrency, maxOriginAmount, maxDestinationAmount, limitPrice, replaceOrderDifferenceThreshold, isPostOnly, spread, clipSize, }: {
|
|
154
155
|
type: ExternalTradingAlgorithmType;
|
|
@@ -523,6 +523,16 @@ class ClusterClient {
|
|
|
523
523
|
return response.data;
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
|
+
getTransnetworkTrade(id) {
|
|
527
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
528
|
+
const response = yield this.axios.get(`${this.baseUrl}/api/transnetwork/bot/trades/${id}`, {
|
|
529
|
+
headers: {
|
|
530
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
531
|
+
},
|
|
532
|
+
});
|
|
533
|
+
return response.data;
|
|
534
|
+
});
|
|
535
|
+
}
|
|
526
536
|
updateExternalTradingAlgorithmLimitPrice(id, limitPrice) {
|
|
527
537
|
return __awaiter(this, void 0, void 0, function* () {
|
|
528
538
|
yield this.axios.patch(`${this.baseUrl}/api/trading/external/algorithms/${id}`, { limitPrice }, {
|