@riocrypto/common-server 1.0.2435 → 1.0.2436
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.
|
@@ -108,6 +108,7 @@ declare class ClusterClient {
|
|
|
108
108
|
retryEmarketsTrade(id: string): Promise<void>;
|
|
109
109
|
cancelEmarketsTrade(id: string): Promise<void>;
|
|
110
110
|
retryExternalTrade(id: string): Promise<void>;
|
|
111
|
+
cancelExternalTrade(id: string): Promise<void>;
|
|
111
112
|
importExternalTrade(data: {
|
|
112
113
|
provider: ExternalTradingProvider;
|
|
113
114
|
originCurrency: Crypto | Fiat;
|
|
@@ -474,6 +474,11 @@ class ClusterClient {
|
|
|
474
474
|
yield this.axios.post(`${this.baseUrl}/api/trading/external/trades/${id}/retry`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
|
+
cancelExternalTrade(id) {
|
|
478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
yield this.axios.post(`${this.baseUrl}/api/trading/external/trades/${id}/cancel`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
480
|
+
});
|
|
481
|
+
}
|
|
477
482
|
importExternalTrade(data) {
|
|
478
483
|
return __awaiter(this, void 0, void 0, function* () {
|
|
479
484
|
const response = yield this.axios.post(`${this.baseUrl}/api/trading/external/trades/import`, Object.assign({}, data), {
|