@riocrypto/common-server 1.0.2434 → 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.
@@ -106,7 +106,9 @@ declare class ClusterClient {
106
106
  isExternalTrade: boolean;
107
107
  }): Promise<EmarketsFXTrade>;
108
108
  retryEmarketsTrade(id: string): Promise<void>;
109
+ cancelEmarketsTrade(id: string): Promise<void>;
109
110
  retryExternalTrade(id: string): Promise<void>;
111
+ cancelExternalTrade(id: string): Promise<void>;
110
112
  importExternalTrade(data: {
111
113
  provider: ExternalTradingProvider;
112
114
  originCurrency: Crypto | Fiat;
@@ -460,11 +460,25 @@ class ClusterClient {
460
460
  });
461
461
  });
462
462
  }
463
+ cancelEmarketsTrade(id) {
464
+ return __awaiter(this, void 0, void 0, function* () {
465
+ yield this.axios.post(`${this.baseUrl}/api/emarkets/bot/trades/${id}/cancel`, {}, {
466
+ headers: {
467
+ "x-cluster-api-key": this.clusterApiKey,
468
+ },
469
+ });
470
+ });
471
+ }
463
472
  retryExternalTrade(id) {
464
473
  return __awaiter(this, void 0, void 0, function* () {
465
474
  yield this.axios.post(`${this.baseUrl}/api/trading/external/trades/${id}/retry`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
466
475
  });
467
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
+ }
468
482
  importExternalTrade(data) {
469
483
  return __awaiter(this, void 0, void 0, function* () {
470
484
  const response = yield this.axios.post(`${this.baseUrl}/api/trading/external/trades/import`, Object.assign({}, data), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2434",
3
+ "version": "1.0.2436",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2192",
31
+ "@riocrypto/common": "^1.0.2193",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",