@riocrypto/common-server 1.0.2685 → 1.0.2688

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.
@@ -753,7 +753,7 @@ const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* ()
753
753
  throw new common_1.SecretManagerError();
754
754
  }
755
755
  const baseUrl = process.env.RIO_ENV === common_1.RioEnv.Local
756
- ? "https://ingress-nginx-controller.ingress-nginx.svc.cluster.local"
756
+ ? "https://app.local.rio.trade"
757
757
  : process.env.RIO_ENV === common_1.RioEnv.Development
758
758
  ? "https://app.dev.rio.trade"
759
759
  : process.env.RIO_ENV === common_1.RioEnv.Production
@@ -14,6 +14,7 @@ const sanitizeOrderDoc = (doc) => {
14
14
  delete obj.managedWallet;
15
15
  delete obj.exchangeRateOrders;
16
16
  delete obj.autoFXDisabled;
17
+ delete obj.marketPriceWithoutAssetPrice;
17
18
  delete obj.discount;
18
19
  delete obj.markup;
19
20
  delete obj.rioPayoutFireblocksVaultId;
@@ -26,6 +26,7 @@ interface OrderAttrs {
26
26
  wireMessage?: string;
27
27
  parentOrderId?: string;
28
28
  marketPrice: number;
29
+ marketPriceWithoutAssetPrice: number;
29
30
  assetPriceInUSD: number;
30
31
  actualAssetPriceInUSD?: number;
31
32
  price?: number;
@@ -168,6 +169,7 @@ interface OrderDoc extends Document {
168
169
  fees: Fees;
169
170
  actualFees?: Fees;
170
171
  marketPrice: number;
172
+ marketPriceWithoutAssetPrice: number;
171
173
  assetPriceInUSD: number;
172
174
  actualAssetPriceInUSD?: number;
173
175
  price?: number;
@@ -171,6 +171,9 @@ const buildOrder = (mongoose) => {
171
171
  marketPrice: {
172
172
  type: Number,
173
173
  },
174
+ marketPriceWithoutAssetPrice: {
175
+ type: Number,
176
+ },
174
177
  assetPriceInUSD: {
175
178
  type: Number,
176
179
  },
@@ -20,6 +20,7 @@ interface QuoteAttrs {
20
20
  actualAssetPriceInUSD?: number;
21
21
  price?: number;
22
22
  marketPrice: number;
23
+ marketPriceWithoutAssetPrice: number;
23
24
  createdAt: Date;
24
25
  timeInForceStartsAt?: Date;
25
26
  timeInForceEndsAt?: Date;
@@ -65,6 +66,7 @@ interface QuoteDoc extends Document {
65
66
  fees: Fees;
66
67
  price?: number;
67
68
  marketPrice: number;
69
+ marketPriceWithoutAssetPrice: number;
68
70
  assetPriceInUSD: number;
69
71
  actualAssetPriceInUSD?: number;
70
72
  quoteInCrypto: boolean;
@@ -97,6 +97,9 @@ const buildQuote = (mongoose) => {
97
97
  marketPrice: {
98
98
  type: Number,
99
99
  },
100
+ marketPriceWithoutAssetPrice: {
101
+ type: Number,
102
+ },
100
103
  assetPriceInUSD: {
101
104
  type: Number,
102
105
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2685",
3
+ "version": "1.0.2688",
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.2488",
31
+ "@riocrypto/common": "^1.0.2489",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",