@riocrypto/common-server 1.0.2152 → 1.0.2154

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.
@@ -68,6 +68,7 @@ declare class ClusterClient {
68
68
  side: Side;
69
69
  }): Promise<EmarketsFXTrade>;
70
70
  getEmarketsTrade(id: string): Promise<EmarketsFXTrade>;
71
+ updateExternalTradingAlgorithmLimitPrice(id: string, limitPrice: number): Promise<void>;
71
72
  }
72
73
  export declare const buildClusterClient: () => Promise<ClusterClient>;
73
74
  export {};
@@ -421,6 +421,15 @@ class ClusterClient {
421
421
  return response.data;
422
422
  });
423
423
  }
424
+ updateExternalTradingAlgorithmLimitPrice(id, limitPrice) {
425
+ return __awaiter(this, void 0, void 0, function* () {
426
+ yield this.axios.patch(`${this.baseUrl}/api/trading/external/algorithms/${id}`, { limitPrice }, {
427
+ headers: {
428
+ "x-cluster-api-key": this.clusterApiKey,
429
+ },
430
+ });
431
+ });
432
+ }
424
433
  }
425
434
  const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
426
435
  // Retrieve secrets asynchronously
@@ -20,7 +20,8 @@ interface ArbitrageSessionAttrs {
20
20
  status: ArbitrageProviderStatus;
21
21
  amountWithdrawn: number;
22
22
  avgPrice?: number;
23
- internalTradeIds: string[];
23
+ externalTradeIds: string[];
24
+ externalTradingAlgorithmId?: string;
24
25
  providerOptions?: {
25
26
  emarkets?: {
26
27
  orderType?: "TOD" | "SPT" | "TOM";
@@ -38,7 +39,8 @@ interface ArbitrageSessionAttrs {
38
39
  status: ArbitrageProviderStatus;
39
40
  amountWithdrawn: number;
40
41
  avgPrice?: number;
41
- internalTradeIds: string[];
42
+ externalTradeIds: string[];
43
+ externalTradingAlgorithmId?: string;
42
44
  providerOptions?: {
43
45
  emarkets?: {
44
46
  orderType?: "TOD" | "SPT" | "TOM";
@@ -72,7 +74,8 @@ interface ArbitrageSessionDoc extends Document {
72
74
  amountRemaining: number;
73
75
  amountWithdrawn: number;
74
76
  avgPrice?: number;
75
- internalTradeIds: string[];
77
+ externalTradeIds: string[];
78
+ externalTradingAlgorithmId?: string;
76
79
  providerOptions?: {
77
80
  emarkets?: {
78
81
  orderType?: "TOD" | "SPT" | "TOM";
@@ -91,7 +94,8 @@ interface ArbitrageSessionDoc extends Document {
91
94
  amountRemaining: number;
92
95
  amountWithdrawn: number;
93
96
  avgPrice?: number;
94
- internalTradeIds: string[];
97
+ externalTradeIds: string[];
98
+ externalTradingAlgorithmId?: string;
95
99
  providerOptions?: {
96
100
  emarkets?: {
97
101
  orderType?: "TOD" | "SPT" | "TOM";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2152",
3
+ "version": "1.0.2154",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",