@riocrypto/common-server 1.0.2069 → 1.0.2072

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.
@@ -10,6 +10,7 @@ interface ArbitrageSessionAttrs {
10
10
  profit: number;
11
11
  profitCurrency: Fiat | Crypto;
12
12
  partiallyFilledOrderTTL: number;
13
+ isRunning?: boolean;
13
14
  providerA: {
14
15
  provider: ArbitrageProvider;
15
16
  originCurrency: Fiat | Crypto;
@@ -56,6 +57,7 @@ interface ArbitrageSessionDoc extends Document {
56
57
  status: ArbitrageSessionStatus;
57
58
  limitPriceDifference?: number;
58
59
  maxAmount?: number;
60
+ isRunning?: boolean;
59
61
  profit: number;
60
62
  limitPrice?: number;
61
63
  profitCurrency: Fiat | Crypto;
@@ -14,6 +14,10 @@ const buildArbitrageSession = (mongoose) => {
14
14
  type: String,
15
15
  required: true,
16
16
  },
17
+ isRunning: {
18
+ type: Boolean,
19
+ default: false,
20
+ },
17
21
  status: {
18
22
  type: String,
19
23
  required: true,
@@ -26,7 +26,7 @@ interface ArbitrageSettingsAttrs {
26
26
  };
27
27
  };
28
28
  };
29
- Buy_MXN_With_USDC_Bitso_Sell_MXN_Emarkets: {
29
+ buyMXNWithUSDCBitsoSellMXNEmarkets: {
30
30
  autoDetectOpportunity: boolean;
31
31
  defaultLimitPriceDifference: number;
32
32
  defaultMaxAmount: number;
@@ -71,7 +71,7 @@ interface ArbitrageSettingsDoc extends Document {
71
71
  };
72
72
  };
73
73
  };
74
- Buy_MXN_With_USDC_Bitso_Sell_MXN_Emarkets: {
74
+ buyMXNWithUSDCBitsoSellMXNEmarkets: {
75
75
  autoDetectOpportunity: boolean;
76
76
  defaultLimitPriceDifference: number;
77
77
  defaultMaxAmount: number;
@@ -59,7 +59,7 @@ const buildArbitrageSettings = (mongoose) => {
59
59
  required: true,
60
60
  },
61
61
  },
62
- Buy_MXN_With_USDC_Bitso_Sell_MXN_Emarkets: {
62
+ buyMXNWithUSDCBitsoSellMXNEmarkets: {
63
63
  autoDetectOpportunity: {
64
64
  type: Boolean,
65
65
  default: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2069",
3
+ "version": "1.0.2072",
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.1809",
31
+ "@riocrypto/common": "^1.0.1810",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",