@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
package/dist/src/index.d.ts
CHANGED
|
@@ -3354,7 +3354,7 @@ declare const app: Elysia<"/api", {
|
|
|
3354
3354
|
assetId: string;
|
|
3355
3355
|
fromAccountId: string | null;
|
|
3356
3356
|
toAccountId: string | null;
|
|
3357
|
-
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";
|
|
3357
|
+
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";
|
|
3358
3358
|
amount: string;
|
|
3359
3359
|
fromAvailableBefore: string | null;
|
|
3360
3360
|
fromAvailableAfter: string | null;
|
|
@@ -3365,7 +3365,7 @@ declare const app: Elysia<"/api", {
|
|
|
3365
3365
|
toLockedBefore: string | null;
|
|
3366
3366
|
toLockedAfter: string | null;
|
|
3367
3367
|
referenceId: string;
|
|
3368
|
-
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";
|
|
3368
|
+
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";
|
|
3369
3369
|
idempotencyKey: string;
|
|
3370
3370
|
operatorId: string | null;
|
|
3371
3371
|
memo: string | null;
|
|
@@ -3394,6 +3394,538 @@ declare const app: Elysia<"/api", {
|
|
|
3394
3394
|
};
|
|
3395
3395
|
};
|
|
3396
3396
|
};
|
|
3397
|
+
} & {
|
|
3398
|
+
admin: {
|
|
3399
|
+
market_pricing: {};
|
|
3400
|
+
} & {
|
|
3401
|
+
market_pricing: {
|
|
3402
|
+
strategies: {
|
|
3403
|
+
post: {
|
|
3404
|
+
body: {
|
|
3405
|
+
source?: string | undefined;
|
|
3406
|
+
strategyType?: "random_walk" | undefined;
|
|
3407
|
+
driftBps?: string | undefined;
|
|
3408
|
+
minPrice?: string | null | undefined;
|
|
3409
|
+
maxPrice?: string | null | undefined;
|
|
3410
|
+
intervalSeconds?: number | undefined;
|
|
3411
|
+
maxStepBps?: string | undefined;
|
|
3412
|
+
fallbackPrice?: string | undefined;
|
|
3413
|
+
isEnabled?: boolean | undefined;
|
|
3414
|
+
name: string;
|
|
3415
|
+
baseAssetId: string;
|
|
3416
|
+
quoteAssetId: string;
|
|
3417
|
+
};
|
|
3418
|
+
params: {};
|
|
3419
|
+
query: unknown;
|
|
3420
|
+
headers: unknown;
|
|
3421
|
+
response: {
|
|
3422
|
+
200: {
|
|
3423
|
+
id: string;
|
|
3424
|
+
name: string;
|
|
3425
|
+
createdAt: Date;
|
|
3426
|
+
updatedAt: Date;
|
|
3427
|
+
baseAssetId: string;
|
|
3428
|
+
quoteAssetId: string;
|
|
3429
|
+
source: string;
|
|
3430
|
+
strategyType: "random_walk";
|
|
3431
|
+
driftBps: string;
|
|
3432
|
+
minPrice: string | null;
|
|
3433
|
+
maxPrice: string | null;
|
|
3434
|
+
intervalSeconds: number;
|
|
3435
|
+
maxStepBps: string;
|
|
3436
|
+
fallbackPrice: string;
|
|
3437
|
+
isEnabled: boolean;
|
|
3438
|
+
};
|
|
3439
|
+
422: {
|
|
3440
|
+
type: "validation";
|
|
3441
|
+
on: string;
|
|
3442
|
+
summary?: string;
|
|
3443
|
+
message?: string;
|
|
3444
|
+
found?: unknown;
|
|
3445
|
+
property?: string;
|
|
3446
|
+
expected?: string;
|
|
3447
|
+
};
|
|
3448
|
+
401: "Unauthorized";
|
|
3449
|
+
403: "Forbidden: Admins only";
|
|
3450
|
+
};
|
|
3451
|
+
};
|
|
3452
|
+
};
|
|
3453
|
+
};
|
|
3454
|
+
} & {
|
|
3455
|
+
market_pricing: {
|
|
3456
|
+
strategies: {
|
|
3457
|
+
":id": {
|
|
3458
|
+
patch: {
|
|
3459
|
+
body: {
|
|
3460
|
+
name?: string | undefined;
|
|
3461
|
+
baseAssetId?: string | undefined;
|
|
3462
|
+
quoteAssetId?: string | undefined;
|
|
3463
|
+
source?: string | undefined;
|
|
3464
|
+
strategyType?: "random_walk" | undefined;
|
|
3465
|
+
driftBps?: string | undefined;
|
|
3466
|
+
minPrice?: string | null | undefined;
|
|
3467
|
+
maxPrice?: string | null | undefined;
|
|
3468
|
+
intervalSeconds?: number | undefined;
|
|
3469
|
+
maxStepBps?: string | undefined;
|
|
3470
|
+
fallbackPrice?: string | undefined;
|
|
3471
|
+
isEnabled?: boolean | undefined;
|
|
3472
|
+
};
|
|
3473
|
+
params: {
|
|
3474
|
+
id: string;
|
|
3475
|
+
};
|
|
3476
|
+
query: unknown;
|
|
3477
|
+
headers: unknown;
|
|
3478
|
+
response: {
|
|
3479
|
+
200: {
|
|
3480
|
+
createdAt: Date;
|
|
3481
|
+
updatedAt: Date;
|
|
3482
|
+
id: string;
|
|
3483
|
+
name: string;
|
|
3484
|
+
baseAssetId: string;
|
|
3485
|
+
quoteAssetId: string;
|
|
3486
|
+
strategyType: "random_walk";
|
|
3487
|
+
driftBps: string;
|
|
3488
|
+
minPrice: string | null;
|
|
3489
|
+
maxPrice: string | null;
|
|
3490
|
+
source: string;
|
|
3491
|
+
intervalSeconds: number;
|
|
3492
|
+
maxStepBps: string;
|
|
3493
|
+
fallbackPrice: string;
|
|
3494
|
+
isEnabled: boolean;
|
|
3495
|
+
};
|
|
3496
|
+
422: {
|
|
3497
|
+
type: "validation";
|
|
3498
|
+
on: string;
|
|
3499
|
+
summary?: string;
|
|
3500
|
+
message?: string;
|
|
3501
|
+
found?: unknown;
|
|
3502
|
+
property?: string;
|
|
3503
|
+
expected?: string;
|
|
3504
|
+
};
|
|
3505
|
+
401: "Unauthorized";
|
|
3506
|
+
403: "Forbidden: Admins only";
|
|
3507
|
+
};
|
|
3508
|
+
};
|
|
3509
|
+
};
|
|
3510
|
+
};
|
|
3511
|
+
};
|
|
3512
|
+
} & {
|
|
3513
|
+
market_pricing: {
|
|
3514
|
+
strategies: {
|
|
3515
|
+
":id": {
|
|
3516
|
+
enable: {
|
|
3517
|
+
post: {
|
|
3518
|
+
body: unknown;
|
|
3519
|
+
params: {
|
|
3520
|
+
id: string;
|
|
3521
|
+
};
|
|
3522
|
+
query: unknown;
|
|
3523
|
+
headers: unknown;
|
|
3524
|
+
response: {
|
|
3525
|
+
200: {
|
|
3526
|
+
createdAt: Date;
|
|
3527
|
+
updatedAt: Date;
|
|
3528
|
+
id: string;
|
|
3529
|
+
name: string;
|
|
3530
|
+
baseAssetId: string;
|
|
3531
|
+
quoteAssetId: string;
|
|
3532
|
+
strategyType: "random_walk";
|
|
3533
|
+
driftBps: string;
|
|
3534
|
+
minPrice: string | null;
|
|
3535
|
+
maxPrice: string | null;
|
|
3536
|
+
source: string;
|
|
3537
|
+
intervalSeconds: number;
|
|
3538
|
+
maxStepBps: string;
|
|
3539
|
+
fallbackPrice: string;
|
|
3540
|
+
isEnabled: boolean;
|
|
3541
|
+
};
|
|
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
|
+
market_pricing: {
|
|
3561
|
+
strategies: {
|
|
3562
|
+
":id": {
|
|
3563
|
+
disable: {
|
|
3564
|
+
post: {
|
|
3565
|
+
body: unknown;
|
|
3566
|
+
params: {
|
|
3567
|
+
id: string;
|
|
3568
|
+
};
|
|
3569
|
+
query: unknown;
|
|
3570
|
+
headers: unknown;
|
|
3571
|
+
response: {
|
|
3572
|
+
200: {
|
|
3573
|
+
createdAt: Date;
|
|
3574
|
+
updatedAt: Date;
|
|
3575
|
+
id: string;
|
|
3576
|
+
name: string;
|
|
3577
|
+
baseAssetId: string;
|
|
3578
|
+
quoteAssetId: string;
|
|
3579
|
+
strategyType: "random_walk";
|
|
3580
|
+
driftBps: string;
|
|
3581
|
+
minPrice: string | null;
|
|
3582
|
+
maxPrice: string | null;
|
|
3583
|
+
source: string;
|
|
3584
|
+
intervalSeconds: number;
|
|
3585
|
+
maxStepBps: string;
|
|
3586
|
+
fallbackPrice: string;
|
|
3587
|
+
isEnabled: boolean;
|
|
3588
|
+
};
|
|
3589
|
+
422: {
|
|
3590
|
+
type: "validation";
|
|
3591
|
+
on: string;
|
|
3592
|
+
summary?: string;
|
|
3593
|
+
message?: string;
|
|
3594
|
+
found?: unknown;
|
|
3595
|
+
property?: string;
|
|
3596
|
+
expected?: string;
|
|
3597
|
+
};
|
|
3598
|
+
401: "Unauthorized";
|
|
3599
|
+
403: "Forbidden: Admins only";
|
|
3600
|
+
};
|
|
3601
|
+
};
|
|
3602
|
+
};
|
|
3603
|
+
};
|
|
3604
|
+
};
|
|
3605
|
+
};
|
|
3606
|
+
} & {
|
|
3607
|
+
market_pricing: {
|
|
3608
|
+
strategies: {
|
|
3609
|
+
get: {
|
|
3610
|
+
body: unknown;
|
|
3611
|
+
params: {};
|
|
3612
|
+
query: {
|
|
3613
|
+
baseAssetId?: string | undefined;
|
|
3614
|
+
quoteAssetId?: string | undefined;
|
|
3615
|
+
isEnabled?: boolean | undefined;
|
|
3616
|
+
limit?: number | undefined;
|
|
3617
|
+
offset?: number | undefined;
|
|
3618
|
+
pageSize?: number | undefined;
|
|
3619
|
+
pageIndex?: number | undefined;
|
|
3620
|
+
};
|
|
3621
|
+
headers: unknown;
|
|
3622
|
+
response: {
|
|
3623
|
+
200: {
|
|
3624
|
+
data: {
|
|
3625
|
+
id: string;
|
|
3626
|
+
name: string;
|
|
3627
|
+
createdAt: Date;
|
|
3628
|
+
updatedAt: Date;
|
|
3629
|
+
baseAssetId: string;
|
|
3630
|
+
quoteAssetId: string;
|
|
3631
|
+
source: string;
|
|
3632
|
+
strategyType: "random_walk";
|
|
3633
|
+
driftBps: string;
|
|
3634
|
+
minPrice: string | null;
|
|
3635
|
+
maxPrice: string | null;
|
|
3636
|
+
intervalSeconds: number;
|
|
3637
|
+
maxStepBps: string;
|
|
3638
|
+
fallbackPrice: string;
|
|
3639
|
+
isEnabled: boolean;
|
|
3640
|
+
}[];
|
|
3641
|
+
pagination: {
|
|
3642
|
+
total: number;
|
|
3643
|
+
pageSize: number;
|
|
3644
|
+
pageIndex: number;
|
|
3645
|
+
totalPages: number;
|
|
3646
|
+
hasNextPage: boolean;
|
|
3647
|
+
};
|
|
3648
|
+
};
|
|
3649
|
+
422: {
|
|
3650
|
+
type: "validation";
|
|
3651
|
+
on: string;
|
|
3652
|
+
summary?: string;
|
|
3653
|
+
message?: string;
|
|
3654
|
+
found?: unknown;
|
|
3655
|
+
property?: string;
|
|
3656
|
+
expected?: string;
|
|
3657
|
+
};
|
|
3658
|
+
401: "Unauthorized";
|
|
3659
|
+
403: "Forbidden: Admins only";
|
|
3660
|
+
};
|
|
3661
|
+
};
|
|
3662
|
+
};
|
|
3663
|
+
};
|
|
3664
|
+
} & {
|
|
3665
|
+
market_pricing: {
|
|
3666
|
+
strategies: {
|
|
3667
|
+
":id": {
|
|
3668
|
+
get: {
|
|
3669
|
+
body: unknown;
|
|
3670
|
+
params: {
|
|
3671
|
+
id: string;
|
|
3672
|
+
};
|
|
3673
|
+
query: unknown;
|
|
3674
|
+
headers: unknown;
|
|
3675
|
+
response: {
|
|
3676
|
+
200: {
|
|
3677
|
+
id: string;
|
|
3678
|
+
name: string;
|
|
3679
|
+
createdAt: Date;
|
|
3680
|
+
updatedAt: Date;
|
|
3681
|
+
baseAssetId: string;
|
|
3682
|
+
quoteAssetId: string;
|
|
3683
|
+
source: string;
|
|
3684
|
+
strategyType: "random_walk";
|
|
3685
|
+
driftBps: string;
|
|
3686
|
+
minPrice: string | null;
|
|
3687
|
+
maxPrice: string | null;
|
|
3688
|
+
intervalSeconds: number;
|
|
3689
|
+
maxStepBps: string;
|
|
3690
|
+
fallbackPrice: string;
|
|
3691
|
+
isEnabled: boolean;
|
|
3692
|
+
};
|
|
3693
|
+
422: {
|
|
3694
|
+
type: "validation";
|
|
3695
|
+
on: string;
|
|
3696
|
+
summary?: string;
|
|
3697
|
+
message?: string;
|
|
3698
|
+
found?: unknown;
|
|
3699
|
+
property?: string;
|
|
3700
|
+
expected?: string;
|
|
3701
|
+
};
|
|
3702
|
+
401: "Unauthorized";
|
|
3703
|
+
403: "Forbidden: Admins only";
|
|
3704
|
+
};
|
|
3705
|
+
};
|
|
3706
|
+
};
|
|
3707
|
+
};
|
|
3708
|
+
};
|
|
3709
|
+
} & {
|
|
3710
|
+
market_pricing: {
|
|
3711
|
+
strategies: {
|
|
3712
|
+
":id": {
|
|
3713
|
+
"run-now": {
|
|
3714
|
+
post: {
|
|
3715
|
+
body: unknown;
|
|
3716
|
+
params: {
|
|
3717
|
+
id: string;
|
|
3718
|
+
};
|
|
3719
|
+
query: unknown;
|
|
3720
|
+
headers: unknown;
|
|
3721
|
+
response: {
|
|
3722
|
+
200: {
|
|
3723
|
+
price: string;
|
|
3724
|
+
effectiveAt: Date;
|
|
3725
|
+
created: boolean;
|
|
3726
|
+
strategyId: string;
|
|
3727
|
+
};
|
|
3728
|
+
422: {
|
|
3729
|
+
type: "validation";
|
|
3730
|
+
on: string;
|
|
3731
|
+
summary?: string;
|
|
3732
|
+
message?: string;
|
|
3733
|
+
found?: unknown;
|
|
3734
|
+
property?: string;
|
|
3735
|
+
expected?: string;
|
|
3736
|
+
};
|
|
3737
|
+
401: "Unauthorized";
|
|
3738
|
+
403: "Forbidden: Admins only";
|
|
3739
|
+
};
|
|
3740
|
+
};
|
|
3741
|
+
};
|
|
3742
|
+
};
|
|
3743
|
+
};
|
|
3744
|
+
};
|
|
3745
|
+
} & {
|
|
3746
|
+
market_pricing: {
|
|
3747
|
+
jobs: {
|
|
3748
|
+
"run-enabled": {
|
|
3749
|
+
post: {
|
|
3750
|
+
body: unknown;
|
|
3751
|
+
params: {};
|
|
3752
|
+
query: unknown;
|
|
3753
|
+
headers: unknown;
|
|
3754
|
+
response: {
|
|
3755
|
+
200: {
|
|
3756
|
+
successCount: number;
|
|
3757
|
+
failedStrategyIds: string[];
|
|
3758
|
+
};
|
|
3759
|
+
422: {
|
|
3760
|
+
type: "validation";
|
|
3761
|
+
on: string;
|
|
3762
|
+
summary?: string;
|
|
3763
|
+
message?: string;
|
|
3764
|
+
found?: unknown;
|
|
3765
|
+
property?: string;
|
|
3766
|
+
expected?: string;
|
|
3767
|
+
};
|
|
3768
|
+
401: "Unauthorized";
|
|
3769
|
+
403: "Forbidden: Admins only";
|
|
3770
|
+
};
|
|
3771
|
+
};
|
|
3772
|
+
};
|
|
3773
|
+
};
|
|
3774
|
+
};
|
|
3775
|
+
};
|
|
3776
|
+
} & {
|
|
3777
|
+
admin: {
|
|
3778
|
+
market_data: {};
|
|
3779
|
+
} & {
|
|
3780
|
+
market_data: {
|
|
3781
|
+
klines: {
|
|
3782
|
+
"1m": {
|
|
3783
|
+
get: {
|
|
3784
|
+
body: unknown;
|
|
3785
|
+
params: {};
|
|
3786
|
+
query: {
|
|
3787
|
+
source?: string | undefined;
|
|
3788
|
+
startDate?: Date | undefined;
|
|
3789
|
+
limit?: number | undefined;
|
|
3790
|
+
offset?: number | undefined;
|
|
3791
|
+
pageSize?: number | undefined;
|
|
3792
|
+
pageIndex?: number | undefined;
|
|
3793
|
+
endDate?: Date | undefined;
|
|
3794
|
+
baseAsset: string;
|
|
3795
|
+
quoteAsset: string;
|
|
3796
|
+
};
|
|
3797
|
+
headers: unknown;
|
|
3798
|
+
response: {
|
|
3799
|
+
200: {
|
|
3800
|
+
data: {
|
|
3801
|
+
id: string;
|
|
3802
|
+
createdAt: Date;
|
|
3803
|
+
updatedAt: Date;
|
|
3804
|
+
baseAssetId: string;
|
|
3805
|
+
baseAsset: string;
|
|
3806
|
+
quoteAssetId: string;
|
|
3807
|
+
quoteAsset: string;
|
|
3808
|
+
source: string;
|
|
3809
|
+
low: string;
|
|
3810
|
+
high: string;
|
|
3811
|
+
bucketAt: Date;
|
|
3812
|
+
open: string;
|
|
3813
|
+
close: string;
|
|
3814
|
+
tickCount: number;
|
|
3815
|
+
volume: string;
|
|
3816
|
+
}[];
|
|
3817
|
+
pagination: {
|
|
3818
|
+
total: number;
|
|
3819
|
+
pageSize: number;
|
|
3820
|
+
pageIndex: number;
|
|
3821
|
+
totalPages: number;
|
|
3822
|
+
hasNextPage: boolean;
|
|
3823
|
+
};
|
|
3824
|
+
};
|
|
3825
|
+
422: {
|
|
3826
|
+
type: "validation";
|
|
3827
|
+
on: string;
|
|
3828
|
+
summary?: string;
|
|
3829
|
+
message?: string;
|
|
3830
|
+
found?: unknown;
|
|
3831
|
+
property?: string;
|
|
3832
|
+
expected?: string;
|
|
3833
|
+
};
|
|
3834
|
+
401: "Unauthorized";
|
|
3835
|
+
403: "Forbidden: Admins only";
|
|
3836
|
+
};
|
|
3837
|
+
};
|
|
3838
|
+
};
|
|
3839
|
+
};
|
|
3840
|
+
};
|
|
3841
|
+
} & {
|
|
3842
|
+
market_data: {
|
|
3843
|
+
jobs: {
|
|
3844
|
+
aggregate: {
|
|
3845
|
+
"1m": {
|
|
3846
|
+
"run-one": {
|
|
3847
|
+
post: {
|
|
3848
|
+
body: {
|
|
3849
|
+
source?: string | undefined;
|
|
3850
|
+
bucketAt?: Date | undefined;
|
|
3851
|
+
baseAsset: string;
|
|
3852
|
+
quoteAsset: string;
|
|
3853
|
+
};
|
|
3854
|
+
params: {};
|
|
3855
|
+
query: unknown;
|
|
3856
|
+
headers: unknown;
|
|
3857
|
+
response: {
|
|
3858
|
+
200: {
|
|
3859
|
+
id: string;
|
|
3860
|
+
createdAt: Date;
|
|
3861
|
+
updatedAt: Date;
|
|
3862
|
+
baseAssetId: string;
|
|
3863
|
+
baseAsset: string;
|
|
3864
|
+
quoteAssetId: string;
|
|
3865
|
+
quoteAsset: string;
|
|
3866
|
+
source: string;
|
|
3867
|
+
low: string;
|
|
3868
|
+
high: string;
|
|
3869
|
+
bucketAt: Date;
|
|
3870
|
+
open: string;
|
|
3871
|
+
close: string;
|
|
3872
|
+
tickCount: number;
|
|
3873
|
+
volume: string;
|
|
3874
|
+
} | null;
|
|
3875
|
+
422: {
|
|
3876
|
+
type: "validation";
|
|
3877
|
+
on: string;
|
|
3878
|
+
summary?: string;
|
|
3879
|
+
message?: string;
|
|
3880
|
+
found?: unknown;
|
|
3881
|
+
property?: string;
|
|
3882
|
+
expected?: string;
|
|
3883
|
+
};
|
|
3884
|
+
401: "Unauthorized";
|
|
3885
|
+
403: "Forbidden: Admins only";
|
|
3886
|
+
};
|
|
3887
|
+
};
|
|
3888
|
+
};
|
|
3889
|
+
};
|
|
3890
|
+
};
|
|
3891
|
+
};
|
|
3892
|
+
};
|
|
3893
|
+
} & {
|
|
3894
|
+
market_data: {
|
|
3895
|
+
jobs: {
|
|
3896
|
+
aggregate: {
|
|
3897
|
+
"1m": {
|
|
3898
|
+
"run-enabled": {
|
|
3899
|
+
post: {
|
|
3900
|
+
body: unknown;
|
|
3901
|
+
params: {};
|
|
3902
|
+
query: unknown;
|
|
3903
|
+
headers: unknown;
|
|
3904
|
+
response: {
|
|
3905
|
+
200: {
|
|
3906
|
+
bucketAt: Date;
|
|
3907
|
+
successCount: number;
|
|
3908
|
+
failedPairs: string[];
|
|
3909
|
+
};
|
|
3910
|
+
422: {
|
|
3911
|
+
type: "validation";
|
|
3912
|
+
on: string;
|
|
3913
|
+
summary?: string;
|
|
3914
|
+
message?: string;
|
|
3915
|
+
found?: unknown;
|
|
3916
|
+
property?: string;
|
|
3917
|
+
expected?: string;
|
|
3918
|
+
};
|
|
3919
|
+
401: "Unauthorized";
|
|
3920
|
+
403: "Forbidden: Admins only";
|
|
3921
|
+
};
|
|
3922
|
+
};
|
|
3923
|
+
};
|
|
3924
|
+
};
|
|
3925
|
+
};
|
|
3926
|
+
};
|
|
3927
|
+
};
|
|
3928
|
+
};
|
|
3397
3929
|
} & {
|
|
3398
3930
|
admin: {
|
|
3399
3931
|
deposit: {};
|
|
@@ -3918,7 +4450,129 @@ declare const app: Elysia<"/api", {
|
|
|
3918
4450
|
body: {};
|
|
3919
4451
|
params: {};
|
|
3920
4452
|
query: {
|
|
3921
|
-
type?: "bank_card" | "alipay" | undefined;
|
|
4453
|
+
type?: "bank_card" | "alipay" | undefined;
|
|
4454
|
+
userId?: string | undefined;
|
|
4455
|
+
limit?: number | undefined;
|
|
4456
|
+
offset?: number | undefined;
|
|
4457
|
+
pageSize?: number | undefined;
|
|
4458
|
+
pageIndex?: number | undefined;
|
|
4459
|
+
};
|
|
4460
|
+
headers: {};
|
|
4461
|
+
response: {
|
|
4462
|
+
200: {
|
|
4463
|
+
data: {
|
|
4464
|
+
type: "bank_card" | "alipay";
|
|
4465
|
+
id: string;
|
|
4466
|
+
createdAt: Date;
|
|
4467
|
+
updatedAt: Date;
|
|
4468
|
+
userId: string;
|
|
4469
|
+
bankName: string | null;
|
|
4470
|
+
fullName: string;
|
|
4471
|
+
bankBranchName: string | null;
|
|
4472
|
+
bankCardNumber: string | null;
|
|
4473
|
+
alipayName: string | null;
|
|
4474
|
+
alipayAccount: string | null;
|
|
4475
|
+
}[];
|
|
4476
|
+
pagination: {
|
|
4477
|
+
total: number;
|
|
4478
|
+
pageSize: number;
|
|
4479
|
+
pageIndex: number;
|
|
4480
|
+
totalPages: number;
|
|
4481
|
+
hasNextPage: boolean;
|
|
4482
|
+
};
|
|
4483
|
+
};
|
|
4484
|
+
422: {
|
|
4485
|
+
type: "validation";
|
|
4486
|
+
on: string;
|
|
4487
|
+
summary?: string;
|
|
4488
|
+
message?: string;
|
|
4489
|
+
found?: unknown;
|
|
4490
|
+
property?: string;
|
|
4491
|
+
expected?: string;
|
|
4492
|
+
};
|
|
4493
|
+
401: "Unauthorized";
|
|
4494
|
+
403: "Forbidden: Admins only";
|
|
4495
|
+
};
|
|
4496
|
+
};
|
|
4497
|
+
};
|
|
4498
|
+
} & {
|
|
4499
|
+
receipt_method: {
|
|
4500
|
+
":id": {
|
|
4501
|
+
delete: {
|
|
4502
|
+
body: {};
|
|
4503
|
+
params: {
|
|
4504
|
+
id: string;
|
|
4505
|
+
};
|
|
4506
|
+
query: {};
|
|
4507
|
+
headers: {};
|
|
4508
|
+
response: {
|
|
4509
|
+
200: {
|
|
4510
|
+
success: boolean;
|
|
4511
|
+
};
|
|
4512
|
+
422: {
|
|
4513
|
+
type: "validation";
|
|
4514
|
+
on: string;
|
|
4515
|
+
summary?: string;
|
|
4516
|
+
message?: string;
|
|
4517
|
+
found?: unknown;
|
|
4518
|
+
property?: string;
|
|
4519
|
+
expected?: string;
|
|
4520
|
+
};
|
|
4521
|
+
401: "Unauthorized";
|
|
4522
|
+
403: "Forbidden: Admins only";
|
|
4523
|
+
};
|
|
4524
|
+
};
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
4527
|
+
} & {
|
|
4528
|
+
receipt_method: {
|
|
4529
|
+
":id": {
|
|
4530
|
+
get: {
|
|
4531
|
+
body: {};
|
|
4532
|
+
params: {
|
|
4533
|
+
id: string;
|
|
4534
|
+
};
|
|
4535
|
+
query: {};
|
|
4536
|
+
headers: {};
|
|
4537
|
+
response: {
|
|
4538
|
+
200: {
|
|
4539
|
+
type: "bank_card" | "alipay";
|
|
4540
|
+
id: string;
|
|
4541
|
+
createdAt: Date;
|
|
4542
|
+
updatedAt: Date;
|
|
4543
|
+
userId: string;
|
|
4544
|
+
bankName: string | null;
|
|
4545
|
+
fullName: string;
|
|
4546
|
+
bankBranchName: string | null;
|
|
4547
|
+
bankCardNumber: string | null;
|
|
4548
|
+
alipayName: string | null;
|
|
4549
|
+
alipayAccount: string | null;
|
|
4550
|
+
};
|
|
4551
|
+
422: {
|
|
4552
|
+
type: "validation";
|
|
4553
|
+
on: string;
|
|
4554
|
+
summary?: string;
|
|
4555
|
+
message?: string;
|
|
4556
|
+
found?: unknown;
|
|
4557
|
+
property?: string;
|
|
4558
|
+
expected?: string;
|
|
4559
|
+
};
|
|
4560
|
+
401: "Unauthorized";
|
|
4561
|
+
403: "Forbidden: Admins only";
|
|
4562
|
+
};
|
|
4563
|
+
};
|
|
4564
|
+
};
|
|
4565
|
+
};
|
|
4566
|
+
};
|
|
4567
|
+
} & {
|
|
4568
|
+
admin: {
|
|
4569
|
+
shipping_address: {};
|
|
4570
|
+
} & {
|
|
4571
|
+
shipping_address: {
|
|
4572
|
+
get: {
|
|
4573
|
+
body: {};
|
|
4574
|
+
params: {};
|
|
4575
|
+
query: {
|
|
3922
4576
|
userId?: string | undefined;
|
|
3923
4577
|
limit?: number | undefined;
|
|
3924
4578
|
offset?: number | undefined;
|
|
@@ -3929,17 +4583,14 @@ declare const app: Elysia<"/api", {
|
|
|
3929
4583
|
response: {
|
|
3930
4584
|
200: {
|
|
3931
4585
|
data: {
|
|
3932
|
-
type: "bank_card" | "alipay";
|
|
3933
4586
|
id: string;
|
|
3934
4587
|
createdAt: Date;
|
|
3935
4588
|
updatedAt: Date;
|
|
4589
|
+
phoneNumber: string;
|
|
3936
4590
|
userId: string;
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
bankCardNumber: string | null;
|
|
3941
|
-
alipayName: string | null;
|
|
3942
|
-
alipayAccount: string | null;
|
|
4591
|
+
isDefault: boolean;
|
|
4592
|
+
recipientName: string;
|
|
4593
|
+
detailAddress: string;
|
|
3943
4594
|
}[];
|
|
3944
4595
|
pagination: {
|
|
3945
4596
|
total: number;
|
|
@@ -3963,19 +4614,34 @@ declare const app: Elysia<"/api", {
|
|
|
3963
4614
|
};
|
|
3964
4615
|
};
|
|
3965
4616
|
};
|
|
4617
|
+
};
|
|
4618
|
+
} & {
|
|
4619
|
+
admin: {
|
|
4620
|
+
referrals: {};
|
|
3966
4621
|
} & {
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
body:
|
|
3971
|
-
params: {
|
|
3972
|
-
|
|
4622
|
+
referrals: {
|
|
4623
|
+
summary: {
|
|
4624
|
+
get: {
|
|
4625
|
+
body: unknown;
|
|
4626
|
+
params: {};
|
|
4627
|
+
query: {
|
|
4628
|
+
limit?: number | undefined;
|
|
4629
|
+
offset?: number | undefined;
|
|
4630
|
+
pageSize?: number | undefined;
|
|
4631
|
+
pageIndex?: number | undefined;
|
|
4632
|
+
maxDepth?: number | undefined;
|
|
4633
|
+
referralCode: string;
|
|
3973
4634
|
};
|
|
3974
|
-
|
|
3975
|
-
headers: {};
|
|
4635
|
+
headers: unknown;
|
|
3976
4636
|
response: {
|
|
3977
4637
|
200: {
|
|
3978
|
-
|
|
4638
|
+
referredBy?: string | undefined;
|
|
4639
|
+
userId: string;
|
|
4640
|
+
referralCode: string;
|
|
4641
|
+
totalCount: number;
|
|
4642
|
+
level1Count: number;
|
|
4643
|
+
level2Count: number;
|
|
4644
|
+
level3Count: number;
|
|
3979
4645
|
};
|
|
3980
4646
|
422: {
|
|
3981
4647
|
type: "validation";
|
|
@@ -3993,28 +4659,51 @@ declare const app: Elysia<"/api", {
|
|
|
3993
4659
|
};
|
|
3994
4660
|
};
|
|
3995
4661
|
} & {
|
|
3996
|
-
|
|
3997
|
-
|
|
4662
|
+
referrals: {
|
|
4663
|
+
members: {
|
|
3998
4664
|
get: {
|
|
3999
|
-
body:
|
|
4000
|
-
params: {
|
|
4001
|
-
|
|
4665
|
+
body: unknown;
|
|
4666
|
+
params: {};
|
|
4667
|
+
query: {
|
|
4668
|
+
limit?: number | undefined;
|
|
4669
|
+
offset?: number | undefined;
|
|
4670
|
+
pageSize?: number | undefined;
|
|
4671
|
+
pageIndex?: number | undefined;
|
|
4672
|
+
maxDepth?: number | undefined;
|
|
4673
|
+
referralCode: string;
|
|
4002
4674
|
};
|
|
4003
|
-
|
|
4004
|
-
headers: {};
|
|
4675
|
+
headers: unknown;
|
|
4005
4676
|
response: {
|
|
4006
4677
|
200: {
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4678
|
+
data: {
|
|
4679
|
+
user: {
|
|
4680
|
+
email: string;
|
|
4681
|
+
id: string;
|
|
4682
|
+
name: string;
|
|
4683
|
+
emailVerified: boolean;
|
|
4684
|
+
image: string | null;
|
|
4685
|
+
createdAt: Date;
|
|
4686
|
+
updatedAt: Date;
|
|
4687
|
+
twoFactorEnabled: boolean | null;
|
|
4688
|
+
username: string | null;
|
|
4689
|
+
displayUsername: string | null;
|
|
4690
|
+
isAnonymous: boolean | null;
|
|
4691
|
+
phoneNumber: string | null;
|
|
4692
|
+
phoneNumberVerified: boolean | null;
|
|
4693
|
+
role: string | null;
|
|
4694
|
+
banned: boolean | null;
|
|
4695
|
+
banReason: string | null;
|
|
4696
|
+
banExpires: Date | null;
|
|
4697
|
+
};
|
|
4698
|
+
depth: number;
|
|
4699
|
+
}[];
|
|
4700
|
+
pagination: {
|
|
4701
|
+
total: number;
|
|
4702
|
+
pageSize: number;
|
|
4703
|
+
pageIndex: number;
|
|
4704
|
+
totalPages: number;
|
|
4705
|
+
hasNextPage: boolean;
|
|
4706
|
+
};
|
|
4018
4707
|
};
|
|
4019
4708
|
422: {
|
|
4020
4709
|
type: "validation";
|
|
@@ -4034,76 +4723,209 @@ declare const app: Elysia<"/api", {
|
|
|
4034
4723
|
};
|
|
4035
4724
|
} & {
|
|
4036
4725
|
admin: {
|
|
4037
|
-
|
|
4726
|
+
referrals: {
|
|
4727
|
+
"depth-configs": {};
|
|
4728
|
+
};
|
|
4038
4729
|
} & {
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4730
|
+
referrals: {
|
|
4731
|
+
"depth-configs": {
|
|
4732
|
+
post: {
|
|
4733
|
+
body: {
|
|
4734
|
+
depth: number;
|
|
4735
|
+
commissionRate: string;
|
|
4736
|
+
};
|
|
4737
|
+
params: {};
|
|
4738
|
+
query: unknown;
|
|
4739
|
+
headers: unknown;
|
|
4740
|
+
response: {
|
|
4741
|
+
200: {
|
|
4742
|
+
id: string;
|
|
4743
|
+
createdAt: Date;
|
|
4744
|
+
updatedAt: Date;
|
|
4745
|
+
depth: number;
|
|
4746
|
+
commissionRate: string;
|
|
4747
|
+
};
|
|
4748
|
+
422: {
|
|
4749
|
+
type: "validation";
|
|
4750
|
+
on: string;
|
|
4751
|
+
summary?: string;
|
|
4752
|
+
message?: string;
|
|
4753
|
+
found?: unknown;
|
|
4754
|
+
property?: string;
|
|
4755
|
+
expected?: string;
|
|
4756
|
+
};
|
|
4757
|
+
401: "Unauthorized";
|
|
4758
|
+
403: "Forbidden: Admins only";
|
|
4759
|
+
};
|
|
4760
|
+
};
|
|
4761
|
+
};
|
|
4762
|
+
};
|
|
4763
|
+
} & {
|
|
4764
|
+
referrals: {
|
|
4765
|
+
"depth-configs": {
|
|
4766
|
+
get: {
|
|
4767
|
+
body: unknown;
|
|
4768
|
+
params: {};
|
|
4769
|
+
query: {
|
|
4770
|
+
depth?: number | undefined;
|
|
4771
|
+
limit?: number | undefined;
|
|
4772
|
+
offset?: number | undefined;
|
|
4773
|
+
pageSize?: number | undefined;
|
|
4774
|
+
pageIndex?: number | undefined;
|
|
4775
|
+
};
|
|
4776
|
+
headers: unknown;
|
|
4777
|
+
response: {
|
|
4778
|
+
200: {
|
|
4779
|
+
data: {
|
|
4780
|
+
id: string;
|
|
4781
|
+
createdAt: Date;
|
|
4782
|
+
updatedAt: Date;
|
|
4783
|
+
depth: number;
|
|
4784
|
+
commissionRate: string;
|
|
4785
|
+
}[];
|
|
4786
|
+
pagination: {
|
|
4787
|
+
total: number;
|
|
4788
|
+
pageSize: number;
|
|
4789
|
+
pageIndex: number;
|
|
4790
|
+
totalPages: number;
|
|
4791
|
+
hasNextPage: boolean;
|
|
4792
|
+
};
|
|
4793
|
+
};
|
|
4794
|
+
422: {
|
|
4795
|
+
type: "validation";
|
|
4796
|
+
on: string;
|
|
4797
|
+
summary?: string;
|
|
4798
|
+
message?: string;
|
|
4799
|
+
found?: unknown;
|
|
4800
|
+
property?: string;
|
|
4801
|
+
expected?: string;
|
|
4802
|
+
};
|
|
4803
|
+
401: "Unauthorized";
|
|
4804
|
+
403: "Forbidden: Admins only";
|
|
4805
|
+
};
|
|
4806
|
+
};
|
|
4807
|
+
};
|
|
4808
|
+
};
|
|
4809
|
+
} & {
|
|
4810
|
+
referrals: {
|
|
4811
|
+
"depth-configs": {
|
|
4812
|
+
":id": {
|
|
4813
|
+
get: {
|
|
4814
|
+
body: unknown;
|
|
4815
|
+
params: {
|
|
4816
|
+
id: string;
|
|
4817
|
+
};
|
|
4818
|
+
query: unknown;
|
|
4819
|
+
headers: unknown;
|
|
4820
|
+
response: {
|
|
4821
|
+
200: {
|
|
4822
|
+
id: string;
|
|
4823
|
+
createdAt: Date;
|
|
4824
|
+
updatedAt: Date;
|
|
4825
|
+
depth: number;
|
|
4826
|
+
commissionRate: string;
|
|
4827
|
+
};
|
|
4828
|
+
422: {
|
|
4829
|
+
type: "validation";
|
|
4830
|
+
on: string;
|
|
4831
|
+
summary?: string;
|
|
4832
|
+
message?: string;
|
|
4833
|
+
found?: unknown;
|
|
4834
|
+
property?: string;
|
|
4835
|
+
expected?: string;
|
|
4836
|
+
};
|
|
4837
|
+
401: "Unauthorized";
|
|
4838
|
+
403: "Forbidden: Admins only";
|
|
4839
|
+
};
|
|
4840
|
+
};
|
|
4841
|
+
};
|
|
4842
|
+
};
|
|
4843
|
+
};
|
|
4844
|
+
} & {
|
|
4845
|
+
referrals: {
|
|
4846
|
+
"depth-configs": {
|
|
4847
|
+
":id": {
|
|
4848
|
+
patch: {
|
|
4849
|
+
body: {
|
|
4850
|
+
depth?: number | undefined;
|
|
4851
|
+
commissionRate?: string | undefined;
|
|
4852
|
+
};
|
|
4853
|
+
params: {
|
|
4854
|
+
id: string;
|
|
4855
|
+
};
|
|
4856
|
+
query: unknown;
|
|
4857
|
+
headers: unknown;
|
|
4858
|
+
response: {
|
|
4859
|
+
200: {
|
|
4860
|
+
id: string;
|
|
4861
|
+
createdAt: Date;
|
|
4862
|
+
updatedAt: Date;
|
|
4863
|
+
depth: number;
|
|
4864
|
+
commissionRate: string;
|
|
4865
|
+
};
|
|
4866
|
+
422: {
|
|
4867
|
+
type: "validation";
|
|
4868
|
+
on: string;
|
|
4869
|
+
summary?: string;
|
|
4870
|
+
message?: string;
|
|
4871
|
+
found?: unknown;
|
|
4872
|
+
property?: string;
|
|
4873
|
+
expected?: string;
|
|
4874
|
+
};
|
|
4875
|
+
401: "Unauthorized";
|
|
4876
|
+
403: "Forbidden: Admins only";
|
|
4877
|
+
};
|
|
4878
|
+
};
|
|
4049
4879
|
};
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4880
|
+
};
|
|
4881
|
+
};
|
|
4882
|
+
} & {
|
|
4883
|
+
referrals: {
|
|
4884
|
+
"depth-configs": {
|
|
4885
|
+
":id": {
|
|
4886
|
+
delete: {
|
|
4887
|
+
body: unknown;
|
|
4888
|
+
params: {
|
|
4054
4889
|
id: string;
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4890
|
+
};
|
|
4891
|
+
query: unknown;
|
|
4892
|
+
headers: unknown;
|
|
4893
|
+
response: {
|
|
4894
|
+
200: {
|
|
4895
|
+
success: boolean;
|
|
4896
|
+
};
|
|
4897
|
+
422: {
|
|
4898
|
+
type: "validation";
|
|
4899
|
+
on: string;
|
|
4900
|
+
summary?: string;
|
|
4901
|
+
message?: string;
|
|
4902
|
+
found?: unknown;
|
|
4903
|
+
property?: string;
|
|
4904
|
+
expected?: string;
|
|
4905
|
+
};
|
|
4906
|
+
401: "Unauthorized";
|
|
4907
|
+
403: "Forbidden: Admins only";
|
|
4069
4908
|
};
|
|
4070
4909
|
};
|
|
4071
|
-
422: {
|
|
4072
|
-
type: "validation";
|
|
4073
|
-
on: string;
|
|
4074
|
-
summary?: string;
|
|
4075
|
-
message?: string;
|
|
4076
|
-
found?: unknown;
|
|
4077
|
-
property?: string;
|
|
4078
|
-
expected?: string;
|
|
4079
|
-
};
|
|
4080
|
-
401: "Unauthorized";
|
|
4081
|
-
403: "Forbidden: Admins only";
|
|
4082
4910
|
};
|
|
4083
4911
|
};
|
|
4084
4912
|
};
|
|
4085
4913
|
};
|
|
4086
4914
|
} & {
|
|
4087
4915
|
admin: {
|
|
4088
|
-
|
|
4916
|
+
team: {};
|
|
4089
4917
|
} & {
|
|
4090
|
-
|
|
4918
|
+
team: {
|
|
4091
4919
|
summary: {
|
|
4092
4920
|
get: {
|
|
4093
4921
|
body: unknown;
|
|
4094
4922
|
params: {};
|
|
4095
4923
|
query: {
|
|
4096
|
-
limit?: number | undefined;
|
|
4097
|
-
offset?: number | undefined;
|
|
4098
|
-
pageSize?: number | undefined;
|
|
4099
|
-
pageIndex?: number | undefined;
|
|
4100
|
-
maxDepth?: number | undefined;
|
|
4101
4924
|
referralCode: string;
|
|
4102
4925
|
};
|
|
4103
4926
|
headers: unknown;
|
|
4104
4927
|
response: {
|
|
4105
4928
|
200: {
|
|
4106
|
-
referredBy?: string | undefined;
|
|
4107
4929
|
userId: string;
|
|
4108
4930
|
referralCode: string;
|
|
4109
4931
|
totalCount: number;
|
|
@@ -4127,24 +4949,30 @@ declare const app: Elysia<"/api", {
|
|
|
4127
4949
|
};
|
|
4128
4950
|
};
|
|
4129
4951
|
} & {
|
|
4130
|
-
|
|
4952
|
+
team: {
|
|
4131
4953
|
members: {
|
|
4132
4954
|
get: {
|
|
4133
4955
|
body: unknown;
|
|
4134
4956
|
params: {};
|
|
4135
4957
|
query: {
|
|
4958
|
+
depth?: number | undefined;
|
|
4136
4959
|
limit?: number | undefined;
|
|
4137
4960
|
offset?: number | undefined;
|
|
4138
4961
|
pageSize?: number | undefined;
|
|
4139
4962
|
pageIndex?: number | undefined;
|
|
4140
|
-
maxDepth?: number | undefined;
|
|
4141
4963
|
referralCode: string;
|
|
4142
4964
|
};
|
|
4143
4965
|
headers: unknown;
|
|
4144
4966
|
response: {
|
|
4145
4967
|
200: {
|
|
4146
4968
|
data: {
|
|
4147
|
-
|
|
4969
|
+
id: string;
|
|
4970
|
+
createdAt: Date;
|
|
4971
|
+
updatedAt: Date;
|
|
4972
|
+
depth: number;
|
|
4973
|
+
ancestorId: string;
|
|
4974
|
+
descendantId: string;
|
|
4975
|
+
descendant: {
|
|
4148
4976
|
email: string;
|
|
4149
4977
|
id: string;
|
|
4150
4978
|
name: string;
|
|
@@ -4163,7 +4991,14 @@ declare const app: Elysia<"/api", {
|
|
|
4163
4991
|
banReason: string | null;
|
|
4164
4992
|
banExpires: Date | null;
|
|
4165
4993
|
};
|
|
4166
|
-
|
|
4994
|
+
depthConfig: {
|
|
4995
|
+
id: string;
|
|
4996
|
+
createdAt: Date;
|
|
4997
|
+
updatedAt: Date;
|
|
4998
|
+
depth: number;
|
|
4999
|
+
commissionRate: string;
|
|
5000
|
+
} | null;
|
|
5001
|
+
directCount: number;
|
|
4167
5002
|
}[];
|
|
4168
5003
|
pagination: {
|
|
4169
5004
|
total: number;
|
|
@@ -4191,73 +5026,102 @@ declare const app: Elysia<"/api", {
|
|
|
4191
5026
|
};
|
|
4192
5027
|
} & {
|
|
4193
5028
|
admin: {
|
|
4194
|
-
|
|
4195
|
-
"depth-configs": {};
|
|
4196
|
-
};
|
|
5029
|
+
transfer: {};
|
|
4197
5030
|
} & {
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
5031
|
+
transfer: {
|
|
5032
|
+
get: {
|
|
5033
|
+
body: unknown;
|
|
5034
|
+
params: {};
|
|
5035
|
+
query: {
|
|
5036
|
+
limit?: number | undefined;
|
|
5037
|
+
offset?: number | undefined;
|
|
5038
|
+
pageSize?: number | undefined;
|
|
5039
|
+
pageIndex?: number | undefined;
|
|
5040
|
+
};
|
|
5041
|
+
headers: unknown;
|
|
5042
|
+
response: {
|
|
5043
|
+
200: {
|
|
5044
|
+
data: {
|
|
4210
5045
|
id: string;
|
|
4211
5046
|
createdAt: Date;
|
|
4212
5047
|
updatedAt: Date;
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
5048
|
+
assetId: string | null;
|
|
5049
|
+
amount: string;
|
|
5050
|
+
idempotencyKey: string;
|
|
5051
|
+
orderNo: string;
|
|
5052
|
+
targetAccountId: string | null;
|
|
5053
|
+
sourceAccountId: string | null;
|
|
5054
|
+
sourceUserId: string;
|
|
5055
|
+
targetUserId: string;
|
|
5056
|
+
}[];
|
|
5057
|
+
pagination: {
|
|
5058
|
+
total: number;
|
|
5059
|
+
pageSize: number;
|
|
5060
|
+
pageIndex: number;
|
|
5061
|
+
totalPages: number;
|
|
5062
|
+
hasNextPage: boolean;
|
|
4224
5063
|
};
|
|
4225
|
-
401: "Unauthorized";
|
|
4226
|
-
403: "Forbidden: Admins only";
|
|
4227
5064
|
};
|
|
5065
|
+
422: {
|
|
5066
|
+
type: "validation";
|
|
5067
|
+
on: string;
|
|
5068
|
+
summary?: string;
|
|
5069
|
+
message?: string;
|
|
5070
|
+
found?: unknown;
|
|
5071
|
+
property?: string;
|
|
5072
|
+
expected?: string;
|
|
5073
|
+
};
|
|
5074
|
+
401: "Unauthorized";
|
|
5075
|
+
403: "Forbidden: Admins only";
|
|
4228
5076
|
};
|
|
4229
5077
|
};
|
|
4230
5078
|
};
|
|
5079
|
+
};
|
|
5080
|
+
} & {
|
|
5081
|
+
admin: {
|
|
5082
|
+
trade_market: {};
|
|
4231
5083
|
} & {
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
body:
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
5084
|
+
trade_market: {
|
|
5085
|
+
markets: {
|
|
5086
|
+
post: {
|
|
5087
|
+
body: {
|
|
5088
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
5089
|
+
pricingSource?: string | undefined;
|
|
5090
|
+
isBuyEnabled?: boolean | undefined;
|
|
5091
|
+
isSellEnabled?: boolean | undefined;
|
|
5092
|
+
maxBaseAmount?: string | null | undefined;
|
|
5093
|
+
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
5094
|
+
dailyUserSellBaseLimit?: string | null | undefined;
|
|
5095
|
+
maxSlippageBps?: string | undefined;
|
|
5096
|
+
name: string;
|
|
5097
|
+
baseAssetId: string;
|
|
5098
|
+
quoteAssetId: string;
|
|
5099
|
+
systemBaseAccountId: string;
|
|
5100
|
+
systemQuoteAccountId: string;
|
|
5101
|
+
minBaseAmount: string;
|
|
4243
5102
|
};
|
|
5103
|
+
params: {};
|
|
5104
|
+
query: unknown;
|
|
4244
5105
|
headers: unknown;
|
|
4245
5106
|
response: {
|
|
4246
5107
|
200: {
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
5108
|
+
id: string;
|
|
5109
|
+
name: string;
|
|
5110
|
+
createdAt: Date;
|
|
5111
|
+
updatedAt: Date;
|
|
5112
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5113
|
+
baseAssetId: string;
|
|
5114
|
+
quoteAssetId: string;
|
|
5115
|
+
pricingSource: string;
|
|
5116
|
+
systemBaseAccountId: string;
|
|
5117
|
+
systemQuoteAccountId: string;
|
|
5118
|
+
isBuyEnabled: boolean;
|
|
5119
|
+
isSellEnabled: boolean;
|
|
5120
|
+
minBaseAmount: string;
|
|
5121
|
+
maxBaseAmount: string | null;
|
|
5122
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5123
|
+
dailyUserSellBaseLimit: string | null;
|
|
5124
|
+
maxSlippageBps: string;
|
|
4261
5125
|
};
|
|
4262
5126
|
422: {
|
|
4263
5127
|
type: "validation";
|
|
@@ -4275,48 +5139,25 @@ declare const app: Elysia<"/api", {
|
|
|
4275
5139
|
};
|
|
4276
5140
|
};
|
|
4277
5141
|
} & {
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
":id": {
|
|
4281
|
-
get: {
|
|
4282
|
-
body: unknown;
|
|
4283
|
-
params: {
|
|
4284
|
-
id: string;
|
|
4285
|
-
};
|
|
4286
|
-
query: unknown;
|
|
4287
|
-
headers: unknown;
|
|
4288
|
-
response: {
|
|
4289
|
-
200: {
|
|
4290
|
-
id: string;
|
|
4291
|
-
createdAt: Date;
|
|
4292
|
-
updatedAt: Date;
|
|
4293
|
-
depth: number;
|
|
4294
|
-
commissionRate: string;
|
|
4295
|
-
};
|
|
4296
|
-
422: {
|
|
4297
|
-
type: "validation";
|
|
4298
|
-
on: string;
|
|
4299
|
-
summary?: string;
|
|
4300
|
-
message?: string;
|
|
4301
|
-
found?: unknown;
|
|
4302
|
-
property?: string;
|
|
4303
|
-
expected?: string;
|
|
4304
|
-
};
|
|
4305
|
-
401: "Unauthorized";
|
|
4306
|
-
403: "Forbidden: Admins only";
|
|
4307
|
-
};
|
|
4308
|
-
};
|
|
4309
|
-
};
|
|
4310
|
-
};
|
|
4311
|
-
};
|
|
4312
|
-
} & {
|
|
4313
|
-
referrals: {
|
|
4314
|
-
"depth-configs": {
|
|
5142
|
+
trade_market: {
|
|
5143
|
+
markets: {
|
|
4315
5144
|
":id": {
|
|
4316
5145
|
patch: {
|
|
4317
5146
|
body: {
|
|
4318
|
-
|
|
4319
|
-
|
|
5147
|
+
name?: string | undefined;
|
|
5148
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
5149
|
+
baseAssetId?: string | undefined;
|
|
5150
|
+
quoteAssetId?: string | undefined;
|
|
5151
|
+
pricingSource?: string | undefined;
|
|
5152
|
+
systemBaseAccountId?: string | undefined;
|
|
5153
|
+
systemQuoteAccountId?: string | undefined;
|
|
5154
|
+
isBuyEnabled?: boolean | undefined;
|
|
5155
|
+
isSellEnabled?: boolean | undefined;
|
|
5156
|
+
minBaseAmount?: string | undefined;
|
|
5157
|
+
maxBaseAmount?: string | null | undefined;
|
|
5158
|
+
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
5159
|
+
dailyUserSellBaseLimit?: string | null | undefined;
|
|
5160
|
+
maxSlippageBps?: string | undefined;
|
|
4320
5161
|
};
|
|
4321
5162
|
params: {
|
|
4322
5163
|
id: string;
|
|
@@ -4326,10 +5167,22 @@ declare const app: Elysia<"/api", {
|
|
|
4326
5167
|
response: {
|
|
4327
5168
|
200: {
|
|
4328
5169
|
id: string;
|
|
5170
|
+
name: string;
|
|
4329
5171
|
createdAt: Date;
|
|
4330
5172
|
updatedAt: Date;
|
|
4331
|
-
|
|
4332
|
-
|
|
5173
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5174
|
+
baseAssetId: string;
|
|
5175
|
+
quoteAssetId: string;
|
|
5176
|
+
pricingSource: string;
|
|
5177
|
+
systemBaseAccountId: string;
|
|
5178
|
+
systemQuoteAccountId: string;
|
|
5179
|
+
isBuyEnabled: boolean;
|
|
5180
|
+
isSellEnabled: boolean;
|
|
5181
|
+
minBaseAmount: string;
|
|
5182
|
+
maxBaseAmount: string | null;
|
|
5183
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5184
|
+
dailyUserSellBaseLimit: string | null;
|
|
5185
|
+
maxSlippageBps: string;
|
|
4333
5186
|
};
|
|
4334
5187
|
422: {
|
|
4335
5188
|
type: "validation";
|
|
@@ -4348,58 +5201,194 @@ declare const app: Elysia<"/api", {
|
|
|
4348
5201
|
};
|
|
4349
5202
|
};
|
|
4350
5203
|
} & {
|
|
4351
|
-
|
|
4352
|
-
|
|
5204
|
+
trade_market: {
|
|
5205
|
+
markets: {
|
|
4353
5206
|
":id": {
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
5207
|
+
activate: {
|
|
5208
|
+
post: {
|
|
5209
|
+
body: unknown;
|
|
5210
|
+
params: {
|
|
5211
|
+
id: string;
|
|
5212
|
+
};
|
|
5213
|
+
query: unknown;
|
|
5214
|
+
headers: unknown;
|
|
5215
|
+
response: {
|
|
5216
|
+
200: {
|
|
5217
|
+
createdAt: Date;
|
|
5218
|
+
updatedAt: Date;
|
|
5219
|
+
id: string;
|
|
5220
|
+
name: string;
|
|
5221
|
+
baseAssetId: string;
|
|
5222
|
+
quoteAssetId: string;
|
|
5223
|
+
pricingSource: string;
|
|
5224
|
+
systemBaseAccountId: string;
|
|
5225
|
+
systemQuoteAccountId: string;
|
|
5226
|
+
isBuyEnabled: boolean;
|
|
5227
|
+
isSellEnabled: boolean;
|
|
5228
|
+
minBaseAmount: string;
|
|
5229
|
+
maxBaseAmount: string | null;
|
|
5230
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5231
|
+
dailyUserSellBaseLimit: string | null;
|
|
5232
|
+
maxSlippageBps: string;
|
|
5233
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5234
|
+
};
|
|
5235
|
+
422: {
|
|
5236
|
+
type: "validation";
|
|
5237
|
+
on: string;
|
|
5238
|
+
summary?: string;
|
|
5239
|
+
message?: string;
|
|
5240
|
+
found?: unknown;
|
|
5241
|
+
property?: string;
|
|
5242
|
+
expected?: string;
|
|
5243
|
+
};
|
|
5244
|
+
401: "Unauthorized";
|
|
5245
|
+
403: "Forbidden: Admins only";
|
|
5246
|
+
};
|
|
4358
5247
|
};
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
5248
|
+
};
|
|
5249
|
+
};
|
|
5250
|
+
};
|
|
5251
|
+
};
|
|
5252
|
+
} & {
|
|
5253
|
+
trade_market: {
|
|
5254
|
+
markets: {
|
|
5255
|
+
":id": {
|
|
5256
|
+
pause: {
|
|
5257
|
+
post: {
|
|
5258
|
+
body: unknown;
|
|
5259
|
+
params: {
|
|
5260
|
+
id: string;
|
|
4364
5261
|
};
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
5262
|
+
query: unknown;
|
|
5263
|
+
headers: unknown;
|
|
5264
|
+
response: {
|
|
5265
|
+
200: {
|
|
5266
|
+
createdAt: Date;
|
|
5267
|
+
updatedAt: Date;
|
|
5268
|
+
id: string;
|
|
5269
|
+
name: string;
|
|
5270
|
+
baseAssetId: string;
|
|
5271
|
+
quoteAssetId: string;
|
|
5272
|
+
pricingSource: string;
|
|
5273
|
+
systemBaseAccountId: string;
|
|
5274
|
+
systemQuoteAccountId: string;
|
|
5275
|
+
isBuyEnabled: boolean;
|
|
5276
|
+
isSellEnabled: boolean;
|
|
5277
|
+
minBaseAmount: string;
|
|
5278
|
+
maxBaseAmount: string | null;
|
|
5279
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5280
|
+
dailyUserSellBaseLimit: string | null;
|
|
5281
|
+
maxSlippageBps: string;
|
|
5282
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5283
|
+
};
|
|
5284
|
+
422: {
|
|
5285
|
+
type: "validation";
|
|
5286
|
+
on: string;
|
|
5287
|
+
summary?: string;
|
|
5288
|
+
message?: string;
|
|
5289
|
+
found?: unknown;
|
|
5290
|
+
property?: string;
|
|
5291
|
+
expected?: string;
|
|
5292
|
+
};
|
|
5293
|
+
401: "Unauthorized";
|
|
5294
|
+
403: "Forbidden: Admins only";
|
|
4373
5295
|
};
|
|
4374
|
-
401: "Unauthorized";
|
|
4375
|
-
403: "Forbidden: Admins only";
|
|
4376
5296
|
};
|
|
4377
5297
|
};
|
|
4378
5298
|
};
|
|
4379
5299
|
};
|
|
4380
5300
|
};
|
|
4381
|
-
};
|
|
4382
|
-
} & {
|
|
4383
|
-
admin: {
|
|
4384
|
-
team: {};
|
|
4385
5301
|
} & {
|
|
4386
|
-
|
|
4387
|
-
|
|
5302
|
+
trade_market: {
|
|
5303
|
+
markets: {
|
|
5304
|
+
":id": {
|
|
5305
|
+
end: {
|
|
5306
|
+
post: {
|
|
5307
|
+
body: unknown;
|
|
5308
|
+
params: {
|
|
5309
|
+
id: string;
|
|
5310
|
+
};
|
|
5311
|
+
query: unknown;
|
|
5312
|
+
headers: unknown;
|
|
5313
|
+
response: {
|
|
5314
|
+
200: {
|
|
5315
|
+
createdAt: Date;
|
|
5316
|
+
updatedAt: Date;
|
|
5317
|
+
id: string;
|
|
5318
|
+
name: string;
|
|
5319
|
+
baseAssetId: string;
|
|
5320
|
+
quoteAssetId: string;
|
|
5321
|
+
pricingSource: string;
|
|
5322
|
+
systemBaseAccountId: string;
|
|
5323
|
+
systemQuoteAccountId: string;
|
|
5324
|
+
isBuyEnabled: boolean;
|
|
5325
|
+
isSellEnabled: boolean;
|
|
5326
|
+
minBaseAmount: string;
|
|
5327
|
+
maxBaseAmount: string | null;
|
|
5328
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5329
|
+
dailyUserSellBaseLimit: string | null;
|
|
5330
|
+
maxSlippageBps: string;
|
|
5331
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5332
|
+
};
|
|
5333
|
+
422: {
|
|
5334
|
+
type: "validation";
|
|
5335
|
+
on: string;
|
|
5336
|
+
summary?: string;
|
|
5337
|
+
message?: string;
|
|
5338
|
+
found?: unknown;
|
|
5339
|
+
property?: string;
|
|
5340
|
+
expected?: string;
|
|
5341
|
+
};
|
|
5342
|
+
401: "Unauthorized";
|
|
5343
|
+
403: "Forbidden: Admins only";
|
|
5344
|
+
};
|
|
5345
|
+
};
|
|
5346
|
+
};
|
|
5347
|
+
};
|
|
5348
|
+
};
|
|
5349
|
+
};
|
|
5350
|
+
} & {
|
|
5351
|
+
trade_market: {
|
|
5352
|
+
markets: {
|
|
4388
5353
|
get: {
|
|
4389
5354
|
body: unknown;
|
|
4390
5355
|
params: {};
|
|
4391
5356
|
query: {
|
|
4392
|
-
|
|
5357
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
5358
|
+
limit?: number | undefined;
|
|
5359
|
+
offset?: number | undefined;
|
|
5360
|
+
pageSize?: number | undefined;
|
|
5361
|
+
pageIndex?: number | undefined;
|
|
4393
5362
|
};
|
|
4394
5363
|
headers: unknown;
|
|
4395
5364
|
response: {
|
|
4396
5365
|
200: {
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
5366
|
+
data: {
|
|
5367
|
+
id: string;
|
|
5368
|
+
name: string;
|
|
5369
|
+
createdAt: Date;
|
|
5370
|
+
updatedAt: Date;
|
|
5371
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5372
|
+
baseAssetId: string;
|
|
5373
|
+
quoteAssetId: string;
|
|
5374
|
+
pricingSource: string;
|
|
5375
|
+
systemBaseAccountId: string;
|
|
5376
|
+
systemQuoteAccountId: string;
|
|
5377
|
+
isBuyEnabled: boolean;
|
|
5378
|
+
isSellEnabled: boolean;
|
|
5379
|
+
minBaseAmount: string;
|
|
5380
|
+
maxBaseAmount: string | null;
|
|
5381
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5382
|
+
dailyUserSellBaseLimit: string | null;
|
|
5383
|
+
maxSlippageBps: string;
|
|
5384
|
+
}[];
|
|
5385
|
+
pagination: {
|
|
5386
|
+
total: number;
|
|
5387
|
+
pageSize: number;
|
|
5388
|
+
pageIndex: number;
|
|
5389
|
+
totalPages: number;
|
|
5390
|
+
hasNextPage: boolean;
|
|
5391
|
+
};
|
|
4403
5392
|
};
|
|
4404
5393
|
422: {
|
|
4405
5394
|
type: "validation";
|
|
@@ -4417,18 +5406,20 @@ declare const app: Elysia<"/api", {
|
|
|
4417
5406
|
};
|
|
4418
5407
|
};
|
|
4419
5408
|
} & {
|
|
4420
|
-
|
|
4421
|
-
|
|
5409
|
+
trade_market: {
|
|
5410
|
+
orders: {
|
|
4422
5411
|
get: {
|
|
4423
5412
|
body: unknown;
|
|
4424
5413
|
params: {};
|
|
4425
5414
|
query: {
|
|
4426
|
-
|
|
5415
|
+
userId?: string | undefined;
|
|
5416
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
5417
|
+
marketId?: string | undefined;
|
|
5418
|
+
side?: "buy" | "sell" | undefined;
|
|
4427
5419
|
limit?: number | undefined;
|
|
4428
5420
|
offset?: number | undefined;
|
|
4429
5421
|
pageSize?: number | undefined;
|
|
4430
5422
|
pageIndex?: number | undefined;
|
|
4431
|
-
referralCode: string;
|
|
4432
5423
|
};
|
|
4433
5424
|
headers: unknown;
|
|
4434
5425
|
response: {
|
|
@@ -4437,36 +5428,25 @@ declare const app: Elysia<"/api", {
|
|
|
4437
5428
|
id: string;
|
|
4438
5429
|
createdAt: Date;
|
|
4439
5430
|
updatedAt: Date;
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
banReason: string | null;
|
|
4460
|
-
banExpires: Date | null;
|
|
4461
|
-
};
|
|
4462
|
-
depthConfig: {
|
|
4463
|
-
id: string;
|
|
4464
|
-
createdAt: Date;
|
|
4465
|
-
updatedAt: Date;
|
|
4466
|
-
depth: number;
|
|
4467
|
-
commissionRate: string;
|
|
4468
|
-
} | null;
|
|
4469
|
-
directCount: number;
|
|
5431
|
+
userId: string;
|
|
5432
|
+
status: "created" | "completed" | "failed";
|
|
5433
|
+
idempotencyKey: string;
|
|
5434
|
+
orderNo: string;
|
|
5435
|
+
priceSnapshot: string;
|
|
5436
|
+
priceEffectiveAtSnapshot: Date;
|
|
5437
|
+
failureCode: string | null;
|
|
5438
|
+
failureReason: string | null;
|
|
5439
|
+
marketId: string;
|
|
5440
|
+
side: "buy" | "sell";
|
|
5441
|
+
baseAmount: string;
|
|
5442
|
+
quoteAmount: string;
|
|
5443
|
+
pricingSourceSnapshot: string;
|
|
5444
|
+
userBaseAccountId: string;
|
|
5445
|
+
userQuoteAccountId: string;
|
|
5446
|
+
systemBaseAccountIdSnapshot: string;
|
|
5447
|
+
systemQuoteAccountIdSnapshot: string;
|
|
5448
|
+
userDebitLedgerEntryId: string | null;
|
|
5449
|
+
userCreditLedgerEntryId: string | null;
|
|
4470
5450
|
}[];
|
|
4471
5451
|
pagination: {
|
|
4472
5452
|
total: number;
|
|
@@ -4474,73 +5454,20 @@ declare const app: Elysia<"/api", {
|
|
|
4474
5454
|
pageIndex: number;
|
|
4475
5455
|
totalPages: number;
|
|
4476
5456
|
hasNextPage: boolean;
|
|
4477
|
-
};
|
|
4478
|
-
};
|
|
4479
|
-
422: {
|
|
4480
|
-
type: "validation";
|
|
4481
|
-
on: string;
|
|
4482
|
-
summary?: string;
|
|
4483
|
-
message?: string;
|
|
4484
|
-
found?: unknown;
|
|
4485
|
-
property?: string;
|
|
4486
|
-
expected?: string;
|
|
4487
|
-
};
|
|
4488
|
-
401: "Unauthorized";
|
|
4489
|
-
403: "Forbidden: Admins only";
|
|
4490
|
-
};
|
|
4491
|
-
};
|
|
4492
|
-
};
|
|
4493
|
-
};
|
|
4494
|
-
};
|
|
4495
|
-
} & {
|
|
4496
|
-
admin: {
|
|
4497
|
-
transfer: {};
|
|
4498
|
-
} & {
|
|
4499
|
-
transfer: {
|
|
4500
|
-
get: {
|
|
4501
|
-
body: unknown;
|
|
4502
|
-
params: {};
|
|
4503
|
-
query: {
|
|
4504
|
-
limit?: number | undefined;
|
|
4505
|
-
offset?: number | undefined;
|
|
4506
|
-
pageSize?: number | undefined;
|
|
4507
|
-
pageIndex?: number | undefined;
|
|
4508
|
-
};
|
|
4509
|
-
headers: unknown;
|
|
4510
|
-
response: {
|
|
4511
|
-
200: {
|
|
4512
|
-
data: {
|
|
4513
|
-
id: string;
|
|
4514
|
-
createdAt: Date;
|
|
4515
|
-
updatedAt: Date;
|
|
4516
|
-
assetId: string | null;
|
|
4517
|
-
amount: string;
|
|
4518
|
-
idempotencyKey: string;
|
|
4519
|
-
orderNo: string;
|
|
4520
|
-
targetAccountId: string | null;
|
|
4521
|
-
sourceAccountId: string | null;
|
|
4522
|
-
sourceUserId: string;
|
|
4523
|
-
targetUserId: string;
|
|
4524
|
-
}[];
|
|
4525
|
-
pagination: {
|
|
4526
|
-
total: number;
|
|
4527
|
-
pageSize: number;
|
|
4528
|
-
pageIndex: number;
|
|
4529
|
-
totalPages: number;
|
|
4530
|
-
hasNextPage: boolean;
|
|
5457
|
+
};
|
|
4531
5458
|
};
|
|
5459
|
+
422: {
|
|
5460
|
+
type: "validation";
|
|
5461
|
+
on: string;
|
|
5462
|
+
summary?: string;
|
|
5463
|
+
message?: string;
|
|
5464
|
+
found?: unknown;
|
|
5465
|
+
property?: string;
|
|
5466
|
+
expected?: string;
|
|
5467
|
+
};
|
|
5468
|
+
401: "Unauthorized";
|
|
5469
|
+
403: "Forbidden: Admins only";
|
|
4532
5470
|
};
|
|
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
5471
|
};
|
|
4545
5472
|
};
|
|
4546
5473
|
};
|
|
@@ -8141,88 +9068,271 @@ declare const app: Elysia<"/api", {
|
|
|
8141
9068
|
};
|
|
8142
9069
|
} & {
|
|
8143
9070
|
api: {
|
|
8144
|
-
checkIns: {};
|
|
8145
|
-
} & {
|
|
8146
|
-
checkIns: {
|
|
8147
|
-
post: {
|
|
8148
|
-
body: {
|
|
8149
|
-
timezone?: string | undefined;
|
|
8150
|
-
checkInType?: "app" | "meeting" | undefined;
|
|
8151
|
-
};
|
|
8152
|
-
params: {};
|
|
8153
|
-
query: unknown;
|
|
8154
|
-
headers: unknown;
|
|
8155
|
-
response: {
|
|
8156
|
-
200: {
|
|
8157
|
-
id: string;
|
|
8158
|
-
createdAt: Date;
|
|
8159
|
-
updatedAt: Date;
|
|
8160
|
-
userId: string;
|
|
8161
|
-
checkInType: "app" | "meeting";
|
|
8162
|
-
checkInAt: Date;
|
|
8163
|
-
checkInTimezone: string | null;
|
|
8164
|
-
checkInOffsetMinutes: number | null;
|
|
8165
|
-
checkInLocalDate: string | null;
|
|
8166
|
-
};
|
|
8167
|
-
422: {
|
|
8168
|
-
type: "validation";
|
|
8169
|
-
on: string;
|
|
8170
|
-
summary?: string;
|
|
8171
|
-
message?: string;
|
|
8172
|
-
found?: unknown;
|
|
8173
|
-
property?: string;
|
|
8174
|
-
expected?: string;
|
|
8175
|
-
};
|
|
8176
|
-
401: "Unauthorized";
|
|
8177
|
-
};
|
|
8178
|
-
};
|
|
8179
|
-
};
|
|
9071
|
+
checkIns: {};
|
|
9072
|
+
} & {
|
|
9073
|
+
checkIns: {
|
|
9074
|
+
post: {
|
|
9075
|
+
body: {
|
|
9076
|
+
timezone?: string | undefined;
|
|
9077
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
9078
|
+
};
|
|
9079
|
+
params: {};
|
|
9080
|
+
query: unknown;
|
|
9081
|
+
headers: unknown;
|
|
9082
|
+
response: {
|
|
9083
|
+
200: {
|
|
9084
|
+
id: string;
|
|
9085
|
+
createdAt: Date;
|
|
9086
|
+
updatedAt: Date;
|
|
9087
|
+
userId: string;
|
|
9088
|
+
checkInType: "app" | "meeting";
|
|
9089
|
+
checkInAt: Date;
|
|
9090
|
+
checkInTimezone: string | null;
|
|
9091
|
+
checkInOffsetMinutes: number | null;
|
|
9092
|
+
checkInLocalDate: string | null;
|
|
9093
|
+
};
|
|
9094
|
+
422: {
|
|
9095
|
+
type: "validation";
|
|
9096
|
+
on: string;
|
|
9097
|
+
summary?: string;
|
|
9098
|
+
message?: string;
|
|
9099
|
+
found?: unknown;
|
|
9100
|
+
property?: string;
|
|
9101
|
+
expected?: string;
|
|
9102
|
+
};
|
|
9103
|
+
401: "Unauthorized";
|
|
9104
|
+
};
|
|
9105
|
+
};
|
|
9106
|
+
};
|
|
9107
|
+
} & {
|
|
9108
|
+
checkIns: {
|
|
9109
|
+
get: {
|
|
9110
|
+
body: unknown;
|
|
9111
|
+
params: {};
|
|
9112
|
+
query: {
|
|
9113
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
9114
|
+
startDate?: Date | undefined;
|
|
9115
|
+
limit?: number | undefined;
|
|
9116
|
+
offset?: number | undefined;
|
|
9117
|
+
pageSize?: number | undefined;
|
|
9118
|
+
pageIndex?: number | undefined;
|
|
9119
|
+
endDate?: Date | undefined;
|
|
9120
|
+
};
|
|
9121
|
+
headers: unknown;
|
|
9122
|
+
response: {
|
|
9123
|
+
200: {
|
|
9124
|
+
data: {
|
|
9125
|
+
user: {
|
|
9126
|
+
email: string;
|
|
9127
|
+
id: string;
|
|
9128
|
+
name: string;
|
|
9129
|
+
emailVerified: boolean;
|
|
9130
|
+
image: string | null;
|
|
9131
|
+
createdAt: Date;
|
|
9132
|
+
updatedAt: Date;
|
|
9133
|
+
twoFactorEnabled: boolean | null;
|
|
9134
|
+
username: string | null;
|
|
9135
|
+
displayUsername: string | null;
|
|
9136
|
+
isAnonymous: boolean | null;
|
|
9137
|
+
phoneNumber: string | null;
|
|
9138
|
+
phoneNumberVerified: boolean | null;
|
|
9139
|
+
role: string | null;
|
|
9140
|
+
banned: boolean | null;
|
|
9141
|
+
banReason: string | null;
|
|
9142
|
+
banExpires: Date | null;
|
|
9143
|
+
};
|
|
9144
|
+
id: string;
|
|
9145
|
+
createdAt: Date;
|
|
9146
|
+
updatedAt: Date;
|
|
9147
|
+
userId: string;
|
|
9148
|
+
checkInType: "app" | "meeting";
|
|
9149
|
+
checkInAt: Date;
|
|
9150
|
+
checkInTimezone: string | null;
|
|
9151
|
+
checkInOffsetMinutes: number | null;
|
|
9152
|
+
checkInLocalDate: string | null;
|
|
9153
|
+
}[];
|
|
9154
|
+
pagination: {
|
|
9155
|
+
total: number;
|
|
9156
|
+
pageSize: number;
|
|
9157
|
+
pageIndex: number;
|
|
9158
|
+
totalPages: number;
|
|
9159
|
+
hasNextPage: boolean;
|
|
9160
|
+
};
|
|
9161
|
+
};
|
|
9162
|
+
422: {
|
|
9163
|
+
type: "validation";
|
|
9164
|
+
on: string;
|
|
9165
|
+
summary?: string;
|
|
9166
|
+
message?: string;
|
|
9167
|
+
found?: unknown;
|
|
9168
|
+
property?: string;
|
|
9169
|
+
expected?: string;
|
|
9170
|
+
};
|
|
9171
|
+
401: "Unauthorized";
|
|
9172
|
+
};
|
|
9173
|
+
};
|
|
9174
|
+
};
|
|
9175
|
+
} & {
|
|
9176
|
+
checkIns: {
|
|
9177
|
+
total_days: {
|
|
9178
|
+
get: {
|
|
9179
|
+
body: unknown;
|
|
9180
|
+
params: {};
|
|
9181
|
+
query: {
|
|
9182
|
+
timezone?: string | undefined;
|
|
9183
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
9184
|
+
};
|
|
9185
|
+
headers: unknown;
|
|
9186
|
+
response: {
|
|
9187
|
+
200: {
|
|
9188
|
+
totalDays: number;
|
|
9189
|
+
};
|
|
9190
|
+
422: {
|
|
9191
|
+
type: "validation";
|
|
9192
|
+
on: string;
|
|
9193
|
+
summary?: string;
|
|
9194
|
+
message?: string;
|
|
9195
|
+
found?: unknown;
|
|
9196
|
+
property?: string;
|
|
9197
|
+
expected?: string;
|
|
9198
|
+
};
|
|
9199
|
+
401: "Unauthorized";
|
|
9200
|
+
};
|
|
9201
|
+
};
|
|
9202
|
+
};
|
|
9203
|
+
};
|
|
9204
|
+
} & {
|
|
9205
|
+
checkIns: {
|
|
9206
|
+
current_streak: {
|
|
9207
|
+
get: {
|
|
9208
|
+
body: unknown;
|
|
9209
|
+
params: {};
|
|
9210
|
+
query: {
|
|
9211
|
+
timezone?: string | undefined;
|
|
9212
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
9213
|
+
};
|
|
9214
|
+
headers: unknown;
|
|
9215
|
+
response: {
|
|
9216
|
+
200: {
|
|
9217
|
+
currentStreakDays: number;
|
|
9218
|
+
};
|
|
9219
|
+
422: {
|
|
9220
|
+
type: "validation";
|
|
9221
|
+
on: string;
|
|
9222
|
+
summary?: string;
|
|
9223
|
+
message?: string;
|
|
9224
|
+
found?: unknown;
|
|
9225
|
+
property?: string;
|
|
9226
|
+
expected?: string;
|
|
9227
|
+
};
|
|
9228
|
+
401: "Unauthorized";
|
|
9229
|
+
};
|
|
9230
|
+
};
|
|
9231
|
+
};
|
|
9232
|
+
};
|
|
9233
|
+
} & {
|
|
9234
|
+
checkIns: {
|
|
9235
|
+
today: {
|
|
9236
|
+
get: {
|
|
9237
|
+
body: unknown;
|
|
9238
|
+
params: {};
|
|
9239
|
+
query: {
|
|
9240
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
9241
|
+
timezone: string;
|
|
9242
|
+
};
|
|
9243
|
+
headers: unknown;
|
|
9244
|
+
response: {
|
|
9245
|
+
200: {
|
|
9246
|
+
checkedInToday: boolean;
|
|
9247
|
+
};
|
|
9248
|
+
422: {
|
|
9249
|
+
type: "validation";
|
|
9250
|
+
on: string;
|
|
9251
|
+
summary?: string;
|
|
9252
|
+
message?: string;
|
|
9253
|
+
found?: unknown;
|
|
9254
|
+
property?: string;
|
|
9255
|
+
expected?: string;
|
|
9256
|
+
};
|
|
9257
|
+
401: "Unauthorized";
|
|
9258
|
+
};
|
|
9259
|
+
};
|
|
9260
|
+
};
|
|
9261
|
+
};
|
|
9262
|
+
};
|
|
9263
|
+
} & {
|
|
9264
|
+
api: {
|
|
9265
|
+
ledger_account_transfer: {};
|
|
9266
|
+
} & {
|
|
9267
|
+
ledger_account_transfer: {
|
|
9268
|
+
ledger_account: {
|
|
9269
|
+
post: {
|
|
9270
|
+
body: {
|
|
9271
|
+
amount: string;
|
|
9272
|
+
targetAccountId: string;
|
|
9273
|
+
sourceAccountId: string;
|
|
9274
|
+
transactionPassword: string;
|
|
9275
|
+
};
|
|
9276
|
+
params: {};
|
|
9277
|
+
query: unknown;
|
|
9278
|
+
headers: unknown;
|
|
9279
|
+
response: {
|
|
9280
|
+
200: {
|
|
9281
|
+
isIdempotent?: boolean | undefined;
|
|
9282
|
+
targetLedgerEntryId?: string | undefined;
|
|
9283
|
+
assetId: string;
|
|
9284
|
+
referenceId: string;
|
|
9285
|
+
targetAmount: string;
|
|
9286
|
+
targetAccountId: string;
|
|
9287
|
+
sourceAccountId: string;
|
|
9288
|
+
sourceAmount: string;
|
|
9289
|
+
transferRatio: string;
|
|
9290
|
+
sourceLedgerEntryId: string;
|
|
9291
|
+
};
|
|
9292
|
+
422: {
|
|
9293
|
+
type: "validation";
|
|
9294
|
+
on: string;
|
|
9295
|
+
summary?: string;
|
|
9296
|
+
message?: string;
|
|
9297
|
+
found?: unknown;
|
|
9298
|
+
property?: string;
|
|
9299
|
+
expected?: string;
|
|
9300
|
+
};
|
|
9301
|
+
401: "Unauthorized";
|
|
9302
|
+
};
|
|
9303
|
+
};
|
|
9304
|
+
};
|
|
9305
|
+
};
|
|
9306
|
+
};
|
|
9307
|
+
} & {
|
|
9308
|
+
api: {
|
|
9309
|
+
transfer: {};
|
|
8180
9310
|
} & {
|
|
8181
|
-
|
|
9311
|
+
transfer: {
|
|
8182
9312
|
get: {
|
|
8183
9313
|
body: unknown;
|
|
8184
9314
|
params: {};
|
|
8185
9315
|
query: {
|
|
8186
|
-
checkInType?: "app" | "meeting" | undefined;
|
|
8187
|
-
startDate?: Date | undefined;
|
|
8188
9316
|
limit?: number | undefined;
|
|
8189
9317
|
offset?: number | undefined;
|
|
8190
9318
|
pageSize?: number | undefined;
|
|
8191
9319
|
pageIndex?: number | undefined;
|
|
8192
|
-
endDate?: Date | undefined;
|
|
8193
9320
|
};
|
|
8194
9321
|
headers: unknown;
|
|
8195
9322
|
response: {
|
|
8196
9323
|
200: {
|
|
8197
9324
|
data: {
|
|
8198
|
-
user: {
|
|
8199
|
-
email: string;
|
|
8200
|
-
id: string;
|
|
8201
|
-
name: string;
|
|
8202
|
-
emailVerified: boolean;
|
|
8203
|
-
image: string | null;
|
|
8204
|
-
createdAt: Date;
|
|
8205
|
-
updatedAt: Date;
|
|
8206
|
-
twoFactorEnabled: boolean | null;
|
|
8207
|
-
username: string | null;
|
|
8208
|
-
displayUsername: string | null;
|
|
8209
|
-
isAnonymous: boolean | null;
|
|
8210
|
-
phoneNumber: string | null;
|
|
8211
|
-
phoneNumberVerified: boolean | null;
|
|
8212
|
-
role: string | null;
|
|
8213
|
-
banned: boolean | null;
|
|
8214
|
-
banReason: string | null;
|
|
8215
|
-
banExpires: Date | null;
|
|
8216
|
-
};
|
|
8217
9325
|
id: string;
|
|
8218
9326
|
createdAt: Date;
|
|
8219
9327
|
updatedAt: Date;
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
9328
|
+
assetId: string | null;
|
|
9329
|
+
amount: string;
|
|
9330
|
+
idempotencyKey: string;
|
|
9331
|
+
orderNo: string;
|
|
9332
|
+
targetAccountId: string | null;
|
|
9333
|
+
sourceAccountId: string | null;
|
|
9334
|
+
sourceUserId: string;
|
|
9335
|
+
targetUserId: string;
|
|
8226
9336
|
}[];
|
|
8227
9337
|
pagination: {
|
|
8228
9338
|
total: number;
|
|
@@ -8246,19 +9356,30 @@ declare const app: Elysia<"/api", {
|
|
|
8246
9356
|
};
|
|
8247
9357
|
};
|
|
8248
9358
|
} & {
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
body:
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
9359
|
+
transfer: {
|
|
9360
|
+
ledger_account: {
|
|
9361
|
+
post: {
|
|
9362
|
+
body: {
|
|
9363
|
+
amount: string;
|
|
9364
|
+
idempotencyKey: string;
|
|
9365
|
+
targetAccountId: string;
|
|
9366
|
+
sourceAccountId: string;
|
|
9367
|
+
transactionPassword: string;
|
|
8257
9368
|
};
|
|
9369
|
+
params: {};
|
|
9370
|
+
query: unknown;
|
|
8258
9371
|
headers: unknown;
|
|
8259
9372
|
response: {
|
|
8260
9373
|
200: {
|
|
8261
|
-
|
|
9374
|
+
id: string;
|
|
9375
|
+
assetId: string | null;
|
|
9376
|
+
amount: string;
|
|
9377
|
+
orderNo: string;
|
|
9378
|
+
ledgerEntryId: string;
|
|
9379
|
+
targetAccountId: string | null;
|
|
9380
|
+
sourceAccountId: string | null;
|
|
9381
|
+
sourceUserId: string;
|
|
9382
|
+
targetUserId: string;
|
|
8262
9383
|
};
|
|
8263
9384
|
422: {
|
|
8264
9385
|
type: "validation";
|
|
@@ -8274,20 +9395,52 @@ declare const app: Elysia<"/api", {
|
|
|
8274
9395
|
};
|
|
8275
9396
|
};
|
|
8276
9397
|
};
|
|
9398
|
+
};
|
|
9399
|
+
} & {
|
|
9400
|
+
api: {
|
|
9401
|
+
trade_market: {};
|
|
8277
9402
|
} & {
|
|
8278
|
-
|
|
8279
|
-
|
|
9403
|
+
trade_market: {
|
|
9404
|
+
markets: {
|
|
8280
9405
|
get: {
|
|
8281
9406
|
body: unknown;
|
|
8282
9407
|
params: {};
|
|
8283
9408
|
query: {
|
|
8284
|
-
|
|
8285
|
-
|
|
9409
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
9410
|
+
limit?: number | undefined;
|
|
9411
|
+
offset?: number | undefined;
|
|
9412
|
+
pageSize?: number | undefined;
|
|
9413
|
+
pageIndex?: number | undefined;
|
|
8286
9414
|
};
|
|
8287
9415
|
headers: unknown;
|
|
8288
9416
|
response: {
|
|
8289
9417
|
200: {
|
|
8290
|
-
|
|
9418
|
+
data: {
|
|
9419
|
+
id: string;
|
|
9420
|
+
name: string;
|
|
9421
|
+
createdAt: Date;
|
|
9422
|
+
updatedAt: Date;
|
|
9423
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
9424
|
+
baseAssetId: string;
|
|
9425
|
+
quoteAssetId: string;
|
|
9426
|
+
pricingSource: string;
|
|
9427
|
+
systemBaseAccountId: string;
|
|
9428
|
+
systemQuoteAccountId: string;
|
|
9429
|
+
isBuyEnabled: boolean;
|
|
9430
|
+
isSellEnabled: boolean;
|
|
9431
|
+
minBaseAmount: string;
|
|
9432
|
+
maxBaseAmount: string | null;
|
|
9433
|
+
dailyUserBuyBaseLimit: string | null;
|
|
9434
|
+
dailyUserSellBaseLimit: string | null;
|
|
9435
|
+
maxSlippageBps: string;
|
|
9436
|
+
}[];
|
|
9437
|
+
pagination: {
|
|
9438
|
+
total: number;
|
|
9439
|
+
pageSize: number;
|
|
9440
|
+
pageIndex: number;
|
|
9441
|
+
totalPages: number;
|
|
9442
|
+
hasNextPage: boolean;
|
|
9443
|
+
};
|
|
8291
9444
|
};
|
|
8292
9445
|
422: {
|
|
8293
9446
|
type: "validation";
|
|
@@ -8304,63 +9457,210 @@ declare const app: Elysia<"/api", {
|
|
|
8304
9457
|
};
|
|
8305
9458
|
};
|
|
8306
9459
|
} & {
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
9460
|
+
trade_market: {
|
|
9461
|
+
markets: {
|
|
9462
|
+
":id": {
|
|
9463
|
+
get: {
|
|
9464
|
+
body: unknown;
|
|
9465
|
+
params: {
|
|
9466
|
+
id: string;
|
|
9467
|
+
};
|
|
9468
|
+
query: unknown;
|
|
9469
|
+
headers: unknown;
|
|
9470
|
+
response: {
|
|
9471
|
+
200: {
|
|
9472
|
+
id: string;
|
|
9473
|
+
name: string;
|
|
9474
|
+
createdAt: Date;
|
|
9475
|
+
updatedAt: Date;
|
|
9476
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
9477
|
+
baseAssetId: string;
|
|
9478
|
+
quoteAssetId: string;
|
|
9479
|
+
pricingSource: string;
|
|
9480
|
+
systemBaseAccountId: string;
|
|
9481
|
+
systemQuoteAccountId: string;
|
|
9482
|
+
isBuyEnabled: boolean;
|
|
9483
|
+
isSellEnabled: boolean;
|
|
9484
|
+
minBaseAmount: string;
|
|
9485
|
+
maxBaseAmount: string | null;
|
|
9486
|
+
dailyUserBuyBaseLimit: string | null;
|
|
9487
|
+
dailyUserSellBaseLimit: string | null;
|
|
9488
|
+
maxSlippageBps: string;
|
|
9489
|
+
};
|
|
9490
|
+
422: {
|
|
9491
|
+
type: "validation";
|
|
9492
|
+
on: string;
|
|
9493
|
+
summary?: string;
|
|
9494
|
+
message?: string;
|
|
9495
|
+
found?: unknown;
|
|
9496
|
+
property?: string;
|
|
9497
|
+
expected?: string;
|
|
9498
|
+
};
|
|
9499
|
+
401: "Unauthorized";
|
|
9500
|
+
};
|
|
8315
9501
|
};
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
9502
|
+
};
|
|
9503
|
+
};
|
|
9504
|
+
};
|
|
9505
|
+
} & {
|
|
9506
|
+
trade_market: {
|
|
9507
|
+
orders: {
|
|
9508
|
+
"market-buy": {
|
|
9509
|
+
post: {
|
|
9510
|
+
body: {
|
|
9511
|
+
idempotencyKey: string;
|
|
9512
|
+
marketId: string;
|
|
9513
|
+
baseAmount: string;
|
|
9514
|
+
userBaseAccountId: string;
|
|
9515
|
+
userQuoteAccountId: string;
|
|
8320
9516
|
};
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
9517
|
+
params: {};
|
|
9518
|
+
query: unknown;
|
|
9519
|
+
headers: unknown;
|
|
9520
|
+
response: {
|
|
9521
|
+
200: {
|
|
9522
|
+
id: string;
|
|
9523
|
+
createdAt: Date;
|
|
9524
|
+
updatedAt: Date;
|
|
9525
|
+
userId: string;
|
|
9526
|
+
status: "created" | "completed" | "failed";
|
|
9527
|
+
idempotencyKey: string;
|
|
9528
|
+
orderNo: string;
|
|
9529
|
+
priceSnapshot: string;
|
|
9530
|
+
priceEffectiveAtSnapshot: Date;
|
|
9531
|
+
failureCode: string | null;
|
|
9532
|
+
failureReason: string | null;
|
|
9533
|
+
marketId: string;
|
|
9534
|
+
side: "buy" | "sell";
|
|
9535
|
+
baseAmount: string;
|
|
9536
|
+
quoteAmount: string;
|
|
9537
|
+
pricingSourceSnapshot: string;
|
|
9538
|
+
userBaseAccountId: string;
|
|
9539
|
+
userQuoteAccountId: string;
|
|
9540
|
+
systemBaseAccountIdSnapshot: string;
|
|
9541
|
+
systemQuoteAccountIdSnapshot: string;
|
|
9542
|
+
userDebitLedgerEntryId: string | null;
|
|
9543
|
+
userCreditLedgerEntryId: string | null;
|
|
9544
|
+
};
|
|
9545
|
+
422: {
|
|
9546
|
+
type: "validation";
|
|
9547
|
+
on: string;
|
|
9548
|
+
summary?: string;
|
|
9549
|
+
message?: string;
|
|
9550
|
+
found?: unknown;
|
|
9551
|
+
property?: string;
|
|
9552
|
+
expected?: string;
|
|
9553
|
+
};
|
|
9554
|
+
401: "Unauthorized";
|
|
9555
|
+
};
|
|
9556
|
+
};
|
|
9557
|
+
};
|
|
9558
|
+
};
|
|
9559
|
+
};
|
|
9560
|
+
} & {
|
|
9561
|
+
trade_market: {
|
|
9562
|
+
orders: {
|
|
9563
|
+
"market-sell": {
|
|
9564
|
+
post: {
|
|
9565
|
+
body: {
|
|
9566
|
+
idempotencyKey: string;
|
|
9567
|
+
marketId: string;
|
|
9568
|
+
baseAmount: string;
|
|
9569
|
+
userBaseAccountId: string;
|
|
9570
|
+
userQuoteAccountId: string;
|
|
9571
|
+
};
|
|
9572
|
+
params: {};
|
|
9573
|
+
query: unknown;
|
|
9574
|
+
headers: unknown;
|
|
9575
|
+
response: {
|
|
9576
|
+
200: {
|
|
9577
|
+
id: string;
|
|
9578
|
+
createdAt: Date;
|
|
9579
|
+
updatedAt: Date;
|
|
9580
|
+
userId: string;
|
|
9581
|
+
status: "created" | "completed" | "failed";
|
|
9582
|
+
idempotencyKey: string;
|
|
9583
|
+
orderNo: string;
|
|
9584
|
+
priceSnapshot: string;
|
|
9585
|
+
priceEffectiveAtSnapshot: Date;
|
|
9586
|
+
failureCode: string | null;
|
|
9587
|
+
failureReason: string | null;
|
|
9588
|
+
marketId: string;
|
|
9589
|
+
side: "buy" | "sell";
|
|
9590
|
+
baseAmount: string;
|
|
9591
|
+
quoteAmount: string;
|
|
9592
|
+
pricingSourceSnapshot: string;
|
|
9593
|
+
userBaseAccountId: string;
|
|
9594
|
+
userQuoteAccountId: string;
|
|
9595
|
+
systemBaseAccountIdSnapshot: string;
|
|
9596
|
+
systemQuoteAccountIdSnapshot: string;
|
|
9597
|
+
userDebitLedgerEntryId: string | null;
|
|
9598
|
+
userCreditLedgerEntryId: string | null;
|
|
9599
|
+
};
|
|
9600
|
+
422: {
|
|
9601
|
+
type: "validation";
|
|
9602
|
+
on: string;
|
|
9603
|
+
summary?: string;
|
|
9604
|
+
message?: string;
|
|
9605
|
+
found?: unknown;
|
|
9606
|
+
property?: string;
|
|
9607
|
+
expected?: string;
|
|
9608
|
+
};
|
|
9609
|
+
401: "Unauthorized";
|
|
8329
9610
|
};
|
|
8330
|
-
401: "Unauthorized";
|
|
8331
9611
|
};
|
|
8332
9612
|
};
|
|
8333
9613
|
};
|
|
8334
9614
|
};
|
|
8335
|
-
};
|
|
8336
|
-
} & {
|
|
8337
|
-
api: {
|
|
8338
|
-
ledger_account_transfer: {};
|
|
8339
9615
|
} & {
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
body:
|
|
8344
|
-
amount: string;
|
|
8345
|
-
targetAccountId: string;
|
|
8346
|
-
sourceAccountId: string;
|
|
8347
|
-
transactionPassword: string;
|
|
8348
|
-
};
|
|
9616
|
+
trade_market: {
|
|
9617
|
+
orders: {
|
|
9618
|
+
get: {
|
|
9619
|
+
body: unknown;
|
|
8349
9620
|
params: {};
|
|
8350
|
-
query:
|
|
9621
|
+
query: {
|
|
9622
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
9623
|
+
marketId?: string | undefined;
|
|
9624
|
+
side?: "buy" | "sell" | undefined;
|
|
9625
|
+
limit?: number | undefined;
|
|
9626
|
+
offset?: number | undefined;
|
|
9627
|
+
pageSize?: number | undefined;
|
|
9628
|
+
pageIndex?: number | undefined;
|
|
9629
|
+
};
|
|
8351
9630
|
headers: unknown;
|
|
8352
9631
|
response: {
|
|
8353
9632
|
200: {
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
9633
|
+
data: {
|
|
9634
|
+
id: string;
|
|
9635
|
+
createdAt: Date;
|
|
9636
|
+
updatedAt: Date;
|
|
9637
|
+
userId: string;
|
|
9638
|
+
status: "created" | "completed" | "failed";
|
|
9639
|
+
idempotencyKey: string;
|
|
9640
|
+
orderNo: string;
|
|
9641
|
+
priceSnapshot: string;
|
|
9642
|
+
priceEffectiveAtSnapshot: Date;
|
|
9643
|
+
failureCode: string | null;
|
|
9644
|
+
failureReason: string | null;
|
|
9645
|
+
marketId: string;
|
|
9646
|
+
side: "buy" | "sell";
|
|
9647
|
+
baseAmount: string;
|
|
9648
|
+
quoteAmount: string;
|
|
9649
|
+
pricingSourceSnapshot: string;
|
|
9650
|
+
userBaseAccountId: string;
|
|
9651
|
+
userQuoteAccountId: string;
|
|
9652
|
+
systemBaseAccountIdSnapshot: string;
|
|
9653
|
+
systemQuoteAccountIdSnapshot: string;
|
|
9654
|
+
userDebitLedgerEntryId: string | null;
|
|
9655
|
+
userCreditLedgerEntryId: string | null;
|
|
9656
|
+
}[];
|
|
9657
|
+
pagination: {
|
|
9658
|
+
total: number;
|
|
9659
|
+
pageSize: number;
|
|
9660
|
+
pageIndex: number;
|
|
9661
|
+
totalPages: number;
|
|
9662
|
+
hasNextPage: boolean;
|
|
9663
|
+
};
|
|
8364
9664
|
};
|
|
8365
9665
|
422: {
|
|
8366
9666
|
type: "validation";
|
|
@@ -8376,94 +9676,53 @@ declare const app: Elysia<"/api", {
|
|
|
8376
9676
|
};
|
|
8377
9677
|
};
|
|
8378
9678
|
};
|
|
8379
|
-
};
|
|
8380
|
-
} & {
|
|
8381
|
-
api: {
|
|
8382
|
-
transfer: {};
|
|
8383
|
-
} & {
|
|
8384
|
-
transfer: {
|
|
8385
|
-
get: {
|
|
8386
|
-
body: unknown;
|
|
8387
|
-
params: {};
|
|
8388
|
-
query: {
|
|
8389
|
-
limit?: number | undefined;
|
|
8390
|
-
offset?: number | undefined;
|
|
8391
|
-
pageSize?: number | undefined;
|
|
8392
|
-
pageIndex?: number | undefined;
|
|
8393
|
-
};
|
|
8394
|
-
headers: unknown;
|
|
8395
|
-
response: {
|
|
8396
|
-
200: {
|
|
8397
|
-
data: {
|
|
8398
|
-
id: string;
|
|
8399
|
-
createdAt: Date;
|
|
8400
|
-
updatedAt: Date;
|
|
8401
|
-
assetId: string | null;
|
|
8402
|
-
amount: string;
|
|
8403
|
-
idempotencyKey: string;
|
|
8404
|
-
orderNo: string;
|
|
8405
|
-
targetAccountId: string | null;
|
|
8406
|
-
sourceAccountId: string | null;
|
|
8407
|
-
sourceUserId: string;
|
|
8408
|
-
targetUserId: string;
|
|
8409
|
-
}[];
|
|
8410
|
-
pagination: {
|
|
8411
|
-
total: number;
|
|
8412
|
-
pageSize: number;
|
|
8413
|
-
pageIndex: number;
|
|
8414
|
-
totalPages: number;
|
|
8415
|
-
hasNextPage: boolean;
|
|
8416
|
-
};
|
|
8417
|
-
};
|
|
8418
|
-
422: {
|
|
8419
|
-
type: "validation";
|
|
8420
|
-
on: string;
|
|
8421
|
-
summary?: string;
|
|
8422
|
-
message?: string;
|
|
8423
|
-
found?: unknown;
|
|
8424
|
-
property?: string;
|
|
8425
|
-
expected?: string;
|
|
8426
|
-
};
|
|
8427
|
-
401: "Unauthorized";
|
|
8428
|
-
};
|
|
8429
|
-
};
|
|
8430
|
-
};
|
|
8431
9679
|
} & {
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
targetAccountId: string;
|
|
8439
|
-
sourceAccountId: string;
|
|
8440
|
-
transactionPassword: string;
|
|
8441
|
-
};
|
|
8442
|
-
params: {};
|
|
8443
|
-
query: unknown;
|
|
8444
|
-
headers: unknown;
|
|
8445
|
-
response: {
|
|
8446
|
-
200: {
|
|
9680
|
+
trade_market: {
|
|
9681
|
+
orders: {
|
|
9682
|
+
":id": {
|
|
9683
|
+
get: {
|
|
9684
|
+
body: unknown;
|
|
9685
|
+
params: {
|
|
8447
9686
|
id: string;
|
|
8448
|
-
assetId: string | null;
|
|
8449
|
-
amount: string;
|
|
8450
|
-
orderNo: string;
|
|
8451
|
-
ledgerEntryId: string;
|
|
8452
|
-
targetAccountId: string | null;
|
|
8453
|
-
sourceAccountId: string | null;
|
|
8454
|
-
sourceUserId: string;
|
|
8455
|
-
targetUserId: string;
|
|
8456
9687
|
};
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
9688
|
+
query: unknown;
|
|
9689
|
+
headers: unknown;
|
|
9690
|
+
response: {
|
|
9691
|
+
200: {
|
|
9692
|
+
id: string;
|
|
9693
|
+
createdAt: Date;
|
|
9694
|
+
updatedAt: Date;
|
|
9695
|
+
userId: string;
|
|
9696
|
+
status: "created" | "completed" | "failed";
|
|
9697
|
+
idempotencyKey: string;
|
|
9698
|
+
orderNo: string;
|
|
9699
|
+
priceSnapshot: string;
|
|
9700
|
+
priceEffectiveAtSnapshot: Date;
|
|
9701
|
+
failureCode: string | null;
|
|
9702
|
+
failureReason: string | null;
|
|
9703
|
+
marketId: string;
|
|
9704
|
+
side: "buy" | "sell";
|
|
9705
|
+
baseAmount: string;
|
|
9706
|
+
quoteAmount: string;
|
|
9707
|
+
pricingSourceSnapshot: string;
|
|
9708
|
+
userBaseAccountId: string;
|
|
9709
|
+
userQuoteAccountId: string;
|
|
9710
|
+
systemBaseAccountIdSnapshot: string;
|
|
9711
|
+
systemQuoteAccountIdSnapshot: string;
|
|
9712
|
+
userDebitLedgerEntryId: string | null;
|
|
9713
|
+
userCreditLedgerEntryId: string | null;
|
|
9714
|
+
};
|
|
9715
|
+
422: {
|
|
9716
|
+
type: "validation";
|
|
9717
|
+
on: string;
|
|
9718
|
+
summary?: string;
|
|
9719
|
+
message?: string;
|
|
9720
|
+
found?: unknown;
|
|
9721
|
+
property?: string;
|
|
9722
|
+
expected?: string;
|
|
9723
|
+
};
|
|
9724
|
+
401: "Unauthorized";
|
|
8465
9725
|
};
|
|
8466
|
-
401: "Unauthorized";
|
|
8467
9726
|
};
|
|
8468
9727
|
};
|
|
8469
9728
|
};
|
|
@@ -8495,7 +9754,7 @@ declare const app: Elysia<"/api", {
|
|
|
8495
9754
|
assetId: string;
|
|
8496
9755
|
fromAccountId: string | null;
|
|
8497
9756
|
toAccountId: string | null;
|
|
8498
|
-
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";
|
|
9757
|
+
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";
|
|
8499
9758
|
amount: string;
|
|
8500
9759
|
fromAvailableBefore: string | null;
|
|
8501
9760
|
fromAvailableAfter: string | null;
|
|
@@ -8506,7 +9765,7 @@ declare const app: Elysia<"/api", {
|
|
|
8506
9765
|
toLockedBefore: string | null;
|
|
8507
9766
|
toLockedAfter: string | null;
|
|
8508
9767
|
referenceId: string;
|
|
8509
|
-
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";
|
|
9768
|
+
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";
|
|
8510
9769
|
idempotencyKey: string;
|
|
8511
9770
|
operatorId: string | null;
|
|
8512
9771
|
memo: string | null;
|
|
@@ -8534,6 +9793,105 @@ declare const app: Elysia<"/api", {
|
|
|
8534
9793
|
};
|
|
8535
9794
|
};
|
|
8536
9795
|
};
|
|
9796
|
+
} & {
|
|
9797
|
+
api: {
|
|
9798
|
+
market_data: {};
|
|
9799
|
+
} & {
|
|
9800
|
+
market_data: {
|
|
9801
|
+
latest: {
|
|
9802
|
+
":baseAsset": {
|
|
9803
|
+
":quoteAsset": {
|
|
9804
|
+
get: {
|
|
9805
|
+
body: unknown;
|
|
9806
|
+
params: {
|
|
9807
|
+
baseAsset: string;
|
|
9808
|
+
quoteAsset: string;
|
|
9809
|
+
};
|
|
9810
|
+
query: {
|
|
9811
|
+
source?: string | undefined;
|
|
9812
|
+
};
|
|
9813
|
+
headers: unknown;
|
|
9814
|
+
response: {
|
|
9815
|
+
200: {
|
|
9816
|
+
baseAssetId: string;
|
|
9817
|
+
baseAsset: string;
|
|
9818
|
+
quoteAssetId: string;
|
|
9819
|
+
quoteAsset: string;
|
|
9820
|
+
source: string;
|
|
9821
|
+
effectiveAt: Date;
|
|
9822
|
+
latestPrice: string;
|
|
9823
|
+
};
|
|
9824
|
+
422: {
|
|
9825
|
+
type: "validation";
|
|
9826
|
+
on: string;
|
|
9827
|
+
summary?: string;
|
|
9828
|
+
message?: string;
|
|
9829
|
+
found?: unknown;
|
|
9830
|
+
property?: string;
|
|
9831
|
+
expected?: string;
|
|
9832
|
+
};
|
|
9833
|
+
401: "Unauthorized";
|
|
9834
|
+
};
|
|
9835
|
+
};
|
|
9836
|
+
};
|
|
9837
|
+
};
|
|
9838
|
+
};
|
|
9839
|
+
};
|
|
9840
|
+
} & {
|
|
9841
|
+
market_data: {
|
|
9842
|
+
klines: {
|
|
9843
|
+
"1m": {
|
|
9844
|
+
":baseAsset": {
|
|
9845
|
+
":quoteAsset": {
|
|
9846
|
+
get: {
|
|
9847
|
+
body: unknown;
|
|
9848
|
+
params: {
|
|
9849
|
+
baseAsset: string;
|
|
9850
|
+
quoteAsset: string;
|
|
9851
|
+
};
|
|
9852
|
+
query: {
|
|
9853
|
+
source?: string | undefined;
|
|
9854
|
+
startDate?: Date | undefined;
|
|
9855
|
+
limit?: number | undefined;
|
|
9856
|
+
endDate?: Date | undefined;
|
|
9857
|
+
};
|
|
9858
|
+
headers: unknown;
|
|
9859
|
+
response: {
|
|
9860
|
+
200: {
|
|
9861
|
+
id: string;
|
|
9862
|
+
createdAt: Date;
|
|
9863
|
+
updatedAt: Date;
|
|
9864
|
+
baseAssetId: string;
|
|
9865
|
+
baseAsset: string;
|
|
9866
|
+
quoteAssetId: string;
|
|
9867
|
+
quoteAsset: string;
|
|
9868
|
+
source: string;
|
|
9869
|
+
low: string;
|
|
9870
|
+
high: string;
|
|
9871
|
+
bucketAt: Date;
|
|
9872
|
+
open: string;
|
|
9873
|
+
close: string;
|
|
9874
|
+
tickCount: number;
|
|
9875
|
+
volume: string;
|
|
9876
|
+
}[];
|
|
9877
|
+
422: {
|
|
9878
|
+
type: "validation";
|
|
9879
|
+
on: string;
|
|
9880
|
+
summary?: string;
|
|
9881
|
+
message?: string;
|
|
9882
|
+
found?: unknown;
|
|
9883
|
+
property?: string;
|
|
9884
|
+
expected?: string;
|
|
9885
|
+
};
|
|
9886
|
+
401: "Unauthorized";
|
|
9887
|
+
};
|
|
9888
|
+
};
|
|
9889
|
+
};
|
|
9890
|
+
};
|
|
9891
|
+
};
|
|
9892
|
+
};
|
|
9893
|
+
};
|
|
9894
|
+
};
|
|
8537
9895
|
} & {
|
|
8538
9896
|
api: {
|
|
8539
9897
|
deposit: {};
|