@riocrypto/common-server 1.0.2551 → 1.0.2553
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,7 @@ declare class ClusterClient {
|
|
|
205
205
|
twoWaySettlementType?: TwoWaySettlementType;
|
|
206
206
|
twoWaySettlementDateOffset?: number;
|
|
207
207
|
}): Promise<TWAPSession>;
|
|
208
|
+
stopTWAPSession(id: string): Promise<void>;
|
|
208
209
|
getUserTWAPSettings({ userId, country, fiat, side, }: {
|
|
209
210
|
userId: string;
|
|
210
211
|
country: Country;
|
|
@@ -706,6 +706,11 @@ class ClusterClient {
|
|
|
706
706
|
return response.data;
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
|
+
stopTWAPSession(id) {
|
|
710
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
711
|
+
yield this.axios.post(`${this.baseUrl}/api/twap/sessions/${id}/stop`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
712
|
+
});
|
|
713
|
+
}
|
|
709
714
|
getUserTWAPSettings({ userId, country, fiat, side, }) {
|
|
710
715
|
return __awaiter(this, void 0, void 0, function* () {
|
|
711
716
|
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 } });
|
|
@@ -12,8 +12,7 @@ interface TWAPSlackThreadAttrs {
|
|
|
12
12
|
sessionData?: {
|
|
13
13
|
crypto?: Crypto;
|
|
14
14
|
tradeCurrency?: Fiat | Crypto;
|
|
15
|
-
|
|
16
|
-
maxDestinationAmount?: number;
|
|
15
|
+
maxTradeAmount?: number;
|
|
17
16
|
clipSize?: number;
|
|
18
17
|
maxAmountPerSettlement?: number;
|
|
19
18
|
payoutBankAccountId?: string;
|
|
@@ -38,8 +37,7 @@ interface TWAPSlackThreadDoc extends mongoose.Document {
|
|
|
38
37
|
sessionData?: {
|
|
39
38
|
crypto?: Crypto;
|
|
40
39
|
tradeCurrency?: Fiat | Crypto;
|
|
41
|
-
|
|
42
|
-
maxDestinationAmount?: number;
|
|
40
|
+
maxTradeAmount?: number;
|
|
43
41
|
clipSize?: number;
|
|
44
42
|
maxAmountPerSettlement?: number;
|
|
45
43
|
payoutBankAccountId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2553",
|
|
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.
|
|
31
|
+
"@riocrypto/common": "^1.0.2351",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|