@polyester/sdk 0.33.0-devnet-20261104141024 → 0.33.0-devnet-20261104214343
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/CHANGELOG.md +5 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
- package/dist/services/balances/balances.schemas.d.ts +3 -3
- package/dist/services/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +3 -3
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +148 -148
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +12 -12
- package/dist/services/orders/orders-output.schemas.d.ts +17 -11
- package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-risk.schemas.js +2 -0
- package/dist/services/orders/orders-risk.schemas.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +16 -16
- package/dist/services/trades/trades.schemas.d.ts +8 -8
- package/dist/services/trades/trades.schemas.d.ts.map +1 -1
- package/dist/services/trades/trades.schemas.js +8 -7
- package/dist/services/trades/trades.schemas.js.map +1 -1
- package/dist/services/transfers/transfers.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +37 -37
- package/dist/services/vip/vip.schemas.d.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
# @polyester/sdk
|
|
2
2
|
|
|
3
|
-
## 0.33.0-devnet-
|
|
3
|
+
## 0.33.0-devnet-20261104214343
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
7
|
- Breaking: the holds list is removed. `ledgerReadPb` in `@polyester/sdk/unstable/gen` drops `LedgerReadService.ListHolds`, `ListHoldsRequest`, `ListHoldsResponse` and `HoldRow`. Read held amounts from each asset's `reserved` amount in `balances.list`. ([#225](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/225))
|
|
8
8
|
|
|
9
|
+
- `trades.list` takes `symbolId` as a number, like every other symbol filter and like the `symbolId` on returned trades, orders and triggers. A string, `0`, negative or fractional `symbolId` is rejected. "symbolId is required when afterMatchId is set" now appears only when `afterMatchId` is set without `symbolId`. ([#226](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/226))
|
|
10
|
+
|
|
9
11
|
### Patch Changes
|
|
10
12
|
|
|
11
13
|
- API key refusals on ConnectRPC now carry an auth `detail.code` that names the reason: `AUTH_SIGNATURE_INVALID`, `AUTH_TIMESTAMP_SKEW`, `AUTH_MISSING_HEADERS`, `AUTH_KEY_EXPIRED`, `AUTH_KEY_DISABLED`, `AUTH_IP_NOT_ALLOWED` or `AUTH_API_KEY_NOT_ACCEPTED`. `AUTH_TIMESTAMP_SKEW` still maps to the retryable `TimestampSkewError`, and a retry signs the request again. ([#223](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/223))
|
|
12
14
|
|
|
13
15
|
- Attached take-profit, stop-loss and trailing stop exits never trade with the order they protect. Order `cancelReason` adds `attached_exit_fired`: the exit fired while the order still rested, so its unfilled remainder was canceled first. Fills before the cancel stand. Trigger failure reasons add `self_trade_prevented`, reported only as a `"fire_refused"` event's `fireRefusalReason`: self-trade prevention expired the exit's order against another of the account's resting orders, and the trigger stays live and fires again. That event's `childSeq` names the expired child order. ([#224](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/224))
|
|
14
16
|
|
|
17
|
+
- An order's `attachedRisk.trailingStop` now carries `limitPrice`, the most its buy-back pays per unit, set when the order sells and `undefined` when it buys. Previously it was dropped, so a selling order's trailing stop read back and passed to `modifyOrder` lost its limit price and was rejected with a bad-price error. ([#227](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/227))
|
|
18
|
+
|
|
15
19
|
- Add `autoWithdraw`, which manages an account's scheduled auto-withdraw rule: `getRule`, `setRule`, `disableRule` and `listRuns`. `setRule` and `disableRule` need a fresh `stepUpToken`, and a stale `expectedVersion` throws `RevisionConflictError`. ([#222](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/222))
|
|
16
20
|
|
|
17
21
|
- Changelog surfaces add `market_data`, `quickswap` and `rewards`, for output and for `listChanges` filters. Each post section has a `surface`, the product area it covers, or `"unspecified"` when it covers more than one. ([#223](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/223))
|
|
@@ -297,7 +297,7 @@ declare const AddressBookSchema: v.ObjectSchema<{
|
|
|
297
297
|
rootAccountId: string;
|
|
298
298
|
subaccountId: bigint;
|
|
299
299
|
}, AddressBookAccountScope>]>, undefined>;
|
|
300
|
-
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
300
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
301
301
|
readonly label: v.StringSchema<undefined>;
|
|
302
302
|
readonly ownerUsername: v.StringSchema<undefined>;
|
|
303
303
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
@@ -1102,7 +1102,7 @@ declare const AddressBookViewSchema: v.ObjectSchema<{
|
|
|
1102
1102
|
rootAccountId: string;
|
|
1103
1103
|
subaccountId: bigint;
|
|
1104
1104
|
}, AddressBookAccountScope>]>, undefined>;
|
|
1105
|
-
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
1105
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
1106
1106
|
readonly label: v.StringSchema<undefined>;
|
|
1107
1107
|
readonly ownerUsername: v.StringSchema<undefined>;
|
|
1108
1108
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
@@ -460,7 +460,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
460
460
|
readonly hi: v.BigintSchema<undefined>;
|
|
461
461
|
readonly lo: v.BigintSchema<undefined>;
|
|
462
462
|
}, undefined>, undefined>;
|
|
463
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "
|
|
463
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted">]>;
|
|
464
464
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
465
465
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
466
466
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -480,7 +480,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
480
480
|
hi: bigint;
|
|
481
481
|
lo: bigint;
|
|
482
482
|
} | undefined;
|
|
483
|
-
state: "unspecified" | "failed" | "
|
|
483
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
484
484
|
reason: AutoWithdrawStepReason | null;
|
|
485
485
|
intentId: string;
|
|
486
486
|
txHash: string;
|
|
@@ -493,7 +493,7 @@ declare const AutoWithdrawStepSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
493
493
|
txHash: string | null;
|
|
494
494
|
assetId: number;
|
|
495
495
|
destinationAddress: string;
|
|
496
|
-
state: "unspecified" | "failed" | "
|
|
496
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
497
497
|
reason: AutoWithdrawStepReason | null;
|
|
498
498
|
}>]>;
|
|
499
499
|
/**
|
|
@@ -511,7 +511,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
511
511
|
seconds: bigint;
|
|
512
512
|
nanos: number;
|
|
513
513
|
}, number>]>;
|
|
514
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "
|
|
514
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped">]>;
|
|
515
515
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawRunReason | null>]>;
|
|
516
516
|
readonly steps: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
517
517
|
readonly assetId: v.NumberSchema<undefined>;
|
|
@@ -529,7 +529,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
529
529
|
readonly hi: v.BigintSchema<undefined>;
|
|
530
530
|
readonly lo: v.BigintSchema<undefined>;
|
|
531
531
|
}, undefined>, undefined>;
|
|
532
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "
|
|
532
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted">]>;
|
|
533
533
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
534
534
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
535
535
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -549,7 +549,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
549
549
|
hi: bigint;
|
|
550
550
|
lo: bigint;
|
|
551
551
|
} | undefined;
|
|
552
|
-
state: "unspecified" | "failed" | "
|
|
552
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
553
553
|
reason: AutoWithdrawStepReason | null;
|
|
554
554
|
intentId: string;
|
|
555
555
|
txHash: string;
|
|
@@ -562,7 +562,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
562
562
|
txHash: string | null;
|
|
563
563
|
assetId: number;
|
|
564
564
|
destinationAddress: string;
|
|
565
|
-
state: "unspecified" | "failed" | "
|
|
565
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
566
566
|
reason: AutoWithdrawStepReason | null;
|
|
567
567
|
}>]>, undefined>;
|
|
568
568
|
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -583,7 +583,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
583
583
|
runSeq: string;
|
|
584
584
|
ruleVersion: number;
|
|
585
585
|
scheduledFor: number;
|
|
586
|
-
state: "unspecified" | "failed" | "
|
|
586
|
+
state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
|
|
587
587
|
reason: AutoWithdrawRunReason | null;
|
|
588
588
|
steps: {
|
|
589
589
|
destinationChainId: number;
|
|
@@ -594,7 +594,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
594
594
|
txHash: string | null;
|
|
595
595
|
assetId: number;
|
|
596
596
|
destinationAddress: string;
|
|
597
|
-
state: "unspecified" | "failed" | "
|
|
597
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
598
598
|
reason: AutoWithdrawStepReason | null;
|
|
599
599
|
}[];
|
|
600
600
|
createdAt: number;
|
|
@@ -604,7 +604,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
604
604
|
runSeq: string;
|
|
605
605
|
ruleVersion: number;
|
|
606
606
|
scheduledFor: number;
|
|
607
|
-
state: "unspecified" | "failed" | "
|
|
607
|
+
state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
|
|
608
608
|
reason: AutoWithdrawRunReason | null;
|
|
609
609
|
steps: {
|
|
610
610
|
destinationChainId: number;
|
|
@@ -615,7 +615,7 @@ declare const AutoWithdrawRunSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
615
615
|
txHash: string | null;
|
|
616
616
|
assetId: number;
|
|
617
617
|
destinationAddress: string;
|
|
618
|
-
state: "unspecified" | "failed" | "
|
|
618
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
619
619
|
reason: AutoWithdrawStepReason | null;
|
|
620
620
|
}[];
|
|
621
621
|
createdAt: number;
|
|
@@ -633,7 +633,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
633
633
|
seconds: bigint;
|
|
634
634
|
nanos: number;
|
|
635
635
|
}, number>]>;
|
|
636
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "
|
|
636
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped">]>;
|
|
637
637
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawRunReason | null>]>;
|
|
638
638
|
readonly steps: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
639
639
|
readonly assetId: v.NumberSchema<undefined>;
|
|
@@ -651,7 +651,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
651
651
|
readonly hi: v.BigintSchema<undefined>;
|
|
652
652
|
readonly lo: v.BigintSchema<undefined>;
|
|
653
653
|
}, undefined>, undefined>;
|
|
654
|
-
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "
|
|
654
|
+
readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted">]>;
|
|
655
655
|
readonly reason: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "">, v.TransformAction<string, AutoWithdrawStepReason | null>]>;
|
|
656
656
|
readonly intentId: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
657
657
|
readonly txHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -671,7 +671,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
671
671
|
hi: bigint;
|
|
672
672
|
lo: bigint;
|
|
673
673
|
} | undefined;
|
|
674
|
-
state: "unspecified" | "failed" | "
|
|
674
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
675
675
|
reason: AutoWithdrawStepReason | null;
|
|
676
676
|
intentId: string;
|
|
677
677
|
txHash: string;
|
|
@@ -684,7 +684,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
684
684
|
txHash: string | null;
|
|
685
685
|
assetId: number;
|
|
686
686
|
destinationAddress: string;
|
|
687
|
-
state: "unspecified" | "failed" | "
|
|
687
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
688
688
|
reason: AutoWithdrawStepReason | null;
|
|
689
689
|
}>]>, undefined>;
|
|
690
690
|
readonly createdAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -705,7 +705,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
705
705
|
runSeq: string;
|
|
706
706
|
ruleVersion: number;
|
|
707
707
|
scheduledFor: number;
|
|
708
|
-
state: "unspecified" | "failed" | "
|
|
708
|
+
state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
|
|
709
709
|
reason: AutoWithdrawRunReason | null;
|
|
710
710
|
steps: {
|
|
711
711
|
destinationChainId: number;
|
|
@@ -716,7 +716,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
716
716
|
txHash: string | null;
|
|
717
717
|
assetId: number;
|
|
718
718
|
destinationAddress: string;
|
|
719
|
-
state: "unspecified" | "failed" | "
|
|
719
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
720
720
|
reason: AutoWithdrawStepReason | null;
|
|
721
721
|
}[];
|
|
722
722
|
createdAt: number;
|
|
@@ -726,7 +726,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
726
726
|
runSeq: string;
|
|
727
727
|
ruleVersion: number;
|
|
728
728
|
scheduledFor: number;
|
|
729
|
-
state: "unspecified" | "failed" | "
|
|
729
|
+
state: "unspecified" | "failed" | "planned" | "paying" | "completed" | "partially_failed" | "skipped";
|
|
730
730
|
reason: AutoWithdrawRunReason | null;
|
|
731
731
|
steps: {
|
|
732
732
|
destinationChainId: number;
|
|
@@ -737,7 +737,7 @@ declare const ListAutoWithdrawRunsResultSchema: v.ObjectSchema<{
|
|
|
737
737
|
txHash: string | null;
|
|
738
738
|
assetId: number;
|
|
739
739
|
destinationAddress: string;
|
|
740
|
-
state: "unspecified" | "failed" | "
|
|
740
|
+
state: "unspecified" | "failed" | "completed" | "skipped" | "pending" | "submitting" | "submitted";
|
|
741
741
|
reason: AutoWithdrawStepReason | null;
|
|
742
742
|
}[];
|
|
743
743
|
createdAt: number;
|
|
@@ -56,7 +56,7 @@ type EquityGroupBy = v.InferOutput<typeof EquityGroupBySchema>;
|
|
|
56
56
|
declare const BalanceHistoryInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
57
57
|
readonly range: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1d", "7d", "30d", "90d", "180d", "365d"], undefined>, v.TransformAction<"1d" | "7d" | "30d" | "90d" | "180d" | "365d", BalanceRange$1.DAY_1 | BalanceRange$1.DAY_7 | BalanceRange$1.DAY_30 | BalanceRange$1.DAY_90 | BalanceRange$1.DAY_180 | BalanceRange$1.DAY_365>]>;
|
|
58
58
|
readonly ledger: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, 0>;
|
|
59
|
-
readonly accountCodes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["funding", "trading"], undefined>, v.TransformAction<"
|
|
59
|
+
readonly accountCodes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["funding", "trading"], undefined>, v.TransformAction<"trading" | "funding", AccountCode.FUNDING | AccountCode.TRADING>]>, undefined>, readonly []>;
|
|
60
60
|
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
61
61
|
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
62
62
|
}, undefined>], undefined>, undefined>;
|
|
@@ -110,14 +110,14 @@ declare function createBalanceHistoryResponseSchema(): v.SchemaWithPipe<readonly
|
|
|
110
110
|
points: number;
|
|
111
111
|
series: {
|
|
112
112
|
assetId: number;
|
|
113
|
-
accountCode: "unspecified" | "
|
|
113
|
+
accountCode: "unspecified" | "trading" | "funding";
|
|
114
114
|
balance: string[];
|
|
115
115
|
}[];
|
|
116
116
|
}>]>;
|
|
117
117
|
type BalanceHistoryResponse = v.InferOutput<ReturnType<typeof createBalanceHistoryResponseSchema>>;
|
|
118
118
|
declare const EquityHistoryInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
119
119
|
readonly range: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1d", "7d", "30d", "90d", "180d", "365d"], undefined>, v.TransformAction<"1d" | "7d" | "30d" | "90d" | "180d" | "365d", BalanceRange$1.DAY_1 | BalanceRange$1.DAY_7 | BalanceRange$1.DAY_30 | BalanceRange$1.DAY_90 | BalanceRange$1.DAY_180 | BalanceRange$1.DAY_365>]>;
|
|
120
|
-
readonly accountCodes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["funding", "trading"], undefined>, v.TransformAction<"
|
|
120
|
+
readonly accountCodes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["funding", "trading"], undefined>, v.TransformAction<"trading" | "funding", AccountCode.FUNDING | AccountCode.TRADING>]>, undefined>, readonly []>;
|
|
121
121
|
readonly groupBy: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["account", "asset"], undefined>, "account">, v.TransformAction<"account" | "asset", EquityGroupBy$1.GROUP_BY_ACCOUNT | EquityGroupBy$1.GROUP_BY_ASSET>]>;
|
|
122
122
|
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
123
123
|
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -31,7 +31,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
|
|
|
31
31
|
}, undefined>, v.CheckAction<{
|
|
32
32
|
categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
|
|
33
33
|
actionRequired?: boolean | undefined;
|
|
34
|
-
surfaces: ("rewards" | "
|
|
34
|
+
surfaces: ("rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
35
35
|
audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
|
|
36
36
|
startTime?: number | undefined;
|
|
37
37
|
endTime?: number | undefined;
|
|
@@ -42,7 +42,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
|
|
|
42
42
|
}, "endTime: must be after startTime">, v.TransformAction<{
|
|
43
43
|
categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
|
|
44
44
|
actionRequired?: boolean | undefined;
|
|
45
|
-
surfaces: ("rewards" | "
|
|
45
|
+
surfaces: ("rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
46
46
|
audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
|
|
47
47
|
startTime?: number | undefined;
|
|
48
48
|
endTime?: number | undefined;
|
|
@@ -73,14 +73,14 @@ declare const ChangelogChangeSchema: v.ObjectSchema<{
|
|
|
73
73
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
74
74
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
75
75
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
76
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "
|
|
76
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
|
|
77
77
|
}, undefined>;
|
|
78
78
|
type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;
|
|
79
79
|
/** `surface` is the product area the section covers, `"unspecified"` when it spans several. */
|
|
80
80
|
declare const ChangelogSectionSchema: v.ObjectSchema<{
|
|
81
81
|
readonly heading: v.StringSchema<undefined>;
|
|
82
82
|
readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
83
|
-
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "
|
|
83
|
+
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
|
|
84
84
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
85
85
|
readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
86
86
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -90,7 +90,7 @@ declare const ChangelogSectionSchema: v.ObjectSchema<{
|
|
|
90
90
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
91
91
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
92
92
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
93
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "
|
|
93
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
|
|
94
94
|
}, undefined>, undefined>, readonly []>;
|
|
95
95
|
}, undefined>;
|
|
96
96
|
type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;
|
|
@@ -179,7 +179,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
179
179
|
readonly sections: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
180
180
|
readonly heading: v.StringSchema<undefined>;
|
|
181
181
|
readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
182
|
-
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "
|
|
182
|
+
readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
|
|
183
183
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
184
184
|
readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
185
185
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -189,7 +189,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
189
189
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
190
190
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
191
191
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
192
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "
|
|
192
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
|
|
193
193
|
}, undefined>, undefined>, readonly []>;
|
|
194
194
|
}, undefined>, undefined>, readonly []>;
|
|
195
195
|
}, undefined>, v.TransformAction<{
|
|
@@ -209,7 +209,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
209
209
|
sections: {
|
|
210
210
|
heading: string;
|
|
211
211
|
summary?: string | undefined;
|
|
212
|
-
surface: "unspecified" | "rewards" | "
|
|
212
|
+
surface: "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
|
|
213
213
|
changes: {
|
|
214
214
|
id: string;
|
|
215
215
|
title: string;
|
|
@@ -219,14 +219,14 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
219
219
|
actionRequired: boolean;
|
|
220
220
|
migrationGuidance?: string | undefined;
|
|
221
221
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
222
|
-
surfaces: ("unspecified" | "rewards" | "
|
|
222
|
+
surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
223
223
|
}[];
|
|
224
224
|
}[];
|
|
225
225
|
}, {
|
|
226
226
|
sections: {
|
|
227
227
|
heading: string;
|
|
228
228
|
summary?: string | undefined;
|
|
229
|
-
surface: "unspecified" | "rewards" | "
|
|
229
|
+
surface: "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
|
|
230
230
|
changes: {
|
|
231
231
|
id: string;
|
|
232
232
|
title: string;
|
|
@@ -236,7 +236,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
236
236
|
actionRequired: boolean;
|
|
237
237
|
migrationGuidance?: string | undefined;
|
|
238
238
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
239
|
-
surfaces: ("unspecified" | "rewards" | "
|
|
239
|
+
surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
240
240
|
}[];
|
|
241
241
|
}[];
|
|
242
242
|
slug: string;
|
|
@@ -262,7 +262,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
262
262
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
263
263
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
264
264
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
265
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "
|
|
265
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
|
|
266
266
|
}, undefined>;
|
|
267
267
|
readonly postSlug: v.StringSchema<undefined>;
|
|
268
268
|
readonly publishedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -283,7 +283,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
283
283
|
actionRequired: boolean;
|
|
284
284
|
migrationGuidance?: string | undefined;
|
|
285
285
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
286
|
-
surfaces: ("unspecified" | "rewards" | "
|
|
286
|
+
surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
287
287
|
};
|
|
288
288
|
postSlug: string;
|
|
289
289
|
publishedAt: number;
|
|
@@ -300,7 +300,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
300
300
|
actionRequired: boolean;
|
|
301
301
|
migrationGuidance?: string | undefined;
|
|
302
302
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
303
|
-
surfaces: ("unspecified" | "rewards" | "
|
|
303
|
+
surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
304
304
|
}>]>;
|
|
305
305
|
/** A change with the slug, publication time and section heading of the post that announced it. */
|
|
306
306
|
type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;
|
|
@@ -315,7 +315,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
315
315
|
readonly actionRequired: v.BooleanSchema<undefined>;
|
|
316
316
|
readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
317
317
|
readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
|
|
318
|
-
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "
|
|
318
|
+
readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
|
|
319
319
|
}, undefined>;
|
|
320
320
|
readonly postSlug: v.StringSchema<undefined>;
|
|
321
321
|
readonly publishedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -336,7 +336,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
336
336
|
actionRequired: boolean;
|
|
337
337
|
migrationGuidance?: string | undefined;
|
|
338
338
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
339
|
-
surfaces: ("unspecified" | "rewards" | "
|
|
339
|
+
surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
340
340
|
};
|
|
341
341
|
postSlug: string;
|
|
342
342
|
publishedAt: number;
|
|
@@ -353,7 +353,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
|
353
353
|
actionRequired: boolean;
|
|
354
354
|
migrationGuidance?: string | undefined;
|
|
355
355
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
356
|
-
surfaces: ("unspecified" | "rewards" | "
|
|
356
|
+
surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
|
|
357
357
|
}>]>, undefined>, readonly []>;
|
|
358
358
|
readonly nextPageToken: v.StringSchema<undefined>;
|
|
359
359
|
}, undefined>;
|
|
@@ -49,7 +49,7 @@ declare const CheckpointBiggestTradeSchema: v.SchemaWithPipe<readonly [v.ObjectS
|
|
|
49
49
|
side: number;
|
|
50
50
|
at: number;
|
|
51
51
|
}, {
|
|
52
|
-
side: "
|
|
52
|
+
side: "buy" | "sell" | "unspecified";
|
|
53
53
|
symbolId: number;
|
|
54
54
|
symbol: string;
|
|
55
55
|
at: number;
|
|
@@ -229,7 +229,7 @@ declare const CheckpointSchema: v.ObjectSchema<{
|
|
|
229
229
|
side: number;
|
|
230
230
|
at: number;
|
|
231
231
|
}, {
|
|
232
|
-
side: "
|
|
232
|
+
side: "buy" | "sell" | "unspecified";
|
|
233
233
|
symbolId: number;
|
|
234
234
|
symbol: string;
|
|
235
235
|
at: number;
|
|
@@ -421,7 +421,7 @@ declare const CheckpointSchema: v.ObjectSchema<{
|
|
|
421
421
|
readonly seasonResultUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
422
422
|
readonly subaccounts: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
|
|
423
423
|
/** Values computed from partial evidence; show them with an approximation marker. */
|
|
424
|
-
readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "tools" | "deposits" | "withdrawals" | "volume" | "top_pairs" | "order_types" | "time_in_force" | "order_status" | "median_limit_rest" | "internal_transfers" | "daily_claim_amounts" | "portfolio_value" | "trading_balances" | "funding_balances" | "
|
|
424
|
+
readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "transfers" | "tools" | "deposits" | "withdrawals" | "volume" | "top_pairs" | "order_types" | "time_in_force" | "order_status" | "median_limit_rest" | "internal_transfers" | "daily_claim_amounts" | "portfolio_value" | "trading_balances" | "funding_balances" | "season_result">]>, undefined>, readonly []>;
|
|
425
425
|
}, undefined>;
|
|
426
426
|
/**
|
|
427
427
|
* One frozen season recap of a root account and all of its subaccounts. An absent USD value
|
|
@@ -14,7 +14,7 @@ type TimestampInit = {
|
|
|
14
14
|
declare const GetOrderbookHeatmapInputSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
15
15
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
16
16
|
readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"1s" | "1m" | "5m" | "1h", HeatmapInterval>]>;
|
|
17
|
-
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 100 |
|
|
17
|
+
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 100 | 500 | 1000 | 200 | 50, HeatmapDepth>]>;
|
|
18
18
|
readonly quantityMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["close", "peak"], undefined>, "close">, v.TransformAction<"close" | "peak", HeatmapQuantityMode>]>;
|
|
19
19
|
readonly limit: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 20000, undefined>]>;
|
|
20
20
|
readonly startTsSec: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>, v.TransformAction<number, bigint>]>, undefined>;
|
|
@@ -227,7 +227,7 @@ type OrderbookHeatmapDeltaChain = ReturnType<typeof convertHeatmapDeltaChain>;
|
|
|
227
227
|
declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
228
228
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
229
229
|
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
230
|
-
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 |
|
|
230
|
+
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 1000 | 200 | 50>]>;
|
|
231
231
|
readonly chain: v.OptionalSchema<v.ObjectSchema<{
|
|
232
232
|
readonly baseKeyframe: v.OptionalSchema<v.ObjectSchema<{
|
|
233
233
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -287,7 +287,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
287
287
|
}, undefined>, v.TransformAction<{
|
|
288
288
|
symbolId: number;
|
|
289
289
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
290
|
-
depth: 1 |
|
|
290
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 1000 | 200 | 50;
|
|
291
291
|
chain?: {
|
|
292
292
|
baseKeyframe?: {
|
|
293
293
|
tsSec: number;
|
|
@@ -347,7 +347,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
347
347
|
}, {
|
|
348
348
|
symbolId: number;
|
|
349
349
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
350
|
-
depth: 1 |
|
|
350
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 1000 | 200 | 50;
|
|
351
351
|
chain: {
|
|
352
352
|
baseKeyframe: {
|
|
353
353
|
tsSec: number;
|