@riocrypto/common-server 1.0.2053 → 1.0.2055
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.
|
@@ -9,11 +9,6 @@ interface ArbitrageSessionAttrs {
|
|
|
9
9
|
profit: number;
|
|
10
10
|
profitCurrency: Fiat | Crypto;
|
|
11
11
|
partiallyFilledOrderTTL: number;
|
|
12
|
-
providerOptions?: {
|
|
13
|
-
emarkets?: {
|
|
14
|
-
orderType?: "TOD" | "SPT" | "TOM";
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
12
|
providerA: {
|
|
18
13
|
provider: ArbitrageProvider;
|
|
19
14
|
originCurrency: Fiat | Crypto;
|
|
@@ -60,11 +55,6 @@ interface ArbitrageSessionDoc extends Document {
|
|
|
60
55
|
profit: number;
|
|
61
56
|
profitCurrency: Fiat | Crypto;
|
|
62
57
|
partiallyFilledOrderTTL: number;
|
|
63
|
-
providerOptions?: {
|
|
64
|
-
emarkets?: {
|
|
65
|
-
orderType?: "TOD" | "SPT" | "TOM";
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
58
|
providerA: {
|
|
69
59
|
provider: ArbitrageProvider;
|
|
70
60
|
originCurrency: Fiat | Crypto;
|
|
@@ -36,6 +36,12 @@ const buildArbitrageTrade = (mongoose) => {
|
|
|
36
36
|
},
|
|
37
37
|
price: {
|
|
38
38
|
type: Number,
|
|
39
|
+
validate: {
|
|
40
|
+
validator: function (value) {
|
|
41
|
+
return value === undefined || !isNaN(value);
|
|
42
|
+
},
|
|
43
|
+
message: (props) => `${props.value} is not a valid number for price!`,
|
|
44
|
+
},
|
|
39
45
|
},
|
|
40
46
|
status: {
|
|
41
47
|
type: 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.2055",
|
|
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.1797",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|