@r2wa-org/eden 0.0.52 → 0.0.54
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/src/admin/index.d.ts +1234 -307
- package/dist/src/auth/better-auth.d.ts +43 -1
- package/dist/src/auth/permissions.d.ts +31 -1
- package/dist/src/auth/roles.d.ts +90 -0
- package/dist/src/cron/index.d.ts +1 -1
- package/dist/src/db/schemas.d.ts +3 -0
- package/dist/src/index.d.ts +1884 -526
- package/dist/src/ledger/admin/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/admin/router.d.ts +2 -2
- package/dist/src/ledger/admin/service.d.ts +2 -2
- package/dist/src/ledger/db.schemas.d.ts +8 -8
- package/dist/src/ledger/internal/service.d.ts +2 -2
- package/dist/src/ledger/schema.d.ts +6 -6
- package/dist/src/ledger/user/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/user/router.d.ts +2 -2
- package/dist/src/ledger/user/service.d.ts +2 -2
- package/dist/src/market-data/admin/dto.schemas.d.ts +291 -0
- package/dist/src/market-data/admin/router.d.ts +609 -0
- package/dist/src/market-data/admin/service.d.ts +52 -0
- package/dist/src/market-data/cron.d.ts +57 -0
- package/dist/src/market-data/db.schemas.d.ts +516 -0
- package/dist/src/market-data/errors/index.d.ts +12 -0
- package/dist/src/market-data/errors/locales/zh.d.ts +11 -0
- package/dist/src/market-data/index.d.ts +8 -0
- package/dist/src/market-data/internal/service.d.ts +77 -0
- package/dist/src/market-data/permissions.d.ts +6 -0
- package/dist/src/market-data/schema.d.ts +270 -0
- package/dist/src/market-data/user/dto.schemas.d.ts +289 -0
- package/dist/src/market-data/user/router.d.ts +521 -0
- package/dist/src/market-data/user/service.d.ts +30 -0
- package/dist/src/market-pricing/admin/dto.schemas.d.ts +322 -0
- package/dist/src/market-pricing/admin/router.d.ts +835 -0
- package/dist/src/market-pricing/admin/service.d.ts +129 -0
- package/dist/src/market-pricing/cron.d.ts +57 -0
- package/dist/src/market-pricing/db.schemas.d.ts +828 -0
- package/dist/src/market-pricing/errors/index.d.ts +14 -0
- package/dist/src/market-pricing/errors/locales/zh.d.ts +13 -0
- package/dist/src/market-pricing/internal/service.d.ts +35 -0
- package/dist/src/market-pricing/permissions.d.ts +4 -0
- package/dist/src/market-pricing/schema.d.ts +434 -0
- package/dist/src/trade-market/admin/dto.schemas.d.ts +762 -0
- package/dist/src/trade-market/admin/router.d.ts +851 -0
- package/dist/src/trade-market/admin/service.d.ts +158 -0
- package/dist/src/trade-market/db.schemas.d.ts +1338 -0
- package/dist/src/trade-market/errors/index.d.ts +22 -0
- package/dist/src/trade-market/errors/locales/zh.d.ts +21 -0
- package/dist/src/trade-market/index.d.ts +8 -0
- package/dist/src/trade-market/internal/service.d.ts +239 -0
- package/dist/src/trade-market/permissions.d.ts +5 -0
- package/dist/src/trade-market/schema.d.ts +708 -0
- package/dist/src/trade-market/user/dto.schemas.d.ts +1394 -0
- package/dist/src/trade-market/user/router.d.ts +754 -0
- package/dist/src/trade-market/user/service.d.ts +147 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Elysia from "elysia";
|
|
2
2
|
export declare const adminRouter: Elysia<"/admin", {
|
|
3
3
|
decorator: {};
|
|
4
|
-
store:
|
|
4
|
+
store: any;
|
|
5
5
|
derive: {};
|
|
6
6
|
resolve: {};
|
|
7
7
|
}, {
|
|
@@ -3021,7 +3021,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3021
3021
|
assetId: string;
|
|
3022
3022
|
fromAccountId: string | null;
|
|
3023
3023
|
toAccountId: string | null;
|
|
3024
|
-
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit";
|
|
3024
|
+
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
|
|
3025
3025
|
amount: string;
|
|
3026
3026
|
fromAvailableBefore: string | null;
|
|
3027
3027
|
fromAvailableAfter: string | null;
|
|
@@ -3032,7 +3032,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3032
3032
|
toLockedBefore: string | null;
|
|
3033
3033
|
toLockedAfter: string | null;
|
|
3034
3034
|
referenceId: string;
|
|
3035
|
-
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order";
|
|
3035
|
+
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
|
|
3036
3036
|
idempotencyKey: string;
|
|
3037
3037
|
operatorId: string | null;
|
|
3038
3038
|
memo: string | null;
|
|
@@ -3061,6 +3061,538 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3061
3061
|
};
|
|
3062
3062
|
};
|
|
3063
3063
|
};
|
|
3064
|
+
} & {
|
|
3065
|
+
admin: {
|
|
3066
|
+
market_pricing: {};
|
|
3067
|
+
} & {
|
|
3068
|
+
market_pricing: {
|
|
3069
|
+
strategies: {
|
|
3070
|
+
post: {
|
|
3071
|
+
body: {
|
|
3072
|
+
source?: string | undefined;
|
|
3073
|
+
strategyType?: "random_walk" | undefined;
|
|
3074
|
+
driftBps?: string | undefined;
|
|
3075
|
+
minPrice?: string | null | undefined;
|
|
3076
|
+
maxPrice?: string | null | undefined;
|
|
3077
|
+
intervalSeconds?: number | undefined;
|
|
3078
|
+
maxStepBps?: string | undefined;
|
|
3079
|
+
fallbackPrice?: string | undefined;
|
|
3080
|
+
isEnabled?: boolean | undefined;
|
|
3081
|
+
name: string;
|
|
3082
|
+
baseAssetId: string;
|
|
3083
|
+
quoteAssetId: string;
|
|
3084
|
+
};
|
|
3085
|
+
params: {};
|
|
3086
|
+
query: unknown;
|
|
3087
|
+
headers: unknown;
|
|
3088
|
+
response: {
|
|
3089
|
+
200: {
|
|
3090
|
+
id: string;
|
|
3091
|
+
name: string;
|
|
3092
|
+
createdAt: Date;
|
|
3093
|
+
updatedAt: Date;
|
|
3094
|
+
baseAssetId: string;
|
|
3095
|
+
quoteAssetId: string;
|
|
3096
|
+
source: string;
|
|
3097
|
+
strategyType: "random_walk";
|
|
3098
|
+
driftBps: string;
|
|
3099
|
+
minPrice: string | null;
|
|
3100
|
+
maxPrice: string | null;
|
|
3101
|
+
intervalSeconds: number;
|
|
3102
|
+
maxStepBps: string;
|
|
3103
|
+
fallbackPrice: string;
|
|
3104
|
+
isEnabled: boolean;
|
|
3105
|
+
};
|
|
3106
|
+
422: {
|
|
3107
|
+
type: "validation";
|
|
3108
|
+
on: string;
|
|
3109
|
+
summary?: string;
|
|
3110
|
+
message?: string;
|
|
3111
|
+
found?: unknown;
|
|
3112
|
+
property?: string;
|
|
3113
|
+
expected?: string;
|
|
3114
|
+
};
|
|
3115
|
+
401: "Unauthorized";
|
|
3116
|
+
403: "Forbidden: Admins only";
|
|
3117
|
+
};
|
|
3118
|
+
};
|
|
3119
|
+
};
|
|
3120
|
+
};
|
|
3121
|
+
} & {
|
|
3122
|
+
market_pricing: {
|
|
3123
|
+
strategies: {
|
|
3124
|
+
":id": {
|
|
3125
|
+
patch: {
|
|
3126
|
+
body: {
|
|
3127
|
+
name?: string | undefined;
|
|
3128
|
+
baseAssetId?: string | undefined;
|
|
3129
|
+
quoteAssetId?: string | undefined;
|
|
3130
|
+
source?: string | undefined;
|
|
3131
|
+
strategyType?: "random_walk" | undefined;
|
|
3132
|
+
driftBps?: string | undefined;
|
|
3133
|
+
minPrice?: string | null | undefined;
|
|
3134
|
+
maxPrice?: string | null | undefined;
|
|
3135
|
+
intervalSeconds?: number | undefined;
|
|
3136
|
+
maxStepBps?: string | undefined;
|
|
3137
|
+
fallbackPrice?: string | undefined;
|
|
3138
|
+
isEnabled?: boolean | undefined;
|
|
3139
|
+
};
|
|
3140
|
+
params: {
|
|
3141
|
+
id: string;
|
|
3142
|
+
};
|
|
3143
|
+
query: unknown;
|
|
3144
|
+
headers: unknown;
|
|
3145
|
+
response: {
|
|
3146
|
+
200: {
|
|
3147
|
+
createdAt: Date;
|
|
3148
|
+
updatedAt: Date;
|
|
3149
|
+
id: string;
|
|
3150
|
+
name: string;
|
|
3151
|
+
baseAssetId: string;
|
|
3152
|
+
quoteAssetId: string;
|
|
3153
|
+
strategyType: "random_walk";
|
|
3154
|
+
driftBps: string;
|
|
3155
|
+
minPrice: string | null;
|
|
3156
|
+
maxPrice: string | null;
|
|
3157
|
+
source: string;
|
|
3158
|
+
intervalSeconds: number;
|
|
3159
|
+
maxStepBps: string;
|
|
3160
|
+
fallbackPrice: string;
|
|
3161
|
+
isEnabled: boolean;
|
|
3162
|
+
};
|
|
3163
|
+
422: {
|
|
3164
|
+
type: "validation";
|
|
3165
|
+
on: string;
|
|
3166
|
+
summary?: string;
|
|
3167
|
+
message?: string;
|
|
3168
|
+
found?: unknown;
|
|
3169
|
+
property?: string;
|
|
3170
|
+
expected?: string;
|
|
3171
|
+
};
|
|
3172
|
+
401: "Unauthorized";
|
|
3173
|
+
403: "Forbidden: Admins only";
|
|
3174
|
+
};
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3177
|
+
};
|
|
3178
|
+
};
|
|
3179
|
+
} & {
|
|
3180
|
+
market_pricing: {
|
|
3181
|
+
strategies: {
|
|
3182
|
+
":id": {
|
|
3183
|
+
enable: {
|
|
3184
|
+
post: {
|
|
3185
|
+
body: unknown;
|
|
3186
|
+
params: {
|
|
3187
|
+
id: string;
|
|
3188
|
+
};
|
|
3189
|
+
query: unknown;
|
|
3190
|
+
headers: unknown;
|
|
3191
|
+
response: {
|
|
3192
|
+
200: {
|
|
3193
|
+
createdAt: Date;
|
|
3194
|
+
updatedAt: Date;
|
|
3195
|
+
id: string;
|
|
3196
|
+
name: string;
|
|
3197
|
+
baseAssetId: string;
|
|
3198
|
+
quoteAssetId: string;
|
|
3199
|
+
strategyType: "random_walk";
|
|
3200
|
+
driftBps: string;
|
|
3201
|
+
minPrice: string | null;
|
|
3202
|
+
maxPrice: string | null;
|
|
3203
|
+
source: string;
|
|
3204
|
+
intervalSeconds: number;
|
|
3205
|
+
maxStepBps: string;
|
|
3206
|
+
fallbackPrice: string;
|
|
3207
|
+
isEnabled: boolean;
|
|
3208
|
+
};
|
|
3209
|
+
422: {
|
|
3210
|
+
type: "validation";
|
|
3211
|
+
on: string;
|
|
3212
|
+
summary?: string;
|
|
3213
|
+
message?: string;
|
|
3214
|
+
found?: unknown;
|
|
3215
|
+
property?: string;
|
|
3216
|
+
expected?: string;
|
|
3217
|
+
};
|
|
3218
|
+
401: "Unauthorized";
|
|
3219
|
+
403: "Forbidden: Admins only";
|
|
3220
|
+
};
|
|
3221
|
+
};
|
|
3222
|
+
};
|
|
3223
|
+
};
|
|
3224
|
+
};
|
|
3225
|
+
};
|
|
3226
|
+
} & {
|
|
3227
|
+
market_pricing: {
|
|
3228
|
+
strategies: {
|
|
3229
|
+
":id": {
|
|
3230
|
+
disable: {
|
|
3231
|
+
post: {
|
|
3232
|
+
body: unknown;
|
|
3233
|
+
params: {
|
|
3234
|
+
id: string;
|
|
3235
|
+
};
|
|
3236
|
+
query: unknown;
|
|
3237
|
+
headers: unknown;
|
|
3238
|
+
response: {
|
|
3239
|
+
200: {
|
|
3240
|
+
createdAt: Date;
|
|
3241
|
+
updatedAt: Date;
|
|
3242
|
+
id: string;
|
|
3243
|
+
name: string;
|
|
3244
|
+
baseAssetId: string;
|
|
3245
|
+
quoteAssetId: string;
|
|
3246
|
+
strategyType: "random_walk";
|
|
3247
|
+
driftBps: string;
|
|
3248
|
+
minPrice: string | null;
|
|
3249
|
+
maxPrice: string | null;
|
|
3250
|
+
source: string;
|
|
3251
|
+
intervalSeconds: number;
|
|
3252
|
+
maxStepBps: string;
|
|
3253
|
+
fallbackPrice: string;
|
|
3254
|
+
isEnabled: boolean;
|
|
3255
|
+
};
|
|
3256
|
+
422: {
|
|
3257
|
+
type: "validation";
|
|
3258
|
+
on: string;
|
|
3259
|
+
summary?: string;
|
|
3260
|
+
message?: string;
|
|
3261
|
+
found?: unknown;
|
|
3262
|
+
property?: string;
|
|
3263
|
+
expected?: string;
|
|
3264
|
+
};
|
|
3265
|
+
401: "Unauthorized";
|
|
3266
|
+
403: "Forbidden: Admins only";
|
|
3267
|
+
};
|
|
3268
|
+
};
|
|
3269
|
+
};
|
|
3270
|
+
};
|
|
3271
|
+
};
|
|
3272
|
+
};
|
|
3273
|
+
} & {
|
|
3274
|
+
market_pricing: {
|
|
3275
|
+
strategies: {
|
|
3276
|
+
get: {
|
|
3277
|
+
body: unknown;
|
|
3278
|
+
params: {};
|
|
3279
|
+
query: {
|
|
3280
|
+
baseAssetId?: string | undefined;
|
|
3281
|
+
quoteAssetId?: string | undefined;
|
|
3282
|
+
isEnabled?: boolean | undefined;
|
|
3283
|
+
limit?: number | undefined;
|
|
3284
|
+
offset?: number | undefined;
|
|
3285
|
+
pageSize?: number | undefined;
|
|
3286
|
+
pageIndex?: number | undefined;
|
|
3287
|
+
};
|
|
3288
|
+
headers: unknown;
|
|
3289
|
+
response: {
|
|
3290
|
+
200: {
|
|
3291
|
+
data: {
|
|
3292
|
+
id: string;
|
|
3293
|
+
name: string;
|
|
3294
|
+
createdAt: Date;
|
|
3295
|
+
updatedAt: Date;
|
|
3296
|
+
baseAssetId: string;
|
|
3297
|
+
quoteAssetId: string;
|
|
3298
|
+
source: string;
|
|
3299
|
+
strategyType: "random_walk";
|
|
3300
|
+
driftBps: string;
|
|
3301
|
+
minPrice: string | null;
|
|
3302
|
+
maxPrice: string | null;
|
|
3303
|
+
intervalSeconds: number;
|
|
3304
|
+
maxStepBps: string;
|
|
3305
|
+
fallbackPrice: string;
|
|
3306
|
+
isEnabled: boolean;
|
|
3307
|
+
}[];
|
|
3308
|
+
pagination: {
|
|
3309
|
+
total: number;
|
|
3310
|
+
pageSize: number;
|
|
3311
|
+
pageIndex: number;
|
|
3312
|
+
totalPages: number;
|
|
3313
|
+
hasNextPage: boolean;
|
|
3314
|
+
};
|
|
3315
|
+
};
|
|
3316
|
+
422: {
|
|
3317
|
+
type: "validation";
|
|
3318
|
+
on: string;
|
|
3319
|
+
summary?: string;
|
|
3320
|
+
message?: string;
|
|
3321
|
+
found?: unknown;
|
|
3322
|
+
property?: string;
|
|
3323
|
+
expected?: string;
|
|
3324
|
+
};
|
|
3325
|
+
401: "Unauthorized";
|
|
3326
|
+
403: "Forbidden: Admins only";
|
|
3327
|
+
};
|
|
3328
|
+
};
|
|
3329
|
+
};
|
|
3330
|
+
};
|
|
3331
|
+
} & {
|
|
3332
|
+
market_pricing: {
|
|
3333
|
+
strategies: {
|
|
3334
|
+
":id": {
|
|
3335
|
+
get: {
|
|
3336
|
+
body: unknown;
|
|
3337
|
+
params: {
|
|
3338
|
+
id: string;
|
|
3339
|
+
};
|
|
3340
|
+
query: unknown;
|
|
3341
|
+
headers: unknown;
|
|
3342
|
+
response: {
|
|
3343
|
+
200: {
|
|
3344
|
+
id: string;
|
|
3345
|
+
name: string;
|
|
3346
|
+
createdAt: Date;
|
|
3347
|
+
updatedAt: Date;
|
|
3348
|
+
baseAssetId: string;
|
|
3349
|
+
quoteAssetId: string;
|
|
3350
|
+
source: string;
|
|
3351
|
+
strategyType: "random_walk";
|
|
3352
|
+
driftBps: string;
|
|
3353
|
+
minPrice: string | null;
|
|
3354
|
+
maxPrice: string | null;
|
|
3355
|
+
intervalSeconds: number;
|
|
3356
|
+
maxStepBps: string;
|
|
3357
|
+
fallbackPrice: string;
|
|
3358
|
+
isEnabled: boolean;
|
|
3359
|
+
};
|
|
3360
|
+
422: {
|
|
3361
|
+
type: "validation";
|
|
3362
|
+
on: string;
|
|
3363
|
+
summary?: string;
|
|
3364
|
+
message?: string;
|
|
3365
|
+
found?: unknown;
|
|
3366
|
+
property?: string;
|
|
3367
|
+
expected?: string;
|
|
3368
|
+
};
|
|
3369
|
+
401: "Unauthorized";
|
|
3370
|
+
403: "Forbidden: Admins only";
|
|
3371
|
+
};
|
|
3372
|
+
};
|
|
3373
|
+
};
|
|
3374
|
+
};
|
|
3375
|
+
};
|
|
3376
|
+
} & {
|
|
3377
|
+
market_pricing: {
|
|
3378
|
+
strategies: {
|
|
3379
|
+
":id": {
|
|
3380
|
+
"run-now": {
|
|
3381
|
+
post: {
|
|
3382
|
+
body: unknown;
|
|
3383
|
+
params: {
|
|
3384
|
+
id: string;
|
|
3385
|
+
};
|
|
3386
|
+
query: unknown;
|
|
3387
|
+
headers: unknown;
|
|
3388
|
+
response: {
|
|
3389
|
+
200: {
|
|
3390
|
+
price: string;
|
|
3391
|
+
effectiveAt: Date;
|
|
3392
|
+
created: boolean;
|
|
3393
|
+
strategyId: string;
|
|
3394
|
+
};
|
|
3395
|
+
422: {
|
|
3396
|
+
type: "validation";
|
|
3397
|
+
on: string;
|
|
3398
|
+
summary?: string;
|
|
3399
|
+
message?: string;
|
|
3400
|
+
found?: unknown;
|
|
3401
|
+
property?: string;
|
|
3402
|
+
expected?: string;
|
|
3403
|
+
};
|
|
3404
|
+
401: "Unauthorized";
|
|
3405
|
+
403: "Forbidden: Admins only";
|
|
3406
|
+
};
|
|
3407
|
+
};
|
|
3408
|
+
};
|
|
3409
|
+
};
|
|
3410
|
+
};
|
|
3411
|
+
};
|
|
3412
|
+
} & {
|
|
3413
|
+
market_pricing: {
|
|
3414
|
+
jobs: {
|
|
3415
|
+
"run-enabled": {
|
|
3416
|
+
post: {
|
|
3417
|
+
body: unknown;
|
|
3418
|
+
params: {};
|
|
3419
|
+
query: unknown;
|
|
3420
|
+
headers: unknown;
|
|
3421
|
+
response: {
|
|
3422
|
+
200: {
|
|
3423
|
+
successCount: number;
|
|
3424
|
+
failedStrategyIds: string[];
|
|
3425
|
+
};
|
|
3426
|
+
422: {
|
|
3427
|
+
type: "validation";
|
|
3428
|
+
on: string;
|
|
3429
|
+
summary?: string;
|
|
3430
|
+
message?: string;
|
|
3431
|
+
found?: unknown;
|
|
3432
|
+
property?: string;
|
|
3433
|
+
expected?: string;
|
|
3434
|
+
};
|
|
3435
|
+
401: "Unauthorized";
|
|
3436
|
+
403: "Forbidden: Admins only";
|
|
3437
|
+
};
|
|
3438
|
+
};
|
|
3439
|
+
};
|
|
3440
|
+
};
|
|
3441
|
+
};
|
|
3442
|
+
};
|
|
3443
|
+
} & {
|
|
3444
|
+
admin: {
|
|
3445
|
+
market_data: {};
|
|
3446
|
+
} & {
|
|
3447
|
+
market_data: {
|
|
3448
|
+
klines: {
|
|
3449
|
+
"1m": {
|
|
3450
|
+
get: {
|
|
3451
|
+
body: unknown;
|
|
3452
|
+
params: {};
|
|
3453
|
+
query: {
|
|
3454
|
+
source?: string | undefined;
|
|
3455
|
+
startDate?: Date | undefined;
|
|
3456
|
+
limit?: number | undefined;
|
|
3457
|
+
offset?: number | undefined;
|
|
3458
|
+
pageSize?: number | undefined;
|
|
3459
|
+
pageIndex?: number | undefined;
|
|
3460
|
+
endDate?: Date | undefined;
|
|
3461
|
+
baseAsset: string;
|
|
3462
|
+
quoteAsset: string;
|
|
3463
|
+
};
|
|
3464
|
+
headers: unknown;
|
|
3465
|
+
response: {
|
|
3466
|
+
200: {
|
|
3467
|
+
data: {
|
|
3468
|
+
id: string;
|
|
3469
|
+
createdAt: Date;
|
|
3470
|
+
updatedAt: Date;
|
|
3471
|
+
baseAssetId: string;
|
|
3472
|
+
baseAsset: string;
|
|
3473
|
+
quoteAssetId: string;
|
|
3474
|
+
quoteAsset: string;
|
|
3475
|
+
source: string;
|
|
3476
|
+
low: string;
|
|
3477
|
+
high: string;
|
|
3478
|
+
bucketAt: Date;
|
|
3479
|
+
open: string;
|
|
3480
|
+
close: string;
|
|
3481
|
+
tickCount: number;
|
|
3482
|
+
volume: string;
|
|
3483
|
+
}[];
|
|
3484
|
+
pagination: {
|
|
3485
|
+
total: number;
|
|
3486
|
+
pageSize: number;
|
|
3487
|
+
pageIndex: number;
|
|
3488
|
+
totalPages: number;
|
|
3489
|
+
hasNextPage: boolean;
|
|
3490
|
+
};
|
|
3491
|
+
};
|
|
3492
|
+
422: {
|
|
3493
|
+
type: "validation";
|
|
3494
|
+
on: string;
|
|
3495
|
+
summary?: string;
|
|
3496
|
+
message?: string;
|
|
3497
|
+
found?: unknown;
|
|
3498
|
+
property?: string;
|
|
3499
|
+
expected?: string;
|
|
3500
|
+
};
|
|
3501
|
+
401: "Unauthorized";
|
|
3502
|
+
403: "Forbidden: Admins only";
|
|
3503
|
+
};
|
|
3504
|
+
};
|
|
3505
|
+
};
|
|
3506
|
+
};
|
|
3507
|
+
};
|
|
3508
|
+
} & {
|
|
3509
|
+
market_data: {
|
|
3510
|
+
jobs: {
|
|
3511
|
+
aggregate: {
|
|
3512
|
+
"1m": {
|
|
3513
|
+
"run-one": {
|
|
3514
|
+
post: {
|
|
3515
|
+
body: {
|
|
3516
|
+
source?: string | undefined;
|
|
3517
|
+
bucketAt?: Date | undefined;
|
|
3518
|
+
baseAsset: string;
|
|
3519
|
+
quoteAsset: string;
|
|
3520
|
+
};
|
|
3521
|
+
params: {};
|
|
3522
|
+
query: unknown;
|
|
3523
|
+
headers: unknown;
|
|
3524
|
+
response: {
|
|
3525
|
+
200: {
|
|
3526
|
+
id: string;
|
|
3527
|
+
createdAt: Date;
|
|
3528
|
+
updatedAt: Date;
|
|
3529
|
+
baseAssetId: string;
|
|
3530
|
+
baseAsset: string;
|
|
3531
|
+
quoteAssetId: string;
|
|
3532
|
+
quoteAsset: string;
|
|
3533
|
+
source: string;
|
|
3534
|
+
low: string;
|
|
3535
|
+
high: string;
|
|
3536
|
+
bucketAt: Date;
|
|
3537
|
+
open: string;
|
|
3538
|
+
close: string;
|
|
3539
|
+
tickCount: number;
|
|
3540
|
+
volume: string;
|
|
3541
|
+
} | null;
|
|
3542
|
+
422: {
|
|
3543
|
+
type: "validation";
|
|
3544
|
+
on: string;
|
|
3545
|
+
summary?: string;
|
|
3546
|
+
message?: string;
|
|
3547
|
+
found?: unknown;
|
|
3548
|
+
property?: string;
|
|
3549
|
+
expected?: string;
|
|
3550
|
+
};
|
|
3551
|
+
401: "Unauthorized";
|
|
3552
|
+
403: "Forbidden: Admins only";
|
|
3553
|
+
};
|
|
3554
|
+
};
|
|
3555
|
+
};
|
|
3556
|
+
};
|
|
3557
|
+
};
|
|
3558
|
+
};
|
|
3559
|
+
};
|
|
3560
|
+
} & {
|
|
3561
|
+
market_data: {
|
|
3562
|
+
jobs: {
|
|
3563
|
+
aggregate: {
|
|
3564
|
+
"1m": {
|
|
3565
|
+
"run-enabled": {
|
|
3566
|
+
post: {
|
|
3567
|
+
body: unknown;
|
|
3568
|
+
params: {};
|
|
3569
|
+
query: unknown;
|
|
3570
|
+
headers: unknown;
|
|
3571
|
+
response: {
|
|
3572
|
+
200: {
|
|
3573
|
+
bucketAt: Date;
|
|
3574
|
+
successCount: number;
|
|
3575
|
+
failedPairs: string[];
|
|
3576
|
+
};
|
|
3577
|
+
422: {
|
|
3578
|
+
type: "validation";
|
|
3579
|
+
on: string;
|
|
3580
|
+
summary?: string;
|
|
3581
|
+
message?: string;
|
|
3582
|
+
found?: unknown;
|
|
3583
|
+
property?: string;
|
|
3584
|
+
expected?: string;
|
|
3585
|
+
};
|
|
3586
|
+
401: "Unauthorized";
|
|
3587
|
+
403: "Forbidden: Admins only";
|
|
3588
|
+
};
|
|
3589
|
+
};
|
|
3590
|
+
};
|
|
3591
|
+
};
|
|
3592
|
+
};
|
|
3593
|
+
};
|
|
3594
|
+
};
|
|
3595
|
+
};
|
|
3064
3596
|
} & {
|
|
3065
3597
|
admin: {
|
|
3066
3598
|
deposit: {};
|
|
@@ -3596,17 +4128,136 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3596
4128
|
response: {
|
|
3597
4129
|
200: {
|
|
3598
4130
|
data: {
|
|
3599
|
-
type: "bank_card" | "alipay";
|
|
4131
|
+
type: "bank_card" | "alipay";
|
|
4132
|
+
id: string;
|
|
4133
|
+
createdAt: Date;
|
|
4134
|
+
updatedAt: Date;
|
|
4135
|
+
userId: string;
|
|
4136
|
+
bankName: string | null;
|
|
4137
|
+
fullName: string;
|
|
4138
|
+
bankBranchName: string | null;
|
|
4139
|
+
bankCardNumber: string | null;
|
|
4140
|
+
alipayName: string | null;
|
|
4141
|
+
alipayAccount: string | null;
|
|
4142
|
+
}[];
|
|
4143
|
+
pagination: {
|
|
4144
|
+
total: number;
|
|
4145
|
+
pageSize: number;
|
|
4146
|
+
pageIndex: number;
|
|
4147
|
+
totalPages: number;
|
|
4148
|
+
hasNextPage: boolean;
|
|
4149
|
+
};
|
|
4150
|
+
};
|
|
4151
|
+
422: {
|
|
4152
|
+
type: "validation";
|
|
4153
|
+
on: string;
|
|
4154
|
+
summary?: string;
|
|
4155
|
+
message?: string;
|
|
4156
|
+
found?: unknown;
|
|
4157
|
+
property?: string;
|
|
4158
|
+
expected?: string;
|
|
4159
|
+
};
|
|
4160
|
+
401: "Unauthorized";
|
|
4161
|
+
403: "Forbidden: Admins only";
|
|
4162
|
+
};
|
|
4163
|
+
};
|
|
4164
|
+
};
|
|
4165
|
+
} & {
|
|
4166
|
+
receipt_method: {
|
|
4167
|
+
":id": {
|
|
4168
|
+
delete: {
|
|
4169
|
+
body: {};
|
|
4170
|
+
params: {
|
|
4171
|
+
id: string;
|
|
4172
|
+
};
|
|
4173
|
+
query: {};
|
|
4174
|
+
headers: {};
|
|
4175
|
+
response: {
|
|
4176
|
+
200: {
|
|
4177
|
+
success: boolean;
|
|
4178
|
+
};
|
|
4179
|
+
422: {
|
|
4180
|
+
type: "validation";
|
|
4181
|
+
on: string;
|
|
4182
|
+
summary?: string;
|
|
4183
|
+
message?: string;
|
|
4184
|
+
found?: unknown;
|
|
4185
|
+
property?: string;
|
|
4186
|
+
expected?: string;
|
|
4187
|
+
};
|
|
4188
|
+
401: "Unauthorized";
|
|
4189
|
+
403: "Forbidden: Admins only";
|
|
4190
|
+
};
|
|
4191
|
+
};
|
|
4192
|
+
};
|
|
4193
|
+
};
|
|
4194
|
+
} & {
|
|
4195
|
+
receipt_method: {
|
|
4196
|
+
":id": {
|
|
4197
|
+
get: {
|
|
4198
|
+
body: {};
|
|
4199
|
+
params: {
|
|
4200
|
+
id: string;
|
|
4201
|
+
};
|
|
4202
|
+
query: {};
|
|
4203
|
+
headers: {};
|
|
4204
|
+
response: {
|
|
4205
|
+
200: {
|
|
4206
|
+
type: "bank_card" | "alipay";
|
|
4207
|
+
id: string;
|
|
4208
|
+
createdAt: Date;
|
|
4209
|
+
updatedAt: Date;
|
|
4210
|
+
userId: string;
|
|
4211
|
+
bankName: string | null;
|
|
4212
|
+
fullName: string;
|
|
4213
|
+
bankBranchName: string | null;
|
|
4214
|
+
bankCardNumber: string | null;
|
|
4215
|
+
alipayName: string | null;
|
|
4216
|
+
alipayAccount: string | null;
|
|
4217
|
+
};
|
|
4218
|
+
422: {
|
|
4219
|
+
type: "validation";
|
|
4220
|
+
on: string;
|
|
4221
|
+
summary?: string;
|
|
4222
|
+
message?: string;
|
|
4223
|
+
found?: unknown;
|
|
4224
|
+
property?: string;
|
|
4225
|
+
expected?: string;
|
|
4226
|
+
};
|
|
4227
|
+
401: "Unauthorized";
|
|
4228
|
+
403: "Forbidden: Admins only";
|
|
4229
|
+
};
|
|
4230
|
+
};
|
|
4231
|
+
};
|
|
4232
|
+
};
|
|
4233
|
+
};
|
|
4234
|
+
} & {
|
|
4235
|
+
admin: {
|
|
4236
|
+
shipping_address: {};
|
|
4237
|
+
} & {
|
|
4238
|
+
shipping_address: {
|
|
4239
|
+
get: {
|
|
4240
|
+
body: {};
|
|
4241
|
+
params: {};
|
|
4242
|
+
query: {
|
|
4243
|
+
userId?: string | undefined;
|
|
4244
|
+
limit?: number | undefined;
|
|
4245
|
+
offset?: number | undefined;
|
|
4246
|
+
pageSize?: number | undefined;
|
|
4247
|
+
pageIndex?: number | undefined;
|
|
4248
|
+
};
|
|
4249
|
+
headers: {};
|
|
4250
|
+
response: {
|
|
4251
|
+
200: {
|
|
4252
|
+
data: {
|
|
3600
4253
|
id: string;
|
|
3601
4254
|
createdAt: Date;
|
|
3602
4255
|
updatedAt: Date;
|
|
4256
|
+
phoneNumber: string;
|
|
3603
4257
|
userId: string;
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
bankCardNumber: string | null;
|
|
3608
|
-
alipayName: string | null;
|
|
3609
|
-
alipayAccount: string | null;
|
|
4258
|
+
isDefault: boolean;
|
|
4259
|
+
recipientName: string;
|
|
4260
|
+
detailAddress: string;
|
|
3610
4261
|
}[];
|
|
3611
4262
|
pagination: {
|
|
3612
4263
|
total: number;
|
|
@@ -3630,19 +4281,34 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3630
4281
|
};
|
|
3631
4282
|
};
|
|
3632
4283
|
};
|
|
4284
|
+
};
|
|
4285
|
+
} & {
|
|
4286
|
+
admin: {
|
|
4287
|
+
referrals: {};
|
|
3633
4288
|
} & {
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
body:
|
|
3638
|
-
params: {
|
|
3639
|
-
|
|
4289
|
+
referrals: {
|
|
4290
|
+
summary: {
|
|
4291
|
+
get: {
|
|
4292
|
+
body: unknown;
|
|
4293
|
+
params: {};
|
|
4294
|
+
query: {
|
|
4295
|
+
limit?: number | undefined;
|
|
4296
|
+
offset?: number | undefined;
|
|
4297
|
+
pageSize?: number | undefined;
|
|
4298
|
+
pageIndex?: number | undefined;
|
|
4299
|
+
maxDepth?: number | undefined;
|
|
4300
|
+
referralCode: string;
|
|
3640
4301
|
};
|
|
3641
|
-
|
|
3642
|
-
headers: {};
|
|
4302
|
+
headers: unknown;
|
|
3643
4303
|
response: {
|
|
3644
4304
|
200: {
|
|
3645
|
-
|
|
4305
|
+
referredBy?: string | undefined;
|
|
4306
|
+
userId: string;
|
|
4307
|
+
referralCode: string;
|
|
4308
|
+
totalCount: number;
|
|
4309
|
+
level1Count: number;
|
|
4310
|
+
level2Count: number;
|
|
4311
|
+
level3Count: number;
|
|
3646
4312
|
};
|
|
3647
4313
|
422: {
|
|
3648
4314
|
type: "validation";
|
|
@@ -3660,28 +4326,137 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3660
4326
|
};
|
|
3661
4327
|
};
|
|
3662
4328
|
} & {
|
|
3663
|
-
|
|
3664
|
-
|
|
4329
|
+
referrals: {
|
|
4330
|
+
members: {
|
|
3665
4331
|
get: {
|
|
3666
|
-
body:
|
|
3667
|
-
params: {
|
|
3668
|
-
|
|
4332
|
+
body: unknown;
|
|
4333
|
+
params: {};
|
|
4334
|
+
query: {
|
|
4335
|
+
limit?: number | undefined;
|
|
4336
|
+
offset?: number | undefined;
|
|
4337
|
+
pageSize?: number | undefined;
|
|
4338
|
+
pageIndex?: number | undefined;
|
|
4339
|
+
maxDepth?: number | undefined;
|
|
4340
|
+
referralCode: string;
|
|
3669
4341
|
};
|
|
3670
|
-
|
|
3671
|
-
|
|
4342
|
+
headers: unknown;
|
|
4343
|
+
response: {
|
|
4344
|
+
200: {
|
|
4345
|
+
data: {
|
|
4346
|
+
user: {
|
|
4347
|
+
email: string;
|
|
4348
|
+
id: string;
|
|
4349
|
+
name: string;
|
|
4350
|
+
emailVerified: boolean;
|
|
4351
|
+
image: string | null;
|
|
4352
|
+
createdAt: Date;
|
|
4353
|
+
updatedAt: Date;
|
|
4354
|
+
twoFactorEnabled: boolean | null;
|
|
4355
|
+
username: string | null;
|
|
4356
|
+
displayUsername: string | null;
|
|
4357
|
+
isAnonymous: boolean | null;
|
|
4358
|
+
phoneNumber: string | null;
|
|
4359
|
+
phoneNumberVerified: boolean | null;
|
|
4360
|
+
role: string | null;
|
|
4361
|
+
banned: boolean | null;
|
|
4362
|
+
banReason: string | null;
|
|
4363
|
+
banExpires: Date | null;
|
|
4364
|
+
};
|
|
4365
|
+
depth: number;
|
|
4366
|
+
}[];
|
|
4367
|
+
pagination: {
|
|
4368
|
+
total: number;
|
|
4369
|
+
pageSize: number;
|
|
4370
|
+
pageIndex: number;
|
|
4371
|
+
totalPages: number;
|
|
4372
|
+
hasNextPage: boolean;
|
|
4373
|
+
};
|
|
4374
|
+
};
|
|
4375
|
+
422: {
|
|
4376
|
+
type: "validation";
|
|
4377
|
+
on: string;
|
|
4378
|
+
summary?: string;
|
|
4379
|
+
message?: string;
|
|
4380
|
+
found?: unknown;
|
|
4381
|
+
property?: string;
|
|
4382
|
+
expected?: string;
|
|
4383
|
+
};
|
|
4384
|
+
401: "Unauthorized";
|
|
4385
|
+
403: "Forbidden: Admins only";
|
|
4386
|
+
};
|
|
4387
|
+
};
|
|
4388
|
+
};
|
|
4389
|
+
};
|
|
4390
|
+
};
|
|
4391
|
+
} & {
|
|
4392
|
+
admin: {
|
|
4393
|
+
referrals: {
|
|
4394
|
+
"depth-configs": {};
|
|
4395
|
+
};
|
|
4396
|
+
} & {
|
|
4397
|
+
referrals: {
|
|
4398
|
+
"depth-configs": {
|
|
4399
|
+
post: {
|
|
4400
|
+
body: {
|
|
4401
|
+
depth: number;
|
|
4402
|
+
commissionRate: string;
|
|
4403
|
+
};
|
|
4404
|
+
params: {};
|
|
4405
|
+
query: unknown;
|
|
4406
|
+
headers: unknown;
|
|
3672
4407
|
response: {
|
|
3673
4408
|
200: {
|
|
3674
|
-
type: "bank_card" | "alipay";
|
|
3675
4409
|
id: string;
|
|
3676
4410
|
createdAt: Date;
|
|
3677
4411
|
updatedAt: Date;
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
4412
|
+
depth: number;
|
|
4413
|
+
commissionRate: string;
|
|
4414
|
+
};
|
|
4415
|
+
422: {
|
|
4416
|
+
type: "validation";
|
|
4417
|
+
on: string;
|
|
4418
|
+
summary?: string;
|
|
4419
|
+
message?: string;
|
|
4420
|
+
found?: unknown;
|
|
4421
|
+
property?: string;
|
|
4422
|
+
expected?: string;
|
|
4423
|
+
};
|
|
4424
|
+
401: "Unauthorized";
|
|
4425
|
+
403: "Forbidden: Admins only";
|
|
4426
|
+
};
|
|
4427
|
+
};
|
|
4428
|
+
};
|
|
4429
|
+
};
|
|
4430
|
+
} & {
|
|
4431
|
+
referrals: {
|
|
4432
|
+
"depth-configs": {
|
|
4433
|
+
get: {
|
|
4434
|
+
body: unknown;
|
|
4435
|
+
params: {};
|
|
4436
|
+
query: {
|
|
4437
|
+
depth?: number | undefined;
|
|
4438
|
+
limit?: number | undefined;
|
|
4439
|
+
offset?: number | undefined;
|
|
4440
|
+
pageSize?: number | undefined;
|
|
4441
|
+
pageIndex?: number | undefined;
|
|
4442
|
+
};
|
|
4443
|
+
headers: unknown;
|
|
4444
|
+
response: {
|
|
4445
|
+
200: {
|
|
4446
|
+
data: {
|
|
4447
|
+
id: string;
|
|
4448
|
+
createdAt: Date;
|
|
4449
|
+
updatedAt: Date;
|
|
4450
|
+
depth: number;
|
|
4451
|
+
commissionRate: string;
|
|
4452
|
+
}[];
|
|
4453
|
+
pagination: {
|
|
4454
|
+
total: number;
|
|
4455
|
+
pageSize: number;
|
|
4456
|
+
pageIndex: number;
|
|
4457
|
+
totalPages: number;
|
|
4458
|
+
hasNextPage: boolean;
|
|
4459
|
+
};
|
|
3685
4460
|
};
|
|
3686
4461
|
422: {
|
|
3687
4462
|
type: "validation";
|
|
@@ -3692,85 +4467,132 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3692
4467
|
property?: string;
|
|
3693
4468
|
expected?: string;
|
|
3694
4469
|
};
|
|
3695
|
-
401: "Unauthorized";
|
|
3696
|
-
403: "Forbidden: Admins only";
|
|
4470
|
+
401: "Unauthorized";
|
|
4471
|
+
403: "Forbidden: Admins only";
|
|
4472
|
+
};
|
|
4473
|
+
};
|
|
4474
|
+
};
|
|
4475
|
+
};
|
|
4476
|
+
} & {
|
|
4477
|
+
referrals: {
|
|
4478
|
+
"depth-configs": {
|
|
4479
|
+
":id": {
|
|
4480
|
+
get: {
|
|
4481
|
+
body: unknown;
|
|
4482
|
+
params: {
|
|
4483
|
+
id: string;
|
|
4484
|
+
};
|
|
4485
|
+
query: unknown;
|
|
4486
|
+
headers: unknown;
|
|
4487
|
+
response: {
|
|
4488
|
+
200: {
|
|
4489
|
+
id: string;
|
|
4490
|
+
createdAt: Date;
|
|
4491
|
+
updatedAt: Date;
|
|
4492
|
+
depth: number;
|
|
4493
|
+
commissionRate: string;
|
|
4494
|
+
};
|
|
4495
|
+
422: {
|
|
4496
|
+
type: "validation";
|
|
4497
|
+
on: string;
|
|
4498
|
+
summary?: string;
|
|
4499
|
+
message?: string;
|
|
4500
|
+
found?: unknown;
|
|
4501
|
+
property?: string;
|
|
4502
|
+
expected?: string;
|
|
4503
|
+
};
|
|
4504
|
+
401: "Unauthorized";
|
|
4505
|
+
403: "Forbidden: Admins only";
|
|
4506
|
+
};
|
|
4507
|
+
};
|
|
4508
|
+
};
|
|
4509
|
+
};
|
|
4510
|
+
};
|
|
4511
|
+
} & {
|
|
4512
|
+
referrals: {
|
|
4513
|
+
"depth-configs": {
|
|
4514
|
+
":id": {
|
|
4515
|
+
patch: {
|
|
4516
|
+
body: {
|
|
4517
|
+
depth?: number | undefined;
|
|
4518
|
+
commissionRate?: string | undefined;
|
|
4519
|
+
};
|
|
4520
|
+
params: {
|
|
4521
|
+
id: string;
|
|
4522
|
+
};
|
|
4523
|
+
query: unknown;
|
|
4524
|
+
headers: unknown;
|
|
4525
|
+
response: {
|
|
4526
|
+
200: {
|
|
4527
|
+
id: string;
|
|
4528
|
+
createdAt: Date;
|
|
4529
|
+
updatedAt: Date;
|
|
4530
|
+
depth: number;
|
|
4531
|
+
commissionRate: string;
|
|
4532
|
+
};
|
|
4533
|
+
422: {
|
|
4534
|
+
type: "validation";
|
|
4535
|
+
on: string;
|
|
4536
|
+
summary?: string;
|
|
4537
|
+
message?: string;
|
|
4538
|
+
found?: unknown;
|
|
4539
|
+
property?: string;
|
|
4540
|
+
expected?: string;
|
|
4541
|
+
};
|
|
4542
|
+
401: "Unauthorized";
|
|
4543
|
+
403: "Forbidden: Admins only";
|
|
4544
|
+
};
|
|
3697
4545
|
};
|
|
3698
4546
|
};
|
|
3699
4547
|
};
|
|
3700
4548
|
};
|
|
3701
|
-
};
|
|
3702
|
-
} & {
|
|
3703
|
-
admin: {
|
|
3704
|
-
shipping_address: {};
|
|
3705
4549
|
} & {
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
limit?: number | undefined;
|
|
3713
|
-
offset?: number | undefined;
|
|
3714
|
-
pageSize?: number | undefined;
|
|
3715
|
-
pageIndex?: number | undefined;
|
|
3716
|
-
};
|
|
3717
|
-
headers: {};
|
|
3718
|
-
response: {
|
|
3719
|
-
200: {
|
|
3720
|
-
data: {
|
|
4550
|
+
referrals: {
|
|
4551
|
+
"depth-configs": {
|
|
4552
|
+
":id": {
|
|
4553
|
+
delete: {
|
|
4554
|
+
body: unknown;
|
|
4555
|
+
params: {
|
|
3721
4556
|
id: string;
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
4557
|
+
};
|
|
4558
|
+
query: unknown;
|
|
4559
|
+
headers: unknown;
|
|
4560
|
+
response: {
|
|
4561
|
+
200: {
|
|
4562
|
+
success: boolean;
|
|
4563
|
+
};
|
|
4564
|
+
422: {
|
|
4565
|
+
type: "validation";
|
|
4566
|
+
on: string;
|
|
4567
|
+
summary?: string;
|
|
4568
|
+
message?: string;
|
|
4569
|
+
found?: unknown;
|
|
4570
|
+
property?: string;
|
|
4571
|
+
expected?: string;
|
|
4572
|
+
};
|
|
4573
|
+
401: "Unauthorized";
|
|
4574
|
+
403: "Forbidden: Admins only";
|
|
3736
4575
|
};
|
|
3737
4576
|
};
|
|
3738
|
-
422: {
|
|
3739
|
-
type: "validation";
|
|
3740
|
-
on: string;
|
|
3741
|
-
summary?: string;
|
|
3742
|
-
message?: string;
|
|
3743
|
-
found?: unknown;
|
|
3744
|
-
property?: string;
|
|
3745
|
-
expected?: string;
|
|
3746
|
-
};
|
|
3747
|
-
401: "Unauthorized";
|
|
3748
|
-
403: "Forbidden: Admins only";
|
|
3749
4577
|
};
|
|
3750
4578
|
};
|
|
3751
4579
|
};
|
|
3752
4580
|
};
|
|
3753
4581
|
} & {
|
|
3754
4582
|
admin: {
|
|
3755
|
-
|
|
4583
|
+
team: {};
|
|
3756
4584
|
} & {
|
|
3757
|
-
|
|
4585
|
+
team: {
|
|
3758
4586
|
summary: {
|
|
3759
4587
|
get: {
|
|
3760
4588
|
body: unknown;
|
|
3761
4589
|
params: {};
|
|
3762
4590
|
query: {
|
|
3763
|
-
limit?: number | undefined;
|
|
3764
|
-
offset?: number | undefined;
|
|
3765
|
-
pageSize?: number | undefined;
|
|
3766
|
-
pageIndex?: number | undefined;
|
|
3767
|
-
maxDepth?: number | undefined;
|
|
3768
4591
|
referralCode: string;
|
|
3769
4592
|
};
|
|
3770
4593
|
headers: unknown;
|
|
3771
4594
|
response: {
|
|
3772
4595
|
200: {
|
|
3773
|
-
referredBy?: string | undefined;
|
|
3774
4596
|
userId: string;
|
|
3775
4597
|
referralCode: string;
|
|
3776
4598
|
totalCount: number;
|
|
@@ -3794,24 +4616,30 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3794
4616
|
};
|
|
3795
4617
|
};
|
|
3796
4618
|
} & {
|
|
3797
|
-
|
|
4619
|
+
team: {
|
|
3798
4620
|
members: {
|
|
3799
4621
|
get: {
|
|
3800
4622
|
body: unknown;
|
|
3801
4623
|
params: {};
|
|
3802
4624
|
query: {
|
|
4625
|
+
depth?: number | undefined;
|
|
3803
4626
|
limit?: number | undefined;
|
|
3804
4627
|
offset?: number | undefined;
|
|
3805
4628
|
pageSize?: number | undefined;
|
|
3806
4629
|
pageIndex?: number | undefined;
|
|
3807
|
-
maxDepth?: number | undefined;
|
|
3808
4630
|
referralCode: string;
|
|
3809
4631
|
};
|
|
3810
4632
|
headers: unknown;
|
|
3811
4633
|
response: {
|
|
3812
4634
|
200: {
|
|
3813
4635
|
data: {
|
|
3814
|
-
|
|
4636
|
+
id: string;
|
|
4637
|
+
createdAt: Date;
|
|
4638
|
+
updatedAt: Date;
|
|
4639
|
+
depth: number;
|
|
4640
|
+
ancestorId: string;
|
|
4641
|
+
descendantId: string;
|
|
4642
|
+
descendant: {
|
|
3815
4643
|
email: string;
|
|
3816
4644
|
id: string;
|
|
3817
4645
|
name: string;
|
|
@@ -3830,7 +4658,14 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3830
4658
|
banReason: string | null;
|
|
3831
4659
|
banExpires: Date | null;
|
|
3832
4660
|
};
|
|
3833
|
-
|
|
4661
|
+
depthConfig: {
|
|
4662
|
+
id: string;
|
|
4663
|
+
createdAt: Date;
|
|
4664
|
+
updatedAt: Date;
|
|
4665
|
+
depth: number;
|
|
4666
|
+
commissionRate: string;
|
|
4667
|
+
} | null;
|
|
4668
|
+
directCount: number;
|
|
3834
4669
|
}[];
|
|
3835
4670
|
pagination: {
|
|
3836
4671
|
total: number;
|
|
@@ -3858,73 +4693,102 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3858
4693
|
};
|
|
3859
4694
|
} & {
|
|
3860
4695
|
admin: {
|
|
3861
|
-
|
|
3862
|
-
"depth-configs": {};
|
|
3863
|
-
};
|
|
4696
|
+
transfer: {};
|
|
3864
4697
|
} & {
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
4698
|
+
transfer: {
|
|
4699
|
+
get: {
|
|
4700
|
+
body: unknown;
|
|
4701
|
+
params: {};
|
|
4702
|
+
query: {
|
|
4703
|
+
limit?: number | undefined;
|
|
4704
|
+
offset?: number | undefined;
|
|
4705
|
+
pageSize?: number | undefined;
|
|
4706
|
+
pageIndex?: number | undefined;
|
|
4707
|
+
};
|
|
4708
|
+
headers: unknown;
|
|
4709
|
+
response: {
|
|
4710
|
+
200: {
|
|
4711
|
+
data: {
|
|
3877
4712
|
id: string;
|
|
3878
4713
|
createdAt: Date;
|
|
3879
4714
|
updatedAt: Date;
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
4715
|
+
assetId: string | null;
|
|
4716
|
+
amount: string;
|
|
4717
|
+
idempotencyKey: string;
|
|
4718
|
+
orderNo: string;
|
|
4719
|
+
targetAccountId: string | null;
|
|
4720
|
+
sourceAccountId: string | null;
|
|
4721
|
+
sourceUserId: string;
|
|
4722
|
+
targetUserId: string;
|
|
4723
|
+
}[];
|
|
4724
|
+
pagination: {
|
|
4725
|
+
total: number;
|
|
4726
|
+
pageSize: number;
|
|
4727
|
+
pageIndex: number;
|
|
4728
|
+
totalPages: number;
|
|
4729
|
+
hasNextPage: boolean;
|
|
3891
4730
|
};
|
|
3892
|
-
401: "Unauthorized";
|
|
3893
|
-
403: "Forbidden: Admins only";
|
|
3894
4731
|
};
|
|
4732
|
+
422: {
|
|
4733
|
+
type: "validation";
|
|
4734
|
+
on: string;
|
|
4735
|
+
summary?: string;
|
|
4736
|
+
message?: string;
|
|
4737
|
+
found?: unknown;
|
|
4738
|
+
property?: string;
|
|
4739
|
+
expected?: string;
|
|
4740
|
+
};
|
|
4741
|
+
401: "Unauthorized";
|
|
4742
|
+
403: "Forbidden: Admins only";
|
|
3895
4743
|
};
|
|
3896
4744
|
};
|
|
3897
4745
|
};
|
|
4746
|
+
};
|
|
4747
|
+
} & {
|
|
4748
|
+
admin: {
|
|
4749
|
+
trade_market: {};
|
|
3898
4750
|
} & {
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
body:
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
4751
|
+
trade_market: {
|
|
4752
|
+
markets: {
|
|
4753
|
+
post: {
|
|
4754
|
+
body: {
|
|
4755
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
4756
|
+
pricingSource?: string | undefined;
|
|
4757
|
+
isBuyEnabled?: boolean | undefined;
|
|
4758
|
+
isSellEnabled?: boolean | undefined;
|
|
4759
|
+
maxBaseAmount?: string | null | undefined;
|
|
4760
|
+
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
4761
|
+
dailyUserSellBaseLimit?: string | null | undefined;
|
|
4762
|
+
maxSlippageBps?: string | undefined;
|
|
4763
|
+
name: string;
|
|
4764
|
+
baseAssetId: string;
|
|
4765
|
+
quoteAssetId: string;
|
|
4766
|
+
systemBaseAccountId: string;
|
|
4767
|
+
systemQuoteAccountId: string;
|
|
4768
|
+
minBaseAmount: string;
|
|
3910
4769
|
};
|
|
4770
|
+
params: {};
|
|
4771
|
+
query: unknown;
|
|
3911
4772
|
headers: unknown;
|
|
3912
4773
|
response: {
|
|
3913
4774
|
200: {
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
4775
|
+
id: string;
|
|
4776
|
+
name: string;
|
|
4777
|
+
createdAt: Date;
|
|
4778
|
+
updatedAt: Date;
|
|
4779
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4780
|
+
baseAssetId: string;
|
|
4781
|
+
quoteAssetId: string;
|
|
4782
|
+
pricingSource: string;
|
|
4783
|
+
systemBaseAccountId: string;
|
|
4784
|
+
systemQuoteAccountId: string;
|
|
4785
|
+
isBuyEnabled: boolean;
|
|
4786
|
+
isSellEnabled: boolean;
|
|
4787
|
+
minBaseAmount: string;
|
|
4788
|
+
maxBaseAmount: string | null;
|
|
4789
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4790
|
+
dailyUserSellBaseLimit: string | null;
|
|
4791
|
+
maxSlippageBps: string;
|
|
3928
4792
|
};
|
|
3929
4793
|
422: {
|
|
3930
4794
|
type: "validation";
|
|
@@ -3942,48 +4806,25 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3942
4806
|
};
|
|
3943
4807
|
};
|
|
3944
4808
|
} & {
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
":id": {
|
|
3948
|
-
get: {
|
|
3949
|
-
body: unknown;
|
|
3950
|
-
params: {
|
|
3951
|
-
id: string;
|
|
3952
|
-
};
|
|
3953
|
-
query: unknown;
|
|
3954
|
-
headers: unknown;
|
|
3955
|
-
response: {
|
|
3956
|
-
200: {
|
|
3957
|
-
id: string;
|
|
3958
|
-
createdAt: Date;
|
|
3959
|
-
updatedAt: Date;
|
|
3960
|
-
depth: number;
|
|
3961
|
-
commissionRate: string;
|
|
3962
|
-
};
|
|
3963
|
-
422: {
|
|
3964
|
-
type: "validation";
|
|
3965
|
-
on: string;
|
|
3966
|
-
summary?: string;
|
|
3967
|
-
message?: string;
|
|
3968
|
-
found?: unknown;
|
|
3969
|
-
property?: string;
|
|
3970
|
-
expected?: string;
|
|
3971
|
-
};
|
|
3972
|
-
401: "Unauthorized";
|
|
3973
|
-
403: "Forbidden: Admins only";
|
|
3974
|
-
};
|
|
3975
|
-
};
|
|
3976
|
-
};
|
|
3977
|
-
};
|
|
3978
|
-
};
|
|
3979
|
-
} & {
|
|
3980
|
-
referrals: {
|
|
3981
|
-
"depth-configs": {
|
|
4809
|
+
trade_market: {
|
|
4810
|
+
markets: {
|
|
3982
4811
|
":id": {
|
|
3983
4812
|
patch: {
|
|
3984
4813
|
body: {
|
|
3985
|
-
|
|
3986
|
-
|
|
4814
|
+
name?: string | undefined;
|
|
4815
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
4816
|
+
baseAssetId?: string | undefined;
|
|
4817
|
+
quoteAssetId?: string | undefined;
|
|
4818
|
+
pricingSource?: string | undefined;
|
|
4819
|
+
systemBaseAccountId?: string | undefined;
|
|
4820
|
+
systemQuoteAccountId?: string | undefined;
|
|
4821
|
+
isBuyEnabled?: boolean | undefined;
|
|
4822
|
+
isSellEnabled?: boolean | undefined;
|
|
4823
|
+
minBaseAmount?: string | undefined;
|
|
4824
|
+
maxBaseAmount?: string | null | undefined;
|
|
4825
|
+
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
4826
|
+
dailyUserSellBaseLimit?: string | null | undefined;
|
|
4827
|
+
maxSlippageBps?: string | undefined;
|
|
3987
4828
|
};
|
|
3988
4829
|
params: {
|
|
3989
4830
|
id: string;
|
|
@@ -3993,10 +4834,22 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3993
4834
|
response: {
|
|
3994
4835
|
200: {
|
|
3995
4836
|
id: string;
|
|
4837
|
+
name: string;
|
|
3996
4838
|
createdAt: Date;
|
|
3997
4839
|
updatedAt: Date;
|
|
3998
|
-
|
|
3999
|
-
|
|
4840
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4841
|
+
baseAssetId: string;
|
|
4842
|
+
quoteAssetId: string;
|
|
4843
|
+
pricingSource: string;
|
|
4844
|
+
systemBaseAccountId: string;
|
|
4845
|
+
systemQuoteAccountId: string;
|
|
4846
|
+
isBuyEnabled: boolean;
|
|
4847
|
+
isSellEnabled: boolean;
|
|
4848
|
+
minBaseAmount: string;
|
|
4849
|
+
maxBaseAmount: string | null;
|
|
4850
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4851
|
+
dailyUserSellBaseLimit: string | null;
|
|
4852
|
+
maxSlippageBps: string;
|
|
4000
4853
|
};
|
|
4001
4854
|
422: {
|
|
4002
4855
|
type: "validation";
|
|
@@ -4015,58 +4868,194 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4015
4868
|
};
|
|
4016
4869
|
};
|
|
4017
4870
|
} & {
|
|
4018
|
-
|
|
4019
|
-
|
|
4871
|
+
trade_market: {
|
|
4872
|
+
markets: {
|
|
4020
4873
|
":id": {
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4874
|
+
activate: {
|
|
4875
|
+
post: {
|
|
4876
|
+
body: unknown;
|
|
4877
|
+
params: {
|
|
4878
|
+
id: string;
|
|
4879
|
+
};
|
|
4880
|
+
query: unknown;
|
|
4881
|
+
headers: unknown;
|
|
4882
|
+
response: {
|
|
4883
|
+
200: {
|
|
4884
|
+
createdAt: Date;
|
|
4885
|
+
updatedAt: Date;
|
|
4886
|
+
id: string;
|
|
4887
|
+
name: string;
|
|
4888
|
+
baseAssetId: string;
|
|
4889
|
+
quoteAssetId: string;
|
|
4890
|
+
pricingSource: string;
|
|
4891
|
+
systemBaseAccountId: string;
|
|
4892
|
+
systemQuoteAccountId: string;
|
|
4893
|
+
isBuyEnabled: boolean;
|
|
4894
|
+
isSellEnabled: boolean;
|
|
4895
|
+
minBaseAmount: string;
|
|
4896
|
+
maxBaseAmount: string | null;
|
|
4897
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4898
|
+
dailyUserSellBaseLimit: string | null;
|
|
4899
|
+
maxSlippageBps: string;
|
|
4900
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4901
|
+
};
|
|
4902
|
+
422: {
|
|
4903
|
+
type: "validation";
|
|
4904
|
+
on: string;
|
|
4905
|
+
summary?: string;
|
|
4906
|
+
message?: string;
|
|
4907
|
+
found?: unknown;
|
|
4908
|
+
property?: string;
|
|
4909
|
+
expected?: string;
|
|
4910
|
+
};
|
|
4911
|
+
401: "Unauthorized";
|
|
4912
|
+
403: "Forbidden: Admins only";
|
|
4913
|
+
};
|
|
4025
4914
|
};
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4915
|
+
};
|
|
4916
|
+
};
|
|
4917
|
+
};
|
|
4918
|
+
};
|
|
4919
|
+
} & {
|
|
4920
|
+
trade_market: {
|
|
4921
|
+
markets: {
|
|
4922
|
+
":id": {
|
|
4923
|
+
pause: {
|
|
4924
|
+
post: {
|
|
4925
|
+
body: unknown;
|
|
4926
|
+
params: {
|
|
4927
|
+
id: string;
|
|
4031
4928
|
};
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4929
|
+
query: unknown;
|
|
4930
|
+
headers: unknown;
|
|
4931
|
+
response: {
|
|
4932
|
+
200: {
|
|
4933
|
+
createdAt: Date;
|
|
4934
|
+
updatedAt: Date;
|
|
4935
|
+
id: string;
|
|
4936
|
+
name: string;
|
|
4937
|
+
baseAssetId: string;
|
|
4938
|
+
quoteAssetId: string;
|
|
4939
|
+
pricingSource: string;
|
|
4940
|
+
systemBaseAccountId: string;
|
|
4941
|
+
systemQuoteAccountId: string;
|
|
4942
|
+
isBuyEnabled: boolean;
|
|
4943
|
+
isSellEnabled: boolean;
|
|
4944
|
+
minBaseAmount: string;
|
|
4945
|
+
maxBaseAmount: string | null;
|
|
4946
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4947
|
+
dailyUserSellBaseLimit: string | null;
|
|
4948
|
+
maxSlippageBps: string;
|
|
4949
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4950
|
+
};
|
|
4951
|
+
422: {
|
|
4952
|
+
type: "validation";
|
|
4953
|
+
on: string;
|
|
4954
|
+
summary?: string;
|
|
4955
|
+
message?: string;
|
|
4956
|
+
found?: unknown;
|
|
4957
|
+
property?: string;
|
|
4958
|
+
expected?: string;
|
|
4959
|
+
};
|
|
4960
|
+
401: "Unauthorized";
|
|
4961
|
+
403: "Forbidden: Admins only";
|
|
4040
4962
|
};
|
|
4041
|
-
401: "Unauthorized";
|
|
4042
|
-
403: "Forbidden: Admins only";
|
|
4043
4963
|
};
|
|
4044
4964
|
};
|
|
4045
4965
|
};
|
|
4046
4966
|
};
|
|
4047
4967
|
};
|
|
4048
|
-
};
|
|
4049
|
-
} & {
|
|
4050
|
-
admin: {
|
|
4051
|
-
team: {};
|
|
4052
4968
|
} & {
|
|
4053
|
-
|
|
4054
|
-
|
|
4969
|
+
trade_market: {
|
|
4970
|
+
markets: {
|
|
4971
|
+
":id": {
|
|
4972
|
+
end: {
|
|
4973
|
+
post: {
|
|
4974
|
+
body: unknown;
|
|
4975
|
+
params: {
|
|
4976
|
+
id: string;
|
|
4977
|
+
};
|
|
4978
|
+
query: unknown;
|
|
4979
|
+
headers: unknown;
|
|
4980
|
+
response: {
|
|
4981
|
+
200: {
|
|
4982
|
+
createdAt: Date;
|
|
4983
|
+
updatedAt: Date;
|
|
4984
|
+
id: string;
|
|
4985
|
+
name: string;
|
|
4986
|
+
baseAssetId: string;
|
|
4987
|
+
quoteAssetId: string;
|
|
4988
|
+
pricingSource: string;
|
|
4989
|
+
systemBaseAccountId: string;
|
|
4990
|
+
systemQuoteAccountId: string;
|
|
4991
|
+
isBuyEnabled: boolean;
|
|
4992
|
+
isSellEnabled: boolean;
|
|
4993
|
+
minBaseAmount: string;
|
|
4994
|
+
maxBaseAmount: string | null;
|
|
4995
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4996
|
+
dailyUserSellBaseLimit: string | null;
|
|
4997
|
+
maxSlippageBps: string;
|
|
4998
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4999
|
+
};
|
|
5000
|
+
422: {
|
|
5001
|
+
type: "validation";
|
|
5002
|
+
on: string;
|
|
5003
|
+
summary?: string;
|
|
5004
|
+
message?: string;
|
|
5005
|
+
found?: unknown;
|
|
5006
|
+
property?: string;
|
|
5007
|
+
expected?: string;
|
|
5008
|
+
};
|
|
5009
|
+
401: "Unauthorized";
|
|
5010
|
+
403: "Forbidden: Admins only";
|
|
5011
|
+
};
|
|
5012
|
+
};
|
|
5013
|
+
};
|
|
5014
|
+
};
|
|
5015
|
+
};
|
|
5016
|
+
};
|
|
5017
|
+
} & {
|
|
5018
|
+
trade_market: {
|
|
5019
|
+
markets: {
|
|
4055
5020
|
get: {
|
|
4056
5021
|
body: unknown;
|
|
4057
5022
|
params: {};
|
|
4058
5023
|
query: {
|
|
4059
|
-
|
|
5024
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
5025
|
+
limit?: number | undefined;
|
|
5026
|
+
offset?: number | undefined;
|
|
5027
|
+
pageSize?: number | undefined;
|
|
5028
|
+
pageIndex?: number | undefined;
|
|
4060
5029
|
};
|
|
4061
5030
|
headers: unknown;
|
|
4062
5031
|
response: {
|
|
4063
5032
|
200: {
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
5033
|
+
data: {
|
|
5034
|
+
id: string;
|
|
5035
|
+
name: string;
|
|
5036
|
+
createdAt: Date;
|
|
5037
|
+
updatedAt: Date;
|
|
5038
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5039
|
+
baseAssetId: string;
|
|
5040
|
+
quoteAssetId: string;
|
|
5041
|
+
pricingSource: string;
|
|
5042
|
+
systemBaseAccountId: string;
|
|
5043
|
+
systemQuoteAccountId: string;
|
|
5044
|
+
isBuyEnabled: boolean;
|
|
5045
|
+
isSellEnabled: boolean;
|
|
5046
|
+
minBaseAmount: string;
|
|
5047
|
+
maxBaseAmount: string | null;
|
|
5048
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5049
|
+
dailyUserSellBaseLimit: string | null;
|
|
5050
|
+
maxSlippageBps: string;
|
|
5051
|
+
}[];
|
|
5052
|
+
pagination: {
|
|
5053
|
+
total: number;
|
|
5054
|
+
pageSize: number;
|
|
5055
|
+
pageIndex: number;
|
|
5056
|
+
totalPages: number;
|
|
5057
|
+
hasNextPage: boolean;
|
|
5058
|
+
};
|
|
4070
5059
|
};
|
|
4071
5060
|
422: {
|
|
4072
5061
|
type: "validation";
|
|
@@ -4084,18 +5073,20 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4084
5073
|
};
|
|
4085
5074
|
};
|
|
4086
5075
|
} & {
|
|
4087
|
-
|
|
4088
|
-
|
|
5076
|
+
trade_market: {
|
|
5077
|
+
orders: {
|
|
4089
5078
|
get: {
|
|
4090
5079
|
body: unknown;
|
|
4091
5080
|
params: {};
|
|
4092
5081
|
query: {
|
|
4093
|
-
|
|
5082
|
+
userId?: string | undefined;
|
|
5083
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
5084
|
+
marketId?: string | undefined;
|
|
5085
|
+
side?: "buy" | "sell" | undefined;
|
|
4094
5086
|
limit?: number | undefined;
|
|
4095
5087
|
offset?: number | undefined;
|
|
4096
5088
|
pageSize?: number | undefined;
|
|
4097
5089
|
pageIndex?: number | undefined;
|
|
4098
|
-
referralCode: string;
|
|
4099
5090
|
};
|
|
4100
5091
|
headers: unknown;
|
|
4101
5092
|
response: {
|
|
@@ -4104,36 +5095,25 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4104
5095
|
id: string;
|
|
4105
5096
|
createdAt: Date;
|
|
4106
5097
|
updatedAt: Date;
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
banReason: string | null;
|
|
4127
|
-
banExpires: Date | null;
|
|
4128
|
-
};
|
|
4129
|
-
depthConfig: {
|
|
4130
|
-
id: string;
|
|
4131
|
-
createdAt: Date;
|
|
4132
|
-
updatedAt: Date;
|
|
4133
|
-
depth: number;
|
|
4134
|
-
commissionRate: string;
|
|
4135
|
-
} | null;
|
|
4136
|
-
directCount: number;
|
|
5098
|
+
userId: string;
|
|
5099
|
+
status: "created" | "completed" | "failed";
|
|
5100
|
+
idempotencyKey: string;
|
|
5101
|
+
orderNo: string;
|
|
5102
|
+
priceSnapshot: string;
|
|
5103
|
+
priceEffectiveAtSnapshot: Date;
|
|
5104
|
+
failureCode: string | null;
|
|
5105
|
+
failureReason: string | null;
|
|
5106
|
+
marketId: string;
|
|
5107
|
+
side: "buy" | "sell";
|
|
5108
|
+
baseAmount: string;
|
|
5109
|
+
quoteAmount: string;
|
|
5110
|
+
pricingSourceSnapshot: string;
|
|
5111
|
+
userBaseAccountId: string;
|
|
5112
|
+
userQuoteAccountId: string;
|
|
5113
|
+
systemBaseAccountIdSnapshot: string;
|
|
5114
|
+
systemQuoteAccountIdSnapshot: string;
|
|
5115
|
+
userDebitLedgerEntryId: string | null;
|
|
5116
|
+
userCreditLedgerEntryId: string | null;
|
|
4137
5117
|
}[];
|
|
4138
5118
|
pagination: {
|
|
4139
5119
|
total: number;
|
|
@@ -4159,59 +5139,6 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4159
5139
|
};
|
|
4160
5140
|
};
|
|
4161
5141
|
};
|
|
4162
|
-
} & {
|
|
4163
|
-
admin: {
|
|
4164
|
-
transfer: {};
|
|
4165
|
-
} & {
|
|
4166
|
-
transfer: {
|
|
4167
|
-
get: {
|
|
4168
|
-
body: unknown;
|
|
4169
|
-
params: {};
|
|
4170
|
-
query: {
|
|
4171
|
-
limit?: number | undefined;
|
|
4172
|
-
offset?: number | undefined;
|
|
4173
|
-
pageSize?: number | undefined;
|
|
4174
|
-
pageIndex?: number | undefined;
|
|
4175
|
-
};
|
|
4176
|
-
headers: unknown;
|
|
4177
|
-
response: {
|
|
4178
|
-
200: {
|
|
4179
|
-
data: {
|
|
4180
|
-
id: string;
|
|
4181
|
-
createdAt: Date;
|
|
4182
|
-
updatedAt: Date;
|
|
4183
|
-
assetId: string | null;
|
|
4184
|
-
amount: string;
|
|
4185
|
-
idempotencyKey: string;
|
|
4186
|
-
orderNo: string;
|
|
4187
|
-
targetAccountId: string | null;
|
|
4188
|
-
sourceAccountId: string | null;
|
|
4189
|
-
sourceUserId: string;
|
|
4190
|
-
targetUserId: string;
|
|
4191
|
-
}[];
|
|
4192
|
-
pagination: {
|
|
4193
|
-
total: number;
|
|
4194
|
-
pageSize: number;
|
|
4195
|
-
pageIndex: number;
|
|
4196
|
-
totalPages: number;
|
|
4197
|
-
hasNextPage: boolean;
|
|
4198
|
-
};
|
|
4199
|
-
};
|
|
4200
|
-
422: {
|
|
4201
|
-
type: "validation";
|
|
4202
|
-
on: string;
|
|
4203
|
-
summary?: string;
|
|
4204
|
-
message?: string;
|
|
4205
|
-
found?: unknown;
|
|
4206
|
-
property?: string;
|
|
4207
|
-
expected?: string;
|
|
4208
|
-
};
|
|
4209
|
-
401: "Unauthorized";
|
|
4210
|
-
403: "Forbidden: Admins only";
|
|
4211
|
-
};
|
|
4212
|
-
};
|
|
4213
|
-
};
|
|
4214
|
-
};
|
|
4215
5142
|
} & {
|
|
4216
5143
|
admin: {
|
|
4217
5144
|
news_categories: {
|