@riocrypto/common-server 1.0.2548 → 1.0.2550

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.
@@ -205,6 +205,11 @@ declare class ClusterClient {
205
205
  twoWaySettlementType?: TwoWaySettlementType;
206
206
  twoWaySettlementDateOffset?: number;
207
207
  }): Promise<TWAPSession>;
208
+ getUserTWAPSettings(userId: string): Promise<{
209
+ spread: number;
210
+ minClipSize: number;
211
+ interval: number;
212
+ }>;
208
213
  }
209
214
  export declare const buildClusterClient: () => Promise<ClusterClient>;
210
215
  export {};
@@ -706,6 +706,12 @@ class ClusterClient {
706
706
  return response.data;
707
707
  });
708
708
  }
709
+ getUserTWAPSettings(userId) {
710
+ return __awaiter(this, void 0, void 0, function* () {
711
+ const response = yield this.axios.get(`${this.baseUrl}/api/users/${userId}/TWAP/settings`, { headers: { "x-cluster-api-key": this.clusterApiKey } });
712
+ return response.data;
713
+ });
714
+ }
709
715
  }
710
716
  const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
711
717
  // Retrieve secrets asynchronously
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2548",
3
+ "version": "1.0.2550",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",