@riocrypto/common-server 1.0.2675 → 1.0.2676

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.
@@ -17,6 +17,8 @@ const sanitizeOrderDoc = (doc) => {
17
17
  delete obj.discount;
18
18
  delete obj.markup;
19
19
  delete obj.rioPayoutFireblocksVaultId;
20
+ delete obj.assetPriceInUSD;
21
+ delete obj.actualAssetPriceInUSD;
20
22
  delete obj.previousActiveStatus;
21
23
  if (((_a = obj.payoutsSent) === null || _a === void 0 ? void 0 : _a.length) > 0) {
22
24
  obj.payoutsSent = obj.payoutsSent.map((payout) => {
@@ -26,6 +26,8 @@ interface OrderAttrs {
26
26
  wireMessage?: string;
27
27
  parentOrderId?: string;
28
28
  marketPrice: number;
29
+ assetPriceInUSD: number;
30
+ actualAssetPriceInUSD?: number;
29
31
  price?: number;
30
32
  depositAddress?: string;
31
33
  depositTxId?: string;
@@ -166,6 +168,8 @@ interface OrderDoc extends Document {
166
168
  fees: Fees;
167
169
  actualFees?: Fees;
168
170
  marketPrice: number;
171
+ assetPriceInUSD: number;
172
+ actualAssetPriceInUSD?: number;
169
173
  price?: number;
170
174
  depositAddress?: string;
171
175
  depositTxId?: string;
@@ -171,6 +171,12 @@ const buildOrder = (mongoose) => {
171
171
  marketPrice: {
172
172
  type: Number,
173
173
  },
174
+ assetPriceInUSD: {
175
+ type: Number,
176
+ },
177
+ actualAssetPriceInUSD: {
178
+ type: Number,
179
+ },
174
180
  price: {
175
181
  type: Number,
176
182
  },
@@ -17,6 +17,7 @@ interface QuoteAttrs {
17
17
  processor: Processor;
18
18
  fees: Fees;
19
19
  assetPriceInUSD: number;
20
+ actualAssetPriceInUSD?: number;
20
21
  price?: number;
21
22
  marketPrice: number;
22
23
  createdAt: Date;
@@ -65,6 +66,7 @@ interface QuoteDoc extends Document {
65
66
  price?: number;
66
67
  marketPrice: number;
67
68
  assetPriceInUSD: number;
69
+ actualAssetPriceInUSD?: number;
68
70
  quoteInCrypto: boolean;
69
71
  noMarkups: boolean;
70
72
  reissueAfterExpiration: boolean;
@@ -100,6 +100,9 @@ const buildQuote = (mongoose) => {
100
100
  assetPriceInUSD: {
101
101
  type: Number,
102
102
  },
103
+ actualAssetPriceInUSD: {
104
+ type: Number,
105
+ },
103
106
  brokerId: {
104
107
  type: String,
105
108
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2675",
3
+ "version": "1.0.2676",
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.2470",
31
+ "@riocrypto/common": "^1.0.2471",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",