@nktkas/hyperliquid 0.25.0-beta.2 → 0.25.0-beta.3
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/README.md +18 -2
- package/esm/bin/cli.d.ts +3 -0
- package/esm/bin/cli.d.ts.map +1 -0
- package/esm/bin/cli.js +452 -0
- package/esm/bin/cli.js.map +1 -0
- package/esm/src/{errors.d.ts → _errors.d.ts} +1 -1
- package/esm/src/_errors.d.ts.map +1 -0
- package/esm/src/{errors.js → _errors.js} +1 -1
- package/esm/src/_errors.js.map +1 -0
- package/esm/src/clients/exchange.d.ts +4 -4
- package/esm/src/clients/exchange.d.ts.map +1 -1
- package/esm/src/clients/exchange.js +4 -4
- package/esm/src/clients/exchange.js.map +1 -1
- package/esm/src/clients/info.d.ts +23 -1
- package/esm/src/clients/info.d.ts.map +1 -1
- package/esm/src/clients/info.js +27 -1
- package/esm/src/clients/info.js.map +1 -1
- package/esm/src/clients/multiSign.d.ts +1 -1
- package/esm/src/clients/multiSign.d.ts.map +1 -1
- package/esm/src/clients/multiSign.js +1 -1
- package/esm/src/clients/multiSign.js.map +1 -1
- package/esm/src/mod.d.ts +21 -0
- package/esm/src/mod.d.ts.map +1 -0
- package/esm/src/mod.js +14 -0
- package/esm/src/mod.js.map +1 -0
- package/esm/src/schemas/_base.d.ts +8 -4
- package/esm/src/schemas/_base.d.ts.map +1 -1
- package/esm/src/schemas/_base.js +27 -2
- package/esm/src/schemas/_base.js.map +1 -1
- package/esm/src/schemas/exchange/requests.d.ts +1598 -1598
- package/esm/src/schemas/exchange/requests.d.ts.map +1 -1
- package/esm/src/schemas/exchange/requests.js +150 -155
- package/esm/src/schemas/exchange/requests.js.map +1 -1
- package/esm/src/schemas/exchange/responses.d.ts +4 -4
- package/esm/src/schemas/explorer/requests.d.ts +2 -2
- package/esm/src/schemas/explorer/requests.js +2 -2
- package/esm/src/schemas/explorer/requests.js.map +1 -1
- package/esm/src/schemas/info/accounts.d.ts +941 -195
- package/esm/src/schemas/info/accounts.d.ts.map +1 -1
- package/esm/src/schemas/info/accounts.js +44 -0
- package/esm/src/schemas/info/accounts.js.map +1 -1
- package/esm/src/schemas/info/assets.d.ts +64 -64
- package/esm/src/schemas/info/markets.d.ts +16 -16
- package/esm/src/schemas/info/orders.d.ts +137 -137
- package/esm/src/schemas/info/requests.d.ts +47 -32
- package/esm/src/schemas/info/requests.d.ts.map +1 -1
- package/esm/src/schemas/info/requests.js +28 -17
- package/esm/src/schemas/info/requests.js.map +1 -1
- package/esm/src/schemas/info/validators.d.ts +19 -19
- package/esm/src/schemas/info/validators.d.ts.map +1 -1
- package/esm/src/schemas/info/validators.js +2 -2
- package/esm/src/schemas/info/validators.js.map +1 -1
- package/esm/src/schemas/info/vaults.d.ts +35 -35
- package/esm/src/schemas/mod.d.ts +3 -3
- package/esm/src/schemas/mod.d.ts.map +1 -1
- package/esm/src/schemas/mod.js +3 -3
- package/esm/src/schemas/mod.js.map +1 -1
- package/esm/src/schemas/subscriptions/requests.d.ts +2 -2
- package/esm/src/schemas/subscriptions/requests.d.ts.map +1 -1
- package/esm/src/schemas/subscriptions/requests.js +3 -3
- package/esm/src/schemas/subscriptions/requests.js.map +1 -1
- package/esm/src/schemas/subscriptions/responses.d.ts +488 -488
- package/esm/src/signing/mod.d.ts +1 -1
- package/esm/src/signing/mod.d.ts.map +1 -1
- package/esm/src/signing/mod.js +2 -2
- package/esm/src/signing/mod.js.map +1 -1
- package/esm/src/signing/signTypedData/ethers.d.ts.map +1 -0
- package/esm/src/signing/signTypedData/ethers.js.map +1 -0
- package/esm/src/signing/signTypedData/mod.d.ts.map +1 -0
- package/esm/src/signing/signTypedData/mod.js.map +1 -0
- package/esm/src/signing/signTypedData/private_key.d.ts.map +1 -0
- package/esm/src/signing/{_signTypedData → signTypedData}/private_key.js +9 -8
- package/esm/src/signing/signTypedData/private_key.js.map +1 -0
- package/esm/src/signing/signTypedData/viem.d.ts.map +1 -0
- package/esm/src/signing/signTypedData/viem.js.map +1 -0
- package/esm/src/transports/base.d.ts +2 -2
- package/esm/src/transports/base.d.ts.map +1 -1
- package/esm/src/transports/base.js +2 -2
- package/esm/src/transports/base.js.map +1 -1
- package/package.json +15 -7
- package/script/bin/cli.d.ts +3 -0
- package/script/bin/cli.d.ts.map +1 -0
- package/script/bin/cli.js +490 -0
- package/script/bin/cli.js.map +1 -0
- package/script/src/{errors.d.ts → _errors.d.ts} +1 -1
- package/script/src/_errors.d.ts.map +1 -0
- package/script/src/{errors.js → _errors.js} +1 -1
- package/script/src/_errors.js.map +1 -0
- package/script/src/clients/exchange.d.ts +4 -4
- package/script/src/clients/exchange.d.ts.map +1 -1
- package/script/src/clients/exchange.js +5 -5
- package/script/src/clients/exchange.js.map +1 -1
- package/script/src/clients/info.d.ts +23 -1
- package/script/src/clients/info.d.ts.map +1 -1
- package/script/src/clients/info.js +26 -0
- package/script/src/clients/info.js.map +1 -1
- package/script/src/clients/multiSign.d.ts +1 -1
- package/script/src/clients/multiSign.d.ts.map +1 -1
- package/script/src/clients/multiSign.js +1 -1
- package/script/src/clients/multiSign.js.map +1 -1
- package/script/src/mod.d.ts +21 -0
- package/script/src/mod.d.ts.map +1 -0
- package/script/{mod.js → src/mod.js} +12 -8
- package/script/src/mod.js.map +1 -0
- package/script/src/schemas/_base.d.ts +8 -4
- package/script/src/schemas/_base.d.ts.map +1 -1
- package/script/src/schemas/_base.js +28 -3
- package/script/src/schemas/_base.js.map +1 -1
- package/script/src/schemas/exchange/requests.d.ts +1598 -1598
- package/script/src/schemas/exchange/requests.d.ts.map +1 -1
- package/script/src/schemas/exchange/requests.js +149 -154
- package/script/src/schemas/exchange/requests.js.map +1 -1
- package/script/src/schemas/exchange/responses.d.ts +4 -4
- package/script/src/schemas/explorer/requests.d.ts +2 -2
- package/script/src/schemas/explorer/requests.js +1 -1
- package/script/src/schemas/explorer/requests.js.map +1 -1
- package/script/src/schemas/info/accounts.d.ts +941 -195
- package/script/src/schemas/info/accounts.d.ts.map +1 -1
- package/script/src/schemas/info/accounts.js +45 -1
- package/script/src/schemas/info/accounts.js.map +1 -1
- package/script/src/schemas/info/assets.d.ts +64 -64
- package/script/src/schemas/info/markets.d.ts +16 -16
- package/script/src/schemas/info/orders.d.ts +137 -137
- package/script/src/schemas/info/requests.d.ts +47 -32
- package/script/src/schemas/info/requests.d.ts.map +1 -1
- package/script/src/schemas/info/requests.js +28 -17
- package/script/src/schemas/info/requests.js.map +1 -1
- package/script/src/schemas/info/validators.d.ts +19 -19
- package/script/src/schemas/info/validators.d.ts.map +1 -1
- package/script/src/schemas/info/validators.js +2 -2
- package/script/src/schemas/info/validators.js.map +1 -1
- package/script/src/schemas/info/vaults.d.ts +35 -35
- package/script/src/schemas/mod.d.ts +3 -3
- package/script/src/schemas/mod.d.ts.map +1 -1
- package/script/src/schemas/mod.js +4 -4
- package/script/src/schemas/mod.js.map +1 -1
- package/script/src/schemas/subscriptions/requests.d.ts +2 -2
- package/script/src/schemas/subscriptions/requests.d.ts.map +1 -1
- package/script/src/schemas/subscriptions/requests.js +2 -2
- package/script/src/schemas/subscriptions/requests.js.map +1 -1
- package/script/src/schemas/subscriptions/responses.d.ts +488 -488
- package/script/src/signing/mod.d.ts +1 -1
- package/script/src/signing/mod.d.ts.map +1 -1
- package/script/src/signing/mod.js +3 -3
- package/script/src/signing/mod.js.map +1 -1
- package/script/src/signing/signTypedData/ethers.d.ts.map +1 -0
- package/script/src/signing/signTypedData/ethers.js.map +1 -0
- package/script/src/signing/signTypedData/mod.d.ts.map +1 -0
- package/script/src/signing/signTypedData/mod.js.map +1 -0
- package/script/src/signing/signTypedData/private_key.d.ts.map +1 -0
- package/script/src/signing/{_signTypedData → signTypedData}/private_key.js +16 -15
- package/script/src/signing/signTypedData/private_key.js.map +1 -0
- package/script/src/signing/signTypedData/viem.d.ts.map +1 -0
- package/script/src/signing/signTypedData/viem.js.map +1 -0
- package/script/src/transports/base.d.ts +2 -2
- package/script/src/transports/base.d.ts.map +1 -1
- package/script/src/transports/base.js +3 -3
- package/script/src/transports/base.js.map +1 -1
- package/src/bin/cli.ts +481 -0
- package/src/src/clients/exchange.ts +7 -7
- package/src/src/clients/info.ts +34 -0
- package/src/src/clients/multiSign.ts +2 -2
- package/src/src/mod.ts +29 -0
- package/src/src/schemas/_base.ts +45 -6
- package/src/src/schemas/exchange/requests.ts +150 -155
- package/src/src/schemas/explorer/requests.ts +2 -2
- package/src/src/schemas/info/accounts.ts +108 -0
- package/src/src/schemas/info/requests.ts +49 -17
- package/src/src/schemas/info/validators.ts +17 -19
- package/src/src/schemas/mod.ts +3 -3
- package/src/src/schemas/subscriptions/requests.ts +13 -3
- package/src/src/signing/mod.ts +2 -2
- package/src/src/signing/{_signTypedData → signTypedData}/private_key.ts +13 -8
- package/src/src/transports/base.ts +2 -2
- package/esm/mod.d.ts +0 -20
- package/esm/mod.d.ts.map +0 -1
- package/esm/mod.js +0 -12
- package/esm/mod.js.map +0 -1
- package/esm/src/errors.d.ts.map +0 -1
- package/esm/src/errors.js.map +0 -1
- package/esm/src/signing/_signTypedData/ethers.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/ethers.js.map +0 -1
- package/esm/src/signing/_signTypedData/mod.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/mod.js.map +0 -1
- package/esm/src/signing/_signTypedData/private_key.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/private_key.js.map +0 -1
- package/esm/src/signing/_signTypedData/viem.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/viem.js.map +0 -1
- package/script/mod.d.ts +0 -20
- package/script/mod.d.ts.map +0 -1
- package/script/mod.js.map +0 -1
- package/script/src/errors.d.ts.map +0 -1
- package/script/src/errors.js.map +0 -1
- package/script/src/signing/_signTypedData/ethers.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/ethers.js.map +0 -1
- package/script/src/signing/_signTypedData/mod.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/mod.js.map +0 -1
- package/script/src/signing/_signTypedData/private_key.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/private_key.js.map +0 -1
- package/script/src/signing/_signTypedData/viem.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/viem.js.map +0 -1
- package/src/mod.ts +0 -28
- /package/esm/src/signing/{_signTypedData → signTypedData}/ethers.d.ts +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/ethers.js +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/mod.d.ts +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/mod.js +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/private_key.d.ts +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/viem.d.ts +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/viem.js +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/ethers.d.ts +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/ethers.js +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/mod.d.ts +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/mod.js +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/private_key.d.ts +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/viem.d.ts +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/viem.js +0 -0
- /package/src/src/{errors.ts → _errors.ts} +0 -0
- /package/src/src/signing/{_signTypedData → signTypedData}/ethers.ts +0 -0
- /package/src/src/signing/{_signTypedData → signTypedData}/mod.ts +0 -0
- /package/src/src/signing/{_signTypedData → signTypedData}/viem.ts +0 -0
|
@@ -2,9 +2,9 @@ import * as v from "valibot";
|
|
|
2
2
|
/** Order book level. */
|
|
3
3
|
export declare const BookLevel: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
4
4
|
/** Price. */
|
|
5
|
-
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
5
|
+
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
6
6
|
/** Total size. */
|
|
7
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total size.">]>;
|
|
7
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total size.">]>;
|
|
8
8
|
/** Number of individual orders. */
|
|
9
9
|
readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
|
|
10
10
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -22,9 +22,9 @@ export declare const Book: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
22
22
|
/** Bid and ask levels (index 0 = bids, index 1 = asks). */
|
|
23
23
|
readonly levels: v.SchemaWithPipe<readonly [v.TupleSchema<[v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
24
24
|
/** Price. */
|
|
25
|
-
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
25
|
+
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
26
26
|
/** Total size. */
|
|
27
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total size.">]>;
|
|
27
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total size.">]>;
|
|
28
28
|
/** Number of individual orders. */
|
|
29
29
|
readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
|
|
30
30
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -33,9 +33,9 @@ export declare const Book: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
33
33
|
n: number;
|
|
34
34
|
}, "Order book level.">]>, undefined>, v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
35
35
|
/** Price. */
|
|
36
|
-
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
36
|
+
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
37
37
|
/** Total size. */
|
|
38
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total size.">]>;
|
|
38
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total size.">]>;
|
|
39
39
|
/** Number of individual orders. */
|
|
40
40
|
readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
|
|
41
41
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -70,7 +70,7 @@ export declare const FillLiquidation: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
70
70
|
/** Address of the liquidated user. */
|
|
71
71
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
72
72
|
/** Mark price at the time of liquidation. */
|
|
73
|
-
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
73
|
+
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
74
74
|
/** Liquidation method. */
|
|
75
75
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
76
76
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -84,19 +84,19 @@ export declare const Fill: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
84
84
|
/** Asset symbol. */
|
|
85
85
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
86
86
|
/** Price. */
|
|
87
|
-
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
87
|
+
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
88
88
|
/** Size. */
|
|
89
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
89
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
90
90
|
/** Order side ("B" = Bid/Buy, "A" = Ask/Sell). */
|
|
91
91
|
readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
|
|
92
92
|
/** Timestamp when the trade occurred (in ms since epoch). */
|
|
93
93
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the trade occurred (in ms since epoch).">]>;
|
|
94
94
|
/** Start position size. */
|
|
95
|
-
readonly startPosition: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Start position size.">]>;
|
|
95
|
+
readonly startPosition: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Start position size.">]>;
|
|
96
96
|
/** Direction indicator for frontend display. */
|
|
97
97
|
readonly dir: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Direction indicator for frontend display.">]>;
|
|
98
98
|
/** Realized PnL. */
|
|
99
|
-
readonly closedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Realized PnL.">]>;
|
|
99
|
+
readonly closedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Realized PnL.">]>;
|
|
100
100
|
/** L1 transaction hash. */
|
|
101
101
|
readonly hash: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "L1 transaction hash.">]>;
|
|
102
102
|
/** Order ID. */
|
|
@@ -104,7 +104,7 @@ export declare const Fill: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
104
104
|
/** Indicates if the fill was a taker order. */
|
|
105
105
|
readonly crossed: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the fill was a taker order.">]>;
|
|
106
106
|
/** Fee charged or rebate received (negative indicates rebate). */
|
|
107
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
107
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
108
108
|
/** Unique transaction identifier for a partial fill of an order. */
|
|
109
109
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
110
110
|
/** Client Order ID. */
|
|
@@ -114,7 +114,7 @@ export declare const Fill: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
114
114
|
/** Address of the liquidated user. */
|
|
115
115
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
116
116
|
/** Mark price at the time of liquidation. */
|
|
117
|
-
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
117
|
+
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
118
118
|
/** Liquidation method. */
|
|
119
119
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
120
120
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -161,15 +161,15 @@ export declare const Order: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
161
161
|
/** Order side ("B" = Bid/Buy, "A" = Ask/Sell). */
|
|
162
162
|
readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
|
|
163
163
|
/** Limit price. */
|
|
164
|
-
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
164
|
+
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
165
165
|
/** Size. */
|
|
166
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
166
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
167
167
|
/** Order ID. */
|
|
168
168
|
readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
|
|
169
169
|
/** Timestamp when the order was placed (in ms since epoch). */
|
|
170
170
|
readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the order was placed (in ms since epoch).">]>;
|
|
171
171
|
/** Original size at order placement. */
|
|
172
|
-
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
172
|
+
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
173
173
|
/** Client Order ID. */
|
|
174
174
|
readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
|
|
175
175
|
/** Indicates if the order is reduce-only. */
|
|
@@ -216,7 +216,7 @@ export declare const FrontendOrder: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
216
216
|
/** Indicates if the order is a trigger order. */
|
|
217
217
|
readonly isTrigger: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a trigger order.">]>;
|
|
218
218
|
/** Trigger price. */
|
|
219
|
-
readonly triggerPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Trigger price.">]>;
|
|
219
|
+
readonly triggerPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Trigger price.">]>;
|
|
220
220
|
/** Child orders associated with this order. */
|
|
221
221
|
readonly children: v.SchemaWithPipe<readonly [v.ArraySchema<v.LazySchema<any>, undefined>, v.DescriptionAction<any[], "Child orders associated with this order.">]>;
|
|
222
222
|
/** Indicates if the order is a position TP/SL order. */
|
|
@@ -229,13 +229,13 @@ export declare const FrontendOrder: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
229
229
|
readonly tif: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Gtc", undefined>, v.LiteralSchema<"Ioc", undefined>, v.LiteralSchema<"Alo", undefined>, v.LiteralSchema<"FrontendMarket", undefined>, v.LiteralSchema<"LiquidationMarket", undefined>], undefined>, v.DescriptionAction<"Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket", string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<"Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null, "Time-in-force option.">]>;
|
|
230
230
|
/** Client Order ID. */
|
|
231
231
|
readonly cloid: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<`0x${string}` | null, "Client Order ID.">]>;
|
|
232
|
-
readonly
|
|
232
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
233
233
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
234
234
|
readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
|
|
235
|
-
readonly
|
|
236
|
-
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
235
|
+
readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
|
|
236
|
+
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
237
237
|
readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the order was placed (in ms since epoch).">]>;
|
|
238
|
-
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
238
|
+
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
239
239
|
}, undefined>, v.DescriptionAction<{
|
|
240
240
|
triggerCondition: string;
|
|
241
241
|
isTrigger: boolean;
|
|
@@ -246,10 +246,10 @@ export declare const FrontendOrder: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
246
246
|
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
247
247
|
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
248
248
|
cloid: `0x${string}` | null;
|
|
249
|
-
|
|
249
|
+
sz: string;
|
|
250
250
|
coin: string;
|
|
251
251
|
side: "B" | "A";
|
|
252
|
-
|
|
252
|
+
oid: number;
|
|
253
253
|
limitPx: string;
|
|
254
254
|
timestamp: number;
|
|
255
255
|
origSz: string;
|
|
@@ -272,7 +272,7 @@ export type FrontendOrder = v.InferOutput<typeof FrontendOrder>;
|
|
|
272
272
|
* - `liquidatedCanceled`: Canceled due to liquidation.
|
|
273
273
|
* - `scheduledCancel`: Canceled due to exceeding scheduled cancel deadline (dead man's switch).
|
|
274
274
|
*/
|
|
275
|
-
export declare const OrderProcessingStatus: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"open", undefined>, v.LiteralSchema<"filled", undefined>, v.LiteralSchema<"canceled", undefined>, v.LiteralSchema<"triggered", undefined>, v.LiteralSchema<"rejected", undefined>, v.LiteralSchema<"marginCanceled", undefined>, v.LiteralSchema<"vaultWithdrawalCanceled", undefined>, v.LiteralSchema<"openInterestCapCanceled", undefined>, v.LiteralSchema<"selfTradeCanceled", undefined>, v.LiteralSchema<"reduceOnlyCanceled", undefined>, v.LiteralSchema<"siblingFilledCanceled", undefined>, v.LiteralSchema<"delistedCanceled", undefined>, v.LiteralSchema<"liquidatedCanceled", undefined>, v.LiteralSchema<"scheduledCancel", undefined>, v.LiteralSchema<"reduceOnlyRejected", undefined>], undefined>, v.DescriptionAction<"
|
|
275
|
+
export declare const OrderProcessingStatus: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"open", undefined>, v.LiteralSchema<"filled", undefined>, v.LiteralSchema<"canceled", undefined>, v.LiteralSchema<"triggered", undefined>, v.LiteralSchema<"rejected", undefined>, v.LiteralSchema<"marginCanceled", undefined>, v.LiteralSchema<"vaultWithdrawalCanceled", undefined>, v.LiteralSchema<"openInterestCapCanceled", undefined>, v.LiteralSchema<"selfTradeCanceled", undefined>, v.LiteralSchema<"reduceOnlyCanceled", undefined>, v.LiteralSchema<"siblingFilledCanceled", undefined>, v.LiteralSchema<"delistedCanceled", undefined>, v.LiteralSchema<"liquidatedCanceled", undefined>, v.LiteralSchema<"scheduledCancel", undefined>, v.LiteralSchema<"reduceOnlyRejected", undefined>], undefined>, v.DescriptionAction<"open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected", string>]>;
|
|
276
276
|
export type OrderProcessingStatus = v.InferOutput<typeof OrderProcessingStatus>;
|
|
277
277
|
/** Order with current processing status. */
|
|
278
278
|
export declare const OrderStatus: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -283,15 +283,15 @@ export declare const OrderStatus: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
283
283
|
/** Order side ("B" = Bid/Buy, "A" = Ask/Sell). */
|
|
284
284
|
readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
|
|
285
285
|
/** Limit price. */
|
|
286
|
-
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
286
|
+
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
287
287
|
/** Size. */
|
|
288
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
288
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
289
289
|
/** Order ID. */
|
|
290
290
|
readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
|
|
291
291
|
/** Timestamp when the order was placed (in ms since epoch). */
|
|
292
292
|
readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the order was placed (in ms since epoch).">]>;
|
|
293
293
|
/** Original size at order placement. */
|
|
294
|
-
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
294
|
+
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
295
295
|
/** Client Order ID. */
|
|
296
296
|
readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
|
|
297
297
|
/** Indicates if the order is reduce-only. */
|
|
@@ -318,7 +318,7 @@ export declare const OrderStatus: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
318
318
|
reduceOnly?: true | undefined;
|
|
319
319
|
}, "Order details.">]>;
|
|
320
320
|
/** Order processing status. */
|
|
321
|
-
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"open", undefined>, v.LiteralSchema<"filled", undefined>, v.LiteralSchema<"canceled", undefined>, v.LiteralSchema<"triggered", undefined>, v.LiteralSchema<"rejected", undefined>, v.LiteralSchema<"marginCanceled", undefined>, v.LiteralSchema<"vaultWithdrawalCanceled", undefined>, v.LiteralSchema<"openInterestCapCanceled", undefined>, v.LiteralSchema<"selfTradeCanceled", undefined>, v.LiteralSchema<"reduceOnlyCanceled", undefined>, v.LiteralSchema<"siblingFilledCanceled", undefined>, v.LiteralSchema<"delistedCanceled", undefined>, v.LiteralSchema<"liquidatedCanceled", undefined>, v.LiteralSchema<"scheduledCancel", undefined>, v.LiteralSchema<"reduceOnlyRejected", undefined>], undefined>, v.DescriptionAction<"
|
|
321
|
+
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"open", undefined>, v.LiteralSchema<"filled", undefined>, v.LiteralSchema<"canceled", undefined>, v.LiteralSchema<"triggered", undefined>, v.LiteralSchema<"rejected", undefined>, v.LiteralSchema<"marginCanceled", undefined>, v.LiteralSchema<"vaultWithdrawalCanceled", undefined>, v.LiteralSchema<"openInterestCapCanceled", undefined>, v.LiteralSchema<"selfTradeCanceled", undefined>, v.LiteralSchema<"reduceOnlyCanceled", undefined>, v.LiteralSchema<"siblingFilledCanceled", undefined>, v.LiteralSchema<"delistedCanceled", undefined>, v.LiteralSchema<"liquidatedCanceled", undefined>, v.LiteralSchema<"scheduledCancel", undefined>, v.LiteralSchema<"reduceOnlyRejected", undefined>], undefined>, v.DescriptionAction<"open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected", string>]>, v.DescriptionAction<"open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected", "Order processing status.">]>;
|
|
322
322
|
/** Timestamp when the status was last updated (in ms since epoch). */
|
|
323
323
|
readonly statusTimestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the status was last updated (in ms since epoch).">]>;
|
|
324
324
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -333,7 +333,7 @@ export declare const OrderStatus: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
333
333
|
cloid?: `0x${string}` | undefined;
|
|
334
334
|
reduceOnly?: true | undefined;
|
|
335
335
|
};
|
|
336
|
-
status: "
|
|
336
|
+
status: "open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected";
|
|
337
337
|
statusTimestamp: number;
|
|
338
338
|
}, "Order with current processing status.">]>;
|
|
339
339
|
export type OrderStatus = v.InferOutput<typeof OrderStatus>;
|
|
@@ -346,7 +346,7 @@ export declare const FrontendOrderStatus: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
346
346
|
/** Indicates if the order is a trigger order. */
|
|
347
347
|
readonly isTrigger: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a trigger order.">]>;
|
|
348
348
|
/** Trigger price. */
|
|
349
|
-
readonly triggerPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Trigger price.">]>;
|
|
349
|
+
readonly triggerPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Trigger price.">]>;
|
|
350
350
|
/** Child orders associated with this order. */
|
|
351
351
|
readonly children: v.SchemaWithPipe<readonly [v.ArraySchema<v.LazySchema<any>, undefined>, v.DescriptionAction<any[], "Child orders associated with this order.">]>;
|
|
352
352
|
/** Indicates if the order is a position TP/SL order. */
|
|
@@ -359,13 +359,13 @@ export declare const FrontendOrderStatus: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
359
359
|
readonly tif: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Gtc", undefined>, v.LiteralSchema<"Ioc", undefined>, v.LiteralSchema<"Alo", undefined>, v.LiteralSchema<"FrontendMarket", undefined>, v.LiteralSchema<"LiquidationMarket", undefined>], undefined>, v.DescriptionAction<"Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket", string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<"Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null, "Time-in-force option.">]>;
|
|
360
360
|
/** Client Order ID. */
|
|
361
361
|
readonly cloid: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<`0x${string}` | null, "Client Order ID.">]>;
|
|
362
|
-
readonly
|
|
362
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
363
363
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
364
364
|
readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
|
|
365
|
-
readonly
|
|
366
|
-
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
365
|
+
readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
|
|
366
|
+
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
367
367
|
readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the order was placed (in ms since epoch).">]>;
|
|
368
|
-
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
368
|
+
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
369
369
|
}, undefined>, v.DescriptionAction<{
|
|
370
370
|
triggerCondition: string;
|
|
371
371
|
isTrigger: boolean;
|
|
@@ -376,10 +376,10 @@ export declare const FrontendOrderStatus: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
376
376
|
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
377
377
|
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
378
378
|
cloid: `0x${string}` | null;
|
|
379
|
-
|
|
379
|
+
sz: string;
|
|
380
380
|
coin: string;
|
|
381
381
|
side: "B" | "A";
|
|
382
|
-
|
|
382
|
+
oid: number;
|
|
383
383
|
limitPx: string;
|
|
384
384
|
timestamp: number;
|
|
385
385
|
origSz: string;
|
|
@@ -393,16 +393,16 @@ export declare const FrontendOrderStatus: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
393
393
|
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
394
394
|
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
395
395
|
cloid: `0x${string}` | null;
|
|
396
|
-
|
|
396
|
+
sz: string;
|
|
397
397
|
coin: string;
|
|
398
398
|
side: "B" | "A";
|
|
399
|
-
|
|
399
|
+
oid: number;
|
|
400
400
|
limitPx: string;
|
|
401
401
|
timestamp: number;
|
|
402
402
|
origSz: string;
|
|
403
403
|
}, "Order details.">]>;
|
|
404
404
|
/** Order processing status. */
|
|
405
|
-
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"open", undefined>, v.LiteralSchema<"filled", undefined>, v.LiteralSchema<"canceled", undefined>, v.LiteralSchema<"triggered", undefined>, v.LiteralSchema<"rejected", undefined>, v.LiteralSchema<"marginCanceled", undefined>, v.LiteralSchema<"vaultWithdrawalCanceled", undefined>, v.LiteralSchema<"openInterestCapCanceled", undefined>, v.LiteralSchema<"selfTradeCanceled", undefined>, v.LiteralSchema<"reduceOnlyCanceled", undefined>, v.LiteralSchema<"siblingFilledCanceled", undefined>, v.LiteralSchema<"delistedCanceled", undefined>, v.LiteralSchema<"liquidatedCanceled", undefined>, v.LiteralSchema<"scheduledCancel", undefined>, v.LiteralSchema<"reduceOnlyRejected", undefined>], undefined>, v.DescriptionAction<"
|
|
405
|
+
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"open", undefined>, v.LiteralSchema<"filled", undefined>, v.LiteralSchema<"canceled", undefined>, v.LiteralSchema<"triggered", undefined>, v.LiteralSchema<"rejected", undefined>, v.LiteralSchema<"marginCanceled", undefined>, v.LiteralSchema<"vaultWithdrawalCanceled", undefined>, v.LiteralSchema<"openInterestCapCanceled", undefined>, v.LiteralSchema<"selfTradeCanceled", undefined>, v.LiteralSchema<"reduceOnlyCanceled", undefined>, v.LiteralSchema<"siblingFilledCanceled", undefined>, v.LiteralSchema<"delistedCanceled", undefined>, v.LiteralSchema<"liquidatedCanceled", undefined>, v.LiteralSchema<"scheduledCancel", undefined>, v.LiteralSchema<"reduceOnlyRejected", undefined>], undefined>, v.DescriptionAction<"open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected", string>]>, v.DescriptionAction<"open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected", "Order processing status.">]>;
|
|
406
406
|
/** Timestamp when the status was last updated (in ms since epoch). */
|
|
407
407
|
readonly statusTimestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the status was last updated (in ms since epoch).">]>;
|
|
408
408
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -416,15 +416,15 @@ export declare const FrontendOrderStatus: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
416
416
|
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
417
417
|
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
418
418
|
cloid: `0x${string}` | null;
|
|
419
|
-
|
|
419
|
+
sz: string;
|
|
420
420
|
coin: string;
|
|
421
421
|
side: "B" | "A";
|
|
422
|
-
|
|
422
|
+
oid: number;
|
|
423
423
|
limitPx: string;
|
|
424
424
|
timestamp: number;
|
|
425
425
|
origSz: string;
|
|
426
426
|
};
|
|
427
|
-
status: "
|
|
427
|
+
status: "open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected";
|
|
428
428
|
statusTimestamp: number;
|
|
429
429
|
}, "Frontend order with current processing status.">]>;
|
|
430
430
|
export type FrontendOrderStatus = v.InferOutput<typeof FrontendOrderStatus>;
|
|
@@ -441,7 +441,7 @@ export declare const OrderLookup: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Ob
|
|
|
441
441
|
/** Indicates if the order is a trigger order. */
|
|
442
442
|
readonly isTrigger: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a trigger order.">]>;
|
|
443
443
|
/** Trigger price. */
|
|
444
|
-
readonly triggerPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Trigger price.">]>;
|
|
444
|
+
readonly triggerPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Trigger price.">]>;
|
|
445
445
|
/** Child orders associated with this order. */
|
|
446
446
|
readonly children: v.SchemaWithPipe<readonly [v.ArraySchema<v.LazySchema<any>, undefined>, v.DescriptionAction<any[], "Child orders associated with this order.">]>;
|
|
447
447
|
/** Indicates if the order is a position TP/SL order. */
|
|
@@ -454,13 +454,13 @@ export declare const OrderLookup: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Ob
|
|
|
454
454
|
readonly tif: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Gtc", undefined>, v.LiteralSchema<"Ioc", undefined>, v.LiteralSchema<"Alo", undefined>, v.LiteralSchema<"FrontendMarket", undefined>, v.LiteralSchema<"LiquidationMarket", undefined>], undefined>, v.DescriptionAction<"Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket", string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<"Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null, "Time-in-force option.">]>;
|
|
455
455
|
/** Client Order ID. */
|
|
456
456
|
readonly cloid: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<`0x${string}` | null, "Client Order ID.">]>;
|
|
457
|
-
readonly
|
|
457
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
458
458
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
459
459
|
readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
|
|
460
|
-
readonly
|
|
461
|
-
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
460
|
+
readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
|
|
461
|
+
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
462
462
|
readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the order was placed (in ms since epoch).">]>;
|
|
463
|
-
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
463
|
+
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
464
464
|
}, undefined>, v.DescriptionAction<{
|
|
465
465
|
triggerCondition: string;
|
|
466
466
|
isTrigger: boolean;
|
|
@@ -471,10 +471,10 @@ export declare const OrderLookup: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Ob
|
|
|
471
471
|
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
472
472
|
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
473
473
|
cloid: `0x${string}` | null;
|
|
474
|
-
|
|
474
|
+
sz: string;
|
|
475
475
|
coin: string;
|
|
476
476
|
side: "B" | "A";
|
|
477
|
-
|
|
477
|
+
oid: number;
|
|
478
478
|
limitPx: string;
|
|
479
479
|
timestamp: number;
|
|
480
480
|
origSz: string;
|
|
@@ -488,16 +488,16 @@ export declare const OrderLookup: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Ob
|
|
|
488
488
|
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
489
489
|
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
490
490
|
cloid: `0x${string}` | null;
|
|
491
|
-
|
|
491
|
+
sz: string;
|
|
492
492
|
coin: string;
|
|
493
493
|
side: "B" | "A";
|
|
494
|
-
|
|
494
|
+
oid: number;
|
|
495
495
|
limitPx: string;
|
|
496
496
|
timestamp: number;
|
|
497
497
|
origSz: string;
|
|
498
498
|
}, "Order details.">]>;
|
|
499
499
|
/** Order processing status. */
|
|
500
|
-
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"open", undefined>, v.LiteralSchema<"filled", undefined>, v.LiteralSchema<"canceled", undefined>, v.LiteralSchema<"triggered", undefined>, v.LiteralSchema<"rejected", undefined>, v.LiteralSchema<"marginCanceled", undefined>, v.LiteralSchema<"vaultWithdrawalCanceled", undefined>, v.LiteralSchema<"openInterestCapCanceled", undefined>, v.LiteralSchema<"selfTradeCanceled", undefined>, v.LiteralSchema<"reduceOnlyCanceled", undefined>, v.LiteralSchema<"siblingFilledCanceled", undefined>, v.LiteralSchema<"delistedCanceled", undefined>, v.LiteralSchema<"liquidatedCanceled", undefined>, v.LiteralSchema<"scheduledCancel", undefined>, v.LiteralSchema<"reduceOnlyRejected", undefined>], undefined>, v.DescriptionAction<"
|
|
500
|
+
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"open", undefined>, v.LiteralSchema<"filled", undefined>, v.LiteralSchema<"canceled", undefined>, v.LiteralSchema<"triggered", undefined>, v.LiteralSchema<"rejected", undefined>, v.LiteralSchema<"marginCanceled", undefined>, v.LiteralSchema<"vaultWithdrawalCanceled", undefined>, v.LiteralSchema<"openInterestCapCanceled", undefined>, v.LiteralSchema<"selfTradeCanceled", undefined>, v.LiteralSchema<"reduceOnlyCanceled", undefined>, v.LiteralSchema<"siblingFilledCanceled", undefined>, v.LiteralSchema<"delistedCanceled", undefined>, v.LiteralSchema<"liquidatedCanceled", undefined>, v.LiteralSchema<"scheduledCancel", undefined>, v.LiteralSchema<"reduceOnlyRejected", undefined>], undefined>, v.DescriptionAction<"open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected", string>]>, v.DescriptionAction<"open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected", "Order processing status.">]>;
|
|
501
501
|
/** Timestamp when the status was last updated (in ms since epoch). */
|
|
502
502
|
readonly statusTimestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the status was last updated (in ms since epoch).">]>;
|
|
503
503
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -511,15 +511,15 @@ export declare const OrderLookup: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Ob
|
|
|
511
511
|
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
512
512
|
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
513
513
|
cloid: `0x${string}` | null;
|
|
514
|
-
|
|
514
|
+
sz: string;
|
|
515
515
|
coin: string;
|
|
516
516
|
side: "B" | "A";
|
|
517
|
-
|
|
517
|
+
oid: number;
|
|
518
518
|
limitPx: string;
|
|
519
519
|
timestamp: number;
|
|
520
520
|
origSz: string;
|
|
521
521
|
};
|
|
522
|
-
status: "
|
|
522
|
+
status: "open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected";
|
|
523
523
|
statusTimestamp: number;
|
|
524
524
|
}, "Frontend order with current processing status.">]>, v.DescriptionAction<{
|
|
525
525
|
order: {
|
|
@@ -532,15 +532,15 @@ export declare const OrderLookup: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Ob
|
|
|
532
532
|
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
533
533
|
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
534
534
|
cloid: `0x${string}` | null;
|
|
535
|
-
|
|
535
|
+
sz: string;
|
|
536
536
|
coin: string;
|
|
537
537
|
side: "B" | "A";
|
|
538
|
-
|
|
538
|
+
oid: number;
|
|
539
539
|
limitPx: string;
|
|
540
540
|
timestamp: number;
|
|
541
541
|
origSz: string;
|
|
542
542
|
};
|
|
543
|
-
status: "
|
|
543
|
+
status: "open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected";
|
|
544
544
|
statusTimestamp: number;
|
|
545
545
|
}, "Order details.">]>;
|
|
546
546
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -559,15 +559,15 @@ export declare const OrderLookup: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Ob
|
|
|
559
559
|
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
560
560
|
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
561
561
|
cloid: `0x${string}` | null;
|
|
562
|
-
|
|
562
|
+
sz: string;
|
|
563
563
|
coin: string;
|
|
564
564
|
side: "B" | "A";
|
|
565
|
-
|
|
565
|
+
oid: number;
|
|
566
566
|
limitPx: string;
|
|
567
567
|
timestamp: number;
|
|
568
568
|
origSz: string;
|
|
569
569
|
};
|
|
570
|
-
status: "
|
|
570
|
+
status: "open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "reduceOnlyRejected";
|
|
571
571
|
statusTimestamp: number;
|
|
572
572
|
};
|
|
573
573
|
} | {
|
|
@@ -579,9 +579,9 @@ export declare const TwapState: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
579
579
|
/** Asset symbol. */
|
|
580
580
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
581
581
|
/** Executed notional value. */
|
|
582
|
-
readonly executedNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed notional value.">]>;
|
|
582
|
+
readonly executedNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed notional value.">]>;
|
|
583
583
|
/** Executed size. */
|
|
584
|
-
readonly executedSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed size.">]>;
|
|
584
|
+
readonly executedSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed size.">]>;
|
|
585
585
|
/** Duration in minutes. */
|
|
586
586
|
readonly minutes: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Duration in minutes.">]>;
|
|
587
587
|
/** Indicates if the TWAP randomizes execution. */
|
|
@@ -591,7 +591,7 @@ export declare const TwapState: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
591
591
|
/** Order side ("B" = Bid/Buy, "A" = Ask/Sell). */
|
|
592
592
|
readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
|
|
593
593
|
/** Order size. */
|
|
594
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Order size.">]>;
|
|
594
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Order size.">]>;
|
|
595
595
|
/** Start time of the TWAP order (in ms since epoch). */
|
|
596
596
|
readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Start time of the TWAP order (in ms since epoch).">]>;
|
|
597
597
|
/** User address. */
|
|
@@ -640,9 +640,9 @@ export declare const TwapHistory: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
640
640
|
/** Asset symbol. */
|
|
641
641
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
642
642
|
/** Executed notional value. */
|
|
643
|
-
readonly executedNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed notional value.">]>;
|
|
643
|
+
readonly executedNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed notional value.">]>;
|
|
644
644
|
/** Executed size. */
|
|
645
|
-
readonly executedSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed size.">]>;
|
|
645
|
+
readonly executedSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed size.">]>;
|
|
646
646
|
/** Duration in minutes. */
|
|
647
647
|
readonly minutes: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Duration in minutes.">]>;
|
|
648
648
|
/** Indicates if the TWAP randomizes execution. */
|
|
@@ -652,7 +652,7 @@ export declare const TwapHistory: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
652
652
|
/** Order side ("B" = Bid/Buy, "A" = Ask/Sell). */
|
|
653
653
|
readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
|
|
654
654
|
/** Order size. */
|
|
655
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Order size.">]>;
|
|
655
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Order size.">]>;
|
|
656
656
|
/** Start time of the TWAP order (in ms since epoch). */
|
|
657
657
|
readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Start time of the TWAP order (in ms since epoch).">]>;
|
|
658
658
|
/** User address. */
|
|
@@ -729,19 +729,19 @@ export declare const TwapSliceFill: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
729
729
|
/** Asset symbol. */
|
|
730
730
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
731
731
|
/** Price. */
|
|
732
|
-
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
732
|
+
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
733
733
|
/** Size. */
|
|
734
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
734
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
735
735
|
/** Order side ("B" = Bid/Buy, "A" = Ask/Sell). */
|
|
736
736
|
readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
|
|
737
737
|
/** Timestamp when the trade occurred (in ms since epoch). */
|
|
738
738
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the trade occurred (in ms since epoch).">]>;
|
|
739
739
|
/** Start position size. */
|
|
740
|
-
readonly startPosition: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Start position size.">]>;
|
|
740
|
+
readonly startPosition: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Start position size.">]>;
|
|
741
741
|
/** Direction indicator for frontend display. */
|
|
742
742
|
readonly dir: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Direction indicator for frontend display.">]>;
|
|
743
743
|
/** Realized PnL. */
|
|
744
|
-
readonly closedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Realized PnL.">]>;
|
|
744
|
+
readonly closedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Realized PnL.">]>;
|
|
745
745
|
/** L1 transaction hash. */
|
|
746
746
|
readonly hash: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "L1 transaction hash.">]>;
|
|
747
747
|
/** Order ID. */
|
|
@@ -749,7 +749,7 @@ export declare const TwapSliceFill: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
749
749
|
/** Indicates if the fill was a taker order. */
|
|
750
750
|
readonly crossed: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the fill was a taker order.">]>;
|
|
751
751
|
/** Fee charged or rebate received (negative indicates rebate). */
|
|
752
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
752
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
753
753
|
/** Unique transaction identifier for a partial fill of an order. */
|
|
754
754
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
755
755
|
/** Client Order ID. */
|
|
@@ -759,7 +759,7 @@ export declare const TwapSliceFill: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
759
759
|
/** Address of the liquidated user. */
|
|
760
760
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
761
761
|
/** Mark price at the time of liquidation. */
|
|
762
|
-
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
762
|
+
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
763
763
|
/** Liquidation method. */
|
|
764
764
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
765
765
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -780,19 +780,19 @@ export declare const TwapSliceFill: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
780
780
|
/** Asset symbol. */
|
|
781
781
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
782
782
|
/** Price. */
|
|
783
|
-
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
783
|
+
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
784
784
|
/** Size. */
|
|
785
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
785
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
786
786
|
/** Order side ("B" = Bid/Buy, "A" = Ask/Sell). */
|
|
787
787
|
readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
|
|
788
788
|
/** Timestamp when the trade occurred (in ms since epoch). */
|
|
789
789
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the trade occurred (in ms since epoch).">]>;
|
|
790
790
|
/** Start position size. */
|
|
791
|
-
readonly startPosition: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Start position size.">]>;
|
|
791
|
+
readonly startPosition: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Start position size.">]>;
|
|
792
792
|
/** Direction indicator for frontend display. */
|
|
793
793
|
readonly dir: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Direction indicator for frontend display.">]>;
|
|
794
794
|
/** Realized PnL. */
|
|
795
|
-
readonly closedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Realized PnL.">]>;
|
|
795
|
+
readonly closedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Realized PnL.">]>;
|
|
796
796
|
/** L1 transaction hash. */
|
|
797
797
|
readonly hash: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "L1 transaction hash.">]>;
|
|
798
798
|
/** Order ID. */
|
|
@@ -800,7 +800,7 @@ export declare const TwapSliceFill: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
800
800
|
/** Indicates if the fill was a taker order. */
|
|
801
801
|
readonly crossed: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the fill was a taker order.">]>;
|
|
802
802
|
/** Fee charged or rebate received (negative indicates rebate). */
|
|
803
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
803
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
804
804
|
/** Unique transaction identifier for a partial fill of an order. */
|
|
805
805
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
806
806
|
/** Client Order ID. */
|
|
@@ -810,7 +810,7 @@ export declare const TwapSliceFill: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
810
810
|
/** Address of the liquidated user. */
|
|
811
811
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
812
812
|
/** Mark price at the time of liquidation. */
|
|
813
|
-
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
813
|
+
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
814
814
|
/** Liquidation method. */
|
|
815
815
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
816
816
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -829,127 +829,127 @@ export declare const TwapSliceFill: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
829
829
|
}, "cloid" | "liquidation">;
|
|
830
830
|
readonly '~standard': v.StandardProps<{
|
|
831
831
|
time: number;
|
|
832
|
-
oid: number;
|
|
833
|
-
coin: string;
|
|
834
|
-
twapId: number | null;
|
|
835
|
-
hash: string;
|
|
836
|
-
fee: string;
|
|
837
|
-
feeToken: string;
|
|
838
|
-
side: "B" | "A";
|
|
839
832
|
px: string;
|
|
840
833
|
sz: string;
|
|
841
|
-
|
|
834
|
+
coin: string;
|
|
835
|
+
side: "B" | "A";
|
|
842
836
|
startPosition: string;
|
|
843
837
|
dir: string;
|
|
844
838
|
closedPnl: string;
|
|
845
|
-
|
|
846
|
-
}, {
|
|
847
|
-
time: number;
|
|
839
|
+
hash: string;
|
|
848
840
|
oid: number;
|
|
849
|
-
|
|
850
|
-
twapId: number | null;
|
|
851
|
-
hash: `0x${string}`;
|
|
841
|
+
crossed: boolean;
|
|
852
842
|
fee: string;
|
|
843
|
+
tid: number;
|
|
853
844
|
feeToken: string;
|
|
854
|
-
|
|
845
|
+
twapId: number | null;
|
|
846
|
+
}, {
|
|
847
|
+
time: number;
|
|
855
848
|
px: string;
|
|
856
849
|
sz: string;
|
|
857
|
-
|
|
850
|
+
coin: string;
|
|
851
|
+
side: "B" | "A";
|
|
858
852
|
startPosition: string;
|
|
859
853
|
dir: string;
|
|
860
854
|
closedPnl: string;
|
|
855
|
+
hash: `0x${string}`;
|
|
856
|
+
oid: number;
|
|
861
857
|
crossed: boolean;
|
|
858
|
+
fee: string;
|
|
859
|
+
tid: number;
|
|
860
|
+
feeToken: string;
|
|
861
|
+
twapId: number | null;
|
|
862
862
|
}>;
|
|
863
863
|
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
864
864
|
time: number;
|
|
865
|
-
oid: number;
|
|
866
|
-
coin: string;
|
|
867
|
-
twapId: number | null;
|
|
868
|
-
hash: `0x${string}`;
|
|
869
|
-
fee: string;
|
|
870
|
-
feeToken: string;
|
|
871
|
-
side: "B" | "A";
|
|
872
865
|
px: string;
|
|
873
866
|
sz: string;
|
|
874
|
-
|
|
867
|
+
coin: string;
|
|
868
|
+
side: "B" | "A";
|
|
875
869
|
startPosition: string;
|
|
876
870
|
dir: string;
|
|
877
871
|
closedPnl: string;
|
|
872
|
+
hash: `0x${string}`;
|
|
873
|
+
oid: number;
|
|
878
874
|
crossed: boolean;
|
|
879
|
-
|
|
875
|
+
fee: string;
|
|
876
|
+
tid: number;
|
|
877
|
+
feeToken: string;
|
|
878
|
+
twapId: number | null;
|
|
879
|
+
}, v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.ObjectIssue | v.LiteralIssue | v.UnionIssue<v.LiteralIssue> | v.LengthIssue<`0x${string}`, 66> | v.BooleanIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>>;
|
|
880
880
|
readonly '~types'?: {
|
|
881
881
|
readonly input: {
|
|
882
882
|
time: number;
|
|
883
|
-
oid: number;
|
|
884
|
-
coin: string;
|
|
885
|
-
twapId: number | null;
|
|
886
|
-
hash: string;
|
|
887
|
-
fee: string;
|
|
888
|
-
feeToken: string;
|
|
889
|
-
side: "B" | "A";
|
|
890
883
|
px: string;
|
|
891
884
|
sz: string;
|
|
892
|
-
|
|
885
|
+
coin: string;
|
|
886
|
+
side: "B" | "A";
|
|
893
887
|
startPosition: string;
|
|
894
888
|
dir: string;
|
|
895
889
|
closedPnl: string;
|
|
890
|
+
hash: string;
|
|
891
|
+
oid: number;
|
|
896
892
|
crossed: boolean;
|
|
893
|
+
fee: string;
|
|
894
|
+
tid: number;
|
|
895
|
+
feeToken: string;
|
|
896
|
+
twapId: number | null;
|
|
897
897
|
};
|
|
898
898
|
readonly output: {
|
|
899
899
|
time: number;
|
|
900
|
-
oid: number;
|
|
901
|
-
coin: string;
|
|
902
|
-
twapId: number | null;
|
|
903
|
-
hash: `0x${string}`;
|
|
904
|
-
fee: string;
|
|
905
|
-
feeToken: string;
|
|
906
|
-
side: "B" | "A";
|
|
907
900
|
px: string;
|
|
908
901
|
sz: string;
|
|
909
|
-
|
|
902
|
+
coin: string;
|
|
903
|
+
side: "B" | "A";
|
|
910
904
|
startPosition: string;
|
|
911
905
|
dir: string;
|
|
912
906
|
closedPnl: string;
|
|
907
|
+
hash: `0x${string}`;
|
|
908
|
+
oid: number;
|
|
913
909
|
crossed: boolean;
|
|
910
|
+
fee: string;
|
|
911
|
+
tid: number;
|
|
912
|
+
feeToken: string;
|
|
913
|
+
twapId: number | null;
|
|
914
914
|
};
|
|
915
|
-
readonly issue: v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.
|
|
915
|
+
readonly issue: v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.ObjectIssue | v.LiteralIssue | v.UnionIssue<v.LiteralIssue> | v.LengthIssue<`0x${string}`, 66> | v.BooleanIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>;
|
|
916
916
|
} | undefined;
|
|
917
917
|
}, v.DescriptionAction<{
|
|
918
918
|
time: number;
|
|
919
|
-
oid: number;
|
|
920
|
-
coin: string;
|
|
921
|
-
twapId: number | null;
|
|
922
|
-
hash: `0x${string}`;
|
|
923
|
-
fee: string;
|
|
924
|
-
feeToken: string;
|
|
925
|
-
side: "B" | "A";
|
|
926
919
|
px: string;
|
|
927
920
|
sz: string;
|
|
928
|
-
|
|
921
|
+
coin: string;
|
|
922
|
+
side: "B" | "A";
|
|
929
923
|
startPosition: string;
|
|
930
924
|
dir: string;
|
|
931
925
|
closedPnl: string;
|
|
926
|
+
hash: `0x${string}`;
|
|
927
|
+
oid: number;
|
|
932
928
|
crossed: boolean;
|
|
929
|
+
fee: string;
|
|
930
|
+
tid: number;
|
|
931
|
+
feeToken: string;
|
|
932
|
+
twapId: number | null;
|
|
933
933
|
}, "Fill details for the TWAP slice.">]>;
|
|
934
934
|
/** ID of the TWAP. */
|
|
935
935
|
readonly twapId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "ID of the TWAP.">]>;
|
|
936
936
|
}, undefined>, v.DescriptionAction<{
|
|
937
937
|
fill: {
|
|
938
938
|
time: number;
|
|
939
|
-
oid: number;
|
|
940
|
-
coin: string;
|
|
941
|
-
twapId: number | null;
|
|
942
|
-
hash: `0x${string}`;
|
|
943
|
-
fee: string;
|
|
944
|
-
feeToken: string;
|
|
945
|
-
side: "B" | "A";
|
|
946
939
|
px: string;
|
|
947
940
|
sz: string;
|
|
948
|
-
|
|
941
|
+
coin: string;
|
|
942
|
+
side: "B" | "A";
|
|
949
943
|
startPosition: string;
|
|
950
944
|
dir: string;
|
|
951
945
|
closedPnl: string;
|
|
946
|
+
hash: `0x${string}`;
|
|
947
|
+
oid: number;
|
|
952
948
|
crossed: boolean;
|
|
949
|
+
fee: string;
|
|
950
|
+
tid: number;
|
|
951
|
+
feeToken: string;
|
|
952
|
+
twapId: number | null;
|
|
953
953
|
};
|
|
954
954
|
twapId: number;
|
|
955
955
|
}, "TWAP slice fill details.">]>;
|