@nktkas/hyperliquid 0.25.0-beta.1 → 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 +64 -16
- 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/{script/src/errors.d.ts → esm/src/_errors.d.ts} +1 -1
- package/esm/src/_errors.d.ts.map +1 -0
- package/esm/src/{errors.js → _errors.js} +1 -0
- package/esm/src/_errors.js.map +1 -0
- package/esm/src/clients/exchange.d.ts +4 -11
- package/esm/src/clients/exchange.d.ts.map +1 -1
- package/esm/src/clients/exchange.js +8 -9
- package/esm/src/clients/exchange.js.map +1 -0
- package/esm/src/clients/info.d.ts +86 -2
- package/esm/src/clients/info.d.ts.map +1 -1
- package/esm/src/clients/info.js +103 -1
- package/esm/src/clients/info.js.map +1 -0
- 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 +3 -2
- package/esm/src/clients/multiSign.js.map +1 -0
- package/esm/src/clients/subscription.js +1 -0
- package/esm/src/clients/subscription.js.map +1 -0
- 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 +11 -3
- package/esm/src/schemas/_base.d.ts.map +1 -1
- package/esm/src/schemas/_base.js +30 -2
- package/esm/src/schemas/_base.js.map +1 -0
- package/esm/src/schemas/exchange/requests.d.ts +1872 -1872
- package/esm/src/schemas/exchange/requests.d.ts.map +1 -1
- package/esm/src/schemas/exchange/requests.js +277 -281
- package/esm/src/schemas/exchange/requests.js.map +1 -0
- package/esm/src/schemas/exchange/responses.d.ts +51 -51
- package/esm/src/schemas/exchange/responses.js +55 -54
- package/esm/src/schemas/exchange/responses.js.map +1 -0
- package/esm/src/schemas/explorer/requests.d.ts +5 -5
- package/esm/src/schemas/explorer/requests.js +6 -5
- package/esm/src/schemas/explorer/requests.js.map +1 -0
- package/esm/src/schemas/explorer/responses.d.ts +10 -10
- package/esm/src/schemas/explorer/responses.js +12 -11
- package/esm/src/schemas/explorer/responses.js.map +1 -0
- package/esm/src/schemas/info/accounts.d.ts +1042 -296
- package/esm/src/schemas/info/accounts.d.ts.map +1 -1
- package/esm/src/schemas/info/accounts.js +154 -109
- package/esm/src/schemas/info/accounts.js.map +1 -0
- package/esm/src/schemas/info/assets.d.ts +130 -101
- package/esm/src/schemas/info/assets.d.ts.map +1 -1
- package/esm/src/schemas/info/assets.js +69 -49
- package/esm/src/schemas/info/assets.js.map +1 -0
- package/esm/src/schemas/info/markets.d.ts +35 -18
- package/esm/src/schemas/info/markets.d.ts.map +1 -1
- package/esm/src/schemas/info/markets.js +27 -15
- package/esm/src/schemas/info/markets.js.map +1 -0
- package/esm/src/schemas/info/orders.d.ts +151 -151
- package/esm/src/schemas/info/orders.js +37 -36
- package/esm/src/schemas/info/orders.js.map +1 -0
- package/esm/src/schemas/info/requests.d.ts +145 -88
- package/esm/src/schemas/info/requests.d.ts.map +1 -1
- package/esm/src/schemas/info/requests.js +116 -73
- package/esm/src/schemas/info/requests.js.map +1 -0
- package/esm/src/schemas/info/validators.d.ts +60 -39
- package/esm/src/schemas/info/validators.d.ts.map +1 -1
- package/esm/src/schemas/info/validators.js +40 -26
- package/esm/src/schemas/info/validators.js.map +1 -0
- package/esm/src/schemas/info/vaults.d.ts +59 -59
- package/esm/src/schemas/info/vaults.js +20 -19
- package/esm/src/schemas/info/vaults.js.map +1 -0
- package/esm/src/schemas/mod.d.ts +4 -3
- package/esm/src/schemas/mod.d.ts.map +1 -1
- package/esm/src/schemas/mod.js +5 -3
- package/esm/src/schemas/mod.js.map +1 -0
- package/esm/src/schemas/subscriptions/requests.d.ts +23 -23
- package/esm/src/schemas/subscriptions/requests.d.ts.map +1 -1
- package/esm/src/schemas/subscriptions/requests.js +25 -24
- package/esm/src/schemas/subscriptions/requests.js.map +1 -0
- package/esm/src/schemas/subscriptions/responses.d.ts +547 -547
- package/esm/src/schemas/subscriptions/responses.js +41 -40
- package/esm/src/schemas/subscriptions/responses.js.map +1 -0
- 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 +3 -2
- package/esm/src/signing/mod.js.map +1 -0
- package/esm/src/signing/signTypedData/ethers.d.ts.map +1 -0
- package/esm/src/signing/{_signTypedData → signTypedData}/ethers.js +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 → signTypedData}/mod.js +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 +10 -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 → signTypedData}/viem.js +1 -0
- package/esm/src/signing/signTypedData/viem.js.map +1 -0
- package/esm/src/transports/base.d.ts +4 -4
- package/esm/src/transports/base.d.ts.map +1 -1
- package/esm/src/transports/base.js +3 -2
- package/esm/src/transports/base.js.map +1 -0
- package/esm/src/transports/http/http_transport.d.ts +1 -1
- package/esm/src/transports/http/http_transport.js +1 -0
- package/esm/src/transports/http/http_transport.js.map +1 -0
- package/esm/src/transports/websocket/_hyperliquid_event_target.js +1 -0
- package/esm/src/transports/websocket/_hyperliquid_event_target.js.map +1 -0
- package/esm/src/transports/websocket/_reconnecting_websocket.js +1 -0
- package/esm/src/transports/websocket/_reconnecting_websocket.js.map +1 -0
- package/esm/src/transports/websocket/_websocket_async_request.js +1 -0
- package/esm/src/transports/websocket/_websocket_async_request.js.map +1 -0
- package/esm/src/transports/websocket/websocket_transport.d.ts +7 -0
- package/esm/src/transports/websocket/websocket_transport.d.ts.map +1 -1
- package/esm/src/transports/websocket/websocket_transport.js +4 -0
- package/esm/src/transports/websocket/websocket_transport.js.map +1 -0
- 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/{esm/src/errors.d.ts → script/src/_errors.d.ts} +1 -1
- package/script/src/_errors.d.ts.map +1 -0
- package/script/src/{errors.js → _errors.js} +1 -0
- package/script/src/_errors.js.map +1 -0
- package/script/src/clients/exchange.d.ts +4 -11
- package/script/src/clients/exchange.d.ts.map +1 -1
- package/script/src/clients/exchange.js +9 -10
- package/script/src/clients/exchange.js.map +1 -0
- package/script/src/clients/info.d.ts +86 -2
- package/script/src/clients/info.d.ts.map +1 -1
- package/script/src/clients/info.js +102 -0
- package/script/src/clients/info.js.map +1 -0
- 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 +3 -2
- package/script/src/clients/multiSign.js.map +1 -0
- package/script/src/clients/subscription.js +1 -0
- package/script/src/clients/subscription.js.map +1 -0
- package/script/src/mod.d.ts +21 -0
- package/script/src/mod.d.ts.map +1 -0
- package/script/{mod.js → src/mod.js} +13 -8
- package/script/src/mod.js.map +1 -0
- package/script/src/schemas/_base.d.ts +11 -3
- package/script/src/schemas/_base.d.ts.map +1 -1
- package/script/src/schemas/_base.js +31 -3
- package/script/src/schemas/_base.js.map +1 -0
- package/script/src/schemas/exchange/requests.d.ts +1872 -1872
- package/script/src/schemas/exchange/requests.d.ts.map +1 -1
- package/script/src/schemas/exchange/requests.js +276 -280
- package/script/src/schemas/exchange/requests.js.map +1 -0
- package/script/src/schemas/exchange/responses.d.ts +51 -51
- package/script/src/schemas/exchange/responses.js +54 -53
- package/script/src/schemas/exchange/responses.js.map +1 -0
- package/script/src/schemas/explorer/requests.d.ts +5 -5
- package/script/src/schemas/explorer/requests.js +5 -4
- package/script/src/schemas/explorer/requests.js.map +1 -0
- package/script/src/schemas/explorer/responses.d.ts +10 -10
- package/script/src/schemas/explorer/responses.js +11 -10
- package/script/src/schemas/explorer/responses.js.map +1 -0
- package/script/src/schemas/info/accounts.d.ts +1042 -296
- package/script/src/schemas/info/accounts.d.ts.map +1 -1
- package/script/src/schemas/info/accounts.js +154 -109
- package/script/src/schemas/info/accounts.js.map +1 -0
- package/script/src/schemas/info/assets.d.ts +130 -101
- package/script/src/schemas/info/assets.d.ts.map +1 -1
- package/script/src/schemas/info/assets.js +69 -49
- package/script/src/schemas/info/assets.js.map +1 -0
- package/script/src/schemas/info/markets.d.ts +35 -18
- package/script/src/schemas/info/markets.d.ts.map +1 -1
- package/script/src/schemas/info/markets.js +27 -15
- package/script/src/schemas/info/markets.js.map +1 -0
- package/script/src/schemas/info/orders.d.ts +151 -151
- package/script/src/schemas/info/orders.js +36 -35
- package/script/src/schemas/info/orders.js.map +1 -0
- package/script/src/schemas/info/requests.d.ts +145 -88
- package/script/src/schemas/info/requests.d.ts.map +1 -1
- package/script/src/schemas/info/requests.js +116 -73
- package/script/src/schemas/info/requests.js.map +1 -0
- package/script/src/schemas/info/validators.d.ts +60 -39
- package/script/src/schemas/info/validators.d.ts.map +1 -1
- package/script/src/schemas/info/validators.js +40 -26
- package/script/src/schemas/info/validators.js.map +1 -0
- package/script/src/schemas/info/vaults.d.ts +59 -59
- package/script/src/schemas/info/vaults.js +19 -18
- package/script/src/schemas/info/vaults.js.map +1 -0
- package/script/src/schemas/mod.d.ts +4 -3
- package/script/src/schemas/mod.d.ts.map +1 -1
- package/script/src/schemas/mod.js +8 -5
- package/script/src/schemas/mod.js.map +1 -0
- package/script/src/schemas/subscriptions/requests.d.ts +23 -23
- package/script/src/schemas/subscriptions/requests.d.ts.map +1 -1
- package/script/src/schemas/subscriptions/requests.js +24 -23
- package/script/src/schemas/subscriptions/requests.js.map +1 -0
- package/script/src/schemas/subscriptions/responses.d.ts +547 -547
- package/script/src/schemas/subscriptions/responses.js +40 -39
- package/script/src/schemas/subscriptions/responses.js.map +1 -0
- 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 +4 -3
- package/script/src/signing/mod.js.map +1 -0
- package/script/src/signing/signTypedData/ethers.d.ts.map +1 -0
- package/script/src/signing/{_signTypedData → signTypedData}/ethers.js +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 → signTypedData}/mod.js +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 +17 -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 → signTypedData}/viem.js +1 -0
- package/script/src/signing/signTypedData/viem.js.map +1 -0
- package/script/src/transports/base.d.ts +4 -4
- package/script/src/transports/base.d.ts.map +1 -1
- package/script/src/transports/base.js +4 -3
- package/script/src/transports/base.js.map +1 -0
- package/script/src/transports/http/http_transport.d.ts +1 -1
- package/script/src/transports/http/http_transport.js +1 -0
- package/script/src/transports/http/http_transport.js.map +1 -0
- package/script/src/transports/websocket/_hyperliquid_event_target.js +1 -0
- package/script/src/transports/websocket/_hyperliquid_event_target.js.map +1 -0
- package/script/src/transports/websocket/_reconnecting_websocket.js +1 -0
- package/script/src/transports/websocket/_reconnecting_websocket.js.map +1 -0
- package/script/src/transports/websocket/_websocket_async_request.js +1 -0
- package/script/src/transports/websocket/_websocket_async_request.js.map +1 -0
- package/script/src/transports/websocket/websocket_transport.d.ts +7 -0
- package/script/src/transports/websocket/websocket_transport.d.ts.map +1 -1
- package/script/src/transports/websocket/websocket_transport.js +4 -0
- package/script/src/transports/websocket/websocket_transport.js.map +1 -0
- package/src/bin/cli.ts +481 -0
- package/src/src/_errors.ts +7 -0
- package/src/src/clients/exchange.ts +2246 -0
- package/src/src/clients/info.ts +2110 -0
- package/src/src/clients/multiSign.ts +183 -0
- package/src/src/clients/subscription.ts +841 -0
- package/src/src/mod.ts +29 -0
- package/src/src/schemas/_base.ts +82 -0
- package/src/src/schemas/exchange/requests.ts +3052 -0
- package/src/src/schemas/exchange/responses.ts +540 -0
- package/src/src/schemas/explorer/requests.ts +65 -0
- package/src/src/schemas/explorer/responses.ts +138 -0
- package/src/src/schemas/info/accounts.ts +1598 -0
- package/src/src/schemas/info/assets.ts +693 -0
- package/src/src/schemas/info/markets.ts +171 -0
- package/src/src/schemas/info/orders.ts +597 -0
- package/src/src/schemas/info/requests.ts +1401 -0
- package/src/src/schemas/info/validators.ts +297 -0
- package/src/src/schemas/info/vaults.ts +262 -0
- package/src/src/schemas/mod.ts +121 -0
- package/src/src/schemas/subscriptions/requests.ts +514 -0
- package/src/src/schemas/subscriptions/responses.ts +576 -0
- package/src/src/signing/mod.ts +572 -0
- package/src/src/signing/signTypedData/ethers.ts +59 -0
- package/src/src/signing/signTypedData/mod.ts +121 -0
- package/src/src/signing/signTypedData/private_key.ts +234 -0
- package/src/src/signing/signTypedData/viem.ts +55 -0
- package/src/src/transports/base.ts +54 -0
- package/src/src/transports/http/http_transport.ts +208 -0
- package/src/src/transports/websocket/_hyperliquid_event_target.ts +118 -0
- package/src/src/transports/websocket/_reconnecting_websocket.ts +404 -0
- package/src/src/transports/websocket/_websocket_async_request.ts +229 -0
- package/src/src/transports/websocket/websocket_transport.ts +394 -0
- package/esm/mod.d.ts +0 -20
- package/esm/mod.d.ts.map +0 -1
- package/esm/mod.js +0 -11
- package/esm/src/errors.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/ethers.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/mod.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/private_key.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/viem.d.ts.map +0 -1
- package/script/mod.d.ts +0 -20
- package/script/mod.d.ts.map +0 -1
- package/script/src/errors.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/ethers.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/mod.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/private_key.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/viem.d.ts.map +0 -1
- /package/esm/src/signing/{_signTypedData → signTypedData}/ethers.d.ts +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/mod.d.ts +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/script/src/signing/{_signTypedData → signTypedData}/ethers.d.ts +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/mod.d.ts +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
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
/** User active asset data. */
|
|
3
|
-
export declare const ActiveAssetData: v.SchemaWithPipe<readonly [v.
|
|
3
|
+
export declare const ActiveAssetData: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
4
4
|
/** User address. */
|
|
5
5
|
readonly user: 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}`, "User address.">]>;
|
|
6
6
|
/** Asset symbol (e.g., BTC). */
|
|
7
7
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol (e.g., BTC).">]>;
|
|
8
8
|
/** Leverage configuration. */
|
|
9
|
-
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
9
|
+
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
10
10
|
/** Leverage type. */
|
|
11
11
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
|
|
12
12
|
/** Leverage value used. */
|
|
13
13
|
readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
|
|
14
14
|
/** Amount of USD used (1 = 1$). */
|
|
15
|
-
readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
|
|
16
|
-
}, undefined>, v.
|
|
15
|
+
readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
|
|
16
|
+
}, undefined>, v.ObjectSchema<{
|
|
17
17
|
/** Leverage type. */
|
|
18
18
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
|
|
19
19
|
/** Leverage value used. */
|
|
@@ -27,11 +27,11 @@ export declare const ActiveAssetData: v.SchemaWithPipe<readonly [v.StrictObjectS
|
|
|
27
27
|
value: number;
|
|
28
28
|
}, "Leverage configuration.">]>;
|
|
29
29
|
/** Maximum trade size range [min, max]. */
|
|
30
|
-
readonly maxTradeSzs: v.SchemaWithPipe<readonly [v.
|
|
30
|
+
readonly maxTradeSzs: v.SchemaWithPipe<readonly [v.TupleSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, v.DescriptionAction<[string, string], "Maximum trade size range [min, max].">]>;
|
|
31
31
|
/** Available to trade range [min, max]. */
|
|
32
|
-
readonly availableToTrade: v.SchemaWithPipe<readonly [v.
|
|
32
|
+
readonly availableToTrade: v.SchemaWithPipe<readonly [v.TupleSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, v.DescriptionAction<[string, string], "Available to trade range [min, max].">]>;
|
|
33
33
|
/** Mark price. */
|
|
34
|
-
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price.">]>;
|
|
34
|
+
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.">]>;
|
|
35
35
|
}, undefined>, v.DescriptionAction<{
|
|
36
36
|
user: `0x${string}`;
|
|
37
37
|
coin: string;
|
|
@@ -49,24 +49,24 @@ export declare const ActiveAssetData: v.SchemaWithPipe<readonly [v.StrictObjectS
|
|
|
49
49
|
}, "User active asset data.">]>;
|
|
50
50
|
export type ActiveAssetData = v.InferOutput<typeof ActiveAssetData>;
|
|
51
51
|
/** Position for a specific asset. */
|
|
52
|
-
export declare const AssetPosition: v.SchemaWithPipe<readonly [v.
|
|
52
|
+
export declare const AssetPosition: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
53
53
|
/** Position type. */
|
|
54
54
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
|
|
55
55
|
/** Position details. */
|
|
56
|
-
readonly position: v.SchemaWithPipe<readonly [v.
|
|
56
|
+
readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
57
57
|
/** Asset symbol. */
|
|
58
58
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
59
59
|
/** Signed position size. */
|
|
60
|
-
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
|
|
60
|
+
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
|
|
61
61
|
/** Leverage details. */
|
|
62
|
-
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
62
|
+
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
63
63
|
/** Leverage type. */
|
|
64
64
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
|
|
65
65
|
/** Leverage value used. */
|
|
66
66
|
readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
|
|
67
67
|
/** Amount of USD used (1 = 1$). */
|
|
68
|
-
readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
|
|
69
|
-
}, undefined>, v.
|
|
68
|
+
readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
|
|
69
|
+
}, undefined>, v.ObjectSchema<{
|
|
70
70
|
/** Leverage type. */
|
|
71
71
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
|
|
72
72
|
/** Leverage value used. */
|
|
@@ -80,27 +80,27 @@ export declare const AssetPosition: v.SchemaWithPipe<readonly [v.StrictObjectSch
|
|
|
80
80
|
value: number;
|
|
81
81
|
}, "Leverage details.">]>;
|
|
82
82
|
/** Average entry price. */
|
|
83
|
-
readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average entry price.">]>;
|
|
83
|
+
readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average entry price.">]>;
|
|
84
84
|
/** Position value. */
|
|
85
|
-
readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Position value.">]>;
|
|
85
|
+
readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Position value.">]>;
|
|
86
86
|
/** Unrealized profit and loss. */
|
|
87
|
-
readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
|
|
87
|
+
readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
|
|
88
88
|
/** Return on equity. */
|
|
89
|
-
readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Return on equity.">]>;
|
|
89
|
+
readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Return on equity.">]>;
|
|
90
90
|
/** Liquidation price. */
|
|
91
|
-
readonly liquidationPx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
|
|
91
|
+
readonly liquidationPx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
|
|
92
92
|
/** Margin used. */
|
|
93
|
-
readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
|
|
93
|
+
readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
|
|
94
94
|
/** Maximum allowed leverage. */
|
|
95
95
|
readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
|
|
96
96
|
/** Cumulative funding details. */
|
|
97
|
-
readonly cumFunding: v.SchemaWithPipe<readonly [v.
|
|
97
|
+
readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
98
98
|
/** Total funding paid or received since account opening. */
|
|
99
|
-
readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
|
|
99
|
+
readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
|
|
100
100
|
/** Funding accumulated since the position was opened. */
|
|
101
|
-
readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
|
|
101
|
+
readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
|
|
102
102
|
/** Funding accumulated since the last change in position size. */
|
|
103
|
-
readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
|
|
103
|
+
readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
|
|
104
104
|
}, undefined>, v.DescriptionAction<{
|
|
105
105
|
allTime: string;
|
|
106
106
|
sinceOpen: string;
|
|
@@ -159,13 +159,13 @@ export declare const AssetPosition: v.SchemaWithPipe<readonly [v.StrictObjectSch
|
|
|
159
159
|
}, "Position for a specific asset.">]>;
|
|
160
160
|
export type AssetPosition = v.InferOutput<typeof AssetPosition>;
|
|
161
161
|
/** Escrowed balance for a specific asset. */
|
|
162
|
-
export declare const EvmEscrowsBalance: v.SchemaWithPipe<readonly [v.
|
|
162
|
+
export declare const EvmEscrowsBalance: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
163
163
|
/** Asset symbol. */
|
|
164
164
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
165
165
|
/** Unique identifier for the token. */
|
|
166
166
|
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
|
|
167
167
|
/** Total balance. */
|
|
168
|
-
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
168
|
+
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
169
169
|
}, undefined>, v.DescriptionAction<{
|
|
170
170
|
coin: string;
|
|
171
171
|
token: number;
|
|
@@ -173,7 +173,7 @@ export declare const EvmEscrowsBalance: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
173
173
|
}, "Escrowed balance for a specific asset.">]>;
|
|
174
174
|
export type EvmEscrowsBalance = v.InferOutput<typeof EvmEscrowsBalance>;
|
|
175
175
|
/** Extra agent details for a user. */
|
|
176
|
-
export declare const ExtraAgent: v.SchemaWithPipe<readonly [v.
|
|
176
|
+
export declare const ExtraAgent: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
177
177
|
/** Extra agent address. */
|
|
178
178
|
readonly address: 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}`, "Extra agent address.">]>;
|
|
179
179
|
/** Extra agent name. */
|
|
@@ -187,7 +187,7 @@ export declare const ExtraAgent: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
187
187
|
}, "Extra agent details for a user.">]>;
|
|
188
188
|
export type ExtraAgent = v.InferOutput<typeof ExtraAgent>;
|
|
189
189
|
/** Legal verification status for a user. */
|
|
190
|
-
export declare const LegalCheck: v.SchemaWithPipe<readonly [v.
|
|
190
|
+
export declare const LegalCheck: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
191
191
|
/** Whether the user IP address is allowed. */
|
|
192
192
|
readonly ipAllowed: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether the user IP address is allowed.">]>;
|
|
193
193
|
/** Whether the user has accepted the terms of service. */
|
|
@@ -201,7 +201,7 @@ export declare const LegalCheck: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
201
201
|
}, "Legal verification status for a user.">]>;
|
|
202
202
|
export type LegalCheck = v.InferOutput<typeof LegalCheck>;
|
|
203
203
|
/** Multi-sig signers for a user. */
|
|
204
|
-
export declare const MultiSigSigners: v.SchemaWithPipe<readonly [v.
|
|
204
|
+
export declare const MultiSigSigners: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
205
205
|
/** Authorized users addresses. */
|
|
206
206
|
readonly authorizedUsers: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, undefined>, v.MinLengthAction<`0x${string}`[], 1, undefined>, v.DescriptionAction<`0x${string}`[], "Authorized users addresses.">]>;
|
|
207
207
|
/** Threshold number of signatures required. */
|
|
@@ -212,17 +212,17 @@ export declare const MultiSigSigners: v.SchemaWithPipe<readonly [v.StrictObjectS
|
|
|
212
212
|
}, "Multi-sig signers for a user.">]>;
|
|
213
213
|
export type MultiSigSigners = v.InferOutput<typeof MultiSigSigners>;
|
|
214
214
|
/** Account summary for perpetual trading. */
|
|
215
|
-
export declare const PerpsClearinghouseState: v.SchemaWithPipe<readonly [v.
|
|
215
|
+
export declare const PerpsClearinghouseState: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
216
216
|
/** Margin summary details. */
|
|
217
|
-
readonly marginSummary: v.SchemaWithPipe<readonly [v.
|
|
217
|
+
readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
218
218
|
/** Total account value. */
|
|
219
|
-
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
|
|
219
|
+
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
|
|
220
220
|
/** Total notional position value. */
|
|
221
|
-
readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
|
|
221
|
+
readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
|
|
222
222
|
/** Total raw USD value. */
|
|
223
|
-
readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
|
|
223
|
+
readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
|
|
224
224
|
/** Total margin used. */
|
|
225
|
-
readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
|
|
225
|
+
readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
|
|
226
226
|
}, undefined>, v.DescriptionAction<{
|
|
227
227
|
accountValue: string;
|
|
228
228
|
totalNtlPos: string;
|
|
@@ -230,15 +230,15 @@ export declare const PerpsClearinghouseState: v.SchemaWithPipe<readonly [v.Stric
|
|
|
230
230
|
totalMarginUsed: string;
|
|
231
231
|
}, "Margin summary details.">]>;
|
|
232
232
|
/** Cross-margin summary details. */
|
|
233
|
-
readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.
|
|
233
|
+
readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
234
234
|
/** Total account value. */
|
|
235
|
-
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
|
|
235
|
+
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
|
|
236
236
|
/** Total notional position value. */
|
|
237
|
-
readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
|
|
237
|
+
readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
|
|
238
238
|
/** Total raw USD value. */
|
|
239
|
-
readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
|
|
239
|
+
readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
|
|
240
240
|
/** Total margin used. */
|
|
241
|
-
readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
|
|
241
|
+
readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
|
|
242
242
|
}, undefined>, v.DescriptionAction<{
|
|
243
243
|
accountValue: string;
|
|
244
244
|
totalNtlPos: string;
|
|
@@ -246,28 +246,28 @@ export declare const PerpsClearinghouseState: v.SchemaWithPipe<readonly [v.Stric
|
|
|
246
246
|
totalMarginUsed: string;
|
|
247
247
|
}, "Cross-margin summary details.">]>;
|
|
248
248
|
/** Maintenance margin used for cross-margin positions. */
|
|
249
|
-
readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
|
|
249
|
+
readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
|
|
250
250
|
/** Amount available for withdrawal. */
|
|
251
|
-
readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
|
|
251
|
+
readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
|
|
252
252
|
/** List of asset positions. */
|
|
253
|
-
readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
253
|
+
readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
254
254
|
/** Position type. */
|
|
255
255
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
|
|
256
256
|
/** Position details. */
|
|
257
|
-
readonly position: v.SchemaWithPipe<readonly [v.
|
|
257
|
+
readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
258
258
|
/** Asset symbol. */
|
|
259
259
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
260
260
|
/** Signed position size. */
|
|
261
|
-
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
|
|
261
|
+
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
|
|
262
262
|
/** Leverage details. */
|
|
263
|
-
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
263
|
+
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
264
264
|
/** Leverage type. */
|
|
265
265
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
|
|
266
266
|
/** Leverage value used. */
|
|
267
267
|
readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
|
|
268
268
|
/** Amount of USD used (1 = 1$). */
|
|
269
|
-
readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
|
|
270
|
-
}, undefined>, v.
|
|
269
|
+
readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
|
|
270
|
+
}, undefined>, v.ObjectSchema<{
|
|
271
271
|
/** Leverage type. */
|
|
272
272
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
|
|
273
273
|
/** Leverage value used. */
|
|
@@ -281,27 +281,27 @@ export declare const PerpsClearinghouseState: v.SchemaWithPipe<readonly [v.Stric
|
|
|
281
281
|
value: number;
|
|
282
282
|
}, "Leverage details.">]>;
|
|
283
283
|
/** Average entry price. */
|
|
284
|
-
readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average entry price.">]>;
|
|
284
|
+
readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average entry price.">]>;
|
|
285
285
|
/** Position value. */
|
|
286
|
-
readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Position value.">]>;
|
|
286
|
+
readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Position value.">]>;
|
|
287
287
|
/** Unrealized profit and loss. */
|
|
288
|
-
readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
|
|
288
|
+
readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
|
|
289
289
|
/** Return on equity. */
|
|
290
|
-
readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Return on equity.">]>;
|
|
290
|
+
readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Return on equity.">]>;
|
|
291
291
|
/** Liquidation price. */
|
|
292
|
-
readonly liquidationPx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
|
|
292
|
+
readonly liquidationPx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
|
|
293
293
|
/** Margin used. */
|
|
294
|
-
readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
|
|
294
|
+
readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
|
|
295
295
|
/** Maximum allowed leverage. */
|
|
296
296
|
readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
|
|
297
297
|
/** Cumulative funding details. */
|
|
298
|
-
readonly cumFunding: v.SchemaWithPipe<readonly [v.
|
|
298
|
+
readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
299
299
|
/** Total funding paid or received since account opening. */
|
|
300
|
-
readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
|
|
300
|
+
readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
|
|
301
301
|
/** Funding accumulated since the position was opened. */
|
|
302
|
-
readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
|
|
302
|
+
readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
|
|
303
303
|
/** Funding accumulated since the last change in position size. */
|
|
304
|
-
readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
|
|
304
|
+
readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
|
|
305
305
|
}, undefined>, v.DescriptionAction<{
|
|
306
306
|
allTime: string;
|
|
307
307
|
sinceOpen: string;
|
|
@@ -432,13 +432,13 @@ export declare const PerpsClearinghouseState: v.SchemaWithPipe<readonly [v.Stric
|
|
|
432
432
|
}, "Account summary for perpetual trading.">]>;
|
|
433
433
|
export type PerpsClearinghouseState = v.InferOutput<typeof PerpsClearinghouseState>;
|
|
434
434
|
/** Portfolio metrics snapshot. */
|
|
435
|
-
export declare const Portfolio: v.SchemaWithPipe<readonly [v.
|
|
435
|
+
export declare const Portfolio: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
436
436
|
/** History entries for account value as [timestamp, value]. */
|
|
437
|
-
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
437
|
+
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
|
|
438
438
|
/** History entries for profit and loss as [timestamp, value]. */
|
|
439
|
-
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
439
|
+
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
|
|
440
440
|
/** Volume metric for the portfolio. */
|
|
441
|
-
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
441
|
+
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
442
442
|
}, undefined>, v.DescriptionAction<{
|
|
443
443
|
accountValueHistory: [number, string][];
|
|
444
444
|
pnlHistory: [number, string][];
|
|
@@ -446,90 +446,90 @@ export declare const Portfolio: v.SchemaWithPipe<readonly [v.StrictObjectSchema<
|
|
|
446
446
|
}, "Portfolio metrics snapshot.">]>;
|
|
447
447
|
export type Portfolio = v.InferOutput<typeof Portfolio>;
|
|
448
448
|
/** Portfolio metrics grouped by time periods. */
|
|
449
|
-
export declare const PortfolioPeriods: v.SchemaWithPipe<readonly [v.
|
|
449
|
+
export declare const PortfolioPeriods: v.SchemaWithPipe<readonly [v.TupleSchema<[v.TupleSchema<[v.LiteralSchema<"day", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
450
450
|
/** History entries for account value as [timestamp, value]. */
|
|
451
|
-
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
451
|
+
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
|
|
452
452
|
/** History entries for profit and loss as [timestamp, value]. */
|
|
453
|
-
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
453
|
+
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
|
|
454
454
|
/** Volume metric for the portfolio. */
|
|
455
|
-
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
455
|
+
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
456
456
|
}, undefined>, v.DescriptionAction<{
|
|
457
457
|
accountValueHistory: [number, string][];
|
|
458
458
|
pnlHistory: [number, string][];
|
|
459
459
|
vlm: string;
|
|
460
|
-
}, "Portfolio metrics snapshot.">]>], undefined>, v.
|
|
460
|
+
}, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"week", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
461
461
|
/** History entries for account value as [timestamp, value]. */
|
|
462
|
-
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
462
|
+
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
|
|
463
463
|
/** History entries for profit and loss as [timestamp, value]. */
|
|
464
|
-
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
464
|
+
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
|
|
465
465
|
/** Volume metric for the portfolio. */
|
|
466
|
-
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
466
|
+
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
467
467
|
}, undefined>, v.DescriptionAction<{
|
|
468
468
|
accountValueHistory: [number, string][];
|
|
469
469
|
pnlHistory: [number, string][];
|
|
470
470
|
vlm: string;
|
|
471
|
-
}, "Portfolio metrics snapshot.">]>], undefined>, v.
|
|
471
|
+
}, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"month", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
472
472
|
/** History entries for account value as [timestamp, value]. */
|
|
473
|
-
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
473
|
+
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
|
|
474
474
|
/** History entries for profit and loss as [timestamp, value]. */
|
|
475
|
-
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
475
|
+
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
|
|
476
476
|
/** Volume metric for the portfolio. */
|
|
477
|
-
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
477
|
+
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
478
478
|
}, undefined>, v.DescriptionAction<{
|
|
479
479
|
accountValueHistory: [number, string][];
|
|
480
480
|
pnlHistory: [number, string][];
|
|
481
481
|
vlm: string;
|
|
482
|
-
}, "Portfolio metrics snapshot.">]>], undefined>, v.
|
|
482
|
+
}, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"allTime", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
483
483
|
/** History entries for account value as [timestamp, value]. */
|
|
484
|
-
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
484
|
+
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
|
|
485
485
|
/** History entries for profit and loss as [timestamp, value]. */
|
|
486
|
-
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
486
|
+
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
|
|
487
487
|
/** Volume metric for the portfolio. */
|
|
488
|
-
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
488
|
+
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
489
489
|
}, undefined>, v.DescriptionAction<{
|
|
490
490
|
accountValueHistory: [number, string][];
|
|
491
491
|
pnlHistory: [number, string][];
|
|
492
492
|
vlm: string;
|
|
493
|
-
}, "Portfolio metrics snapshot.">]>], undefined>, v.
|
|
493
|
+
}, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"perpDay", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
494
494
|
/** History entries for account value as [timestamp, value]. */
|
|
495
|
-
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
495
|
+
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
|
|
496
496
|
/** History entries for profit and loss as [timestamp, value]. */
|
|
497
|
-
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
497
|
+
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
|
|
498
498
|
/** Volume metric for the portfolio. */
|
|
499
|
-
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
499
|
+
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
500
500
|
}, undefined>, v.DescriptionAction<{
|
|
501
501
|
accountValueHistory: [number, string][];
|
|
502
502
|
pnlHistory: [number, string][];
|
|
503
503
|
vlm: string;
|
|
504
|
-
}, "Portfolio metrics snapshot.">]>], undefined>, v.
|
|
504
|
+
}, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"perpWeek", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
505
505
|
/** History entries for account value as [timestamp, value]. */
|
|
506
|
-
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
506
|
+
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
|
|
507
507
|
/** History entries for profit and loss as [timestamp, value]. */
|
|
508
|
-
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
508
|
+
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
|
|
509
509
|
/** Volume metric for the portfolio. */
|
|
510
|
-
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
510
|
+
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
511
511
|
}, undefined>, v.DescriptionAction<{
|
|
512
512
|
accountValueHistory: [number, string][];
|
|
513
513
|
pnlHistory: [number, string][];
|
|
514
514
|
vlm: string;
|
|
515
|
-
}, "Portfolio metrics snapshot.">]>], undefined>, v.
|
|
515
|
+
}, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"perpMonth", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
516
516
|
/** History entries for account value as [timestamp, value]. */
|
|
517
|
-
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
517
|
+
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
|
|
518
518
|
/** History entries for profit and loss as [timestamp, value]. */
|
|
519
|
-
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
519
|
+
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
|
|
520
520
|
/** Volume metric for the portfolio. */
|
|
521
|
-
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
521
|
+
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
522
522
|
}, undefined>, v.DescriptionAction<{
|
|
523
523
|
accountValueHistory: [number, string][];
|
|
524
524
|
pnlHistory: [number, string][];
|
|
525
525
|
vlm: string;
|
|
526
|
-
}, "Portfolio metrics snapshot.">]>], undefined>, v.
|
|
526
|
+
}, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"perpAllTime", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
527
527
|
/** History entries for account value as [timestamp, value]. */
|
|
528
|
-
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
528
|
+
readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
|
|
529
529
|
/** History entries for profit and loss as [timestamp, value]. */
|
|
530
|
-
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
530
|
+
readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
|
|
531
531
|
/** Volume metric for the portfolio. */
|
|
532
|
-
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
532
|
+
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
|
|
533
533
|
}, undefined>, v.DescriptionAction<{
|
|
534
534
|
accountValueHistory: [number, string][];
|
|
535
535
|
pnlHistory: [number, string][];
|
|
@@ -569,9 +569,9 @@ export declare const PortfolioPeriods: v.SchemaWithPipe<readonly [v.StrictTupleS
|
|
|
569
569
|
}]], "Portfolio metrics grouped by time periods.">]>;
|
|
570
570
|
export type PortfolioPeriods = v.InferOutput<typeof PortfolioPeriods>;
|
|
571
571
|
/** Pre-transfer user existence check result. */
|
|
572
|
-
export declare const PreTransferCheck: v.SchemaWithPipe<readonly [v.
|
|
572
|
+
export declare const PreTransferCheck: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
573
573
|
/** Activation fee. */
|
|
574
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Activation fee.">]>;
|
|
574
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Activation fee.">]>;
|
|
575
575
|
/** Whether the user is sanctioned. */
|
|
576
576
|
readonly isSanctioned: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether the user is sanctioned.">]>;
|
|
577
577
|
/** Whether the user exists. */
|
|
@@ -586,9 +586,9 @@ export declare const PreTransferCheck: v.SchemaWithPipe<readonly [v.StrictObject
|
|
|
586
586
|
}, "Pre-transfer user existence check result.">]>;
|
|
587
587
|
export type PreTransferCheck = v.InferOutput<typeof PreTransferCheck>;
|
|
588
588
|
/** Referral details for a user. */
|
|
589
|
-
export declare const Referral: v.SchemaWithPipe<readonly [v.
|
|
589
|
+
export declare const Referral: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
590
590
|
/** Referrer details. */
|
|
591
|
-
readonly referredBy: v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
591
|
+
readonly referredBy: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
592
592
|
/** Referrer address. */
|
|
593
593
|
readonly referrer: 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}`, "Referrer address.">]>;
|
|
594
594
|
/** Referral code used. */
|
|
@@ -598,43 +598,43 @@ export declare const Referral: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
598
598
|
code: string;
|
|
599
599
|
} | null, "Referrer details.">]>;
|
|
600
600
|
/** Cumulative traded volume. */
|
|
601
|
-
readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
|
|
601
|
+
readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
|
|
602
602
|
/** Rewards earned but not yet claimed. */
|
|
603
|
-
readonly unclaimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards earned but not yet claimed.">]>;
|
|
603
|
+
readonly unclaimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards earned but not yet claimed.">]>;
|
|
604
604
|
/** Rewards that have been claimed. */
|
|
605
|
-
readonly claimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards that have been claimed.">]>;
|
|
605
|
+
readonly claimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards that have been claimed.">]>;
|
|
606
606
|
/** Builder reward amount. */
|
|
607
|
-
readonly builderRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Builder reward amount.">]>;
|
|
607
|
+
readonly builderRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Builder reward amount.">]>;
|
|
608
608
|
/** Current state of the referrer. */
|
|
609
|
-
readonly referrerState: v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
609
|
+
readonly referrerState: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
610
610
|
/** Referrer is ready to receive rewards. */
|
|
611
611
|
readonly stage: v.SchemaWithPipe<readonly [v.LiteralSchema<"ready", undefined>, v.DescriptionAction<"ready", "Referrer is ready to receive rewards.">]>;
|
|
612
612
|
/** Referral program details. */
|
|
613
|
-
readonly data: v.SchemaWithPipe<readonly [v.
|
|
613
|
+
readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
614
614
|
/** Assigned referral code. */
|
|
615
615
|
readonly code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "Assigned referral code.">]>;
|
|
616
616
|
/** Total number of referrals. */
|
|
617
617
|
readonly nReferrals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Total number of referrals.">]>;
|
|
618
618
|
/** Summary of each referral state. */
|
|
619
|
-
readonly referralStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
619
|
+
readonly referralStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
620
620
|
/** Cumulative traded volume. */
|
|
621
|
-
readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
|
|
621
|
+
readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
|
|
622
622
|
/** Total fees rewarded to the referred user since referral. */
|
|
623
|
-
readonly cumRewardedFeesSinceReferred: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referred user since referral.">]>;
|
|
623
|
+
readonly cumRewardedFeesSinceReferred: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referred user since referral.">]>;
|
|
624
624
|
/** Total fees rewarded to the referrer from referred trades. */
|
|
625
|
-
readonly cumFeesRewardedToReferrer: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referrer from referred trades.">]>;
|
|
625
|
+
readonly cumFeesRewardedToReferrer: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referrer from referred trades.">]>;
|
|
626
626
|
/** Timestamp when the referred user joined (in ms since epoch). */
|
|
627
627
|
readonly timeJoined: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the referred user joined (in ms since epoch).">]>;
|
|
628
628
|
/** Address of the referred user. */
|
|
629
629
|
readonly user: 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 referred user.">]>;
|
|
630
630
|
/** Mapping of token IDs to referral reward states. */
|
|
631
|
-
readonly tokenToState: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
631
|
+
readonly tokenToState: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.ObjectSchema<{
|
|
632
632
|
/** Cumulative traded volume. */
|
|
633
|
-
readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
|
|
633
|
+
readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
|
|
634
634
|
/** Total fees rewarded to the referred user since referral. */
|
|
635
|
-
readonly cumRewardedFeesSinceReferred: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referred user since referral.">]>;
|
|
635
|
+
readonly cumRewardedFeesSinceReferred: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referred user since referral.">]>;
|
|
636
636
|
/** Total fees rewarded to the referrer from referred trades. */
|
|
637
|
-
readonly cumFeesRewardedToReferrer: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referrer from referred trades.">]>;
|
|
637
|
+
readonly cumFeesRewardedToReferrer: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referrer from referred trades.">]>;
|
|
638
638
|
}, undefined>], undefined>, undefined>, v.DescriptionAction<[number, {
|
|
639
639
|
cumVlm: string;
|
|
640
640
|
cumRewardedFeesSinceReferred: string;
|
|
@@ -668,16 +668,16 @@ export declare const Referral: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
668
668
|
}][];
|
|
669
669
|
}[];
|
|
670
670
|
}, "Referral program details.">]>;
|
|
671
|
-
}, undefined>, v.
|
|
671
|
+
}, undefined>, v.ObjectSchema<{
|
|
672
672
|
/** Referrer needs to create a referral code. */
|
|
673
673
|
readonly stage: v.SchemaWithPipe<readonly [v.LiteralSchema<"needToCreateCode", undefined>, v.DescriptionAction<"needToCreateCode", "Referrer needs to create a referral code.">]>;
|
|
674
|
-
}, undefined>, v.
|
|
674
|
+
}, undefined>, v.ObjectSchema<{
|
|
675
675
|
/** Referrer must complete a trade before earning rewards. */
|
|
676
676
|
readonly stage: v.SchemaWithPipe<readonly [v.LiteralSchema<"needToTrade", undefined>, v.DescriptionAction<"needToTrade", "Referrer must complete a trade before earning rewards.">]>;
|
|
677
677
|
/** Required trading volume details for activation. */
|
|
678
|
-
readonly data: v.SchemaWithPipe<readonly [v.
|
|
678
|
+
readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
679
679
|
/** Required trading volume. */
|
|
680
|
-
readonly required: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Required trading volume.">]>;
|
|
680
|
+
readonly required: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Required trading volume.">]>;
|
|
681
681
|
}, undefined>, v.DescriptionAction<{
|
|
682
682
|
required: string;
|
|
683
683
|
}, "Required trading volume details for activation.">]>;
|
|
@@ -708,13 +708,13 @@ export declare const Referral: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
708
708
|
};
|
|
709
709
|
}, "Current state of the referrer.">]>;
|
|
710
710
|
/** History of referral rewards. */
|
|
711
|
-
readonly rewardHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
711
|
+
readonly rewardHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
712
712
|
/** Amount of earned rewards. */
|
|
713
|
-
readonly earned: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of earned rewards.">]>;
|
|
713
|
+
readonly earned: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of earned rewards.">]>;
|
|
714
714
|
/** Traded volume at the time of reward. */
|
|
715
|
-
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Traded volume at the time of reward.">]>;
|
|
715
|
+
readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Traded volume at the time of reward.">]>;
|
|
716
716
|
/** Traded volume via referrals. */
|
|
717
|
-
readonly referralVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Traded volume via referrals.">]>;
|
|
717
|
+
readonly referralVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Traded volume via referrals.">]>;
|
|
718
718
|
/** Timestamp when the reward was earned (in ms since epoch). */
|
|
719
719
|
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 reward was earned (in ms since epoch).">]>;
|
|
720
720
|
}, undefined>, undefined>, v.DescriptionAction<{
|
|
@@ -724,15 +724,15 @@ export declare const Referral: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
724
724
|
time: number;
|
|
725
725
|
}[], "History of referral rewards.">]>;
|
|
726
726
|
/** Mapping of token IDs to referral reward states. */
|
|
727
|
-
readonly tokenToState: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
727
|
+
readonly tokenToState: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.ObjectSchema<{
|
|
728
728
|
/** Cumulative traded volume. */
|
|
729
|
-
readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
|
|
729
|
+
readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
|
|
730
730
|
/** Rewards earned but not yet claimed. */
|
|
731
|
-
readonly unclaimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards earned but not yet claimed.">]>;
|
|
731
|
+
readonly unclaimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards earned but not yet claimed.">]>;
|
|
732
732
|
/** Rewards that have been claimed. */
|
|
733
|
-
readonly claimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards that have been claimed.">]>;
|
|
733
|
+
readonly claimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards that have been claimed.">]>;
|
|
734
734
|
/** Builder reward amount. */
|
|
735
|
-
readonly builderRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Builder reward amount.">]>;
|
|
735
|
+
readonly builderRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Builder reward amount.">]>;
|
|
736
736
|
}, undefined>], undefined>, undefined>, v.DescriptionAction<[number, {
|
|
737
737
|
cumVlm: string;
|
|
738
738
|
unclaimedRewards: string;
|
|
@@ -789,17 +789,17 @@ export declare const Referral: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
789
789
|
}, "Referral details for a user.">]>;
|
|
790
790
|
export type Referral = v.InferOutput<typeof Referral>;
|
|
791
791
|
/** Balance for a specific spot token. */
|
|
792
|
-
export declare const SpotBalance: v.SchemaWithPipe<readonly [v.
|
|
792
|
+
export declare const SpotBalance: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
793
793
|
/** Asset symbol. */
|
|
794
794
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
795
795
|
/** Unique identifier for the token. */
|
|
796
796
|
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
|
|
797
797
|
/** Total balance. */
|
|
798
|
-
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
798
|
+
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
799
799
|
/** Amount on hold. */
|
|
800
|
-
readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount on hold.">]>;
|
|
800
|
+
readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount on hold.">]>;
|
|
801
801
|
/** Entry notional value. */
|
|
802
|
-
readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Entry notional value.">]>;
|
|
802
|
+
readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Entry notional value.">]>;
|
|
803
803
|
}, undefined>, v.DescriptionAction<{
|
|
804
804
|
coin: string;
|
|
805
805
|
token: number;
|
|
@@ -809,19 +809,19 @@ export declare const SpotBalance: v.SchemaWithPipe<readonly [v.StrictObjectSchem
|
|
|
809
809
|
}, "Balance for a specific spot token.">]>;
|
|
810
810
|
export type SpotBalance = v.InferOutput<typeof SpotBalance>;
|
|
811
811
|
/** Account summary for spot trading. */
|
|
812
|
-
export declare const SpotClearinghouseState: v.SchemaWithPipe<readonly [v.
|
|
812
|
+
export declare const SpotClearinghouseState: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
813
813
|
/** Balance for each token. */
|
|
814
|
-
readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
814
|
+
readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
815
815
|
/** Asset symbol. */
|
|
816
816
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
817
817
|
/** Unique identifier for the token. */
|
|
818
818
|
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
|
|
819
819
|
/** Total balance. */
|
|
820
|
-
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
820
|
+
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
821
821
|
/** Amount on hold. */
|
|
822
|
-
readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount on hold.">]>;
|
|
822
|
+
readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount on hold.">]>;
|
|
823
823
|
/** Entry notional value. */
|
|
824
|
-
readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Entry notional value.">]>;
|
|
824
|
+
readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Entry notional value.">]>;
|
|
825
825
|
}, undefined>, v.DescriptionAction<{
|
|
826
826
|
coin: string;
|
|
827
827
|
token: number;
|
|
@@ -836,13 +836,13 @@ export declare const SpotClearinghouseState: v.SchemaWithPipe<readonly [v.Strict
|
|
|
836
836
|
entryNtl: string;
|
|
837
837
|
}[], "Balance for each token.">]>;
|
|
838
838
|
/** Escrowed balances. */
|
|
839
|
-
readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
839
|
+
readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
840
840
|
/** Asset symbol. */
|
|
841
841
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
842
842
|
/** Unique identifier for the token. */
|
|
843
843
|
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
|
|
844
844
|
/** Total balance. */
|
|
845
|
-
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
845
|
+
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
846
846
|
}, undefined>, v.DescriptionAction<{
|
|
847
847
|
coin: string;
|
|
848
848
|
token: number;
|
|
@@ -868,7 +868,7 @@ export declare const SpotClearinghouseState: v.SchemaWithPipe<readonly [v.Strict
|
|
|
868
868
|
}, "Account summary for spot trading.">]>;
|
|
869
869
|
export type SpotClearinghouseState = v.InferOutput<typeof SpotClearinghouseState>;
|
|
870
870
|
/** Sub-account details for a user. */
|
|
871
|
-
export declare const SubAccount: v.SchemaWithPipe<readonly [v.
|
|
871
|
+
export declare const SubAccount: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
872
872
|
/** Sub-account name. */
|
|
873
873
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "Sub-account name.">]>;
|
|
874
874
|
/** Sub-account address. */
|
|
@@ -876,17 +876,17 @@ export declare const SubAccount: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
876
876
|
/** Master account address. */
|
|
877
877
|
readonly master: 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}`, "Master account address.">]>;
|
|
878
878
|
/** Perpetual trading clearinghouse state summary. */
|
|
879
|
-
readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.
|
|
879
|
+
readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
880
880
|
/** Margin summary details. */
|
|
881
|
-
readonly marginSummary: v.SchemaWithPipe<readonly [v.
|
|
881
|
+
readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
882
882
|
/** Total account value. */
|
|
883
|
-
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
|
|
883
|
+
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
|
|
884
884
|
/** Total notional position value. */
|
|
885
|
-
readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
|
|
885
|
+
readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
|
|
886
886
|
/** Total raw USD value. */
|
|
887
|
-
readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
|
|
887
|
+
readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
|
|
888
888
|
/** Total margin used. */
|
|
889
|
-
readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
|
|
889
|
+
readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
|
|
890
890
|
}, undefined>, v.DescriptionAction<{
|
|
891
891
|
accountValue: string;
|
|
892
892
|
totalNtlPos: string;
|
|
@@ -894,15 +894,15 @@ export declare const SubAccount: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
894
894
|
totalMarginUsed: string;
|
|
895
895
|
}, "Margin summary details.">]>;
|
|
896
896
|
/** Cross-margin summary details. */
|
|
897
|
-
readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.
|
|
897
|
+
readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
898
898
|
/** Total account value. */
|
|
899
|
-
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
|
|
899
|
+
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
|
|
900
900
|
/** Total notional position value. */
|
|
901
|
-
readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
|
|
901
|
+
readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
|
|
902
902
|
/** Total raw USD value. */
|
|
903
|
-
readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
|
|
903
|
+
readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
|
|
904
904
|
/** Total margin used. */
|
|
905
|
-
readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
|
|
905
|
+
readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
|
|
906
906
|
}, undefined>, v.DescriptionAction<{
|
|
907
907
|
accountValue: string;
|
|
908
908
|
totalNtlPos: string;
|
|
@@ -910,28 +910,28 @@ export declare const SubAccount: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
910
910
|
totalMarginUsed: string;
|
|
911
911
|
}, "Cross-margin summary details.">]>;
|
|
912
912
|
/** Maintenance margin used for cross-margin positions. */
|
|
913
|
-
readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
|
|
913
|
+
readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
|
|
914
914
|
/** Amount available for withdrawal. */
|
|
915
|
-
readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
|
|
915
|
+
readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
|
|
916
916
|
/** List of asset positions. */
|
|
917
|
-
readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
917
|
+
readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
918
918
|
/** Position type. */
|
|
919
919
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
|
|
920
920
|
/** Position details. */
|
|
921
|
-
readonly position: v.SchemaWithPipe<readonly [v.
|
|
921
|
+
readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
922
922
|
/** Asset symbol. */
|
|
923
923
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
924
924
|
/** Signed position size. */
|
|
925
|
-
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
|
|
925
|
+
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
|
|
926
926
|
/** Leverage details. */
|
|
927
|
-
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
927
|
+
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
928
928
|
/** Leverage type. */
|
|
929
929
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
|
|
930
930
|
/** Leverage value used. */
|
|
931
931
|
readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
|
|
932
932
|
/** Amount of USD used (1 = 1$). */
|
|
933
|
-
readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
|
|
934
|
-
}, undefined>, v.
|
|
933
|
+
readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
|
|
934
|
+
}, undefined>, v.ObjectSchema<{
|
|
935
935
|
/** Leverage type. */
|
|
936
936
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
|
|
937
937
|
/** Leverage value used. */
|
|
@@ -945,27 +945,27 @@ export declare const SubAccount: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
945
945
|
value: number;
|
|
946
946
|
}, "Leverage details.">]>;
|
|
947
947
|
/** Average entry price. */
|
|
948
|
-
readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average entry price.">]>;
|
|
948
|
+
readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average entry price.">]>;
|
|
949
949
|
/** Position value. */
|
|
950
|
-
readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Position value.">]>;
|
|
950
|
+
readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Position value.">]>;
|
|
951
951
|
/** Unrealized profit and loss. */
|
|
952
|
-
readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
|
|
952
|
+
readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
|
|
953
953
|
/** Return on equity. */
|
|
954
|
-
readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Return on equity.">]>;
|
|
954
|
+
readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Return on equity.">]>;
|
|
955
955
|
/** Liquidation price. */
|
|
956
|
-
readonly liquidationPx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
|
|
956
|
+
readonly liquidationPx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
|
|
957
957
|
/** Margin used. */
|
|
958
|
-
readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
|
|
958
|
+
readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
|
|
959
959
|
/** Maximum allowed leverage. */
|
|
960
960
|
readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
|
|
961
961
|
/** Cumulative funding details. */
|
|
962
|
-
readonly cumFunding: v.SchemaWithPipe<readonly [v.
|
|
962
|
+
readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
963
963
|
/** Total funding paid or received since account opening. */
|
|
964
|
-
readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
|
|
964
|
+
readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
|
|
965
965
|
/** Funding accumulated since the position was opened. */
|
|
966
|
-
readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
|
|
966
|
+
readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
|
|
967
967
|
/** Funding accumulated since the last change in position size. */
|
|
968
|
-
readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
|
|
968
|
+
readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
|
|
969
969
|
}, undefined>, v.DescriptionAction<{
|
|
970
970
|
allTime: string;
|
|
971
971
|
sinceOpen: string;
|
|
@@ -1138,19 +1138,19 @@ export declare const SubAccount: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
1138
1138
|
time: number;
|
|
1139
1139
|
}, "Perpetual trading clearinghouse state summary.">]>;
|
|
1140
1140
|
/** Spot tokens clearinghouse state. */
|
|
1141
|
-
readonly spotState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.
|
|
1141
|
+
readonly spotState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1142
1142
|
/** Balance for each token. */
|
|
1143
|
-
readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
1143
|
+
readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1144
1144
|
/** Asset symbol. */
|
|
1145
1145
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
1146
1146
|
/** Unique identifier for the token. */
|
|
1147
1147
|
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
|
|
1148
1148
|
/** Total balance. */
|
|
1149
|
-
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
1149
|
+
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
1150
1150
|
/** Amount on hold. */
|
|
1151
|
-
readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount on hold.">]>;
|
|
1151
|
+
readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount on hold.">]>;
|
|
1152
1152
|
/** Entry notional value. */
|
|
1153
|
-
readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Entry notional value.">]>;
|
|
1153
|
+
readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Entry notional value.">]>;
|
|
1154
1154
|
}, undefined>, v.DescriptionAction<{
|
|
1155
1155
|
coin: string;
|
|
1156
1156
|
token: number;
|
|
@@ -1165,13 +1165,13 @@ export declare const SubAccount: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
1165
1165
|
entryNtl: string;
|
|
1166
1166
|
}[], "Balance for each token.">]>;
|
|
1167
1167
|
/** Escrowed balances. */
|
|
1168
|
-
readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
1168
|
+
readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1169
1169
|
/** Asset symbol. */
|
|
1170
1170
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
1171
1171
|
/** Unique identifier for the token. */
|
|
1172
1172
|
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
|
|
1173
1173
|
/** Total balance. */
|
|
1174
|
-
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
1174
|
+
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
1175
1175
|
}, undefined>, v.DescriptionAction<{
|
|
1176
1176
|
coin: string;
|
|
1177
1177
|
token: number;
|
|
@@ -1273,17 +1273,17 @@ export declare const SubAccount: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
1273
1273
|
}, "Sub-account details for a user.">]>;
|
|
1274
1274
|
export type SubAccount = v.InferOutput<typeof SubAccount>;
|
|
1275
1275
|
/** User fees. */
|
|
1276
|
-
export declare const UserFees: v.SchemaWithPipe<readonly [v.
|
|
1276
|
+
export declare const UserFees: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1277
1277
|
/** Daily user volume metrics. */
|
|
1278
|
-
readonly dailyUserVlm: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
1278
|
+
readonly dailyUserVlm: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1279
1279
|
/** Date in YYYY-M-D format. */
|
|
1280
1280
|
readonly date: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>, v.DescriptionAction<string, "Date in YYYY-M-D format.">]>;
|
|
1281
1281
|
/** User cross-trade volume. */
|
|
1282
|
-
readonly userCross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User cross-trade volume.">]>;
|
|
1282
|
+
readonly userCross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User cross-trade volume.">]>;
|
|
1283
1283
|
/** User add-liquidity volume. */
|
|
1284
|
-
readonly userAdd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User add-liquidity volume.">]>;
|
|
1284
|
+
readonly userAdd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User add-liquidity volume.">]>;
|
|
1285
1285
|
/** Exchange total volume. */
|
|
1286
|
-
readonly exchange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Exchange total volume.">]>;
|
|
1286
|
+
readonly exchange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Exchange total volume.">]>;
|
|
1287
1287
|
}, undefined>, undefined>, v.DescriptionAction<{
|
|
1288
1288
|
date: string;
|
|
1289
1289
|
userCross: string;
|
|
@@ -1291,29 +1291,29 @@ export declare const UserFees: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
1291
1291
|
exchange: string;
|
|
1292
1292
|
}[], "Daily user volume metrics.">]>;
|
|
1293
1293
|
/** Fee schedule information. */
|
|
1294
|
-
readonly feeSchedule: v.SchemaWithPipe<readonly [v.
|
|
1294
|
+
readonly feeSchedule: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1295
1295
|
/** Cross-trade fee rate. */
|
|
1296
|
-
readonly cross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cross-trade fee rate.">]>;
|
|
1296
|
+
readonly cross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cross-trade fee rate.">]>;
|
|
1297
1297
|
/** Add-liquidity fee rate. */
|
|
1298
|
-
readonly add: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Add-liquidity fee rate.">]>;
|
|
1298
|
+
readonly add: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Add-liquidity fee rate.">]>;
|
|
1299
1299
|
/** Spot cross-trade fee rate. */
|
|
1300
|
-
readonly spotCross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot cross-trade fee rate.">]>;
|
|
1300
|
+
readonly spotCross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot cross-trade fee rate.">]>;
|
|
1301
1301
|
/** Spot add-liquidity fee rate. */
|
|
1302
|
-
readonly spotAdd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot add-liquidity fee rate.">]>;
|
|
1302
|
+
readonly spotAdd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot add-liquidity fee rate.">]>;
|
|
1303
1303
|
/** Fee tiers details. */
|
|
1304
|
-
readonly tiers: v.SchemaWithPipe<readonly [v.
|
|
1304
|
+
readonly tiers: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1305
1305
|
/** VIP fee tier information. */
|
|
1306
|
-
readonly vip: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
1306
|
+
readonly vip: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1307
1307
|
/** Notional volume cutoff. */
|
|
1308
|
-
readonly ntlCutoff: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Notional volume cutoff.">]>;
|
|
1308
|
+
readonly ntlCutoff: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Notional volume cutoff.">]>;
|
|
1309
1309
|
/** Cross-trade fee rate. */
|
|
1310
|
-
readonly cross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cross-trade fee rate.">]>;
|
|
1310
|
+
readonly cross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cross-trade fee rate.">]>;
|
|
1311
1311
|
/** Add-liquidity fee rate. */
|
|
1312
|
-
readonly add: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Add-liquidity fee rate.">]>;
|
|
1312
|
+
readonly add: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Add-liquidity fee rate.">]>;
|
|
1313
1313
|
/** Spot cross-trade fee rate. */
|
|
1314
|
-
readonly spotCross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot cross-trade fee rate.">]>;
|
|
1314
|
+
readonly spotCross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot cross-trade fee rate.">]>;
|
|
1315
1315
|
/** Spot add-liquidity fee rate. */
|
|
1316
|
-
readonly spotAdd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot add-liquidity fee rate.">]>;
|
|
1316
|
+
readonly spotAdd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot add-liquidity fee rate.">]>;
|
|
1317
1317
|
}, undefined>, undefined>, v.DescriptionAction<{
|
|
1318
1318
|
ntlCutoff: string;
|
|
1319
1319
|
cross: string;
|
|
@@ -1322,11 +1322,11 @@ export declare const UserFees: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
1322
1322
|
spotAdd: string;
|
|
1323
1323
|
}[], "VIP fee tier information.">]>;
|
|
1324
1324
|
/** Market maker fee tier information. */
|
|
1325
|
-
readonly mm: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
1325
|
+
readonly mm: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1326
1326
|
/** Maker fraction cutoff. */
|
|
1327
|
-
readonly makerFractionCutoff: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maker fraction cutoff.">]>;
|
|
1327
|
+
readonly makerFractionCutoff: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maker fraction cutoff.">]>;
|
|
1328
1328
|
/** Add-liquidity fee rate. */
|
|
1329
|
-
readonly add: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Add-liquidity fee rate.">]>;
|
|
1329
|
+
readonly add: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Add-liquidity fee rate.">]>;
|
|
1330
1330
|
}, undefined>, undefined>, v.DescriptionAction<{
|
|
1331
1331
|
makerFractionCutoff: string;
|
|
1332
1332
|
add: string;
|
|
@@ -1345,13 +1345,13 @@ export declare const UserFees: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
1345
1345
|
}[];
|
|
1346
1346
|
}, "Fee tiers details.">]>;
|
|
1347
1347
|
/** Referral discount rate. */
|
|
1348
|
-
readonly referralDiscount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Referral discount rate.">]>;
|
|
1348
|
+
readonly referralDiscount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Referral discount rate.">]>;
|
|
1349
1349
|
/** Staking discount tiers details. */
|
|
1350
|
-
readonly stakingDiscountTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
1350
|
+
readonly stakingDiscountTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1351
1351
|
/** Basis points of maximum supply. */
|
|
1352
|
-
readonly bpsOfMaxSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis points of maximum supply.">]>;
|
|
1352
|
+
readonly bpsOfMaxSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis points of maximum supply.">]>;
|
|
1353
1353
|
/** Discount rate applied. */
|
|
1354
|
-
readonly discount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Discount rate applied.">]>;
|
|
1354
|
+
readonly discount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Discount rate applied.">]>;
|
|
1355
1355
|
}, undefined>, undefined>, v.DescriptionAction<{
|
|
1356
1356
|
bpsOfMaxSupply: string;
|
|
1357
1357
|
discount: string;
|
|
@@ -1381,28 +1381,28 @@ export declare const UserFees: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
1381
1381
|
}[];
|
|
1382
1382
|
}, "Fee schedule information.">]>;
|
|
1383
1383
|
/** User cross-trade rate. */
|
|
1384
|
-
readonly userCrossRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User cross-trade rate.">]>;
|
|
1384
|
+
readonly userCrossRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User cross-trade rate.">]>;
|
|
1385
1385
|
/** User add-liquidity rate. */
|
|
1386
|
-
readonly userAddRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User add-liquidity rate.">]>;
|
|
1386
|
+
readonly userAddRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User add-liquidity rate.">]>;
|
|
1387
1387
|
/** User spot cross-trade rate. */
|
|
1388
|
-
readonly userSpotCrossRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User spot cross-trade rate.">]>;
|
|
1388
|
+
readonly userSpotCrossRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User spot cross-trade rate.">]>;
|
|
1389
1389
|
/** User spot add-liquidity rate. */
|
|
1390
|
-
readonly userSpotAddRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User spot add-liquidity rate.">]>;
|
|
1390
|
+
readonly userSpotAddRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User spot add-liquidity rate.">]>;
|
|
1391
1391
|
/** Active referral discount rate. */
|
|
1392
|
-
readonly activeReferralDiscount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Active referral discount rate.">]>;
|
|
1392
|
+
readonly activeReferralDiscount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Active referral discount rate.">]>;
|
|
1393
1393
|
/** Trial details. */
|
|
1394
1394
|
readonly trial: v.SchemaWithPipe<readonly [v.UnionSchema<[v.UnknownSchema, v.NullSchema<undefined>], undefined>, v.DescriptionAction<unknown, "Trial details.">]>;
|
|
1395
1395
|
/** Fee trial reward amount. */
|
|
1396
|
-
readonly feeTrialReward: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee trial reward amount.">]>;
|
|
1396
|
+
readonly feeTrialReward: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee trial reward amount.">]>;
|
|
1397
1397
|
/** Timestamp when next trial becomes available. */
|
|
1398
1398
|
readonly nextTrialAvailableTimestamp: v.SchemaWithPipe<readonly [v.UnionSchema<[v.UnknownSchema, v.NullSchema<undefined>], undefined>, v.DescriptionAction<unknown, "Timestamp when next trial becomes available.">]>;
|
|
1399
1399
|
readonly stakingLink: v.UnionSchema<[v.UnknownSchema, v.NullSchema<undefined>], undefined>;
|
|
1400
1400
|
/** Active staking discount details. */
|
|
1401
|
-
readonly activeStakingDiscount: v.SchemaWithPipe<readonly [v.
|
|
1401
|
+
readonly activeStakingDiscount: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1402
1402
|
/** Basis points of maximum supply. */
|
|
1403
|
-
readonly bpsOfMaxSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis points of maximum supply.">]>;
|
|
1403
|
+
readonly bpsOfMaxSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis points of maximum supply.">]>;
|
|
1404
1404
|
/** Discount rate applied. */
|
|
1405
|
-
readonly discount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Discount rate applied.">]>;
|
|
1405
|
+
readonly discount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Discount rate applied.">]>;
|
|
1406
1406
|
}, undefined>, v.DescriptionAction<{
|
|
1407
1407
|
bpsOfMaxSupply: string;
|
|
1408
1408
|
discount: string;
|
|
@@ -1454,17 +1454,17 @@ export declare const UserFees: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
1454
1454
|
}, "User fees.">]>;
|
|
1455
1455
|
export type UserFees = v.InferOutput<typeof UserFees>;
|
|
1456
1456
|
/** Funding update details. */
|
|
1457
|
-
export declare const FundingUpdate: v.SchemaWithPipe<readonly [v.
|
|
1457
|
+
export declare const FundingUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1458
1458
|
/** Update type. */
|
|
1459
1459
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"funding", undefined>, v.DescriptionAction<"funding", "Update type.">]>;
|
|
1460
1460
|
/** Asset symbol. */
|
|
1461
1461
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
1462
1462
|
/** Amount transferred in USDC. */
|
|
1463
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1463
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1464
1464
|
/** Signed position size. */
|
|
1465
|
-
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
|
|
1465
|
+
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
|
|
1466
1466
|
/** Applied funding rate. */
|
|
1467
|
-
readonly fundingRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Applied funding rate.">]>;
|
|
1467
|
+
readonly fundingRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Applied funding rate.">]>;
|
|
1468
1468
|
/** Number of samples. */
|
|
1469
1469
|
readonly nSamples: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<number | null, "Number of samples.">]>;
|
|
1470
1470
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -1477,23 +1477,23 @@ export declare const FundingUpdate: v.SchemaWithPipe<readonly [v.StrictObjectSch
|
|
|
1477
1477
|
}, "Funding update details.">]>;
|
|
1478
1478
|
export type FundingUpdate = v.InferOutput<typeof FundingUpdate>;
|
|
1479
1479
|
/** Funding ledger update for a user. */
|
|
1480
|
-
export declare const UserFundingUpdate: v.SchemaWithPipe<readonly [v.
|
|
1480
|
+
export declare const UserFundingUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1481
1481
|
/** Timestamp of the update (in ms since epoch). */
|
|
1482
1482
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp of the update (in ms since epoch).">]>;
|
|
1483
1483
|
/** L1 transaction hash. */
|
|
1484
1484
|
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.">]>;
|
|
1485
1485
|
/** Update details. */
|
|
1486
|
-
readonly delta: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.
|
|
1486
|
+
readonly delta: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1487
1487
|
/** Update type. */
|
|
1488
1488
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"funding", undefined>, v.DescriptionAction<"funding", "Update type.">]>;
|
|
1489
1489
|
/** Asset symbol. */
|
|
1490
1490
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
1491
1491
|
/** Amount transferred in USDC. */
|
|
1492
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1492
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1493
1493
|
/** Signed position size. */
|
|
1494
|
-
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
|
|
1494
|
+
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
|
|
1495
1495
|
/** Applied funding rate. */
|
|
1496
|
-
readonly fundingRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Applied funding rate.">]>;
|
|
1496
|
+
readonly fundingRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Applied funding rate.">]>;
|
|
1497
1497
|
/** Number of samples. */
|
|
1498
1498
|
readonly nSamples: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<number | null, "Number of samples.">]>;
|
|
1499
1499
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -1525,9 +1525,9 @@ export declare const UserFundingUpdate: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
1525
1525
|
}, "Funding ledger update for a user.">]>;
|
|
1526
1526
|
export type UserFundingUpdate = v.InferOutput<typeof UserFundingUpdate>;
|
|
1527
1527
|
/** User rate limits. */
|
|
1528
|
-
export declare const UserRateLimit: v.SchemaWithPipe<readonly [v.
|
|
1528
|
+
export declare const UserRateLimit: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1529
1529
|
/** Cumulative trading volume. */
|
|
1530
|
-
readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative trading volume.">]>;
|
|
1530
|
+
readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative trading volume.">]>;
|
|
1531
1531
|
/** Number of API requests used. */
|
|
1532
1532
|
readonly nRequestsUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of API requests used.">]>;
|
|
1533
1533
|
/** Maximum allowed API requests. */
|
|
@@ -1539,24 +1539,24 @@ export declare const UserRateLimit: v.SchemaWithPipe<readonly [v.StrictObjectSch
|
|
|
1539
1539
|
}, "User rate limits.">]>;
|
|
1540
1540
|
export type UserRateLimit = v.InferOutput<typeof UserRateLimit>;
|
|
1541
1541
|
/** User role. */
|
|
1542
|
-
export declare const UserRole: v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
1542
|
+
export declare const UserRole: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
1543
1543
|
/** Role identifier. */
|
|
1544
1544
|
readonly role: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"missing", undefined>, v.LiteralSchema<"user", undefined>, v.LiteralSchema<"vault", undefined>], undefined>, v.DescriptionAction<"user" | "missing" | "vault", "Role identifier.">]>;
|
|
1545
|
-
}, undefined>, v.
|
|
1545
|
+
}, undefined>, v.ObjectSchema<{
|
|
1546
1546
|
/** Role identifier. */
|
|
1547
1547
|
readonly role: v.SchemaWithPipe<readonly [v.LiteralSchema<"agent", undefined>, v.DescriptionAction<"agent", "Role identifier.">]>;
|
|
1548
1548
|
/** Details for agent role. */
|
|
1549
|
-
readonly data: v.SchemaWithPipe<readonly [v.
|
|
1549
|
+
readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1550
1550
|
/** Master account address associated with the agent. */
|
|
1551
1551
|
readonly user: 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}`, "Master account address associated with the agent.">]>;
|
|
1552
1552
|
}, undefined>, v.DescriptionAction<{
|
|
1553
1553
|
user: `0x${string}`;
|
|
1554
1554
|
}, "Details for agent role.">]>;
|
|
1555
|
-
}, undefined>, v.
|
|
1555
|
+
}, undefined>, v.ObjectSchema<{
|
|
1556
1556
|
/** Role identifier. */
|
|
1557
1557
|
readonly role: v.SchemaWithPipe<readonly [v.LiteralSchema<"subAccount", undefined>, v.DescriptionAction<"subAccount", "Role identifier.">]>;
|
|
1558
1558
|
/** Details for sub-account role. */
|
|
1559
|
-
readonly data: v.SchemaWithPipe<readonly [v.
|
|
1559
|
+
readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1560
1560
|
/** Master account address associated with the sub-account. */
|
|
1561
1561
|
readonly master: 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}`, "Master account address associated with the sub-account.">]>;
|
|
1562
1562
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -1577,11 +1577,11 @@ export declare const UserRole: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Stric
|
|
|
1577
1577
|
}, "User role.">]>;
|
|
1578
1578
|
export type UserRole = v.InferOutput<typeof UserRole>;
|
|
1579
1579
|
/** Transfer between spot and perpetual accounts. */
|
|
1580
|
-
export declare const AccountClassTransferUpdate: v.SchemaWithPipe<readonly [v.
|
|
1580
|
+
export declare const AccountClassTransferUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1581
1581
|
/** Update type. */
|
|
1582
1582
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"accountClassTransfer", undefined>, v.DescriptionAction<"accountClassTransfer", "Update type.">]>;
|
|
1583
1583
|
/** Amount transferred in USDC. */
|
|
1584
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1584
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1585
1585
|
/** Indicates if the transfer is to the perpetual account. */
|
|
1586
1586
|
readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the transfer is to the perpetual account.">]>;
|
|
1587
1587
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -1591,28 +1591,28 @@ export declare const AccountClassTransferUpdate: v.SchemaWithPipe<readonly [v.St
|
|
|
1591
1591
|
}, "Transfer between spot and perpetual accounts.">]>;
|
|
1592
1592
|
export type AccountClassTransferUpdate = v.InferOutput<typeof AccountClassTransferUpdate>;
|
|
1593
1593
|
/** Deposit update to an account. */
|
|
1594
|
-
export declare const DepositUpdate: v.SchemaWithPipe<readonly [v.
|
|
1594
|
+
export declare const DepositUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1595
1595
|
/** Update type. */
|
|
1596
1596
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"deposit", undefined>, v.DescriptionAction<"deposit", "Update type.">]>;
|
|
1597
1597
|
/** Amount deposited in USDC. */
|
|
1598
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
|
|
1598
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
|
|
1599
1599
|
}, undefined>, v.DescriptionAction<{
|
|
1600
1600
|
type: "deposit";
|
|
1601
1601
|
usdc: string;
|
|
1602
1602
|
}, "Deposit update to an account.">]>;
|
|
1603
1603
|
export type DepositUpdate = v.InferOutput<typeof DepositUpdate>;
|
|
1604
1604
|
/** Internal transfer between accounts. */
|
|
1605
|
-
export declare const InternalTransferUpdate: v.SchemaWithPipe<readonly [v.
|
|
1605
|
+
export declare const InternalTransferUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1606
1606
|
/** Update type. */
|
|
1607
1607
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"internalTransfer", undefined>, v.DescriptionAction<"internalTransfer", "Update type.">]>;
|
|
1608
1608
|
/** Amount transferred in USDC. */
|
|
1609
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1609
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1610
1610
|
/** Initiator address. */
|
|
1611
1611
|
readonly user: 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}`, "Initiator address.">]>;
|
|
1612
1612
|
/** Destination address. */
|
|
1613
1613
|
readonly destination: 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}`, "Destination address.">]>;
|
|
1614
1614
|
/** Transfer fee. */
|
|
1615
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
|
|
1615
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
|
|
1616
1616
|
}, undefined>, v.DescriptionAction<{
|
|
1617
1617
|
type: "internalTransfer";
|
|
1618
1618
|
usdc: string;
|
|
@@ -1622,21 +1622,21 @@ export declare const InternalTransferUpdate: v.SchemaWithPipe<readonly [v.Strict
|
|
|
1622
1622
|
}, "Internal transfer between accounts.">]>;
|
|
1623
1623
|
export type InternalTransferUpdate = v.InferOutput<typeof InternalTransferUpdate>;
|
|
1624
1624
|
/** Liquidation event update. */
|
|
1625
|
-
export declare const LiquidationUpdate: v.SchemaWithPipe<readonly [v.
|
|
1625
|
+
export declare const LiquidationUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1626
1626
|
/** Update type. */
|
|
1627
1627
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"liquidation", undefined>, v.DescriptionAction<"liquidation", "Update type.">]>;
|
|
1628
1628
|
/** Total notional value of liquidated positions. */
|
|
1629
|
-
readonly liquidatedNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional value of liquidated positions.">]>;
|
|
1629
|
+
readonly liquidatedNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional value of liquidated positions.">]>;
|
|
1630
1630
|
/** Account value at liquidation time. */
|
|
1631
|
-
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Account value at liquidation time.">]>;
|
|
1631
|
+
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Account value at liquidation time.">]>;
|
|
1632
1632
|
/** Leverage type for liquidated positions. */
|
|
1633
1633
|
readonly leverageType: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Cross", undefined>, v.LiteralSchema<"Isolated", undefined>], undefined>, v.DescriptionAction<"Cross" | "Isolated", "Leverage type for liquidated positions.">]>;
|
|
1634
1634
|
/** Details of each liquidated position. */
|
|
1635
|
-
readonly liquidatedPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
1635
|
+
readonly liquidatedPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1636
1636
|
/** Asset symbol of the liquidated position. */
|
|
1637
1637
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol of the liquidated position.">]>;
|
|
1638
1638
|
/** Signed position size liquidated. */
|
|
1639
|
-
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size liquidated.">]>;
|
|
1639
|
+
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size liquidated.">]>;
|
|
1640
1640
|
}, undefined>, undefined>, v.DescriptionAction<{
|
|
1641
1641
|
coin: string;
|
|
1642
1642
|
szi: string;
|
|
@@ -1653,11 +1653,11 @@ export declare const LiquidationUpdate: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
1653
1653
|
}, "Liquidation event update.">]>;
|
|
1654
1654
|
export type LiquidationUpdate = v.InferOutput<typeof LiquidationUpdate>;
|
|
1655
1655
|
/** Rewards claim event update. */
|
|
1656
|
-
export declare const RewardsClaimUpdate: v.SchemaWithPipe<readonly [v.
|
|
1656
|
+
export declare const RewardsClaimUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1657
1657
|
/** Update type. */
|
|
1658
1658
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"rewardsClaim", undefined>, v.DescriptionAction<"rewardsClaim", "Update type.">]>;
|
|
1659
1659
|
/** Amount of rewards claimed. */
|
|
1660
|
-
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of rewards claimed.">]>;
|
|
1660
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of rewards claimed.">]>;
|
|
1661
1661
|
/** Token symbol. */
|
|
1662
1662
|
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
|
|
1663
1663
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -1667,23 +1667,23 @@ export declare const RewardsClaimUpdate: v.SchemaWithPipe<readonly [v.StrictObje
|
|
|
1667
1667
|
}, "Rewards claim event update.">]>;
|
|
1668
1668
|
export type RewardsClaimUpdate = v.InferOutput<typeof RewardsClaimUpdate>;
|
|
1669
1669
|
/** Spot transfer update between accounts. */
|
|
1670
|
-
export declare const SpotTransferUpdate: v.SchemaWithPipe<readonly [v.
|
|
1670
|
+
export declare const SpotTransferUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1671
1671
|
/** Update type. */
|
|
1672
1672
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"spotTransfer", undefined>, v.DescriptionAction<"spotTransfer", "Update type.">]>;
|
|
1673
1673
|
/** Token symbol. */
|
|
1674
1674
|
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
|
|
1675
1675
|
/** Amount transferred. */
|
|
1676
|
-
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred.">]>;
|
|
1676
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred.">]>;
|
|
1677
1677
|
/** Equivalent USDC value. */
|
|
1678
|
-
readonly usdcValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Equivalent USDC value.">]>;
|
|
1678
|
+
readonly usdcValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Equivalent USDC value.">]>;
|
|
1679
1679
|
/** Initiator address. */
|
|
1680
1680
|
readonly user: 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}`, "Initiator address.">]>;
|
|
1681
1681
|
/** Destination address. */
|
|
1682
1682
|
readonly destination: 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}`, "Destination address.">]>;
|
|
1683
1683
|
/** Transfer fee. */
|
|
1684
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
|
|
1684
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
|
|
1685
1685
|
/** Fee in native token. */
|
|
1686
|
-
readonly nativeTokenFee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee in native token.">]>;
|
|
1686
|
+
readonly nativeTokenFee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee in native token.">]>;
|
|
1687
1687
|
readonly nonce: v.NullSchema<undefined>;
|
|
1688
1688
|
/** Token in which the fee is denominated (e.g., "USDC"). */
|
|
1689
1689
|
readonly feeToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token in which the fee is denominated (e.g., \"USDC\").">]>;
|
|
@@ -1701,11 +1701,11 @@ export declare const SpotTransferUpdate: v.SchemaWithPipe<readonly [v.StrictObje
|
|
|
1701
1701
|
}, "Spot transfer update between accounts.">]>;
|
|
1702
1702
|
export type SpotTransferUpdate = v.InferOutput<typeof SpotTransferUpdate>;
|
|
1703
1703
|
/** Transfer update between sub-accounts. */
|
|
1704
|
-
export declare const SubAccountTransferUpdate: v.SchemaWithPipe<readonly [v.
|
|
1704
|
+
export declare const SubAccountTransferUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1705
1705
|
/** Update type. */
|
|
1706
1706
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"subAccountTransfer", undefined>, v.DescriptionAction<"subAccountTransfer", "Update type.">]>;
|
|
1707
1707
|
/** Amount transferred in USDC. */
|
|
1708
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1708
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1709
1709
|
/** Initiator address. */
|
|
1710
1710
|
readonly user: 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}`, "Initiator address.">]>;
|
|
1711
1711
|
/** Destination address. */
|
|
@@ -1718,15 +1718,15 @@ export declare const SubAccountTransferUpdate: v.SchemaWithPipe<readonly [v.Stri
|
|
|
1718
1718
|
}, "Transfer update between sub-accounts.">]>;
|
|
1719
1719
|
export type SubAccountTransferUpdate = v.InferOutput<typeof SubAccountTransferUpdate>;
|
|
1720
1720
|
/** Vault creation update. */
|
|
1721
|
-
export declare const VaultCreateUpdate: v.SchemaWithPipe<readonly [v.
|
|
1721
|
+
export declare const VaultCreateUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1722
1722
|
/** Update type. */
|
|
1723
1723
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultCreate", undefined>, v.DescriptionAction<"vaultCreate", "Update type.">]>;
|
|
1724
1724
|
/** Address of the created vault. */
|
|
1725
1725
|
readonly vault: 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 created vault.">]>;
|
|
1726
1726
|
/** Initial allocated amount in USDC. */
|
|
1727
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Initial allocated amount in USDC.">]>;
|
|
1727
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Initial allocated amount in USDC.">]>;
|
|
1728
1728
|
/** Vault creation fee. */
|
|
1729
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Vault creation fee.">]>;
|
|
1729
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Vault creation fee.">]>;
|
|
1730
1730
|
}, undefined>, v.DescriptionAction<{
|
|
1731
1731
|
type: "vaultCreate";
|
|
1732
1732
|
vault: `0x${string}`;
|
|
@@ -1735,13 +1735,13 @@ export declare const VaultCreateUpdate: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
1735
1735
|
}, "Vault creation update.">]>;
|
|
1736
1736
|
export type VaultCreateUpdate = v.InferOutput<typeof VaultCreateUpdate>;
|
|
1737
1737
|
/** Vault deposit update. */
|
|
1738
|
-
export declare const VaultDepositUpdate: v.SchemaWithPipe<readonly [v.
|
|
1738
|
+
export declare const VaultDepositUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1739
1739
|
/** Update type. */
|
|
1740
1740
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultDeposit", undefined>, v.DescriptionAction<"vaultDeposit", "Update type.">]>;
|
|
1741
1741
|
/** Address of the target vault. */
|
|
1742
1742
|
readonly vault: 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 target vault.">]>;
|
|
1743
1743
|
/** Amount deposited in USDC. */
|
|
1744
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
|
|
1744
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
|
|
1745
1745
|
}, undefined>, v.DescriptionAction<{
|
|
1746
1746
|
type: "vaultDeposit";
|
|
1747
1747
|
vault: `0x${string}`;
|
|
@@ -1749,13 +1749,13 @@ export declare const VaultDepositUpdate: v.SchemaWithPipe<readonly [v.StrictObje
|
|
|
1749
1749
|
}, "Vault deposit update.">]>;
|
|
1750
1750
|
export type VaultDepositUpdate = v.InferOutput<typeof VaultDepositUpdate>;
|
|
1751
1751
|
/** Vault distribution update. */
|
|
1752
|
-
export declare const VaultDistributionUpdate: v.SchemaWithPipe<readonly [v.
|
|
1752
|
+
export declare const VaultDistributionUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1753
1753
|
/** Update type. */
|
|
1754
1754
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultDistribution", undefined>, v.DescriptionAction<"vaultDistribution", "Update type.">]>;
|
|
1755
1755
|
/** Address of the vault distributing funds. */
|
|
1756
1756
|
readonly vault: 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 vault distributing funds.">]>;
|
|
1757
1757
|
/** Amount distributed in USDC. */
|
|
1758
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount distributed in USDC.">]>;
|
|
1758
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount distributed in USDC.">]>;
|
|
1759
1759
|
}, undefined>, v.DescriptionAction<{
|
|
1760
1760
|
type: "vaultDistribution";
|
|
1761
1761
|
vault: `0x${string}`;
|
|
@@ -1763,7 +1763,7 @@ export declare const VaultDistributionUpdate: v.SchemaWithPipe<readonly [v.Stric
|
|
|
1763
1763
|
}, "Vault distribution update.">]>;
|
|
1764
1764
|
export type VaultDistributionUpdate = v.InferOutput<typeof VaultDistributionUpdate>;
|
|
1765
1765
|
/** Vault withdrawal event update. */
|
|
1766
|
-
export declare const VaultWithdrawUpdate: v.SchemaWithPipe<readonly [v.
|
|
1766
|
+
export declare const VaultWithdrawUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1767
1767
|
/** Update type. */
|
|
1768
1768
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultWithdraw", undefined>, v.DescriptionAction<"vaultWithdraw", "Update type.">]>;
|
|
1769
1769
|
/** Vault address. */
|
|
@@ -1771,15 +1771,15 @@ export declare const VaultWithdrawUpdate: v.SchemaWithPipe<readonly [v.StrictObj
|
|
|
1771
1771
|
/** Address of the user withdrawing funds. */
|
|
1772
1772
|
readonly user: 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 user withdrawing funds.">]>;
|
|
1773
1773
|
/** Withdrawal request amount in USD. */
|
|
1774
|
-
readonly requestedUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal request amount in USD.">]>;
|
|
1774
|
+
readonly requestedUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal request amount in USD.">]>;
|
|
1775
1775
|
/** Withdrawal commission fee. */
|
|
1776
|
-
readonly commission: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal commission fee.">]>;
|
|
1776
|
+
readonly commission: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal commission fee.">]>;
|
|
1777
1777
|
/** Closing cost associated with positions. */
|
|
1778
|
-
readonly closingCost: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Closing cost associated with positions.">]>;
|
|
1778
|
+
readonly closingCost: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Closing cost associated with positions.">]>;
|
|
1779
1779
|
/** Basis value for withdrawal calculation. */
|
|
1780
|
-
readonly basis: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis value for withdrawal calculation.">]>;
|
|
1780
|
+
readonly basis: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis value for withdrawal calculation.">]>;
|
|
1781
1781
|
/** Net withdrawn amount in USD after fees and costs. */
|
|
1782
|
-
readonly netWithdrawnUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Net withdrawn amount in USD after fees and costs.">]>;
|
|
1782
|
+
readonly netWithdrawnUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Net withdrawn amount in USD after fees and costs.">]>;
|
|
1783
1783
|
}, undefined>, v.DescriptionAction<{
|
|
1784
1784
|
type: "vaultWithdraw";
|
|
1785
1785
|
vault: `0x${string}`;
|
|
@@ -1792,15 +1792,15 @@ export declare const VaultWithdrawUpdate: v.SchemaWithPipe<readonly [v.StrictObj
|
|
|
1792
1792
|
}, "Vault withdrawal event update.">]>;
|
|
1793
1793
|
export type VaultWithdrawUpdate = v.InferOutput<typeof VaultWithdrawUpdate>;
|
|
1794
1794
|
/** Withdrawal update from an account. */
|
|
1795
|
-
export declare const WithdrawUpdate: v.SchemaWithPipe<readonly [v.
|
|
1795
|
+
export declare const WithdrawUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1796
1796
|
/** Update type. */
|
|
1797
1797
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"withdraw", undefined>, v.DescriptionAction<"withdraw", "Update type.">]>;
|
|
1798
1798
|
/** Amount withdrawn in USDC. */
|
|
1799
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount withdrawn in USDC.">]>;
|
|
1799
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount withdrawn in USDC.">]>;
|
|
1800
1800
|
/** Unique nonce for the withdrawal request. */
|
|
1801
1801
|
readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique nonce for the withdrawal request.">]>;
|
|
1802
1802
|
/** Withdrawal fee. */
|
|
1803
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal fee.">]>;
|
|
1803
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal fee.">]>;
|
|
1804
1804
|
}, undefined>, v.DescriptionAction<{
|
|
1805
1805
|
type: "withdraw";
|
|
1806
1806
|
usdc: string;
|
|
@@ -1809,63 +1809,63 @@ export declare const WithdrawUpdate: v.SchemaWithPipe<readonly [v.StrictObjectSc
|
|
|
1809
1809
|
}, "Withdrawal update from an account.">]>;
|
|
1810
1810
|
export type WithdrawUpdate = v.InferOutput<typeof WithdrawUpdate>;
|
|
1811
1811
|
/** Non-funding ledger update for a user. */
|
|
1812
|
-
export declare const UserNonFundingLedgerUpdate: v.SchemaWithPipe<readonly [v.
|
|
1812
|
+
export declare const UserNonFundingLedgerUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1813
1813
|
/** Timestamp of the update (in ms since epoch). */
|
|
1814
1814
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp of the update (in ms since epoch).">]>;
|
|
1815
1815
|
/** L1 transaction hash. */
|
|
1816
1816
|
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.">]>;
|
|
1817
1817
|
/** Update details. */
|
|
1818
|
-
readonly delta: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.
|
|
1818
|
+
readonly delta: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1819
1819
|
/** Update type. */
|
|
1820
1820
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"accountClassTransfer", undefined>, v.DescriptionAction<"accountClassTransfer", "Update type.">]>;
|
|
1821
1821
|
/** Amount transferred in USDC. */
|
|
1822
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1822
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1823
1823
|
/** Indicates if the transfer is to the perpetual account. */
|
|
1824
1824
|
readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the transfer is to the perpetual account.">]>;
|
|
1825
1825
|
}, undefined>, v.DescriptionAction<{
|
|
1826
1826
|
type: "accountClassTransfer";
|
|
1827
1827
|
usdc: string;
|
|
1828
1828
|
toPerp: boolean;
|
|
1829
|
-
}, "Transfer between spot and perpetual accounts.">]>, v.SchemaWithPipe<readonly [v.
|
|
1829
|
+
}, "Transfer between spot and perpetual accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1830
1830
|
/** Update type. */
|
|
1831
1831
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"deposit", undefined>, v.DescriptionAction<"deposit", "Update type.">]>;
|
|
1832
1832
|
/** Amount deposited in USDC. */
|
|
1833
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
|
|
1833
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
|
|
1834
1834
|
}, undefined>, v.DescriptionAction<{
|
|
1835
1835
|
type: "deposit";
|
|
1836
1836
|
usdc: string;
|
|
1837
|
-
}, "Deposit update to an account.">]>, v.SchemaWithPipe<readonly [v.
|
|
1837
|
+
}, "Deposit update to an account.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1838
1838
|
/** Update type. */
|
|
1839
1839
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"internalTransfer", undefined>, v.DescriptionAction<"internalTransfer", "Update type.">]>;
|
|
1840
1840
|
/** Amount transferred in USDC. */
|
|
1841
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1841
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1842
1842
|
/** Initiator address. */
|
|
1843
1843
|
readonly user: 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}`, "Initiator address.">]>;
|
|
1844
1844
|
/** Destination address. */
|
|
1845
1845
|
readonly destination: 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}`, "Destination address.">]>;
|
|
1846
1846
|
/** Transfer fee. */
|
|
1847
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
|
|
1847
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
|
|
1848
1848
|
}, undefined>, v.DescriptionAction<{
|
|
1849
1849
|
type: "internalTransfer";
|
|
1850
1850
|
usdc: string;
|
|
1851
1851
|
user: `0x${string}`;
|
|
1852
1852
|
destination: `0x${string}`;
|
|
1853
1853
|
fee: string;
|
|
1854
|
-
}, "Internal transfer between accounts.">]>, v.SchemaWithPipe<readonly [v.
|
|
1854
|
+
}, "Internal transfer between accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1855
1855
|
/** Update type. */
|
|
1856
1856
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"liquidation", undefined>, v.DescriptionAction<"liquidation", "Update type.">]>;
|
|
1857
1857
|
/** Total notional value of liquidated positions. */
|
|
1858
|
-
readonly liquidatedNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional value of liquidated positions.">]>;
|
|
1858
|
+
readonly liquidatedNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional value of liquidated positions.">]>;
|
|
1859
1859
|
/** Account value at liquidation time. */
|
|
1860
|
-
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Account value at liquidation time.">]>;
|
|
1860
|
+
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Account value at liquidation time.">]>;
|
|
1861
1861
|
/** Leverage type for liquidated positions. */
|
|
1862
1862
|
readonly leverageType: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Cross", undefined>, v.LiteralSchema<"Isolated", undefined>], undefined>, v.DescriptionAction<"Cross" | "Isolated", "Leverage type for liquidated positions.">]>;
|
|
1863
1863
|
/** Details of each liquidated position. */
|
|
1864
|
-
readonly liquidatedPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
1864
|
+
readonly liquidatedPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1865
1865
|
/** Asset symbol of the liquidated position. */
|
|
1866
1866
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol of the liquidated position.">]>;
|
|
1867
1867
|
/** Signed position size liquidated. */
|
|
1868
|
-
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size liquidated.">]>;
|
|
1868
|
+
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size liquidated.">]>;
|
|
1869
1869
|
}, undefined>, undefined>, v.DescriptionAction<{
|
|
1870
1870
|
coin: string;
|
|
1871
1871
|
szi: string;
|
|
@@ -1879,34 +1879,34 @@ export declare const UserNonFundingLedgerUpdate: v.SchemaWithPipe<readonly [v.St
|
|
|
1879
1879
|
coin: string;
|
|
1880
1880
|
szi: string;
|
|
1881
1881
|
}[];
|
|
1882
|
-
}, "Liquidation event update.">]>, v.SchemaWithPipe<readonly [v.
|
|
1882
|
+
}, "Liquidation event update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1883
1883
|
/** Update type. */
|
|
1884
1884
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"rewardsClaim", undefined>, v.DescriptionAction<"rewardsClaim", "Update type.">]>;
|
|
1885
1885
|
/** Amount of rewards claimed. */
|
|
1886
|
-
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of rewards claimed.">]>;
|
|
1886
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of rewards claimed.">]>;
|
|
1887
1887
|
/** Token symbol. */
|
|
1888
1888
|
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
|
|
1889
1889
|
}, undefined>, v.DescriptionAction<{
|
|
1890
1890
|
type: "rewardsClaim";
|
|
1891
1891
|
amount: string;
|
|
1892
1892
|
token: string;
|
|
1893
|
-
}, "Rewards claim event update.">]>, v.SchemaWithPipe<readonly [v.
|
|
1893
|
+
}, "Rewards claim event update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1894
1894
|
/** Update type. */
|
|
1895
1895
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"spotTransfer", undefined>, v.DescriptionAction<"spotTransfer", "Update type.">]>;
|
|
1896
1896
|
/** Token symbol. */
|
|
1897
1897
|
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
|
|
1898
1898
|
/** Amount transferred. */
|
|
1899
|
-
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred.">]>;
|
|
1899
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred.">]>;
|
|
1900
1900
|
/** Equivalent USDC value. */
|
|
1901
|
-
readonly usdcValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Equivalent USDC value.">]>;
|
|
1901
|
+
readonly usdcValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Equivalent USDC value.">]>;
|
|
1902
1902
|
/** Initiator address. */
|
|
1903
1903
|
readonly user: 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}`, "Initiator address.">]>;
|
|
1904
1904
|
/** Destination address. */
|
|
1905
1905
|
readonly destination: 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}`, "Destination address.">]>;
|
|
1906
1906
|
/** Transfer fee. */
|
|
1907
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
|
|
1907
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
|
|
1908
1908
|
/** Fee in native token. */
|
|
1909
|
-
readonly nativeTokenFee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee in native token.">]>;
|
|
1909
|
+
readonly nativeTokenFee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee in native token.">]>;
|
|
1910
1910
|
readonly nonce: v.NullSchema<undefined>;
|
|
1911
1911
|
/** Token in which the fee is denominated (e.g., "USDC"). */
|
|
1912
1912
|
readonly feeToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token in which the fee is denominated (e.g., \"USDC\").">]>;
|
|
@@ -1921,11 +1921,11 @@ export declare const UserNonFundingLedgerUpdate: v.SchemaWithPipe<readonly [v.St
|
|
|
1921
1921
|
nativeTokenFee: string;
|
|
1922
1922
|
nonce: null;
|
|
1923
1923
|
feeToken: string;
|
|
1924
|
-
}, "Spot transfer update between accounts.">]>, v.SchemaWithPipe<readonly [v.
|
|
1924
|
+
}, "Spot transfer update between accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1925
1925
|
/** Update type. */
|
|
1926
1926
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"subAccountTransfer", undefined>, v.DescriptionAction<"subAccountTransfer", "Update type.">]>;
|
|
1927
1927
|
/** Amount transferred in USDC. */
|
|
1928
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1928
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
|
|
1929
1929
|
/** Initiator address. */
|
|
1930
1930
|
readonly user: 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}`, "Initiator address.">]>;
|
|
1931
1931
|
/** Destination address. */
|
|
@@ -1935,43 +1935,43 @@ export declare const UserNonFundingLedgerUpdate: v.SchemaWithPipe<readonly [v.St
|
|
|
1935
1935
|
usdc: string;
|
|
1936
1936
|
user: `0x${string}`;
|
|
1937
1937
|
destination: `0x${string}`;
|
|
1938
|
-
}, "Transfer update between sub-accounts.">]>, v.SchemaWithPipe<readonly [v.
|
|
1938
|
+
}, "Transfer update between sub-accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1939
1939
|
/** Update type. */
|
|
1940
1940
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultCreate", undefined>, v.DescriptionAction<"vaultCreate", "Update type.">]>;
|
|
1941
1941
|
/** Address of the created vault. */
|
|
1942
1942
|
readonly vault: 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 created vault.">]>;
|
|
1943
1943
|
/** Initial allocated amount in USDC. */
|
|
1944
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Initial allocated amount in USDC.">]>;
|
|
1944
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Initial allocated amount in USDC.">]>;
|
|
1945
1945
|
/** Vault creation fee. */
|
|
1946
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Vault creation fee.">]>;
|
|
1946
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Vault creation fee.">]>;
|
|
1947
1947
|
}, undefined>, v.DescriptionAction<{
|
|
1948
1948
|
type: "vaultCreate";
|
|
1949
1949
|
vault: `0x${string}`;
|
|
1950
1950
|
usdc: string;
|
|
1951
1951
|
fee: string;
|
|
1952
|
-
}, "Vault creation update.">]>, v.SchemaWithPipe<readonly [v.
|
|
1952
|
+
}, "Vault creation update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1953
1953
|
/** Update type. */
|
|
1954
1954
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultDeposit", undefined>, v.DescriptionAction<"vaultDeposit", "Update type.">]>;
|
|
1955
1955
|
/** Address of the target vault. */
|
|
1956
1956
|
readonly vault: 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 target vault.">]>;
|
|
1957
1957
|
/** Amount deposited in USDC. */
|
|
1958
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
|
|
1958
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
|
|
1959
1959
|
}, undefined>, v.DescriptionAction<{
|
|
1960
1960
|
type: "vaultDeposit";
|
|
1961
1961
|
vault: `0x${string}`;
|
|
1962
1962
|
usdc: string;
|
|
1963
|
-
}, "Vault deposit update.">]>, v.SchemaWithPipe<readonly [v.
|
|
1963
|
+
}, "Vault deposit update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1964
1964
|
/** Update type. */
|
|
1965
1965
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultDistribution", undefined>, v.DescriptionAction<"vaultDistribution", "Update type.">]>;
|
|
1966
1966
|
/** Address of the vault distributing funds. */
|
|
1967
1967
|
readonly vault: 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 vault distributing funds.">]>;
|
|
1968
1968
|
/** Amount distributed in USDC. */
|
|
1969
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount distributed in USDC.">]>;
|
|
1969
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount distributed in USDC.">]>;
|
|
1970
1970
|
}, undefined>, v.DescriptionAction<{
|
|
1971
1971
|
type: "vaultDistribution";
|
|
1972
1972
|
vault: `0x${string}`;
|
|
1973
1973
|
usdc: string;
|
|
1974
|
-
}, "Vault distribution update.">]>, v.SchemaWithPipe<readonly [v.
|
|
1974
|
+
}, "Vault distribution update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1975
1975
|
/** Update type. */
|
|
1976
1976
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultWithdraw", undefined>, v.DescriptionAction<"vaultWithdraw", "Update type.">]>;
|
|
1977
1977
|
/** Vault address. */
|
|
@@ -1979,15 +1979,15 @@ export declare const UserNonFundingLedgerUpdate: v.SchemaWithPipe<readonly [v.St
|
|
|
1979
1979
|
/** Address of the user withdrawing funds. */
|
|
1980
1980
|
readonly user: 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 user withdrawing funds.">]>;
|
|
1981
1981
|
/** Withdrawal request amount in USD. */
|
|
1982
|
-
readonly requestedUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal request amount in USD.">]>;
|
|
1982
|
+
readonly requestedUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal request amount in USD.">]>;
|
|
1983
1983
|
/** Withdrawal commission fee. */
|
|
1984
|
-
readonly commission: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal commission fee.">]>;
|
|
1984
|
+
readonly commission: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal commission fee.">]>;
|
|
1985
1985
|
/** Closing cost associated with positions. */
|
|
1986
|
-
readonly closingCost: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Closing cost associated with positions.">]>;
|
|
1986
|
+
readonly closingCost: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Closing cost associated with positions.">]>;
|
|
1987
1987
|
/** Basis value for withdrawal calculation. */
|
|
1988
|
-
readonly basis: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis value for withdrawal calculation.">]>;
|
|
1988
|
+
readonly basis: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis value for withdrawal calculation.">]>;
|
|
1989
1989
|
/** Net withdrawn amount in USD after fees and costs. */
|
|
1990
|
-
readonly netWithdrawnUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Net withdrawn amount in USD after fees and costs.">]>;
|
|
1990
|
+
readonly netWithdrawnUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Net withdrawn amount in USD after fees and costs.">]>;
|
|
1991
1991
|
}, undefined>, v.DescriptionAction<{
|
|
1992
1992
|
type: "vaultWithdraw";
|
|
1993
1993
|
vault: `0x${string}`;
|
|
@@ -1997,15 +1997,15 @@ export declare const UserNonFundingLedgerUpdate: v.SchemaWithPipe<readonly [v.St
|
|
|
1997
1997
|
closingCost: string;
|
|
1998
1998
|
basis: string;
|
|
1999
1999
|
netWithdrawnUsd: string;
|
|
2000
|
-
}, "Vault withdrawal event update.">]>, v.SchemaWithPipe<readonly [v.
|
|
2000
|
+
}, "Vault withdrawal event update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2001
2001
|
/** Update type. */
|
|
2002
2002
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"withdraw", undefined>, v.DescriptionAction<"withdraw", "Update type.">]>;
|
|
2003
2003
|
/** Amount withdrawn in USDC. */
|
|
2004
|
-
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount withdrawn in USDC.">]>;
|
|
2004
|
+
readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount withdrawn in USDC.">]>;
|
|
2005
2005
|
/** Unique nonce for the withdrawal request. */
|
|
2006
2006
|
readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique nonce for the withdrawal request.">]>;
|
|
2007
2007
|
/** Withdrawal fee. */
|
|
2008
|
-
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal fee.">]>;
|
|
2008
|
+
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal fee.">]>;
|
|
2009
2009
|
}, undefined>, v.DescriptionAction<{
|
|
2010
2010
|
type: "withdraw";
|
|
2011
2011
|
usdc: string;
|
|
@@ -2156,4 +2156,750 @@ export declare const UserNonFundingLedgerUpdate: v.SchemaWithPipe<readonly [v.St
|
|
|
2156
2156
|
};
|
|
2157
2157
|
}, "Non-funding ledger update for a user.">]>;
|
|
2158
2158
|
export type UserNonFundingLedgerUpdate = v.InferOutput<typeof UserNonFundingLedgerUpdate>;
|
|
2159
|
+
/** Comprehensive user and market data. */
|
|
2160
|
+
export declare const WebData2: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2161
|
+
/** Account summary for perpetual trading. */
|
|
2162
|
+
readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2163
|
+
/** Margin summary details. */
|
|
2164
|
+
readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2165
|
+
/** Total account value. */
|
|
2166
|
+
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
|
|
2167
|
+
/** Total notional position value. */
|
|
2168
|
+
readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
|
|
2169
|
+
/** Total raw USD value. */
|
|
2170
|
+
readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
|
|
2171
|
+
/** Total margin used. */
|
|
2172
|
+
readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
|
|
2173
|
+
}, undefined>, v.DescriptionAction<{
|
|
2174
|
+
accountValue: string;
|
|
2175
|
+
totalNtlPos: string;
|
|
2176
|
+
totalRawUsd: string;
|
|
2177
|
+
totalMarginUsed: string;
|
|
2178
|
+
}, "Margin summary details.">]>;
|
|
2179
|
+
/** Cross-margin summary details. */
|
|
2180
|
+
readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2181
|
+
/** Total account value. */
|
|
2182
|
+
readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
|
|
2183
|
+
/** Total notional position value. */
|
|
2184
|
+
readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
|
|
2185
|
+
/** Total raw USD value. */
|
|
2186
|
+
readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
|
|
2187
|
+
/** Total margin used. */
|
|
2188
|
+
readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
|
|
2189
|
+
}, undefined>, v.DescriptionAction<{
|
|
2190
|
+
accountValue: string;
|
|
2191
|
+
totalNtlPos: string;
|
|
2192
|
+
totalRawUsd: string;
|
|
2193
|
+
totalMarginUsed: string;
|
|
2194
|
+
}, "Cross-margin summary details.">]>;
|
|
2195
|
+
/** Maintenance margin used for cross-margin positions. */
|
|
2196
|
+
readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
|
|
2197
|
+
/** Amount available for withdrawal. */
|
|
2198
|
+
readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
|
|
2199
|
+
/** List of asset positions. */
|
|
2200
|
+
readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2201
|
+
/** Position type. */
|
|
2202
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
|
|
2203
|
+
/** Position details. */
|
|
2204
|
+
readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2205
|
+
/** Asset symbol. */
|
|
2206
|
+
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
2207
|
+
/** Signed position size. */
|
|
2208
|
+
readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
|
|
2209
|
+
/** Leverage details. */
|
|
2210
|
+
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
2211
|
+
/** Leverage type. */
|
|
2212
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
|
|
2213
|
+
/** Leverage value used. */
|
|
2214
|
+
readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
|
|
2215
|
+
/** Amount of USD used (1 = 1$). */
|
|
2216
|
+
readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
|
|
2217
|
+
}, undefined>, v.ObjectSchema<{
|
|
2218
|
+
/** Leverage type. */
|
|
2219
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
|
|
2220
|
+
/** Leverage value used. */
|
|
2221
|
+
readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
|
|
2222
|
+
}, undefined>], undefined>, v.DescriptionAction<{
|
|
2223
|
+
type: "isolated";
|
|
2224
|
+
value: number;
|
|
2225
|
+
rawUsd: string;
|
|
2226
|
+
} | {
|
|
2227
|
+
type: "cross";
|
|
2228
|
+
value: number;
|
|
2229
|
+
}, "Leverage details.">]>;
|
|
2230
|
+
/** Average entry price. */
|
|
2231
|
+
readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average entry price.">]>;
|
|
2232
|
+
/** Position value. */
|
|
2233
|
+
readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Position value.">]>;
|
|
2234
|
+
/** Unrealized profit and loss. */
|
|
2235
|
+
readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
|
|
2236
|
+
/** Return on equity. */
|
|
2237
|
+
readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Return on equity.">]>;
|
|
2238
|
+
/** Liquidation price. */
|
|
2239
|
+
readonly liquidationPx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
|
|
2240
|
+
/** Margin used. */
|
|
2241
|
+
readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
|
|
2242
|
+
/** Maximum allowed leverage. */
|
|
2243
|
+
readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
|
|
2244
|
+
/** Cumulative funding details. */
|
|
2245
|
+
readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2246
|
+
/** Total funding paid or received since account opening. */
|
|
2247
|
+
readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
|
|
2248
|
+
/** Funding accumulated since the position was opened. */
|
|
2249
|
+
readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
|
|
2250
|
+
/** Funding accumulated since the last change in position size. */
|
|
2251
|
+
readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
|
|
2252
|
+
}, undefined>, v.DescriptionAction<{
|
|
2253
|
+
allTime: string;
|
|
2254
|
+
sinceOpen: string;
|
|
2255
|
+
sinceChange: string;
|
|
2256
|
+
}, "Cumulative funding details.">]>;
|
|
2257
|
+
}, undefined>, v.DescriptionAction<{
|
|
2258
|
+
coin: string;
|
|
2259
|
+
szi: string;
|
|
2260
|
+
leverage: {
|
|
2261
|
+
type: "isolated";
|
|
2262
|
+
value: number;
|
|
2263
|
+
rawUsd: string;
|
|
2264
|
+
} | {
|
|
2265
|
+
type: "cross";
|
|
2266
|
+
value: number;
|
|
2267
|
+
};
|
|
2268
|
+
entryPx: string;
|
|
2269
|
+
positionValue: string;
|
|
2270
|
+
unrealizedPnl: string;
|
|
2271
|
+
returnOnEquity: string;
|
|
2272
|
+
liquidationPx: string | null;
|
|
2273
|
+
marginUsed: string;
|
|
2274
|
+
maxLeverage: number;
|
|
2275
|
+
cumFunding: {
|
|
2276
|
+
allTime: string;
|
|
2277
|
+
sinceOpen: string;
|
|
2278
|
+
sinceChange: string;
|
|
2279
|
+
};
|
|
2280
|
+
}, "Position details.">]>;
|
|
2281
|
+
}, undefined>, v.DescriptionAction<{
|
|
2282
|
+
type: "oneWay";
|
|
2283
|
+
position: {
|
|
2284
|
+
coin: string;
|
|
2285
|
+
szi: string;
|
|
2286
|
+
leverage: {
|
|
2287
|
+
type: "isolated";
|
|
2288
|
+
value: number;
|
|
2289
|
+
rawUsd: string;
|
|
2290
|
+
} | {
|
|
2291
|
+
type: "cross";
|
|
2292
|
+
value: number;
|
|
2293
|
+
};
|
|
2294
|
+
entryPx: string;
|
|
2295
|
+
positionValue: string;
|
|
2296
|
+
unrealizedPnl: string;
|
|
2297
|
+
returnOnEquity: string;
|
|
2298
|
+
liquidationPx: string | null;
|
|
2299
|
+
marginUsed: string;
|
|
2300
|
+
maxLeverage: number;
|
|
2301
|
+
cumFunding: {
|
|
2302
|
+
allTime: string;
|
|
2303
|
+
sinceOpen: string;
|
|
2304
|
+
sinceChange: string;
|
|
2305
|
+
};
|
|
2306
|
+
};
|
|
2307
|
+
}, "Position for a specific asset.">]>, undefined>, v.DescriptionAction<{
|
|
2308
|
+
type: "oneWay";
|
|
2309
|
+
position: {
|
|
2310
|
+
coin: string;
|
|
2311
|
+
szi: string;
|
|
2312
|
+
leverage: {
|
|
2313
|
+
type: "isolated";
|
|
2314
|
+
value: number;
|
|
2315
|
+
rawUsd: string;
|
|
2316
|
+
} | {
|
|
2317
|
+
type: "cross";
|
|
2318
|
+
value: number;
|
|
2319
|
+
};
|
|
2320
|
+
entryPx: string;
|
|
2321
|
+
positionValue: string;
|
|
2322
|
+
unrealizedPnl: string;
|
|
2323
|
+
returnOnEquity: string;
|
|
2324
|
+
liquidationPx: string | null;
|
|
2325
|
+
marginUsed: string;
|
|
2326
|
+
maxLeverage: number;
|
|
2327
|
+
cumFunding: {
|
|
2328
|
+
allTime: string;
|
|
2329
|
+
sinceOpen: string;
|
|
2330
|
+
sinceChange: string;
|
|
2331
|
+
};
|
|
2332
|
+
};
|
|
2333
|
+
}[], "List of asset positions.">]>;
|
|
2334
|
+
/** Timestamp when data was retrieved (in ms since epoch). */
|
|
2335
|
+
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 data was retrieved (in ms since epoch).">]>;
|
|
2336
|
+
}, undefined>, v.DescriptionAction<{
|
|
2337
|
+
marginSummary: {
|
|
2338
|
+
accountValue: string;
|
|
2339
|
+
totalNtlPos: string;
|
|
2340
|
+
totalRawUsd: string;
|
|
2341
|
+
totalMarginUsed: string;
|
|
2342
|
+
};
|
|
2343
|
+
crossMarginSummary: {
|
|
2344
|
+
accountValue: string;
|
|
2345
|
+
totalNtlPos: string;
|
|
2346
|
+
totalRawUsd: string;
|
|
2347
|
+
totalMarginUsed: string;
|
|
2348
|
+
};
|
|
2349
|
+
crossMaintenanceMarginUsed: string;
|
|
2350
|
+
withdrawable: string;
|
|
2351
|
+
assetPositions: {
|
|
2352
|
+
type: "oneWay";
|
|
2353
|
+
position: {
|
|
2354
|
+
coin: string;
|
|
2355
|
+
szi: string;
|
|
2356
|
+
leverage: {
|
|
2357
|
+
type: "isolated";
|
|
2358
|
+
value: number;
|
|
2359
|
+
rawUsd: string;
|
|
2360
|
+
} | {
|
|
2361
|
+
type: "cross";
|
|
2362
|
+
value: number;
|
|
2363
|
+
};
|
|
2364
|
+
entryPx: string;
|
|
2365
|
+
positionValue: string;
|
|
2366
|
+
unrealizedPnl: string;
|
|
2367
|
+
returnOnEquity: string;
|
|
2368
|
+
liquidationPx: string | null;
|
|
2369
|
+
marginUsed: string;
|
|
2370
|
+
maxLeverage: number;
|
|
2371
|
+
cumFunding: {
|
|
2372
|
+
allTime: string;
|
|
2373
|
+
sinceOpen: string;
|
|
2374
|
+
sinceChange: string;
|
|
2375
|
+
};
|
|
2376
|
+
};
|
|
2377
|
+
}[];
|
|
2378
|
+
time: number;
|
|
2379
|
+
}, "Account summary for perpetual trading.">]>, v.DescriptionAction<{
|
|
2380
|
+
marginSummary: {
|
|
2381
|
+
accountValue: string;
|
|
2382
|
+
totalNtlPos: string;
|
|
2383
|
+
totalRawUsd: string;
|
|
2384
|
+
totalMarginUsed: string;
|
|
2385
|
+
};
|
|
2386
|
+
crossMarginSummary: {
|
|
2387
|
+
accountValue: string;
|
|
2388
|
+
totalNtlPos: string;
|
|
2389
|
+
totalRawUsd: string;
|
|
2390
|
+
totalMarginUsed: string;
|
|
2391
|
+
};
|
|
2392
|
+
crossMaintenanceMarginUsed: string;
|
|
2393
|
+
withdrawable: string;
|
|
2394
|
+
assetPositions: {
|
|
2395
|
+
type: "oneWay";
|
|
2396
|
+
position: {
|
|
2397
|
+
coin: string;
|
|
2398
|
+
szi: string;
|
|
2399
|
+
leverage: {
|
|
2400
|
+
type: "isolated";
|
|
2401
|
+
value: number;
|
|
2402
|
+
rawUsd: string;
|
|
2403
|
+
} | {
|
|
2404
|
+
type: "cross";
|
|
2405
|
+
value: number;
|
|
2406
|
+
};
|
|
2407
|
+
entryPx: string;
|
|
2408
|
+
positionValue: string;
|
|
2409
|
+
unrealizedPnl: string;
|
|
2410
|
+
returnOnEquity: string;
|
|
2411
|
+
liquidationPx: string | null;
|
|
2412
|
+
marginUsed: string;
|
|
2413
|
+
maxLeverage: number;
|
|
2414
|
+
cumFunding: {
|
|
2415
|
+
allTime: string;
|
|
2416
|
+
sinceOpen: string;
|
|
2417
|
+
sinceChange: string;
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2420
|
+
}[];
|
|
2421
|
+
time: number;
|
|
2422
|
+
}, "Account summary for perpetual trading.">]>;
|
|
2423
|
+
/** Leading vaults information. */
|
|
2424
|
+
readonly leadingVaults: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
2425
|
+
/** Address of the vault. */
|
|
2426
|
+
readonly address: 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 vault.">]>;
|
|
2427
|
+
/** Name of the vault. */
|
|
2428
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the vault.">]>;
|
|
2429
|
+
}, undefined>, undefined>, v.DescriptionAction<{
|
|
2430
|
+
address: `0x${string}`;
|
|
2431
|
+
name: string;
|
|
2432
|
+
}[], "Leading vaults information.">]>;
|
|
2433
|
+
/** Total equity in vaults. */
|
|
2434
|
+
readonly totalVaultEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total equity in vaults.">]>;
|
|
2435
|
+
/** User open orders with frontend information. */
|
|
2436
|
+
readonly openOrders: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2437
|
+
readonly triggerCondition: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Condition for triggering the order.">]>;
|
|
2438
|
+
readonly isTrigger: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a trigger order.">]>;
|
|
2439
|
+
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.">]>;
|
|
2440
|
+
readonly children: v.SchemaWithPipe<readonly [v.ArraySchema<v.LazySchema<any>, undefined>, v.DescriptionAction<any[], "Child orders associated with this order.">]>;
|
|
2441
|
+
readonly isPositionTpsl: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a position TP/SL order.">]>;
|
|
2442
|
+
readonly reduceOnly: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates whether the order is reduce-only.">]>;
|
|
2443
|
+
readonly orderType: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Market", undefined>, v.LiteralSchema<"Limit", undefined>, v.LiteralSchema<"Stop Market", undefined>, v.LiteralSchema<"Stop Limit", undefined>, v.LiteralSchema<"Take Profit Market", undefined>, v.LiteralSchema<"Take Profit Limit", undefined>], undefined>, v.DescriptionAction<"Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit", string>]>, v.DescriptionAction<"Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit", "Order type.">]>;
|
|
2444
|
+
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.">]>;
|
|
2445
|
+
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.">]>;
|
|
2446
|
+
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.">]>;
|
|
2447
|
+
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
2448
|
+
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).">]>;
|
|
2449
|
+
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.">]>;
|
|
2450
|
+
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.">]>;
|
|
2451
|
+
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).">]>;
|
|
2452
|
+
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.">]>;
|
|
2453
|
+
}, undefined>, v.DescriptionAction<{
|
|
2454
|
+
triggerCondition: string;
|
|
2455
|
+
isTrigger: boolean;
|
|
2456
|
+
triggerPx: string;
|
|
2457
|
+
children: any[];
|
|
2458
|
+
isPositionTpsl: boolean;
|
|
2459
|
+
reduceOnly: boolean;
|
|
2460
|
+
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
2461
|
+
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
2462
|
+
cloid: `0x${string}` | null;
|
|
2463
|
+
sz: string;
|
|
2464
|
+
coin: string;
|
|
2465
|
+
side: "B" | "A";
|
|
2466
|
+
oid: number;
|
|
2467
|
+
limitPx: string;
|
|
2468
|
+
timestamp: number;
|
|
2469
|
+
origSz: string;
|
|
2470
|
+
}, "Open order with additional display information.">]>, undefined>, v.DescriptionAction<{
|
|
2471
|
+
triggerCondition: string;
|
|
2472
|
+
isTrigger: boolean;
|
|
2473
|
+
triggerPx: string;
|
|
2474
|
+
children: any[];
|
|
2475
|
+
isPositionTpsl: boolean;
|
|
2476
|
+
reduceOnly: boolean;
|
|
2477
|
+
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
2478
|
+
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
2479
|
+
cloid: `0x${string}` | null;
|
|
2480
|
+
sz: string;
|
|
2481
|
+
coin: string;
|
|
2482
|
+
side: "B" | "A";
|
|
2483
|
+
oid: number;
|
|
2484
|
+
limitPx: string;
|
|
2485
|
+
timestamp: number;
|
|
2486
|
+
origSz: string;
|
|
2487
|
+
}[], "User open orders with frontend information.">]>;
|
|
2488
|
+
/** Agent address if one exists. */
|
|
2489
|
+
readonly agentAddress: 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}`, 42, undefined>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<`0x${string}` | null, "Agent address if one exists.">]>;
|
|
2490
|
+
/** Timestamp until which the agent is valid. */
|
|
2491
|
+
readonly agentValidUntil: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<number | null, "Timestamp until which the agent is valid.">]>;
|
|
2492
|
+
/** Cumulative ledger value. */
|
|
2493
|
+
readonly cumLedger: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative ledger value.">]>;
|
|
2494
|
+
/** Metadata for perpetual assets. */
|
|
2495
|
+
readonly meta: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2496
|
+
readonly universe: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2497
|
+
readonly szDecimals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Minimum decimal places for order sizes.">]>;
|
|
2498
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the universe.">]>;
|
|
2499
|
+
readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
|
|
2500
|
+
readonly marginTableId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the margin requirements table.">]>;
|
|
2501
|
+
readonly onlyIsolated: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if only isolated margin trading is allowed.">]>;
|
|
2502
|
+
readonly isDelisted: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if the universe is delisted.">]>;
|
|
2503
|
+
}, undefined>, v.DescriptionAction<{
|
|
2504
|
+
szDecimals: number;
|
|
2505
|
+
name: string;
|
|
2506
|
+
maxLeverage: number;
|
|
2507
|
+
marginTableId: number;
|
|
2508
|
+
onlyIsolated?: true | undefined;
|
|
2509
|
+
isDelisted?: true | undefined;
|
|
2510
|
+
}, "Trading universe parameters for perpetual assets.">]>, undefined>, v.DescriptionAction<{
|
|
2511
|
+
szDecimals: number;
|
|
2512
|
+
name: string;
|
|
2513
|
+
maxLeverage: number;
|
|
2514
|
+
marginTableId: number;
|
|
2515
|
+
onlyIsolated?: true | undefined;
|
|
2516
|
+
isDelisted?: true | undefined;
|
|
2517
|
+
}[], "Trading universes available for perpetual trading.">]>;
|
|
2518
|
+
readonly marginTables: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2519
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Description of the margin table.">]>;
|
|
2520
|
+
readonly marginTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2521
|
+
readonly lowerBound: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Lower position size boundary for this tier.">]>;
|
|
2522
|
+
readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage for this tier.">]>;
|
|
2523
|
+
}, undefined>, v.DescriptionAction<{
|
|
2524
|
+
lowerBound: string;
|
|
2525
|
+
maxLeverage: number;
|
|
2526
|
+
}, "Individual tier in a margin requirements table.">]>, undefined>, v.DescriptionAction<{
|
|
2527
|
+
lowerBound: string;
|
|
2528
|
+
maxLeverage: number;
|
|
2529
|
+
}[], "Array of margin tiers defining leverage limits.">]>;
|
|
2530
|
+
}, undefined>, v.DescriptionAction<{
|
|
2531
|
+
description: string;
|
|
2532
|
+
marginTiers: {
|
|
2533
|
+
lowerBound: string;
|
|
2534
|
+
maxLeverage: number;
|
|
2535
|
+
}[];
|
|
2536
|
+
}, "Margin requirements table with multiple tiers.">]>], undefined>, undefined>, v.DescriptionAction<[number, {
|
|
2537
|
+
description: string;
|
|
2538
|
+
marginTiers: {
|
|
2539
|
+
lowerBound: string;
|
|
2540
|
+
maxLeverage: number;
|
|
2541
|
+
}[];
|
|
2542
|
+
}][], "Collection of margin tables indexed by ID.">]>, v.DescriptionAction<[number, {
|
|
2543
|
+
description: string;
|
|
2544
|
+
marginTiers: {
|
|
2545
|
+
lowerBound: string;
|
|
2546
|
+
maxLeverage: number;
|
|
2547
|
+
}[];
|
|
2548
|
+
}][], "Margin requirement tables for different leverage tiers.">]>;
|
|
2549
|
+
}, undefined>, v.DescriptionAction<{
|
|
2550
|
+
universe: {
|
|
2551
|
+
szDecimals: number;
|
|
2552
|
+
name: string;
|
|
2553
|
+
maxLeverage: number;
|
|
2554
|
+
marginTableId: number;
|
|
2555
|
+
onlyIsolated?: true | undefined;
|
|
2556
|
+
isDelisted?: true | undefined;
|
|
2557
|
+
}[];
|
|
2558
|
+
marginTables: [number, {
|
|
2559
|
+
description: string;
|
|
2560
|
+
marginTiers: {
|
|
2561
|
+
lowerBound: string;
|
|
2562
|
+
maxLeverage: number;
|
|
2563
|
+
}[];
|
|
2564
|
+
}][];
|
|
2565
|
+
}, "Metadata for perpetual assets.">]>, v.DescriptionAction<{
|
|
2566
|
+
universe: {
|
|
2567
|
+
szDecimals: number;
|
|
2568
|
+
name: string;
|
|
2569
|
+
maxLeverage: number;
|
|
2570
|
+
marginTableId: number;
|
|
2571
|
+
onlyIsolated?: true | undefined;
|
|
2572
|
+
isDelisted?: true | undefined;
|
|
2573
|
+
}[];
|
|
2574
|
+
marginTables: [number, {
|
|
2575
|
+
description: string;
|
|
2576
|
+
marginTiers: {
|
|
2577
|
+
lowerBound: string;
|
|
2578
|
+
maxLeverage: number;
|
|
2579
|
+
}[];
|
|
2580
|
+
}][];
|
|
2581
|
+
}, "Metadata for perpetual assets.">]>;
|
|
2582
|
+
/** Context information for perpetual assets. */
|
|
2583
|
+
readonly assetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2584
|
+
readonly funding: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding rate.">]>;
|
|
2585
|
+
readonly openInterest: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total open interest.">]>;
|
|
2586
|
+
readonly premium: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Premium price.">]>;
|
|
2587
|
+
readonly oraclePx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Oracle price.">]>;
|
|
2588
|
+
readonly impactPxs: v.SchemaWithPipe<readonly [v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, v.DescriptionAction<string[] | null, "Array of impact prices.">]>;
|
|
2589
|
+
readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
|
|
2590
|
+
readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
|
|
2591
|
+
readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
|
|
2592
|
+
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.">]>;
|
|
2593
|
+
readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
|
|
2594
|
+
}, undefined>, v.DescriptionAction<{
|
|
2595
|
+
funding: string;
|
|
2596
|
+
openInterest: string;
|
|
2597
|
+
premium: string | null;
|
|
2598
|
+
oraclePx: string;
|
|
2599
|
+
impactPxs: string[] | null;
|
|
2600
|
+
dayBaseVlm: string;
|
|
2601
|
+
prevDayPx: string;
|
|
2602
|
+
dayNtlVlm: string;
|
|
2603
|
+
markPx: string;
|
|
2604
|
+
midPx: string | null;
|
|
2605
|
+
}, "Context for a perpetual asset.">]>, undefined>, v.DescriptionAction<{
|
|
2606
|
+
funding: string;
|
|
2607
|
+
openInterest: string;
|
|
2608
|
+
premium: string | null;
|
|
2609
|
+
oraclePx: string;
|
|
2610
|
+
impactPxs: string[] | null;
|
|
2611
|
+
dayBaseVlm: string;
|
|
2612
|
+
prevDayPx: string;
|
|
2613
|
+
dayNtlVlm: string;
|
|
2614
|
+
markPx: string;
|
|
2615
|
+
midPx: string | null;
|
|
2616
|
+
}[], "Context information for perpetual assets.">]>;
|
|
2617
|
+
/** Server timestamp (in ms since epoch). */
|
|
2618
|
+
readonly serverTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Server timestamp (in ms since epoch).">]>;
|
|
2619
|
+
/** Whether this account is a vault. */
|
|
2620
|
+
readonly isVault: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether this account is a vault.">]>;
|
|
2621
|
+
/** User address. */
|
|
2622
|
+
readonly user: 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}`, "User address.">]>;
|
|
2623
|
+
/** TWAP states. */
|
|
2624
|
+
readonly twapStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2625
|
+
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
2626
|
+
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.">]>;
|
|
2627
|
+
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.">]>;
|
|
2628
|
+
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.">]>;
|
|
2629
|
+
readonly randomize: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the TWAP randomizes execution.">]>;
|
|
2630
|
+
readonly reduceOnly: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is reduce-only.">]>;
|
|
2631
|
+
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).">]>;
|
|
2632
|
+
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.">]>;
|
|
2633
|
+
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).">]>;
|
|
2634
|
+
readonly user: 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}`, "User address.">]>;
|
|
2635
|
+
}, undefined>, v.DescriptionAction<{
|
|
2636
|
+
coin: string;
|
|
2637
|
+
executedNtl: string;
|
|
2638
|
+
executedSz: string;
|
|
2639
|
+
minutes: number;
|
|
2640
|
+
randomize: boolean;
|
|
2641
|
+
reduceOnly: boolean;
|
|
2642
|
+
side: "B" | "A";
|
|
2643
|
+
sz: string;
|
|
2644
|
+
timestamp: number;
|
|
2645
|
+
user: `0x${string}`;
|
|
2646
|
+
}, "Current state of a TWAP order.">]>], undefined>, undefined>, v.DescriptionAction<[number, {
|
|
2647
|
+
coin: string;
|
|
2648
|
+
executedNtl: string;
|
|
2649
|
+
executedSz: string;
|
|
2650
|
+
minutes: number;
|
|
2651
|
+
randomize: boolean;
|
|
2652
|
+
reduceOnly: boolean;
|
|
2653
|
+
side: "B" | "A";
|
|
2654
|
+
sz: string;
|
|
2655
|
+
timestamp: number;
|
|
2656
|
+
user: `0x${string}`;
|
|
2657
|
+
}][], "TWAP states.">]>;
|
|
2658
|
+
/** Account summary for spot trading. */
|
|
2659
|
+
readonly spotState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2660
|
+
/** Balance for each token. */
|
|
2661
|
+
readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2662
|
+
/** Asset symbol. */
|
|
2663
|
+
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
2664
|
+
/** Unique identifier for the token. */
|
|
2665
|
+
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
|
|
2666
|
+
/** Total balance. */
|
|
2667
|
+
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
2668
|
+
/** Amount on hold. */
|
|
2669
|
+
readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount on hold.">]>;
|
|
2670
|
+
/** Entry notional value. */
|
|
2671
|
+
readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Entry notional value.">]>;
|
|
2672
|
+
}, undefined>, v.DescriptionAction<{
|
|
2673
|
+
coin: string;
|
|
2674
|
+
token: number;
|
|
2675
|
+
total: string;
|
|
2676
|
+
hold: string;
|
|
2677
|
+
entryNtl: string;
|
|
2678
|
+
}, "Balance for a specific spot token.">]>, undefined>, v.DescriptionAction<{
|
|
2679
|
+
coin: string;
|
|
2680
|
+
token: number;
|
|
2681
|
+
total: string;
|
|
2682
|
+
hold: string;
|
|
2683
|
+
entryNtl: string;
|
|
2684
|
+
}[], "Balance for each token.">]>;
|
|
2685
|
+
/** Escrowed balances. */
|
|
2686
|
+
readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2687
|
+
/** Asset symbol. */
|
|
2688
|
+
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
2689
|
+
/** Unique identifier for the token. */
|
|
2690
|
+
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
|
|
2691
|
+
/** Total balance. */
|
|
2692
|
+
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
2693
|
+
}, undefined>, v.DescriptionAction<{
|
|
2694
|
+
coin: string;
|
|
2695
|
+
token: number;
|
|
2696
|
+
total: string;
|
|
2697
|
+
}, "Escrowed balance for a specific asset.">]>, undefined>, undefined>, v.DescriptionAction<{
|
|
2698
|
+
coin: string;
|
|
2699
|
+
token: number;
|
|
2700
|
+
total: string;
|
|
2701
|
+
}[] | undefined, "Escrowed balances.">]>;
|
|
2702
|
+
}, undefined>, v.DescriptionAction<{
|
|
2703
|
+
balances: {
|
|
2704
|
+
coin: string;
|
|
2705
|
+
token: number;
|
|
2706
|
+
total: string;
|
|
2707
|
+
hold: string;
|
|
2708
|
+
entryNtl: string;
|
|
2709
|
+
}[];
|
|
2710
|
+
evmEscrows?: {
|
|
2711
|
+
coin: string;
|
|
2712
|
+
token: number;
|
|
2713
|
+
total: string;
|
|
2714
|
+
}[] | undefined;
|
|
2715
|
+
}, "Account summary for spot trading.">]>, undefined>, v.DescriptionAction<{
|
|
2716
|
+
balances: {
|
|
2717
|
+
coin: string;
|
|
2718
|
+
token: number;
|
|
2719
|
+
total: string;
|
|
2720
|
+
hold: string;
|
|
2721
|
+
entryNtl: string;
|
|
2722
|
+
}[];
|
|
2723
|
+
evmEscrows?: {
|
|
2724
|
+
coin: string;
|
|
2725
|
+
token: number;
|
|
2726
|
+
total: string;
|
|
2727
|
+
}[] | undefined;
|
|
2728
|
+
} | undefined, "Account summary for spot trading.">]>;
|
|
2729
|
+
/** Context information for spot assets. */
|
|
2730
|
+
readonly spotAssetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2731
|
+
readonly circulatingSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Circulating supply.">]>;
|
|
2732
|
+
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
2733
|
+
readonly totalSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total supply.">]>;
|
|
2734
|
+
readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
|
|
2735
|
+
readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
|
|
2736
|
+
readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
|
|
2737
|
+
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.">]>;
|
|
2738
|
+
readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
|
|
2739
|
+
}, undefined>, v.DescriptionAction<{
|
|
2740
|
+
circulatingSupply: string;
|
|
2741
|
+
coin: string;
|
|
2742
|
+
totalSupply: string;
|
|
2743
|
+
dayBaseVlm: string;
|
|
2744
|
+
prevDayPx: string;
|
|
2745
|
+
dayNtlVlm: string;
|
|
2746
|
+
markPx: string;
|
|
2747
|
+
midPx: string | null;
|
|
2748
|
+
}, "Context for a spot asset.">]>, undefined>, v.DescriptionAction<{
|
|
2749
|
+
circulatingSupply: string;
|
|
2750
|
+
coin: string;
|
|
2751
|
+
totalSupply: string;
|
|
2752
|
+
dayBaseVlm: string;
|
|
2753
|
+
prevDayPx: string;
|
|
2754
|
+
dayNtlVlm: string;
|
|
2755
|
+
markPx: string;
|
|
2756
|
+
midPx: string | null;
|
|
2757
|
+
}[], "Context information for spot assets.">]>;
|
|
2758
|
+
/** Whether the user has opted out of spot dusting. */
|
|
2759
|
+
readonly optOutOfSpotDusting: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Whether the user has opted out of spot dusting.">]>;
|
|
2760
|
+
/** Assets currently at their open interest cap. */
|
|
2761
|
+
readonly perpsAtOpenInterestCap: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, v.DescriptionAction<string[] | undefined, "Assets currently at their open interest cap.">]>;
|
|
2762
|
+
}, undefined>, v.DescriptionAction<{
|
|
2763
|
+
clearinghouseState: {
|
|
2764
|
+
marginSummary: {
|
|
2765
|
+
accountValue: string;
|
|
2766
|
+
totalNtlPos: string;
|
|
2767
|
+
totalRawUsd: string;
|
|
2768
|
+
totalMarginUsed: string;
|
|
2769
|
+
};
|
|
2770
|
+
crossMarginSummary: {
|
|
2771
|
+
accountValue: string;
|
|
2772
|
+
totalNtlPos: string;
|
|
2773
|
+
totalRawUsd: string;
|
|
2774
|
+
totalMarginUsed: string;
|
|
2775
|
+
};
|
|
2776
|
+
crossMaintenanceMarginUsed: string;
|
|
2777
|
+
withdrawable: string;
|
|
2778
|
+
assetPositions: {
|
|
2779
|
+
type: "oneWay";
|
|
2780
|
+
position: {
|
|
2781
|
+
coin: string;
|
|
2782
|
+
szi: string;
|
|
2783
|
+
leverage: {
|
|
2784
|
+
type: "isolated";
|
|
2785
|
+
value: number;
|
|
2786
|
+
rawUsd: string;
|
|
2787
|
+
} | {
|
|
2788
|
+
type: "cross";
|
|
2789
|
+
value: number;
|
|
2790
|
+
};
|
|
2791
|
+
entryPx: string;
|
|
2792
|
+
positionValue: string;
|
|
2793
|
+
unrealizedPnl: string;
|
|
2794
|
+
returnOnEquity: string;
|
|
2795
|
+
liquidationPx: string | null;
|
|
2796
|
+
marginUsed: string;
|
|
2797
|
+
maxLeverage: number;
|
|
2798
|
+
cumFunding: {
|
|
2799
|
+
allTime: string;
|
|
2800
|
+
sinceOpen: string;
|
|
2801
|
+
sinceChange: string;
|
|
2802
|
+
};
|
|
2803
|
+
};
|
|
2804
|
+
}[];
|
|
2805
|
+
time: number;
|
|
2806
|
+
};
|
|
2807
|
+
leadingVaults: {
|
|
2808
|
+
address: `0x${string}`;
|
|
2809
|
+
name: string;
|
|
2810
|
+
}[];
|
|
2811
|
+
totalVaultEquity: string;
|
|
2812
|
+
openOrders: {
|
|
2813
|
+
triggerCondition: string;
|
|
2814
|
+
isTrigger: boolean;
|
|
2815
|
+
triggerPx: string;
|
|
2816
|
+
children: any[];
|
|
2817
|
+
isPositionTpsl: boolean;
|
|
2818
|
+
reduceOnly: boolean;
|
|
2819
|
+
orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
|
|
2820
|
+
tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
|
|
2821
|
+
cloid: `0x${string}` | null;
|
|
2822
|
+
sz: string;
|
|
2823
|
+
coin: string;
|
|
2824
|
+
side: "B" | "A";
|
|
2825
|
+
oid: number;
|
|
2826
|
+
limitPx: string;
|
|
2827
|
+
timestamp: number;
|
|
2828
|
+
origSz: string;
|
|
2829
|
+
}[];
|
|
2830
|
+
agentAddress: `0x${string}` | null;
|
|
2831
|
+
agentValidUntil: number | null;
|
|
2832
|
+
cumLedger: string;
|
|
2833
|
+
meta: {
|
|
2834
|
+
universe: {
|
|
2835
|
+
szDecimals: number;
|
|
2836
|
+
name: string;
|
|
2837
|
+
maxLeverage: number;
|
|
2838
|
+
marginTableId: number;
|
|
2839
|
+
onlyIsolated?: true | undefined;
|
|
2840
|
+
isDelisted?: true | undefined;
|
|
2841
|
+
}[];
|
|
2842
|
+
marginTables: [number, {
|
|
2843
|
+
description: string;
|
|
2844
|
+
marginTiers: {
|
|
2845
|
+
lowerBound: string;
|
|
2846
|
+
maxLeverage: number;
|
|
2847
|
+
}[];
|
|
2848
|
+
}][];
|
|
2849
|
+
};
|
|
2850
|
+
assetCtxs: {
|
|
2851
|
+
funding: string;
|
|
2852
|
+
openInterest: string;
|
|
2853
|
+
premium: string | null;
|
|
2854
|
+
oraclePx: string;
|
|
2855
|
+
impactPxs: string[] | null;
|
|
2856
|
+
dayBaseVlm: string;
|
|
2857
|
+
prevDayPx: string;
|
|
2858
|
+
dayNtlVlm: string;
|
|
2859
|
+
markPx: string;
|
|
2860
|
+
midPx: string | null;
|
|
2861
|
+
}[];
|
|
2862
|
+
serverTime: number;
|
|
2863
|
+
isVault: boolean;
|
|
2864
|
+
user: `0x${string}`;
|
|
2865
|
+
twapStates: [number, {
|
|
2866
|
+
coin: string;
|
|
2867
|
+
executedNtl: string;
|
|
2868
|
+
executedSz: string;
|
|
2869
|
+
minutes: number;
|
|
2870
|
+
randomize: boolean;
|
|
2871
|
+
reduceOnly: boolean;
|
|
2872
|
+
side: "B" | "A";
|
|
2873
|
+
sz: string;
|
|
2874
|
+
timestamp: number;
|
|
2875
|
+
user: `0x${string}`;
|
|
2876
|
+
}][];
|
|
2877
|
+
spotState?: {
|
|
2878
|
+
balances: {
|
|
2879
|
+
coin: string;
|
|
2880
|
+
token: number;
|
|
2881
|
+
total: string;
|
|
2882
|
+
hold: string;
|
|
2883
|
+
entryNtl: string;
|
|
2884
|
+
}[];
|
|
2885
|
+
evmEscrows?: {
|
|
2886
|
+
coin: string;
|
|
2887
|
+
token: number;
|
|
2888
|
+
total: string;
|
|
2889
|
+
}[] | undefined;
|
|
2890
|
+
} | undefined;
|
|
2891
|
+
spotAssetCtxs: {
|
|
2892
|
+
circulatingSupply: string;
|
|
2893
|
+
coin: string;
|
|
2894
|
+
totalSupply: string;
|
|
2895
|
+
dayBaseVlm: string;
|
|
2896
|
+
prevDayPx: string;
|
|
2897
|
+
dayNtlVlm: string;
|
|
2898
|
+
markPx: string;
|
|
2899
|
+
midPx: string | null;
|
|
2900
|
+
}[];
|
|
2901
|
+
optOutOfSpotDusting?: true | undefined;
|
|
2902
|
+
perpsAtOpenInterestCap?: string[] | undefined;
|
|
2903
|
+
}, "Comprehensive user and market data.">]>;
|
|
2904
|
+
export type WebData2 = v.InferOutput<typeof WebData2>;
|
|
2159
2905
|
//# sourceMappingURL=accounts.d.ts.map
|