@riocrypto/common-server 1.0.2549 → 1.0.2551

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