@riocrypto/common-server 1.0.2176 → 1.0.2178
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.
|
@@ -529,7 +529,9 @@ const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
529
529
|
? "https://app.dev.rio.trade"
|
|
530
530
|
: process.env.RIO_ENV === common_1.RioEnv.Production
|
|
531
531
|
? "https://app.rio.trade"
|
|
532
|
-
:
|
|
532
|
+
: process.env.RIO_ENV === common_1.RioEnv.Test
|
|
533
|
+
? "https://app.test.rio.trade"
|
|
534
|
+
: "https://app.sandbox.rio.trade";
|
|
533
535
|
return new ClusterClient(baseUrl, CLUSTER_API_KEY);
|
|
534
536
|
});
|
|
535
537
|
exports.buildClusterClient = buildClusterClient;
|
|
@@ -9,6 +9,7 @@ interface ArbitrageSessionAttrs {
|
|
|
9
9
|
profit: number;
|
|
10
10
|
profitCurrency: Fiat | Crypto;
|
|
11
11
|
isRunning?: boolean;
|
|
12
|
+
consecutiveBlockedRuns: number;
|
|
12
13
|
providerA: {
|
|
13
14
|
provider: ArbitrageProvider;
|
|
14
15
|
originCurrency: Fiat | Crypto;
|
|
@@ -60,6 +61,7 @@ interface ArbitrageSessionDoc extends Document {
|
|
|
60
61
|
limitPriceDifference?: number;
|
|
61
62
|
maxAmount?: number;
|
|
62
63
|
isRunning?: boolean;
|
|
64
|
+
consecutiveBlockedRuns: number;
|
|
63
65
|
profit: number;
|
|
64
66
|
profitCurrency: Fiat | Crypto;
|
|
65
67
|
providerA: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2178",
|
|
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.1919",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|