@riocrypto/common-server 1.0.2260 → 1.0.2261

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.
@@ -85,6 +85,7 @@ declare class ClusterClient {
85
85
  side: Side;
86
86
  isExternalTrade: boolean;
87
87
  }): Promise<EmarketsFXTrade>;
88
+ retryEmarketsTrade(id: string): Promise<void>;
88
89
  getEmarketsTrade(id: string): Promise<EmarketsFXTrade>;
89
90
  updateExternalTradingAlgorithmLimitPrice(id: string, limitPrice: number): Promise<void>;
90
91
  startExternalTradingAlgorithm({ type, provider, originCurrency, destinationCurrency, maxOriginAmount, maxDestinationAmount, limitPrice, replaceOrderDifferenceThreshold, isPostOnly, spread, clipSize, }: {
@@ -438,6 +438,15 @@ class ClusterClient {
438
438
  return response.data;
439
439
  });
440
440
  }
441
+ retryEmarketsTrade(id) {
442
+ return __awaiter(this, void 0, void 0, function* () {
443
+ yield this.axios.post(`${this.baseUrl}/api/emarkets/bot/trades/${id}/retry`, {}, {
444
+ headers: {
445
+ "x-cluster-api-key": this.clusterApiKey,
446
+ },
447
+ });
448
+ });
449
+ }
441
450
  getEmarketsTrade(id) {
442
451
  return __awaiter(this, void 0, void 0, function* () {
443
452
  const response = yield this.axios.get(`${this.baseUrl}/api/emarkets/bot/trades/${id}`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2260",
3
+ "version": "1.0.2261",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",