@riocrypto/common-server 1.0.2428 → 1.0.2430

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.
@@ -6,6 +6,7 @@ interface AdminTaskAttrs {
6
6
  status: AdminTaskStatus;
7
7
  orderId?: string;
8
8
  userId?: string;
9
+ axeId?: string;
9
10
  bankAccountId?: string;
10
11
  amountToFix?: number;
11
12
  adminThatCompletedTask?: string;
@@ -20,6 +21,7 @@ interface AdminTaskDoc extends Document {
20
21
  status: AdminTaskStatus;
21
22
  orderId?: string;
22
23
  userId?: string;
24
+ axeId?: string;
23
25
  bankAccountId?: string;
24
26
  amountToFix?: number;
25
27
  adminThatCompletedTask?: string;
@@ -25,6 +25,9 @@ const buildAdminTask = (mongoose) => {
25
25
  userId: {
26
26
  type: String,
27
27
  },
28
+ axeId: {
29
+ type: String,
30
+ },
28
31
  bankAccountId: {
29
32
  type: String,
30
33
  },
@@ -25,6 +25,7 @@ interface OrderAttrs {
25
25
  wireMessage?: string;
26
26
  parentOrderId?: string;
27
27
  marketPrice: number;
28
+ price?: number;
28
29
  depositAddress?: string;
29
30
  depositTxId?: string;
30
31
  withdrawalTxId?: string;
@@ -153,6 +154,7 @@ interface OrderDoc extends Document {
153
154
  fees: Fees;
154
155
  actualFees?: Fees;
155
156
  marketPrice: number;
157
+ price?: number;
156
158
  depositAddress?: string;
157
159
  depositTxId?: string;
158
160
  withdrawalTxId?: string;
@@ -156,7 +156,9 @@ const buildOrder = (mongoose) => {
156
156
  },
157
157
  marketPrice: {
158
158
  type: Number,
159
- required: true,
159
+ },
160
+ price: {
161
+ type: Number,
160
162
  },
161
163
  brokerId: {
162
164
  type: String,
@@ -17,6 +17,7 @@ interface QuoteAttrs {
17
17
  processor: Processor;
18
18
  fees: Fees;
19
19
  assetPriceInUSD: number;
20
+ price?: number;
20
21
  marketPrice: number;
21
22
  createdAt: Date;
22
23
  noMarkups: boolean;
@@ -57,6 +58,7 @@ interface QuoteDoc extends Document {
57
58
  processor: Processor;
58
59
  createdAt: Date;
59
60
  fees: Fees;
61
+ price?: number;
60
62
  marketPrice: number;
61
63
  assetPriceInUSD: number;
62
64
  quoteInCrypto: boolean;
@@ -91,6 +91,9 @@ const buildQuote = (mongoose) => {
91
91
  noMarkups: {
92
92
  type: Boolean,
93
93
  },
94
+ price: {
95
+ type: Number,
96
+ },
94
97
  marketPrice: {
95
98
  type: Number,
96
99
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2428",
3
+ "version": "1.0.2430",
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.2179",
31
+ "@riocrypto/common": "^1.0.2188",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",