@riocrypto/common-server 1.0.2231 → 1.0.2232
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.
|
@@ -113,6 +113,9 @@ declare class ClusterClient {
|
|
|
113
113
|
emarketsOrderType?: "TOD" | "TOM" | "SPT";
|
|
114
114
|
arbitrageSessionId?: string;
|
|
115
115
|
}): Promise<ExternalTrade>;
|
|
116
|
+
generateSTPDepositCLABE(userId: string): Promise<{
|
|
117
|
+
CLABE: string;
|
|
118
|
+
}>;
|
|
116
119
|
}
|
|
117
120
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
118
121
|
export {};
|
|
@@ -520,6 +520,12 @@ class ClusterClient {
|
|
|
520
520
|
return response.data;
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
|
+
generateSTPDepositCLABE(userId) {
|
|
524
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
525
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/bank/accounts/STP/CLABE`, { userId }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
526
|
+
return response.data;
|
|
527
|
+
});
|
|
528
|
+
}
|
|
523
529
|
}
|
|
524
530
|
const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
525
531
|
// Retrieve secrets asynchronously
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2232",
|
|
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.1962",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|