@riocrypto/common-server 1.0.2495 → 1.0.2497
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.
|
@@ -73,12 +73,14 @@ interface RioSettingsAttrs {
|
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
defaultTWAPSettings: {
|
|
76
|
-
[key in
|
|
77
|
-
[key in
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
[key in Country]?: {
|
|
77
|
+
[key in Fiat]?: {
|
|
78
|
+
[key in Side]: {
|
|
79
|
+
isEnabled: boolean;
|
|
80
|
+
spread: number;
|
|
81
|
+
minClipSize: number;
|
|
82
|
+
interval: number;
|
|
83
|
+
};
|
|
82
84
|
};
|
|
83
85
|
};
|
|
84
86
|
};
|
|
@@ -155,12 +157,14 @@ interface RioSettingsDoc extends mongoose.Document {
|
|
|
155
157
|
};
|
|
156
158
|
};
|
|
157
159
|
defaultTWAPSettings: {
|
|
158
|
-
[key in
|
|
159
|
-
[key in
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
[key in Country]?: {
|
|
161
|
+
[key in Fiat]?: {
|
|
162
|
+
[key in Side]: {
|
|
163
|
+
isEnabled: boolean;
|
|
164
|
+
spread: number;
|
|
165
|
+
minClipSize: number;
|
|
166
|
+
interval: number;
|
|
167
|
+
};
|
|
164
168
|
};
|
|
165
169
|
};
|
|
166
170
|
};
|
|
@@ -19,6 +19,7 @@ interface TWAPSessionAttrs {
|
|
|
19
19
|
deferredPaymentType: DeferredPaymentType;
|
|
20
20
|
twoWaySettlementType: TwoWaySettlementType;
|
|
21
21
|
twoWaySettlementDateOffset: number;
|
|
22
|
+
averageNetPrice?: number;
|
|
22
23
|
activeBulkBankPayoutId?: string;
|
|
23
24
|
activeBulkCryptoPayoutId?: string;
|
|
24
25
|
completedBulkBankPayoutIds?: string[];
|
|
@@ -52,6 +53,7 @@ interface TWAPSessionDoc extends Document {
|
|
|
52
53
|
deferredPaymentType: DeferredPaymentType;
|
|
53
54
|
twoWaySettlementType: TwoWaySettlementType;
|
|
54
55
|
twoWaySettlementDateOffset: number;
|
|
56
|
+
averageNetPrice?: number;
|
|
55
57
|
lastRanAt?: Date;
|
|
56
58
|
activeBulkBankPayoutId?: string;
|
|
57
59
|
activeBulkCryptoPayoutId?: string;
|
package/build/models/user.d.ts
CHANGED
|
@@ -109,10 +109,12 @@ interface UserAttrs {
|
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
111
|
TWAP?: {
|
|
112
|
-
[key in
|
|
113
|
-
[key in
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
[key in Country]?: {
|
|
113
|
+
[key in Fiat]?: {
|
|
114
|
+
[key in Side]?: {
|
|
115
|
+
minClipSize?: number;
|
|
116
|
+
interval?: number;
|
|
117
|
+
};
|
|
116
118
|
};
|
|
117
119
|
};
|
|
118
120
|
};
|
|
@@ -259,10 +261,12 @@ interface UserDoc extends Document {
|
|
|
259
261
|
};
|
|
260
262
|
};
|
|
261
263
|
TWAP?: {
|
|
262
|
-
[key in
|
|
263
|
-
[key in
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
[key in Country]?: {
|
|
265
|
+
[key in Fiat]?: {
|
|
266
|
+
[key in Side]?: {
|
|
267
|
+
minClipSize?: number;
|
|
268
|
+
interval?: number;
|
|
269
|
+
};
|
|
266
270
|
};
|
|
267
271
|
};
|
|
268
272
|
};
|
package/build/models/user.js
CHANGED
|
@@ -77,6 +77,9 @@ const buildUser = (mongoose) => {
|
|
|
77
77
|
twoWaySettlementDateOffsetFee: {
|
|
78
78
|
type: Object,
|
|
79
79
|
},
|
|
80
|
+
TWAPFee: {
|
|
81
|
+
type: Number,
|
|
82
|
+
},
|
|
80
83
|
},
|
|
81
84
|
],
|
|
82
85
|
sell: [
|
|
@@ -99,6 +102,9 @@ const buildUser = (mongoose) => {
|
|
|
99
102
|
twoWaySettlementDateOffsetFee: {
|
|
100
103
|
type: Object,
|
|
101
104
|
},
|
|
105
|
+
TWAPFee: {
|
|
106
|
+
type: Number,
|
|
107
|
+
},
|
|
102
108
|
},
|
|
103
109
|
],
|
|
104
110
|
},
|
|
@@ -123,6 +129,9 @@ const buildUser = (mongoose) => {
|
|
|
123
129
|
twoWaySettlementDateOffsetFee: {
|
|
124
130
|
type: Object,
|
|
125
131
|
},
|
|
132
|
+
TWAPFee: {
|
|
133
|
+
type: Number,
|
|
134
|
+
},
|
|
126
135
|
},
|
|
127
136
|
],
|
|
128
137
|
sell: [
|
|
@@ -145,6 +154,9 @@ const buildUser = (mongoose) => {
|
|
|
145
154
|
twoWaySettlementDateOffsetFee: {
|
|
146
155
|
type: Object,
|
|
147
156
|
},
|
|
157
|
+
TWAPFee: {
|
|
158
|
+
type: Number,
|
|
159
|
+
},
|
|
148
160
|
},
|
|
149
161
|
],
|
|
150
162
|
},
|
|
@@ -169,6 +181,9 @@ const buildUser = (mongoose) => {
|
|
|
169
181
|
twoWaySettlementDateOffsetFee: {
|
|
170
182
|
type: Object,
|
|
171
183
|
},
|
|
184
|
+
TWAPFee: {
|
|
185
|
+
type: Number,
|
|
186
|
+
},
|
|
172
187
|
},
|
|
173
188
|
],
|
|
174
189
|
sell: [
|
|
@@ -191,6 +206,9 @@ const buildUser = (mongoose) => {
|
|
|
191
206
|
twoWaySettlementDateOffsetFee: {
|
|
192
207
|
type: Object,
|
|
193
208
|
},
|
|
209
|
+
TWAPFee: {
|
|
210
|
+
type: Number,
|
|
211
|
+
},
|
|
194
212
|
},
|
|
195
213
|
],
|
|
196
214
|
},
|
|
@@ -215,6 +233,9 @@ const buildUser = (mongoose) => {
|
|
|
215
233
|
twoWaySettlementDateOffsetFee: {
|
|
216
234
|
type: Object,
|
|
217
235
|
},
|
|
236
|
+
TWAPFee: {
|
|
237
|
+
type: Number,
|
|
238
|
+
},
|
|
218
239
|
},
|
|
219
240
|
],
|
|
220
241
|
sell: [
|
|
@@ -237,6 +258,9 @@ const buildUser = (mongoose) => {
|
|
|
237
258
|
twoWaySettlementDateOffsetFee: {
|
|
238
259
|
type: Object,
|
|
239
260
|
},
|
|
261
|
+
TWAPFee: {
|
|
262
|
+
type: Number,
|
|
263
|
+
},
|
|
240
264
|
},
|
|
241
265
|
],
|
|
242
266
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2497",
|
|
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.2265",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|