@r2wa-org/eden 0.0.78 → 0.0.80
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.
- package/dist/admin/index.d.ts +830 -1162
- package/dist/admin-user/admin/router.d.ts +12 -12
- package/dist/app-version/admin/router.d.ts +16 -16
- package/dist/asset/admin/dto.schemas.d.ts +21 -21
- package/dist/asset/admin/router.d.ts +37 -37
- package/dist/asset/admin/service.d.ts +18 -18
- package/dist/asset/db.schemas.d.ts +4 -4
- package/dist/asset/internal/service.d.ts +3 -3
- package/dist/asset/schema.d.ts +3 -3
- package/dist/asset/user/dto.schemas.d.ts +9 -9
- package/dist/asset/user/router.d.ts +15 -15
- package/dist/asset/user/service.d.ts +9 -9
- package/dist/asset-convert-product/admin/dto.schemas.d.ts +15 -15
- package/dist/asset-convert-product/admin/router.d.ts +53 -53
- package/dist/asset-convert-product/admin/service.d.ts +31 -31
- package/dist/asset-convert-product/user/dto.schemas.d.ts +6 -6
- package/dist/asset-convert-product/user/router.d.ts +11 -11
- package/dist/asset-convert-product/user/service.d.ts +8 -8
- package/dist/asset-price/admin/dto.schemas.d.ts +3 -3
- package/dist/asset-price/admin/router.d.ts +14 -14
- package/dist/asset-price/admin/service.d.ts +4 -4
- package/dist/asset-price/user/router.d.ts +4 -4
- package/dist/asset-type/admin/router.d.ts +10 -10
- package/dist/asset-type/user/router.d.ts +3 -3
- package/dist/auth/better-auth.d.ts +36 -37
- package/dist/auth/router.d.ts +2 -2
- package/dist/bank-account/admin/router.d.ts +20 -20
- package/dist/bank-account/user/router.d.ts +7 -7
- package/dist/check-in/admin/router.d.ts +4 -4
- package/dist/check-in/user/router.d.ts +7 -7
- package/dist/deposit/admin/router.d.ts +8 -8
- package/dist/deposit/user/router.d.ts +7 -7
- package/dist/dynamic-env/admin.router.d.ts +10 -10
- package/dist/env/server.d.ts +0 -6
- package/dist/file-storage/admin/router.d.ts +8 -8
- package/dist/file-storage/share/router.d.ts +6 -6
- package/dist/file-storage/user/router.d.ts +5 -5
- package/dist/index.d.ts +1128 -1562
- package/dist/ledger/admin/dto.schemas.d.ts +7 -7
- package/dist/ledger/admin/router.d.ts +7 -7
- package/dist/ledger/user/router.d.ts +3 -3
- package/dist/ledger/user/service.d.ts +6 -6
- package/dist/ledger-account/admin/dto.schemas.d.ts +37 -3
- package/dist/ledger-account/admin/router.d.ts +64 -15
- package/dist/ledger-account/admin/service.d.ts +21 -7
- package/dist/ledger-account/user/dto.schemas.d.ts +1 -1
- package/dist/ledger-account/user/router.d.ts +8 -8
- package/dist/ledger-account/user/service.d.ts +6 -6
- package/dist/ledger-account-import/admin/router.d.ts +12 -12
- package/dist/ledger-account-transfer/user/router.d.ts +3 -3
- package/dist/ledger-account-type/admin/router.d.ts +10 -10
- package/dist/ledger-account-type/user/router.d.ts +4 -4
- package/dist/market-data/admin/dto.schemas.d.ts +423 -647
- package/dist/market-data/admin/router.d.ts +104 -145
- package/dist/market-data/admin/service.d.ts +10 -44
- package/dist/market-data/cron.d.ts +1 -0
- package/dist/market-data/db.schemas.d.ts +40 -176
- package/dist/market-data/internal/service.d.ts +76 -45
- package/dist/market-data/resolutions.d.ts +9 -0
- package/dist/market-data/schema.d.ts +23 -94
- package/dist/market-data/user/router.d.ts +8 -8
- package/dist/market-pricing/admin/dto.schemas.d.ts +315 -428
- package/dist/market-pricing/admin/router.d.ts +242 -146
- package/dist/market-pricing/admin/service.d.ts +183 -102
- package/dist/market-pricing/cron.d.ts +1 -1
- package/dist/market-pricing/db.schemas.d.ts +661 -117
- package/dist/market-pricing/errors/index.d.ts +1 -0
- package/dist/market-pricing/errors/locales/zh.d.ts +1 -0
- package/dist/market-pricing/internal/service.d.ts +27 -4
- package/dist/market-pricing/schema.d.ts +304 -28
- package/dist/news/admin/router.d.ts +16 -16
- package/dist/news/user/router.d.ts +4 -4
- package/dist/news-category/user/router.d.ts +2 -2
- package/dist/notification/admin/router.d.ts +6 -6
- package/dist/notification/user/router.d.ts +7 -7
- package/dist/operations-overview/admin/router.d.ts +7 -7
- package/dist/portfolio/user/dto.schemas.d.ts +1 -1
- package/dist/portfolio/user/router.d.ts +7 -7
- package/dist/portfolio/user/service.d.ts +1 -1
- package/dist/receipt-method/admin/router.d.ts +8 -8
- package/dist/receipt-method/user/router.d.ts +7 -7
- package/dist/referral/admin/router.d.ts +6 -6
- package/dist/referral/user/router.d.ts +6 -6
- package/dist/referral-depth-config/admin/router.d.ts +12 -12
- package/dist/server-test/index.d.ts +2 -2
- package/dist/shipping-address/admin/router.d.ts +4 -4
- package/dist/shipping-address/user/router.d.ts +8 -8
- package/dist/team/admin/router.d.ts +6 -6
- package/dist/team/user/router.d.ts +8 -8
- package/dist/trade-market/admin/dto.schemas.d.ts +89 -3625
- package/dist/trade-market/admin/router.d.ts +28 -464
- package/dist/trade-market/admin/service.d.ts +13 -446
- package/dist/trade-market/db.schemas.d.ts +0 -170
- package/dist/trade-market/errors/index.d.ts +1 -0
- package/dist/trade-market/errors/locales/zh.d.ts +1 -0
- package/dist/trade-market/index.d.ts +1 -0
- package/dist/trade-market/internal/service.d.ts +14 -326
- package/dist/trade-market/schema.d.ts +2 -91
- package/dist/trade-market/seed.d.ts +1 -0
- package/dist/trade-market/user/dto.schemas.d.ts +0 -172
- package/dist/trade-market/user/router.d.ts +8 -26
- package/dist/trade-market/user/service.d.ts +8 -294
- package/dist/transfer/admin/router.d.ts +4 -4
- package/dist/transfer/user/router.d.ts +4 -4
- package/dist/udf/dto.schemas.d.ts +134 -0
- package/dist/udf/index.d.ts +1 -0
- package/dist/udf/router.d.ts +577 -0
- package/dist/udf/service.d.ts +75 -0
- package/dist/user/admin/router.d.ts +14 -14
- package/dist/user/user/router.d.ts +5 -5
- package/dist/user-kyc/admin/router.d.ts +10 -10
- package/dist/user-kyc/user/router.d.ts +6 -6
- package/dist/user-security/admin/router.d.ts +4 -4
- package/dist/user-security/user/router.d.ts +6 -6
- package/dist/wallet/admin/router.d.ts +6 -6
- package/dist/wallet/user/router.d.ts +4 -4
- package/dist/wallet-type/admin/router.d.ts +14 -14
- package/dist/wallet-type/user/router.d.ts +3 -3
- package/dist/welfare-cycle/admin/dto.schemas.d.ts +24 -24
- package/dist/welfare-cycle/admin/router.d.ts +52 -52
- package/dist/welfare-cycle/admin/service.d.ts +32 -32
- package/dist/welfare-cycle/user/router.d.ts +9 -9
- package/dist/withdraw/admin/router.d.ts +10 -10
- package/dist/withdraw/user/dto.schemas.d.ts +2 -2
- package/dist/withdraw/user/router.d.ts +8 -8
- package/package.json +4 -1
|
@@ -12,9 +12,6 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
12
12
|
status: "active" | "draft" | "paused" | "ended";
|
|
13
13
|
baseAssetId: string;
|
|
14
14
|
quoteAssetId: string;
|
|
15
|
-
pricingSource: string;
|
|
16
|
-
systemBaseAccountId: string;
|
|
17
|
-
systemQuoteAccountId: string;
|
|
18
15
|
isBuyEnabled: boolean;
|
|
19
16
|
isSellEnabled: boolean;
|
|
20
17
|
minBaseAmount: string;
|
|
@@ -23,7 +20,7 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
23
20
|
dailyUserSellBaseLimit: string | null;
|
|
24
21
|
maxSlippageBps: string;
|
|
25
22
|
baseAsset: {
|
|
26
|
-
symbol: string;
|
|
23
|
+
symbol: string | null;
|
|
27
24
|
id: string;
|
|
28
25
|
name: string;
|
|
29
26
|
createdAt: Date;
|
|
@@ -32,11 +29,11 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
32
29
|
iconUrl: string;
|
|
33
30
|
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
34
31
|
isActive: boolean;
|
|
35
|
-
typeId: string;
|
|
32
|
+
typeId: string | null;
|
|
36
33
|
precision: number;
|
|
37
34
|
};
|
|
38
35
|
quoteAsset: {
|
|
39
|
-
symbol: string;
|
|
36
|
+
symbol: string | null;
|
|
40
37
|
id: string;
|
|
41
38
|
name: string;
|
|
42
39
|
createdAt: Date;
|
|
@@ -45,145 +42,9 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
45
42
|
iconUrl: string;
|
|
46
43
|
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
47
44
|
isActive: boolean;
|
|
48
|
-
typeId: string;
|
|
45
|
+
typeId: string | null;
|
|
49
46
|
precision: number;
|
|
50
47
|
};
|
|
51
|
-
systemBaseAccount: {
|
|
52
|
-
id: string;
|
|
53
|
-
createdAt: Date;
|
|
54
|
-
updatedAt: Date;
|
|
55
|
-
userId: string;
|
|
56
|
-
status: "active" | "frozen" | "disabled";
|
|
57
|
-
assetId: string;
|
|
58
|
-
ledgerAccountTypeId: string;
|
|
59
|
-
available: string;
|
|
60
|
-
locked: string;
|
|
61
|
-
version: number;
|
|
62
|
-
user: {
|
|
63
|
-
email: string;
|
|
64
|
-
id: string;
|
|
65
|
-
name: string;
|
|
66
|
-
emailVerified: boolean;
|
|
67
|
-
image: string | null;
|
|
68
|
-
createdAt: Date;
|
|
69
|
-
updatedAt: Date;
|
|
70
|
-
twoFactorEnabled: boolean | null;
|
|
71
|
-
username: string | null;
|
|
72
|
-
displayUsername: string | null;
|
|
73
|
-
phoneNumber: string | null;
|
|
74
|
-
phoneNumberVerified: boolean | null;
|
|
75
|
-
role: string | null;
|
|
76
|
-
banned: boolean | null;
|
|
77
|
-
banReason: string | null;
|
|
78
|
-
banExpires: Date | null;
|
|
79
|
-
};
|
|
80
|
-
asset: {
|
|
81
|
-
symbol: string;
|
|
82
|
-
id: string;
|
|
83
|
-
name: string;
|
|
84
|
-
createdAt: Date;
|
|
85
|
-
updatedAt: Date;
|
|
86
|
-
code: string;
|
|
87
|
-
iconUrl: string;
|
|
88
|
-
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
89
|
-
isActive: boolean;
|
|
90
|
-
typeId: string;
|
|
91
|
-
precision: number;
|
|
92
|
-
};
|
|
93
|
-
ledgerAccountType: {
|
|
94
|
-
id: string;
|
|
95
|
-
name: string;
|
|
96
|
-
createdAt: Date;
|
|
97
|
-
updatedAt: Date;
|
|
98
|
-
description: string | null;
|
|
99
|
-
key: string;
|
|
100
|
-
isActive: boolean;
|
|
101
|
-
allowDeposit: boolean;
|
|
102
|
-
allowWithdraw: boolean;
|
|
103
|
-
minWithdrawAmount: string;
|
|
104
|
-
maxWithdrawAmount: string;
|
|
105
|
-
allowTransfer: boolean;
|
|
106
|
-
minTransferAmount: string;
|
|
107
|
-
maxTransferAmount: string;
|
|
108
|
-
allowInternalTransfer: boolean;
|
|
109
|
-
allowInternalReceiveTransfer: boolean;
|
|
110
|
-
minInternalTransferAmount: string;
|
|
111
|
-
maxInternalTransferAmount: string;
|
|
112
|
-
internalTransferRatio: string;
|
|
113
|
-
allowTransaction: boolean;
|
|
114
|
-
hasExpiry: boolean;
|
|
115
|
-
expiryDays: number | null;
|
|
116
|
-
sortOrder: number;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
systemQuoteAccount: {
|
|
120
|
-
id: string;
|
|
121
|
-
createdAt: Date;
|
|
122
|
-
updatedAt: Date;
|
|
123
|
-
userId: string;
|
|
124
|
-
status: "active" | "frozen" | "disabled";
|
|
125
|
-
assetId: string;
|
|
126
|
-
ledgerAccountTypeId: string;
|
|
127
|
-
available: string;
|
|
128
|
-
locked: string;
|
|
129
|
-
version: number;
|
|
130
|
-
user: {
|
|
131
|
-
email: string;
|
|
132
|
-
id: string;
|
|
133
|
-
name: string;
|
|
134
|
-
emailVerified: boolean;
|
|
135
|
-
image: string | null;
|
|
136
|
-
createdAt: Date;
|
|
137
|
-
updatedAt: Date;
|
|
138
|
-
twoFactorEnabled: boolean | null;
|
|
139
|
-
username: string | null;
|
|
140
|
-
displayUsername: string | null;
|
|
141
|
-
phoneNumber: string | null;
|
|
142
|
-
phoneNumberVerified: boolean | null;
|
|
143
|
-
role: string | null;
|
|
144
|
-
banned: boolean | null;
|
|
145
|
-
banReason: string | null;
|
|
146
|
-
banExpires: Date | null;
|
|
147
|
-
};
|
|
148
|
-
asset: {
|
|
149
|
-
symbol: string;
|
|
150
|
-
id: string;
|
|
151
|
-
name: string;
|
|
152
|
-
createdAt: Date;
|
|
153
|
-
updatedAt: Date;
|
|
154
|
-
code: string;
|
|
155
|
-
iconUrl: string;
|
|
156
|
-
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
157
|
-
isActive: boolean;
|
|
158
|
-
typeId: string;
|
|
159
|
-
precision: number;
|
|
160
|
-
};
|
|
161
|
-
ledgerAccountType: {
|
|
162
|
-
id: string;
|
|
163
|
-
name: string;
|
|
164
|
-
createdAt: Date;
|
|
165
|
-
updatedAt: Date;
|
|
166
|
-
description: string | null;
|
|
167
|
-
key: string;
|
|
168
|
-
isActive: boolean;
|
|
169
|
-
allowDeposit: boolean;
|
|
170
|
-
allowWithdraw: boolean;
|
|
171
|
-
minWithdrawAmount: string;
|
|
172
|
-
maxWithdrawAmount: string;
|
|
173
|
-
allowTransfer: boolean;
|
|
174
|
-
minTransferAmount: string;
|
|
175
|
-
maxTransferAmount: string;
|
|
176
|
-
allowInternalTransfer: boolean;
|
|
177
|
-
allowInternalReceiveTransfer: boolean;
|
|
178
|
-
minInternalTransferAmount: string;
|
|
179
|
-
maxInternalTransferAmount: string;
|
|
180
|
-
internalTransferRatio: string;
|
|
181
|
-
allowTransaction: boolean;
|
|
182
|
-
hasExpiry: boolean;
|
|
183
|
-
expiryDays: number | null;
|
|
184
|
-
sortOrder: number;
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
48
|
}[];
|
|
188
49
|
total: number;
|
|
189
50
|
}>;
|
|
@@ -195,9 +56,6 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
195
56
|
status: "active" | "draft" | "paused" | "ended";
|
|
196
57
|
baseAssetId: string;
|
|
197
58
|
quoteAssetId: string;
|
|
198
|
-
pricingSource: string;
|
|
199
|
-
systemBaseAccountId: string;
|
|
200
|
-
systemQuoteAccountId: string;
|
|
201
59
|
isBuyEnabled: boolean;
|
|
202
60
|
isSellEnabled: boolean;
|
|
203
61
|
minBaseAmount: string;
|
|
@@ -206,7 +64,7 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
206
64
|
dailyUserSellBaseLimit: string | null;
|
|
207
65
|
maxSlippageBps: string;
|
|
208
66
|
baseAsset: {
|
|
209
|
-
symbol: string;
|
|
67
|
+
symbol: string | null;
|
|
210
68
|
id: string;
|
|
211
69
|
name: string;
|
|
212
70
|
createdAt: Date;
|
|
@@ -215,11 +73,11 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
215
73
|
iconUrl: string;
|
|
216
74
|
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
217
75
|
isActive: boolean;
|
|
218
|
-
typeId: string;
|
|
76
|
+
typeId: string | null;
|
|
219
77
|
precision: number;
|
|
220
78
|
};
|
|
221
79
|
quoteAsset: {
|
|
222
|
-
symbol: string;
|
|
80
|
+
symbol: string | null;
|
|
223
81
|
id: string;
|
|
224
82
|
name: string;
|
|
225
83
|
createdAt: Date;
|
|
@@ -228,145 +86,9 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
228
86
|
iconUrl: string;
|
|
229
87
|
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
230
88
|
isActive: boolean;
|
|
231
|
-
typeId: string;
|
|
89
|
+
typeId: string | null;
|
|
232
90
|
precision: number;
|
|
233
91
|
};
|
|
234
|
-
systemBaseAccount: {
|
|
235
|
-
id: string;
|
|
236
|
-
createdAt: Date;
|
|
237
|
-
updatedAt: Date;
|
|
238
|
-
userId: string;
|
|
239
|
-
status: "active" | "frozen" | "disabled";
|
|
240
|
-
assetId: string;
|
|
241
|
-
ledgerAccountTypeId: string;
|
|
242
|
-
available: string;
|
|
243
|
-
locked: string;
|
|
244
|
-
version: number;
|
|
245
|
-
user: {
|
|
246
|
-
email: string;
|
|
247
|
-
id: string;
|
|
248
|
-
name: string;
|
|
249
|
-
emailVerified: boolean;
|
|
250
|
-
image: string | null;
|
|
251
|
-
createdAt: Date;
|
|
252
|
-
updatedAt: Date;
|
|
253
|
-
twoFactorEnabled: boolean | null;
|
|
254
|
-
username: string | null;
|
|
255
|
-
displayUsername: string | null;
|
|
256
|
-
phoneNumber: string | null;
|
|
257
|
-
phoneNumberVerified: boolean | null;
|
|
258
|
-
role: string | null;
|
|
259
|
-
banned: boolean | null;
|
|
260
|
-
banReason: string | null;
|
|
261
|
-
banExpires: Date | null;
|
|
262
|
-
};
|
|
263
|
-
asset: {
|
|
264
|
-
symbol: string;
|
|
265
|
-
id: string;
|
|
266
|
-
name: string;
|
|
267
|
-
createdAt: Date;
|
|
268
|
-
updatedAt: Date;
|
|
269
|
-
code: string;
|
|
270
|
-
iconUrl: string;
|
|
271
|
-
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
272
|
-
isActive: boolean;
|
|
273
|
-
typeId: string;
|
|
274
|
-
precision: number;
|
|
275
|
-
};
|
|
276
|
-
ledgerAccountType: {
|
|
277
|
-
id: string;
|
|
278
|
-
name: string;
|
|
279
|
-
createdAt: Date;
|
|
280
|
-
updatedAt: Date;
|
|
281
|
-
description: string | null;
|
|
282
|
-
key: string;
|
|
283
|
-
isActive: boolean;
|
|
284
|
-
allowDeposit: boolean;
|
|
285
|
-
allowWithdraw: boolean;
|
|
286
|
-
minWithdrawAmount: string;
|
|
287
|
-
maxWithdrawAmount: string;
|
|
288
|
-
allowTransfer: boolean;
|
|
289
|
-
minTransferAmount: string;
|
|
290
|
-
maxTransferAmount: string;
|
|
291
|
-
allowInternalTransfer: boolean;
|
|
292
|
-
allowInternalReceiveTransfer: boolean;
|
|
293
|
-
minInternalTransferAmount: string;
|
|
294
|
-
maxInternalTransferAmount: string;
|
|
295
|
-
internalTransferRatio: string;
|
|
296
|
-
allowTransaction: boolean;
|
|
297
|
-
hasExpiry: boolean;
|
|
298
|
-
expiryDays: number | null;
|
|
299
|
-
sortOrder: number;
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
systemQuoteAccount: {
|
|
303
|
-
id: string;
|
|
304
|
-
createdAt: Date;
|
|
305
|
-
updatedAt: Date;
|
|
306
|
-
userId: string;
|
|
307
|
-
status: "active" | "frozen" | "disabled";
|
|
308
|
-
assetId: string;
|
|
309
|
-
ledgerAccountTypeId: string;
|
|
310
|
-
available: string;
|
|
311
|
-
locked: string;
|
|
312
|
-
version: number;
|
|
313
|
-
user: {
|
|
314
|
-
email: string;
|
|
315
|
-
id: string;
|
|
316
|
-
name: string;
|
|
317
|
-
emailVerified: boolean;
|
|
318
|
-
image: string | null;
|
|
319
|
-
createdAt: Date;
|
|
320
|
-
updatedAt: Date;
|
|
321
|
-
twoFactorEnabled: boolean | null;
|
|
322
|
-
username: string | null;
|
|
323
|
-
displayUsername: string | null;
|
|
324
|
-
phoneNumber: string | null;
|
|
325
|
-
phoneNumberVerified: boolean | null;
|
|
326
|
-
role: string | null;
|
|
327
|
-
banned: boolean | null;
|
|
328
|
-
banReason: string | null;
|
|
329
|
-
banExpires: Date | null;
|
|
330
|
-
};
|
|
331
|
-
asset: {
|
|
332
|
-
symbol: string;
|
|
333
|
-
id: string;
|
|
334
|
-
name: string;
|
|
335
|
-
createdAt: Date;
|
|
336
|
-
updatedAt: Date;
|
|
337
|
-
code: string;
|
|
338
|
-
iconUrl: string;
|
|
339
|
-
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
340
|
-
isActive: boolean;
|
|
341
|
-
typeId: string;
|
|
342
|
-
precision: number;
|
|
343
|
-
};
|
|
344
|
-
ledgerAccountType: {
|
|
345
|
-
id: string;
|
|
346
|
-
name: string;
|
|
347
|
-
createdAt: Date;
|
|
348
|
-
updatedAt: Date;
|
|
349
|
-
description: string | null;
|
|
350
|
-
key: string;
|
|
351
|
-
isActive: boolean;
|
|
352
|
-
allowDeposit: boolean;
|
|
353
|
-
allowWithdraw: boolean;
|
|
354
|
-
minWithdrawAmount: string;
|
|
355
|
-
maxWithdrawAmount: string;
|
|
356
|
-
allowTransfer: boolean;
|
|
357
|
-
minTransferAmount: string;
|
|
358
|
-
maxTransferAmount: string;
|
|
359
|
-
allowInternalTransfer: boolean;
|
|
360
|
-
allowInternalReceiveTransfer: boolean;
|
|
361
|
-
minInternalTransferAmount: string;
|
|
362
|
-
maxInternalTransferAmount: string;
|
|
363
|
-
internalTransferRatio: string;
|
|
364
|
-
allowTransaction: boolean;
|
|
365
|
-
hasExpiry: boolean;
|
|
366
|
-
expiryDays: number | null;
|
|
367
|
-
sortOrder: number;
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
92
|
}>;
|
|
371
93
|
static marketBuy(userId: string, input: TradeMarketOrderCreateInputType): Promise<{
|
|
372
94
|
id: string;
|
|
@@ -387,8 +109,6 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
387
109
|
pricingSourceSnapshot: string;
|
|
388
110
|
userBaseAccountId: string;
|
|
389
111
|
userQuoteAccountId: string;
|
|
390
|
-
systemBaseAccountIdSnapshot: string;
|
|
391
|
-
systemQuoteAccountIdSnapshot: string;
|
|
392
112
|
userDebitLedgerEntryId: string | null;
|
|
393
113
|
userCreditLedgerEntryId: string | null;
|
|
394
114
|
}>;
|
|
@@ -411,8 +131,6 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
411
131
|
pricingSourceSnapshot: string;
|
|
412
132
|
userBaseAccountId: string;
|
|
413
133
|
userQuoteAccountId: string;
|
|
414
|
-
systemBaseAccountIdSnapshot: string;
|
|
415
|
-
systemQuoteAccountIdSnapshot: string;
|
|
416
134
|
userDebitLedgerEntryId: string | null;
|
|
417
135
|
userCreditLedgerEntryId: string | null;
|
|
418
136
|
}>;
|
|
@@ -436,8 +154,6 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
436
154
|
pricingSourceSnapshot: string;
|
|
437
155
|
userBaseAccountId: string;
|
|
438
156
|
userQuoteAccountId: string;
|
|
439
|
-
systemBaseAccountIdSnapshot: string;
|
|
440
|
-
systemQuoteAccountIdSnapshot: string;
|
|
441
157
|
userDebitLedgerEntryId: string | null;
|
|
442
158
|
userCreditLedgerEntryId: string | null;
|
|
443
159
|
}[];
|
|
@@ -462,8 +178,6 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
|
|
|
462
178
|
pricingSourceSnapshot: string;
|
|
463
179
|
userBaseAccountId: string;
|
|
464
180
|
userQuoteAccountId: string;
|
|
465
|
-
systemBaseAccountIdSnapshot: string;
|
|
466
|
-
systemQuoteAccountIdSnapshot: string;
|
|
467
181
|
userDebitLedgerEntryId: string | null;
|
|
468
182
|
userCreditLedgerEntryId: string | null;
|
|
469
183
|
}>;
|
|
@@ -41,7 +41,7 @@ export declare const transferAdminRouter: Elysia<"/transfer", {
|
|
|
41
41
|
route: string;
|
|
42
42
|
request: Request;
|
|
43
43
|
store: {};
|
|
44
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 |
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -217,7 +217,7 @@ export declare const transferAdminRouter: Elysia<"/transfer", {
|
|
|
217
217
|
route: string;
|
|
218
218
|
request: Request;
|
|
219
219
|
store: {};
|
|
220
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 |
|
|
220
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
221
221
|
readonly 100: "Continue";
|
|
222
222
|
readonly 101: "Switching Protocols";
|
|
223
223
|
readonly 102: "Processing";
|
|
@@ -414,6 +414,8 @@ export declare const transferAdminRouter: Elysia<"/transfer", {
|
|
|
414
414
|
hasNextPage: boolean;
|
|
415
415
|
};
|
|
416
416
|
};
|
|
417
|
+
401: "Unauthorized";
|
|
418
|
+
403: "Forbidden: Admins only";
|
|
417
419
|
422: {
|
|
418
420
|
type: "validation";
|
|
419
421
|
on: string;
|
|
@@ -423,8 +425,6 @@ export declare const transferAdminRouter: Elysia<"/transfer", {
|
|
|
423
425
|
property?: string;
|
|
424
426
|
expected?: string;
|
|
425
427
|
};
|
|
426
|
-
401: "Unauthorized";
|
|
427
|
-
403: "Forbidden: Admins only";
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
430
|
};
|
|
@@ -41,7 +41,7 @@ export declare const transferRouter: Elysia<"/transfer", {
|
|
|
41
41
|
route: string;
|
|
42
42
|
request: Request;
|
|
43
43
|
store: {};
|
|
44
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 |
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -217,7 +217,7 @@ export declare const transferRouter: Elysia<"/transfer", {
|
|
|
217
217
|
route: string;
|
|
218
218
|
request: Request;
|
|
219
219
|
store: {};
|
|
220
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 |
|
|
220
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
221
221
|
readonly 100: "Continue";
|
|
222
222
|
readonly 101: "Switching Protocols";
|
|
223
223
|
readonly 102: "Processing";
|
|
@@ -414,6 +414,7 @@ export declare const transferRouter: Elysia<"/transfer", {
|
|
|
414
414
|
hasNextPage: boolean;
|
|
415
415
|
};
|
|
416
416
|
};
|
|
417
|
+
401: "Unauthorized";
|
|
417
418
|
422: {
|
|
418
419
|
type: "validation";
|
|
419
420
|
on: string;
|
|
@@ -423,7 +424,6 @@ export declare const transferRouter: Elysia<"/transfer", {
|
|
|
423
424
|
property?: string;
|
|
424
425
|
expected?: string;
|
|
425
426
|
};
|
|
426
|
-
401: "Unauthorized";
|
|
427
427
|
};
|
|
428
428
|
};
|
|
429
429
|
};
|
|
@@ -453,6 +453,7 @@ export declare const transferRouter: Elysia<"/transfer", {
|
|
|
453
453
|
sourceUserId: string;
|
|
454
454
|
targetUserId: string;
|
|
455
455
|
};
|
|
456
|
+
401: "Unauthorized";
|
|
456
457
|
422: {
|
|
457
458
|
type: "validation";
|
|
458
459
|
on: string;
|
|
@@ -462,7 +463,6 @@ export declare const transferRouter: Elysia<"/transfer", {
|
|
|
462
463
|
property?: string;
|
|
463
464
|
expected?: string;
|
|
464
465
|
};
|
|
465
|
-
401: "Unauthorized";
|
|
466
466
|
};
|
|
467
467
|
};
|
|
468
468
|
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
export declare const udfSearchQuerySchema: import("@sinclair/typebox").TObject<{
|
|
2
|
+
query: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
3
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
4
|
+
exchange: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
+
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const udfSymbolQuerySchema: import("@sinclair/typebox").TObject<{
|
|
8
|
+
symbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const udfHistoryQuerySchema: import("@sinclair/typebox").TObject<{
|
|
11
|
+
symbol: import("@sinclair/typebox").TString;
|
|
12
|
+
from: import("@sinclair/typebox").TString;
|
|
13
|
+
to: import("@sinclair/typebox").TString;
|
|
14
|
+
resolution: import("@sinclair/typebox").TString;
|
|
15
|
+
countback: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const udfExchangeSchema: import("@sinclair/typebox").TObject<{
|
|
18
|
+
value: import("@sinclair/typebox").TString;
|
|
19
|
+
name: import("@sinclair/typebox").TString;
|
|
20
|
+
desc: import("@sinclair/typebox").TString;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const udfSymbolTypeSchema: import("@sinclair/typebox").TObject<{
|
|
23
|
+
name: import("@sinclair/typebox").TString;
|
|
24
|
+
value: import("@sinclair/typebox").TString;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const udfConfigResponseSchema: import("@sinclair/typebox").TObject<{
|
|
27
|
+
supported_resolutions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
28
|
+
supports_group_request: import("@sinclair/typebox").TBoolean;
|
|
29
|
+
supports_marks: import("@sinclair/typebox").TBoolean;
|
|
30
|
+
supports_search: import("@sinclair/typebox").TBoolean;
|
|
31
|
+
supports_timescale_marks: import("@sinclair/typebox").TBoolean;
|
|
32
|
+
exchanges: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
33
|
+
value: import("@sinclair/typebox").TString;
|
|
34
|
+
name: import("@sinclair/typebox").TString;
|
|
35
|
+
desc: import("@sinclair/typebox").TString;
|
|
36
|
+
}>>;
|
|
37
|
+
symbols_types: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
38
|
+
name: import("@sinclair/typebox").TString;
|
|
39
|
+
value: import("@sinclair/typebox").TString;
|
|
40
|
+
}>>;
|
|
41
|
+
}>;
|
|
42
|
+
export type UdfConfigResponse = typeof udfConfigResponseSchema.static;
|
|
43
|
+
export declare const udfSearchItemSchema: import("@sinclair/typebox").TObject<{
|
|
44
|
+
symbol: import("@sinclair/typebox").TString;
|
|
45
|
+
full_name: import("@sinclair/typebox").TString;
|
|
46
|
+
description: import("@sinclair/typebox").TString;
|
|
47
|
+
exchange: import("@sinclair/typebox").TString;
|
|
48
|
+
type: import("@sinclair/typebox").TString;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const udfSearchResponseSchema: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
51
|
+
symbol: import("@sinclair/typebox").TString;
|
|
52
|
+
full_name: import("@sinclair/typebox").TString;
|
|
53
|
+
description: import("@sinclair/typebox").TString;
|
|
54
|
+
exchange: import("@sinclair/typebox").TString;
|
|
55
|
+
type: import("@sinclair/typebox").TString;
|
|
56
|
+
}>>;
|
|
57
|
+
export type UdfSearchResponse = typeof udfSearchResponseSchema.static;
|
|
58
|
+
export declare const udfSymbolInfoSchema: import("@sinclair/typebox").TObject<{
|
|
59
|
+
name: import("@sinclair/typebox").TString;
|
|
60
|
+
ticker: import("@sinclair/typebox").TString;
|
|
61
|
+
description: import("@sinclair/typebox").TString;
|
|
62
|
+
type: import("@sinclair/typebox").TString;
|
|
63
|
+
session: import("@sinclair/typebox").TString;
|
|
64
|
+
timezone: import("@sinclair/typebox").TString;
|
|
65
|
+
exchange: import("@sinclair/typebox").TString;
|
|
66
|
+
minmov: import("@sinclair/typebox").TNumber;
|
|
67
|
+
pricescale: import("@sinclair/typebox").TNumber;
|
|
68
|
+
has_intraday: import("@sinclair/typebox").TBoolean;
|
|
69
|
+
has_daily: import("@sinclair/typebox").TBoolean;
|
|
70
|
+
has_weekly_and_monthly: import("@sinclair/typebox").TBoolean;
|
|
71
|
+
supported_resolutions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
72
|
+
volume_precision: import("@sinclair/typebox").TNumber;
|
|
73
|
+
data_status: import("@sinclair/typebox").TString;
|
|
74
|
+
}>;
|
|
75
|
+
export type UdfSymbolInfoResponse = typeof udfSymbolInfoSchema.static;
|
|
76
|
+
export declare const udfErrorResponseSchema: import("@sinclair/typebox").TObject<{
|
|
77
|
+
s: import("@sinclair/typebox").TLiteral<"error">;
|
|
78
|
+
errmsg: import("@sinclair/typebox").TString;
|
|
79
|
+
}>;
|
|
80
|
+
export declare const udfNoDataResponseSchema: import("@sinclair/typebox").TObject<{
|
|
81
|
+
s: import("@sinclair/typebox").TLiteral<"no_data">;
|
|
82
|
+
nextTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
83
|
+
}>;
|
|
84
|
+
export declare const udfHistoryOkResponseSchema: import("@sinclair/typebox").TObject<{
|
|
85
|
+
s: import("@sinclair/typebox").TLiteral<"ok">;
|
|
86
|
+
t: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TInteger>;
|
|
87
|
+
o: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
88
|
+
h: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
89
|
+
l: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
90
|
+
c: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
91
|
+
v: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
92
|
+
nextTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
93
|
+
}>;
|
|
94
|
+
export type UdfHistoryOkResponse = typeof udfHistoryOkResponseSchema.static;
|
|
95
|
+
export declare const udfHistoryResponseSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
96
|
+
s: import("@sinclair/typebox").TLiteral<"ok">;
|
|
97
|
+
t: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TInteger>;
|
|
98
|
+
o: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
99
|
+
h: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
100
|
+
l: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
101
|
+
c: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
102
|
+
v: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
103
|
+
nextTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
104
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
105
|
+
s: import("@sinclair/typebox").TLiteral<"no_data">;
|
|
106
|
+
nextTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
107
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
108
|
+
s: import("@sinclair/typebox").TLiteral<"error">;
|
|
109
|
+
errmsg: import("@sinclair/typebox").TString;
|
|
110
|
+
}>]>;
|
|
111
|
+
export type UdfHistoryResponse = typeof udfHistoryResponseSchema.static;
|
|
112
|
+
export declare const udfSymbolResponseSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
113
|
+
name: import("@sinclair/typebox").TString;
|
|
114
|
+
ticker: import("@sinclair/typebox").TString;
|
|
115
|
+
description: import("@sinclair/typebox").TString;
|
|
116
|
+
type: import("@sinclair/typebox").TString;
|
|
117
|
+
session: import("@sinclair/typebox").TString;
|
|
118
|
+
timezone: import("@sinclair/typebox").TString;
|
|
119
|
+
exchange: import("@sinclair/typebox").TString;
|
|
120
|
+
minmov: import("@sinclair/typebox").TNumber;
|
|
121
|
+
pricescale: import("@sinclair/typebox").TNumber;
|
|
122
|
+
has_intraday: import("@sinclair/typebox").TBoolean;
|
|
123
|
+
has_daily: import("@sinclair/typebox").TBoolean;
|
|
124
|
+
has_weekly_and_monthly: import("@sinclair/typebox").TBoolean;
|
|
125
|
+
supported_resolutions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
126
|
+
volume_precision: import("@sinclair/typebox").TNumber;
|
|
127
|
+
data_status: import("@sinclair/typebox").TString;
|
|
128
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
129
|
+
s: import("@sinclair/typebox").TLiteral<"error">;
|
|
130
|
+
errmsg: import("@sinclair/typebox").TString;
|
|
131
|
+
}>]>;
|
|
132
|
+
export type UdfSymbolResponse = typeof udfSymbolResponseSchema.static;
|
|
133
|
+
export declare const udfTimeResponseSchema: import("@sinclair/typebox").TInteger;
|
|
134
|
+
export type UdfTimeResponse = typeof udfTimeResponseSchema.static;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { udfRouter } from './router';
|