@nktkas/hyperliquid 0.25.0-beta.1 → 0.25.0-beta.2
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 +46 -14
- package/esm/mod.js +1 -0
- package/esm/mod.js.map +1 -0
- package/esm/src/clients/exchange.d.ts +0 -7
- package/esm/src/clients/exchange.d.ts.map +1 -1
- package/esm/src/clients/exchange.js +4 -5
- package/esm/src/clients/exchange.js.map +1 -0
- package/esm/src/clients/info.d.ts +64 -2
- package/esm/src/clients/info.d.ts.map +1 -1
- package/esm/src/clients/info.js +77 -1
- package/esm/src/clients/info.js.map +1 -0
- package/esm/src/clients/multiSign.js +2 -1
- 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/errors.js +1 -0
- package/esm/src/errors.js.map +1 -0
- package/esm/src/schemas/_base.d.ts +6 -2
- package/esm/src/schemas/_base.d.ts.map +1 -1
- package/esm/src/schemas/_base.js +4 -1
- package/esm/src/schemas/_base.js.map +1 -0
- package/esm/src/schemas/exchange/requests.d.ts +284 -284
- package/esm/src/schemas/exchange/requests.js +260 -259
- package/esm/src/schemas/exchange/requests.js.map +1 -0
- package/esm/src/schemas/exchange/responses.d.ts +47 -47
- 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 +3 -3
- 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 +121 -121
- package/esm/src/schemas/info/accounts.js +110 -109
- package/esm/src/schemas/info/accounts.js.map +1 -0
- package/esm/src/schemas/info/assets.d.ts +68 -39
- 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 +25 -8
- 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 +56 -56
- 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 +98 -56
- package/esm/src/schemas/info/requests.d.ts.map +1 -1
- package/esm/src/schemas/info/requests.js +103 -71
- package/esm/src/schemas/info/requests.js.map +1 -0
- package/esm/src/schemas/info/validators.d.ts +44 -23
- 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 +40 -40
- 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 +1 -0
- package/esm/src/schemas/mod.d.ts.map +1 -1
- package/esm/src/schemas/mod.js +2 -0
- package/esm/src/schemas/mod.js.map +1 -0
- package/esm/src/schemas/subscriptions/requests.d.ts +21 -21
- package/esm/src/schemas/subscriptions/requests.js +22 -21
- package/esm/src/schemas/subscriptions/requests.js.map +1 -0
- package/esm/src/schemas/subscriptions/responses.d.ts +192 -192
- package/esm/src/schemas/subscriptions/responses.js +41 -40
- package/esm/src/schemas/subscriptions/responses.js.map +1 -0
- package/esm/src/signing/_signTypedData/ethers.js +1 -0
- package/esm/src/signing/_signTypedData/ethers.js.map +1 -0
- package/esm/src/signing/_signTypedData/mod.js +1 -0
- package/esm/src/signing/_signTypedData/mod.js.map +1 -0
- package/esm/src/signing/_signTypedData/private_key.js +1 -0
- package/esm/src/signing/_signTypedData/private_key.js.map +1 -0
- package/esm/src/signing/_signTypedData/viem.js +1 -0
- package/esm/src/signing/_signTypedData/viem.js.map +1 -0
- package/esm/src/signing/mod.js +1 -0
- package/esm/src/signing/mod.js.map +1 -0
- package/esm/src/transports/base.d.ts +2 -2
- package/esm/src/transports/base.d.ts.map +1 -1
- package/esm/src/transports/base.js +1 -0
- 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 +1 -1
- package/script/mod.js +1 -0
- package/script/mod.js.map +1 -0
- package/script/src/clients/exchange.d.ts +0 -7
- package/script/src/clients/exchange.d.ts.map +1 -1
- package/script/src/clients/exchange.js +4 -5
- package/script/src/clients/exchange.js.map +1 -0
- package/script/src/clients/info.d.ts +64 -2
- package/script/src/clients/info.d.ts.map +1 -1
- package/script/src/clients/info.js +76 -0
- package/script/src/clients/info.js.map +1 -0
- package/script/src/clients/multiSign.js +2 -1
- 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/errors.js +1 -0
- package/script/src/errors.js.map +1 -0
- package/script/src/schemas/_base.d.ts +6 -2
- package/script/src/schemas/_base.d.ts.map +1 -1
- package/script/src/schemas/_base.js +5 -2
- package/script/src/schemas/_base.js.map +1 -0
- package/script/src/schemas/exchange/requests.d.ts +284 -284
- package/script/src/schemas/exchange/requests.js +259 -258
- package/script/src/schemas/exchange/requests.js.map +1 -0
- package/script/src/schemas/exchange/responses.d.ts +47 -47
- 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 +3 -3
- 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 +121 -121
- package/script/src/schemas/info/accounts.js +109 -108
- package/script/src/schemas/info/accounts.js.map +1 -0
- package/script/src/schemas/info/assets.d.ts +68 -39
- 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 +25 -8
- 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 +56 -56
- 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 +98 -56
- package/script/src/schemas/info/requests.d.ts.map +1 -1
- package/script/src/schemas/info/requests.js +103 -71
- package/script/src/schemas/info/requests.js.map +1 -0
- package/script/src/schemas/info/validators.d.ts +44 -23
- 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 +40 -40
- 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 +1 -0
- package/script/src/schemas/mod.d.ts.map +1 -1
- package/script/src/schemas/mod.js +4 -1
- package/script/src/schemas/mod.js.map +1 -0
- package/script/src/schemas/subscriptions/requests.d.ts +21 -21
- package/script/src/schemas/subscriptions/requests.js +22 -21
- package/script/src/schemas/subscriptions/requests.js.map +1 -0
- package/script/src/schemas/subscriptions/responses.d.ts +192 -192
- package/script/src/schemas/subscriptions/responses.js +40 -39
- package/script/src/schemas/subscriptions/responses.js.map +1 -0
- package/script/src/signing/_signTypedData/ethers.js +1 -0
- package/script/src/signing/_signTypedData/ethers.js.map +1 -0
- package/script/src/signing/_signTypedData/mod.js +1 -0
- package/script/src/signing/_signTypedData/mod.js.map +1 -0
- package/script/src/signing/_signTypedData/private_key.js +1 -0
- package/script/src/signing/_signTypedData/private_key.js.map +1 -0
- package/script/src/signing/_signTypedData/viem.js +1 -0
- package/script/src/signing/_signTypedData/viem.js.map +1 -0
- package/script/src/signing/mod.js +1 -0
- package/script/src/signing/mod.js.map +1 -0
- package/script/src/transports/base.d.ts +2 -2
- package/script/src/transports/base.d.ts.map +1 -1
- package/script/src/transports/base.js +1 -0
- 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/mod.ts +28 -0
- package/src/src/clients/exchange.ts +2246 -0
- package/src/src/clients/info.ts +2076 -0
- package/src/src/clients/multiSign.ts +183 -0
- package/src/src/clients/subscription.ts +841 -0
- package/src/src/errors.ts +7 -0
- package/src/src/schemas/_base.ts +43 -0
- package/src/src/schemas/exchange/requests.ts +3057 -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 +1490 -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 +1369 -0
- package/src/src/schemas/info/validators.ts +299 -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 +504 -0
- package/src/src/schemas/subscriptions/responses.ts +576 -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 +229 -0
- package/src/src/signing/_signTypedData/viem.ts +55 -0
- package/src/src/signing/mod.ts +572 -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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
/** Active perpetual asset context. */
|
|
3
|
-
export declare const WsActiveAssetCtx: v.SchemaWithPipe<readonly [v.
|
|
3
|
+
export declare const WsActiveAssetCtx: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
4
4
|
/** Asset symbol (e.g., BTC). */
|
|
5
5
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol (e.g., BTC).">]>;
|
|
6
6
|
/** Context information for the perpetual asset. */
|
|
7
|
-
readonly ctx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.
|
|
7
|
+
readonly ctx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
8
8
|
readonly funding: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding rate.">]>;
|
|
9
9
|
readonly openInterest: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total open interest.">]>;
|
|
10
10
|
readonly premium: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Premium price.">]>;
|
|
@@ -55,11 +55,11 @@ export declare const WsActiveAssetCtx: v.SchemaWithPipe<readonly [v.StrictObject
|
|
|
55
55
|
}, "Active perpetual asset context.">]>;
|
|
56
56
|
export type WsActiveAssetCtx = v.InferOutput<typeof WsActiveAssetCtx>;
|
|
57
57
|
/** Active spot asset context. */
|
|
58
|
-
export declare const WsActiveSpotAssetCtx: v.SchemaWithPipe<readonly [v.
|
|
58
|
+
export declare const WsActiveSpotAssetCtx: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
59
59
|
/** Asset symbol (e.g., BTC). */
|
|
60
60
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol (e.g., BTC).">]>;
|
|
61
61
|
/** Context information for the spot asset. */
|
|
62
|
-
readonly ctx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.
|
|
62
|
+
readonly ctx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
63
63
|
readonly circulatingSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Circulating supply.">]>;
|
|
64
64
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
65
65
|
readonly totalSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total supply.">]>;
|
|
@@ -102,7 +102,7 @@ export declare const WsActiveSpotAssetCtx: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
102
102
|
}, "Active spot asset context.">]>;
|
|
103
103
|
export type WsActiveSpotAssetCtx = v.InferOutput<typeof WsActiveSpotAssetCtx>;
|
|
104
104
|
/** Mid prices for all assets. */
|
|
105
|
-
export declare const WsAllMids: v.SchemaWithPipe<readonly [v.
|
|
105
|
+
export declare const WsAllMids: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
106
106
|
/** Mapping of coin symbols to mid prices. */
|
|
107
107
|
readonly mids: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<{
|
|
108
108
|
[x: string]: string;
|
|
@@ -116,11 +116,11 @@ export declare const WsAllMids: v.SchemaWithPipe<readonly [v.StrictObjectSchema<
|
|
|
116
116
|
}, "Mid prices for all assets.">]>;
|
|
117
117
|
export type WsAllMids = v.InferOutput<typeof WsAllMids>;
|
|
118
118
|
/** Asset contexts for all perpetual assets on a specified DEX. */
|
|
119
|
-
export declare const WsAssetCtxs: v.SchemaWithPipe<readonly [v.
|
|
119
|
+
export declare const WsAssetCtxs: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
120
120
|
/** DEX name (empty string for main dex). */
|
|
121
121
|
readonly dex: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "DEX name (empty string for main dex).">]>;
|
|
122
122
|
/** Array of context information for each perpetual asset. */
|
|
123
|
-
readonly ctxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
123
|
+
readonly ctxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
124
124
|
readonly funding: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding rate.">]>;
|
|
125
125
|
readonly openInterest: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total open interest.">]>;
|
|
126
126
|
readonly premium: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Premium price.">]>;
|
|
@@ -171,13 +171,13 @@ export declare const WsAssetCtxs: v.SchemaWithPipe<readonly [v.StrictObjectSchem
|
|
|
171
171
|
}, "Asset contexts for all perpetual assets on a specified DEX.">]>;
|
|
172
172
|
export type WsAssetCtxs = v.InferOutput<typeof WsAssetCtxs>;
|
|
173
173
|
/** Best Bid and Offer. */
|
|
174
|
-
export declare const WsBbo: v.SchemaWithPipe<readonly [v.
|
|
174
|
+
export declare const WsBbo: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
175
175
|
/** Asset symbol (e.g., BTC). */
|
|
176
176
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol (e.g., BTC).">]>;
|
|
177
177
|
/** Time of the BBO update (in ms since epoch). */
|
|
178
178
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Time of the BBO update (in ms since epoch).">]>;
|
|
179
179
|
/** Best bid and offer tuple [bid, offer], either can be undefined if unavailable. */
|
|
180
|
-
readonly bbo: v.SchemaWithPipe<readonly [v.
|
|
180
|
+
readonly bbo: v.SchemaWithPipe<readonly [v.TupleSchema<[v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
181
181
|
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
182
182
|
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total size.">]>;
|
|
183
183
|
readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
|
|
@@ -185,7 +185,7 @@ export declare const WsBbo: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
185
185
|
px: string;
|
|
186
186
|
sz: string;
|
|
187
187
|
n: number;
|
|
188
|
-
}, "Order book level.">]>, v.UndefinedSchema<undefined>], undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.
|
|
188
|
+
}, "Order book level.">]>, v.UndefinedSchema<undefined>], undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
189
189
|
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
190
190
|
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total size.">]>;
|
|
191
191
|
readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
|
|
@@ -217,13 +217,13 @@ export declare const WsBbo: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
217
217
|
}, "Best Bid and Offer.">]>;
|
|
218
218
|
export type WsBbo = v.InferOutput<typeof WsBbo>;
|
|
219
219
|
/** Block details. */
|
|
220
|
-
export declare const WsBlockDetails: v.SchemaWithPipe<readonly [Omit<v.
|
|
220
|
+
export declare const WsBlockDetails: v.SchemaWithPipe<readonly [Omit<v.ObjectSchema<{
|
|
221
221
|
readonly blockTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block creation timestamp.">]>;
|
|
222
222
|
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}`, "Block hash.">]>;
|
|
223
223
|
readonly height: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block height in chain.">]>;
|
|
224
224
|
readonly numTxs: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Total transactions in block.">]>;
|
|
225
225
|
readonly proposer: 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}`, "Block proposer address.">]>;
|
|
226
|
-
readonly txs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
226
|
+
readonly txs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
227
227
|
readonly action: v.SchemaWithPipe<readonly [v.LooseObjectSchema<{
|
|
228
228
|
readonly type: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Action type.">]>;
|
|
229
229
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -266,7 +266,7 @@ export declare const WsBlockDetails: v.SchemaWithPipe<readonly [Omit<v.StrictObj
|
|
|
266
266
|
readonly height: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block height in chain.">]>;
|
|
267
267
|
readonly numTxs: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Total transactions in block.">]>;
|
|
268
268
|
readonly proposer: 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}`, "Block proposer address.">]>;
|
|
269
|
-
readonly txs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
269
|
+
readonly txs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
270
270
|
readonly action: v.SchemaWithPipe<readonly [v.LooseObjectSchema<{
|
|
271
271
|
readonly type: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Action type.">]>;
|
|
272
272
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -322,7 +322,7 @@ export declare const WsBlockDetails: v.SchemaWithPipe<readonly [Omit<v.StrictObj
|
|
|
322
322
|
blockTime: number;
|
|
323
323
|
numTxs: number;
|
|
324
324
|
proposer: `0x${string}`;
|
|
325
|
-
}, v.
|
|
325
|
+
}, v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.LengthIssue<`0x${string}`, 66> | v.LengthIssue<`0x${string}`, 42>>;
|
|
326
326
|
readonly '~types'?: {
|
|
327
327
|
readonly input: {
|
|
328
328
|
height: number;
|
|
@@ -338,7 +338,7 @@ export declare const WsBlockDetails: v.SchemaWithPipe<readonly [Omit<v.StrictObj
|
|
|
338
338
|
numTxs: number;
|
|
339
339
|
proposer: `0x${string}`;
|
|
340
340
|
};
|
|
341
|
-
readonly issue: v.
|
|
341
|
+
readonly issue: v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.LengthIssue<`0x${string}`, 66> | v.LengthIssue<`0x${string}`, 42>;
|
|
342
342
|
} | undefined;
|
|
343
343
|
}, v.DescriptionAction<{
|
|
344
344
|
height: number;
|
|
@@ -349,14 +349,14 @@ export declare const WsBlockDetails: v.SchemaWithPipe<readonly [Omit<v.StrictObj
|
|
|
349
349
|
}, "Block details.">]>;
|
|
350
350
|
export type WsBlockDetails = v.InferOutput<typeof WsBlockDetails>;
|
|
351
351
|
/** Clearinghouse state for a specific user. */
|
|
352
|
-
export declare const WsClearinghouseState: v.SchemaWithPipe<readonly [v.
|
|
352
|
+
export declare const WsClearinghouseState: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
353
353
|
/** DEX name (empty string for main dex). */
|
|
354
354
|
readonly dex: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "DEX name (empty string for main dex).">]>;
|
|
355
355
|
/** User address. */
|
|
356
356
|
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.">]>;
|
|
357
357
|
/** Perpetual clearinghouse state. */
|
|
358
|
-
readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.
|
|
359
|
-
readonly marginSummary: v.SchemaWithPipe<readonly [v.
|
|
358
|
+
readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
359
|
+
readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
360
360
|
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.">]>;
|
|
361
361
|
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.">]>;
|
|
362
362
|
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.">]>;
|
|
@@ -367,7 +367,7 @@ export declare const WsClearinghouseState: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
367
367
|
totalRawUsd: string;
|
|
368
368
|
totalMarginUsed: string;
|
|
369
369
|
}, "Margin summary details.">]>;
|
|
370
|
-
readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.
|
|
370
|
+
readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
371
371
|
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.">]>;
|
|
372
372
|
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.">]>;
|
|
373
373
|
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.">]>;
|
|
@@ -380,16 +380,16 @@ export declare const WsClearinghouseState: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
380
380
|
}, "Cross-margin summary details.">]>;
|
|
381
381
|
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.">]>;
|
|
382
382
|
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.">]>;
|
|
383
|
-
readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
383
|
+
readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
384
384
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
|
|
385
|
-
readonly position: v.SchemaWithPipe<readonly [v.
|
|
385
|
+
readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
386
386
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
387
387
|
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.">]>;
|
|
388
|
-
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
388
|
+
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
389
389
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
|
|
390
390
|
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.">]>;
|
|
391
391
|
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$).">]>;
|
|
392
|
-
}, undefined>, v.
|
|
392
|
+
}, undefined>, v.ObjectSchema<{
|
|
393
393
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
|
|
394
394
|
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.">]>;
|
|
395
395
|
}, undefined>], undefined>, v.DescriptionAction<{
|
|
@@ -407,7 +407,7 @@ export declare const WsClearinghouseState: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
407
407
|
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.">]>;
|
|
408
408
|
readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
|
|
409
409
|
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.">]>;
|
|
410
|
-
readonly cumFunding: v.SchemaWithPipe<readonly [v.
|
|
410
|
+
readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
411
411
|
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.">]>;
|
|
412
412
|
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.">]>;
|
|
413
413
|
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.">]>;
|
|
@@ -631,7 +631,7 @@ export declare const WsClearinghouseState: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
631
631
|
}, "Clearinghouse state for a specific user.">]>;
|
|
632
632
|
export type WsClearinghouseState = v.InferOutput<typeof WsClearinghouseState>;
|
|
633
633
|
/** User notifications. */
|
|
634
|
-
export declare const WsNotification: v.SchemaWithPipe<readonly [v.
|
|
634
|
+
export declare const WsNotification: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
635
635
|
/** Notification content. */
|
|
636
636
|
readonly notification: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Notification content.">]>;
|
|
637
637
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -639,13 +639,13 @@ export declare const WsNotification: v.SchemaWithPipe<readonly [v.StrictObjectSc
|
|
|
639
639
|
}, "User notifications.">]>;
|
|
640
640
|
export type WsNotification = v.InferOutput<typeof WsNotification>;
|
|
641
641
|
/** Open orders for a specific user. */
|
|
642
|
-
export declare const WsOpenOrders: v.SchemaWithPipe<readonly [v.
|
|
642
|
+
export declare const WsOpenOrders: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
643
643
|
/** DEX name (empty string for main dex). */
|
|
644
644
|
readonly dex: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "DEX name (empty string for main dex).">]>;
|
|
645
645
|
/** User address. */
|
|
646
646
|
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.">]>;
|
|
647
647
|
/** Array of open orders. */
|
|
648
|
-
readonly orders: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
648
|
+
readonly orders: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
649
649
|
readonly triggerCondition: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Condition for triggering the order.">]>;
|
|
650
650
|
readonly isTrigger: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a trigger order.">]>;
|
|
651
651
|
readonly triggerPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Trigger price.">]>;
|
|
@@ -657,8 +657,8 @@ export declare const WsOpenOrders: v.SchemaWithPipe<readonly [v.StrictObjectSche
|
|
|
657
657
|
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.">]>;
|
|
658
658
|
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.">]>;
|
|
659
659
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
660
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
661
660
|
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).">]>;
|
|
661
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
662
662
|
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
663
663
|
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).">]>;
|
|
664
664
|
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
@@ -674,8 +674,8 @@ export declare const WsOpenOrders: v.SchemaWithPipe<readonly [v.StrictObjectSche
|
|
|
674
674
|
cloid: `0x${string}` | null;
|
|
675
675
|
oid: number;
|
|
676
676
|
coin: string;
|
|
677
|
-
sz: string;
|
|
678
677
|
side: "B" | "A";
|
|
678
|
+
sz: string;
|
|
679
679
|
limitPx: string;
|
|
680
680
|
timestamp: number;
|
|
681
681
|
origSz: string;
|
|
@@ -691,8 +691,8 @@ export declare const WsOpenOrders: v.SchemaWithPipe<readonly [v.StrictObjectSche
|
|
|
691
691
|
cloid: `0x${string}` | null;
|
|
692
692
|
oid: number;
|
|
693
693
|
coin: string;
|
|
694
|
-
sz: string;
|
|
695
694
|
side: "B" | "A";
|
|
695
|
+
sz: string;
|
|
696
696
|
limitPx: string;
|
|
697
697
|
timestamp: number;
|
|
698
698
|
origSz: string;
|
|
@@ -712,8 +712,8 @@ export declare const WsOpenOrders: v.SchemaWithPipe<readonly [v.StrictObjectSche
|
|
|
712
712
|
cloid: `0x${string}` | null;
|
|
713
713
|
oid: number;
|
|
714
714
|
coin: string;
|
|
715
|
-
sz: string;
|
|
716
715
|
side: "B" | "A";
|
|
716
|
+
sz: string;
|
|
717
717
|
limitPx: string;
|
|
718
718
|
timestamp: number;
|
|
719
719
|
origSz: string;
|
|
@@ -721,7 +721,7 @@ export declare const WsOpenOrders: v.SchemaWithPipe<readonly [v.StrictObjectSche
|
|
|
721
721
|
}, "Open orders for a specific user.">]>;
|
|
722
722
|
export type WsOpenOrders = v.InferOutput<typeof WsOpenOrders>;
|
|
723
723
|
/** Trade information. */
|
|
724
|
-
export declare const WsTrade: v.SchemaWithPipe<readonly [v.
|
|
724
|
+
export declare const WsTrade: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
725
725
|
/** Asset symbol (e.g., BTC). */
|
|
726
726
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol (e.g., BTC).">]>;
|
|
727
727
|
/** Trade side ("B" = Bid/Buy, "A" = Ask/Sell). */
|
|
@@ -737,7 +737,7 @@ export declare const WsTrade: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
737
737
|
/** Trade ID. */
|
|
738
738
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Trade ID.">]>;
|
|
739
739
|
/** Addresses of users involved in the trade [Maker, Taker]. */
|
|
740
|
-
readonly users: v.SchemaWithPipe<readonly [v.
|
|
740
|
+
readonly users: v.SchemaWithPipe<readonly [v.TupleSchema<[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.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.DescriptionAction<[`0x${string}`, `0x${string}`], "Addresses of users involved in the trade [Maker, Taker].">]>;
|
|
741
741
|
}, undefined>, v.DescriptionAction<{
|
|
742
742
|
coin: string;
|
|
743
743
|
side: "B" | "A";
|
|
@@ -750,9 +750,9 @@ export declare const WsTrade: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
|
750
750
|
}, "Trade information.">]>;
|
|
751
751
|
export type WsTrade = v.InferOutput<typeof WsTrade>;
|
|
752
752
|
/** User fill event. */
|
|
753
|
-
export declare const WsUserEventFill: v.SchemaWithPipe<readonly [v.
|
|
753
|
+
export declare const WsUserEventFill: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
754
754
|
/** Array of trade fills. */
|
|
755
|
-
readonly fills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
755
|
+
readonly fills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
756
756
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
757
757
|
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
758
758
|
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
@@ -767,7 +767,7 @@ export declare const WsUserEventFill: v.SchemaWithPipe<readonly [v.StrictObjectS
|
|
|
767
767
|
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
768
768
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
769
769
|
readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
|
|
770
|
-
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
770
|
+
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
771
771
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
772
772
|
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
773
773
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
@@ -854,9 +854,9 @@ export declare const WsUserEventFill: v.SchemaWithPipe<readonly [v.StrictObjectS
|
|
|
854
854
|
}, "User fill event.">]>;
|
|
855
855
|
export type WsUserEventFill = v.InferOutput<typeof WsUserEventFill>;
|
|
856
856
|
/** User funding event. */
|
|
857
|
-
export declare const WsUserEventFunding: v.SchemaWithPipe<readonly [v.
|
|
857
|
+
export declare const WsUserEventFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
858
858
|
/** Funding update details. */
|
|
859
|
-
readonly funding: v.SchemaWithPipe<readonly [Omit<v.
|
|
859
|
+
readonly funding: v.SchemaWithPipe<readonly [Omit<v.ObjectSchema<{
|
|
860
860
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"funding", undefined>, v.DescriptionAction<"funding", "Update type.">]>;
|
|
861
861
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
862
862
|
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.">]>;
|
|
@@ -891,7 +891,7 @@ export declare const WsUserEventFunding: v.SchemaWithPipe<readonly [v.StrictObje
|
|
|
891
891
|
usdc: string;
|
|
892
892
|
fundingRate: string;
|
|
893
893
|
nSamples: number | null;
|
|
894
|
-
}, v.
|
|
894
|
+
}, v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>>;
|
|
895
895
|
readonly '~types'?: {
|
|
896
896
|
readonly input: {
|
|
897
897
|
coin: string;
|
|
@@ -907,7 +907,7 @@ export declare const WsUserEventFunding: v.SchemaWithPipe<readonly [v.StrictObje
|
|
|
907
907
|
fundingRate: string;
|
|
908
908
|
nSamples: number | null;
|
|
909
909
|
};
|
|
910
|
-
readonly issue: v.
|
|
910
|
+
readonly issue: v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>;
|
|
911
911
|
} | undefined;
|
|
912
912
|
}, v.DescriptionAction<{
|
|
913
913
|
coin: string;
|
|
@@ -927,9 +927,9 @@ export declare const WsUserEventFunding: v.SchemaWithPipe<readonly [v.StrictObje
|
|
|
927
927
|
}, "User funding event.">]>;
|
|
928
928
|
export type WsUserEventFunding = v.InferOutput<typeof WsUserEventFunding>;
|
|
929
929
|
/** User liquidation event. */
|
|
930
|
-
export declare const WsUserEventLiquidation: v.SchemaWithPipe<readonly [v.
|
|
930
|
+
export declare const WsUserEventLiquidation: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
931
931
|
/** Liquidation event details. */
|
|
932
|
-
readonly liquidation: v.SchemaWithPipe<readonly [v.
|
|
932
|
+
readonly liquidation: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
933
933
|
/** Unique liquidation ID. */
|
|
934
934
|
readonly lid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique liquidation ID.">]>;
|
|
935
935
|
/** Address of the liquidator. */
|
|
@@ -958,9 +958,9 @@ export declare const WsUserEventLiquidation: v.SchemaWithPipe<readonly [v.Strict
|
|
|
958
958
|
}, "User liquidation event.">]>;
|
|
959
959
|
export type WsUserEventLiquidation = v.InferOutput<typeof WsUserEventLiquidation>;
|
|
960
960
|
/** Non-user initiated order cancellation event. */
|
|
961
|
-
export declare const WsUserEventNonUserCancel: v.SchemaWithPipe<readonly [v.
|
|
961
|
+
export declare const WsUserEventNonUserCancel: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
962
962
|
/** Array of cancelled orders not initiated by the user. */
|
|
963
|
-
readonly nonUserCancel: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
963
|
+
readonly nonUserCancel: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
964
964
|
/** Asset symbol (e.g., BTC). */
|
|
965
965
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol (e.g., BTC).">]>;
|
|
966
966
|
/** Order ID. */
|
|
@@ -977,11 +977,11 @@ export declare const WsUserEventNonUserCancel: v.SchemaWithPipe<readonly [v.Stri
|
|
|
977
977
|
}, "Non-user initiated order cancellation event.">]>;
|
|
978
978
|
export type WsUserEventNonUserCancel = v.InferOutput<typeof WsUserEventNonUserCancel>;
|
|
979
979
|
/** User TWAP history event. */
|
|
980
|
-
export declare const WsUserEventTwapHistory: v.SchemaWithPipe<readonly [v.
|
|
980
|
+
export declare const WsUserEventTwapHistory: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
981
981
|
/** Array of historical TWAP fills. */
|
|
982
|
-
readonly twapHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
982
|
+
readonly twapHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
983
983
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Creation time of the history record (in seconds since epoch).">]>;
|
|
984
|
-
readonly state: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.
|
|
984
|
+
readonly state: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
985
985
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
986
986
|
readonly executedNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed notional value.">]>;
|
|
987
987
|
readonly executedSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed size.">]>;
|
|
@@ -1015,9 +1015,9 @@ export declare const WsUserEventTwapHistory: v.SchemaWithPipe<readonly [v.Strict
|
|
|
1015
1015
|
timestamp: number;
|
|
1016
1016
|
user: `0x${string}`;
|
|
1017
1017
|
}, "State of the TWAP order.">]>;
|
|
1018
|
-
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
1018
|
+
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
1019
1019
|
readonly status: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"finished", undefined>, v.LiteralSchema<"activated", undefined>, v.LiteralSchema<"terminated", undefined>], undefined>, v.DescriptionAction<"finished" | "activated" | "terminated", "Status of the TWAP order.">]>;
|
|
1020
|
-
}, undefined>, v.
|
|
1020
|
+
}, undefined>, v.ObjectSchema<{
|
|
1021
1021
|
readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"error", undefined>, v.DescriptionAction<"error", "Status of the TWAP order.">]>;
|
|
1022
1022
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
|
|
1023
1023
|
}, undefined>], undefined>, v.DescriptionAction<{
|
|
@@ -1097,10 +1097,10 @@ export declare const WsUserEventTwapHistory: v.SchemaWithPipe<readonly [v.Strict
|
|
|
1097
1097
|
}, "User TWAP history event.">]>;
|
|
1098
1098
|
export type WsUserEventTwapHistory = v.InferOutput<typeof WsUserEventTwapHistory>;
|
|
1099
1099
|
/** User TWAP slice fills event. */
|
|
1100
|
-
export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.
|
|
1100
|
+
export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1101
1101
|
/** Array of TWAP slice fills. */
|
|
1102
|
-
readonly twapSliceFills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
1103
|
-
readonly fill: v.SchemaWithPipe<readonly [Omit<v.
|
|
1102
|
+
readonly twapSliceFills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1103
|
+
readonly fill: v.SchemaWithPipe<readonly [Omit<v.ObjectSchema<{
|
|
1104
1104
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
1105
1105
|
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
1106
1106
|
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
@@ -1115,7 +1115,7 @@ export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.Str
|
|
|
1115
1115
|
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
1116
1116
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
1117
1117
|
readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
|
|
1118
|
-
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
1118
|
+
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1119
1119
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
1120
1120
|
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
1121
1121
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
@@ -1146,7 +1146,7 @@ export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.Str
|
|
|
1146
1146
|
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
1147
1147
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
1148
1148
|
readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
|
|
1149
|
-
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
1149
|
+
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1150
1150
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
1151
1151
|
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
1152
1152
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
@@ -1170,14 +1170,14 @@ export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.Str
|
|
|
1170
1170
|
hash: string;
|
|
1171
1171
|
fee: string;
|
|
1172
1172
|
feeToken: string;
|
|
1173
|
+
side: "B" | "A";
|
|
1173
1174
|
px: string;
|
|
1174
1175
|
sz: string;
|
|
1175
|
-
|
|
1176
|
+
tid: number;
|
|
1176
1177
|
startPosition: string;
|
|
1177
1178
|
dir: string;
|
|
1178
1179
|
closedPnl: string;
|
|
1179
1180
|
crossed: boolean;
|
|
1180
|
-
tid: number;
|
|
1181
1181
|
}, {
|
|
1182
1182
|
time: number;
|
|
1183
1183
|
oid: number;
|
|
@@ -1186,14 +1186,14 @@ export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.Str
|
|
|
1186
1186
|
hash: `0x${string}`;
|
|
1187
1187
|
fee: string;
|
|
1188
1188
|
feeToken: string;
|
|
1189
|
+
side: "B" | "A";
|
|
1189
1190
|
px: string;
|
|
1190
1191
|
sz: string;
|
|
1191
|
-
|
|
1192
|
+
tid: number;
|
|
1192
1193
|
startPosition: string;
|
|
1193
1194
|
dir: string;
|
|
1194
1195
|
closedPnl: string;
|
|
1195
1196
|
crossed: boolean;
|
|
1196
|
-
tid: number;
|
|
1197
1197
|
}>;
|
|
1198
1198
|
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
1199
1199
|
time: number;
|
|
@@ -1203,15 +1203,15 @@ export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.Str
|
|
|
1203
1203
|
hash: `0x${string}`;
|
|
1204
1204
|
fee: string;
|
|
1205
1205
|
feeToken: string;
|
|
1206
|
+
side: "B" | "A";
|
|
1206
1207
|
px: string;
|
|
1207
1208
|
sz: string;
|
|
1208
|
-
|
|
1209
|
+
tid: number;
|
|
1209
1210
|
startPosition: string;
|
|
1210
1211
|
dir: string;
|
|
1211
1212
|
closedPnl: string;
|
|
1212
1213
|
crossed: boolean;
|
|
1213
|
-
|
|
1214
|
-
}, v.StringIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.LengthIssue<`0x${string}`, 66> | v.LiteralIssue | v.UnionIssue<v.LiteralIssue> | v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.BooleanIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>>;
|
|
1214
|
+
}, v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.LengthIssue<`0x${string}`, 66> | v.LiteralIssue | v.UnionIssue<v.LiteralIssue> | v.BooleanIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>>;
|
|
1215
1215
|
readonly '~types'?: {
|
|
1216
1216
|
readonly input: {
|
|
1217
1217
|
time: number;
|
|
@@ -1221,14 +1221,14 @@ export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.Str
|
|
|
1221
1221
|
hash: string;
|
|
1222
1222
|
fee: string;
|
|
1223
1223
|
feeToken: string;
|
|
1224
|
+
side: "B" | "A";
|
|
1224
1225
|
px: string;
|
|
1225
1226
|
sz: string;
|
|
1226
|
-
|
|
1227
|
+
tid: number;
|
|
1227
1228
|
startPosition: string;
|
|
1228
1229
|
dir: string;
|
|
1229
1230
|
closedPnl: string;
|
|
1230
1231
|
crossed: boolean;
|
|
1231
|
-
tid: number;
|
|
1232
1232
|
};
|
|
1233
1233
|
readonly output: {
|
|
1234
1234
|
time: number;
|
|
@@ -1238,16 +1238,16 @@ export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.Str
|
|
|
1238
1238
|
hash: `0x${string}`;
|
|
1239
1239
|
fee: string;
|
|
1240
1240
|
feeToken: string;
|
|
1241
|
+
side: "B" | "A";
|
|
1241
1242
|
px: string;
|
|
1242
1243
|
sz: string;
|
|
1243
|
-
|
|
1244
|
+
tid: number;
|
|
1244
1245
|
startPosition: string;
|
|
1245
1246
|
dir: string;
|
|
1246
1247
|
closedPnl: string;
|
|
1247
1248
|
crossed: boolean;
|
|
1248
|
-
tid: number;
|
|
1249
1249
|
};
|
|
1250
|
-
readonly issue: v.StringIssue | v.RegexIssue<string> | v.
|
|
1250
|
+
readonly issue: v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.LengthIssue<`0x${string}`, 66> | v.LiteralIssue | v.UnionIssue<v.LiteralIssue> | v.BooleanIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>;
|
|
1251
1251
|
} | undefined;
|
|
1252
1252
|
}, v.DescriptionAction<{
|
|
1253
1253
|
time: number;
|
|
@@ -1257,14 +1257,14 @@ export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.Str
|
|
|
1257
1257
|
hash: `0x${string}`;
|
|
1258
1258
|
fee: string;
|
|
1259
1259
|
feeToken: string;
|
|
1260
|
+
side: "B" | "A";
|
|
1260
1261
|
px: string;
|
|
1261
1262
|
sz: string;
|
|
1262
|
-
|
|
1263
|
+
tid: number;
|
|
1263
1264
|
startPosition: string;
|
|
1264
1265
|
dir: string;
|
|
1265
1266
|
closedPnl: string;
|
|
1266
1267
|
crossed: boolean;
|
|
1267
|
-
tid: number;
|
|
1268
1268
|
}, "Fill details for the TWAP slice.">]>;
|
|
1269
1269
|
readonly twapId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "ID of the TWAP.">]>;
|
|
1270
1270
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -1276,14 +1276,14 @@ export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.Str
|
|
|
1276
1276
|
hash: `0x${string}`;
|
|
1277
1277
|
fee: string;
|
|
1278
1278
|
feeToken: string;
|
|
1279
|
+
side: "B" | "A";
|
|
1279
1280
|
px: string;
|
|
1280
1281
|
sz: string;
|
|
1281
|
-
|
|
1282
|
+
tid: number;
|
|
1282
1283
|
startPosition: string;
|
|
1283
1284
|
dir: string;
|
|
1284
1285
|
closedPnl: string;
|
|
1285
1286
|
crossed: boolean;
|
|
1286
|
-
tid: number;
|
|
1287
1287
|
};
|
|
1288
1288
|
twapId: number;
|
|
1289
1289
|
}, "TWAP slice fill details.">]>, undefined>, v.DescriptionAction<{
|
|
@@ -1295,14 +1295,14 @@ export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.Str
|
|
|
1295
1295
|
hash: `0x${string}`;
|
|
1296
1296
|
fee: string;
|
|
1297
1297
|
feeToken: string;
|
|
1298
|
+
side: "B" | "A";
|
|
1298
1299
|
px: string;
|
|
1299
1300
|
sz: string;
|
|
1300
|
-
|
|
1301
|
+
tid: number;
|
|
1301
1302
|
startPosition: string;
|
|
1302
1303
|
dir: string;
|
|
1303
1304
|
closedPnl: string;
|
|
1304
1305
|
crossed: boolean;
|
|
1305
|
-
tid: number;
|
|
1306
1306
|
};
|
|
1307
1307
|
twapId: number;
|
|
1308
1308
|
}[], "Array of TWAP slice fills.">]>;
|
|
@@ -1316,23 +1316,23 @@ export declare const WsUserEventTwapSliceFills: v.SchemaWithPipe<readonly [v.Str
|
|
|
1316
1316
|
hash: `0x${string}`;
|
|
1317
1317
|
fee: string;
|
|
1318
1318
|
feeToken: string;
|
|
1319
|
+
side: "B" | "A";
|
|
1319
1320
|
px: string;
|
|
1320
1321
|
sz: string;
|
|
1321
|
-
|
|
1322
|
+
tid: number;
|
|
1322
1323
|
startPosition: string;
|
|
1323
1324
|
dir: string;
|
|
1324
1325
|
closedPnl: string;
|
|
1325
1326
|
crossed: boolean;
|
|
1326
|
-
tid: number;
|
|
1327
1327
|
};
|
|
1328
1328
|
twapId: number;
|
|
1329
1329
|
}[];
|
|
1330
1330
|
}, "User TWAP slice fills event.">]>;
|
|
1331
1331
|
export type WsUserEventTwapSliceFills = v.InferOutput<typeof WsUserEventTwapSliceFills>;
|
|
1332
1332
|
/** User event. */
|
|
1333
|
-
export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.
|
|
1333
|
+
export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1334
1334
|
/** Array of trade fills. */
|
|
1335
|
-
readonly fills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
1335
|
+
readonly fills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1336
1336
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
1337
1337
|
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
1338
1338
|
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
@@ -1347,7 +1347,7 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1347
1347
|
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
1348
1348
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
1349
1349
|
readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
|
|
1350
|
-
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
1350
|
+
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1351
1351
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
1352
1352
|
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
1353
1353
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
@@ -1431,9 +1431,9 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1431
1431
|
feeToken: string;
|
|
1432
1432
|
twapId: number | null;
|
|
1433
1433
|
}[];
|
|
1434
|
-
}, "User fill event.">]>, v.SchemaWithPipe<readonly [v.
|
|
1434
|
+
}, "User fill event.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1435
1435
|
/** Funding update details. */
|
|
1436
|
-
readonly funding: v.SchemaWithPipe<readonly [Omit<v.
|
|
1436
|
+
readonly funding: v.SchemaWithPipe<readonly [Omit<v.ObjectSchema<{
|
|
1437
1437
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"funding", undefined>, v.DescriptionAction<"funding", "Update type.">]>;
|
|
1438
1438
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
1439
1439
|
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.">]>;
|
|
@@ -1468,7 +1468,7 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1468
1468
|
usdc: string;
|
|
1469
1469
|
fundingRate: string;
|
|
1470
1470
|
nSamples: number | null;
|
|
1471
|
-
}, v.
|
|
1471
|
+
}, v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>>;
|
|
1472
1472
|
readonly '~types'?: {
|
|
1473
1473
|
readonly input: {
|
|
1474
1474
|
coin: string;
|
|
@@ -1484,7 +1484,7 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1484
1484
|
fundingRate: string;
|
|
1485
1485
|
nSamples: number | null;
|
|
1486
1486
|
};
|
|
1487
|
-
readonly issue: v.
|
|
1487
|
+
readonly issue: v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>;
|
|
1488
1488
|
} | undefined;
|
|
1489
1489
|
}, v.DescriptionAction<{
|
|
1490
1490
|
coin: string;
|
|
@@ -1501,9 +1501,9 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1501
1501
|
fundingRate: string;
|
|
1502
1502
|
nSamples: number | null;
|
|
1503
1503
|
};
|
|
1504
|
-
}, "User funding event.">]>, v.SchemaWithPipe<readonly [v.
|
|
1504
|
+
}, "User funding event.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1505
1505
|
/** Liquidation event details. */
|
|
1506
|
-
readonly liquidation: v.SchemaWithPipe<readonly [v.
|
|
1506
|
+
readonly liquidation: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1507
1507
|
/** Unique liquidation ID. */
|
|
1508
1508
|
readonly lid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique liquidation ID.">]>;
|
|
1509
1509
|
/** Address of the liquidator. */
|
|
@@ -1529,9 +1529,9 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1529
1529
|
liquidated_ntl_pos: string;
|
|
1530
1530
|
liquidated_account_value: string;
|
|
1531
1531
|
};
|
|
1532
|
-
}, "User liquidation event.">]>, v.SchemaWithPipe<readonly [v.
|
|
1532
|
+
}, "User liquidation event.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1533
1533
|
/** Array of cancelled orders not initiated by the user. */
|
|
1534
|
-
readonly nonUserCancel: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
1534
|
+
readonly nonUserCancel: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1535
1535
|
/** Asset symbol (e.g., BTC). */
|
|
1536
1536
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol (e.g., BTC).">]>;
|
|
1537
1537
|
/** Order ID. */
|
|
@@ -1545,11 +1545,11 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1545
1545
|
coin: string;
|
|
1546
1546
|
oid: number;
|
|
1547
1547
|
}[];
|
|
1548
|
-
}, "Non-user initiated order cancellation event.">]>, v.SchemaWithPipe<readonly [v.
|
|
1548
|
+
}, "Non-user initiated order cancellation event.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1549
1549
|
/** Array of historical TWAP fills. */
|
|
1550
|
-
readonly twapHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
1550
|
+
readonly twapHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1551
1551
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Creation time of the history record (in seconds since epoch).">]>;
|
|
1552
|
-
readonly state: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.
|
|
1552
|
+
readonly state: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1553
1553
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
1554
1554
|
readonly executedNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed notional value.">]>;
|
|
1555
1555
|
readonly executedSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed size.">]>;
|
|
@@ -1583,9 +1583,9 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1583
1583
|
timestamp: number;
|
|
1584
1584
|
user: `0x${string}`;
|
|
1585
1585
|
}, "State of the TWAP order.">]>;
|
|
1586
|
-
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
1586
|
+
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
1587
1587
|
readonly status: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"finished", undefined>, v.LiteralSchema<"activated", undefined>, v.LiteralSchema<"terminated", undefined>], undefined>, v.DescriptionAction<"finished" | "activated" | "terminated", "Status of the TWAP order.">]>;
|
|
1588
|
-
}, undefined>, v.
|
|
1588
|
+
}, undefined>, v.ObjectSchema<{
|
|
1589
1589
|
readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"error", undefined>, v.DescriptionAction<"error", "Status of the TWAP order.">]>;
|
|
1590
1590
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
|
|
1591
1591
|
}, undefined>], undefined>, v.DescriptionAction<{
|
|
@@ -1662,10 +1662,10 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1662
1662
|
description: string;
|
|
1663
1663
|
};
|
|
1664
1664
|
}[];
|
|
1665
|
-
}, "User TWAP history event.">]>, v.SchemaWithPipe<readonly [v.
|
|
1665
|
+
}, "User TWAP history event.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1666
1666
|
/** Array of TWAP slice fills. */
|
|
1667
|
-
readonly twapSliceFills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
1668
|
-
readonly fill: v.SchemaWithPipe<readonly [Omit<v.
|
|
1667
|
+
readonly twapSliceFills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1668
|
+
readonly fill: v.SchemaWithPipe<readonly [Omit<v.ObjectSchema<{
|
|
1669
1669
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
1670
1670
|
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
1671
1671
|
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
@@ -1680,7 +1680,7 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1680
1680
|
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
1681
1681
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
1682
1682
|
readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
|
|
1683
|
-
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
1683
|
+
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1684
1684
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
1685
1685
|
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
1686
1686
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
@@ -1711,7 +1711,7 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1711
1711
|
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
1712
1712
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
1713
1713
|
readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
|
|
1714
|
-
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
1714
|
+
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1715
1715
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
1716
1716
|
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
1717
1717
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
@@ -1735,14 +1735,14 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1735
1735
|
hash: string;
|
|
1736
1736
|
fee: string;
|
|
1737
1737
|
feeToken: string;
|
|
1738
|
+
side: "B" | "A";
|
|
1738
1739
|
px: string;
|
|
1739
1740
|
sz: string;
|
|
1740
|
-
|
|
1741
|
+
tid: number;
|
|
1741
1742
|
startPosition: string;
|
|
1742
1743
|
dir: string;
|
|
1743
1744
|
closedPnl: string;
|
|
1744
1745
|
crossed: boolean;
|
|
1745
|
-
tid: number;
|
|
1746
1746
|
}, {
|
|
1747
1747
|
time: number;
|
|
1748
1748
|
oid: number;
|
|
@@ -1751,14 +1751,14 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1751
1751
|
hash: `0x${string}`;
|
|
1752
1752
|
fee: string;
|
|
1753
1753
|
feeToken: string;
|
|
1754
|
+
side: "B" | "A";
|
|
1754
1755
|
px: string;
|
|
1755
1756
|
sz: string;
|
|
1756
|
-
|
|
1757
|
+
tid: number;
|
|
1757
1758
|
startPosition: string;
|
|
1758
1759
|
dir: string;
|
|
1759
1760
|
closedPnl: string;
|
|
1760
1761
|
crossed: boolean;
|
|
1761
|
-
tid: number;
|
|
1762
1762
|
}>;
|
|
1763
1763
|
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
1764
1764
|
time: number;
|
|
@@ -1768,15 +1768,15 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1768
1768
|
hash: `0x${string}`;
|
|
1769
1769
|
fee: string;
|
|
1770
1770
|
feeToken: string;
|
|
1771
|
+
side: "B" | "A";
|
|
1771
1772
|
px: string;
|
|
1772
1773
|
sz: string;
|
|
1773
|
-
|
|
1774
|
+
tid: number;
|
|
1774
1775
|
startPosition: string;
|
|
1775
1776
|
dir: string;
|
|
1776
1777
|
closedPnl: string;
|
|
1777
1778
|
crossed: boolean;
|
|
1778
|
-
|
|
1779
|
-
}, v.StringIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.LengthIssue<`0x${string}`, 66> | v.LiteralIssue | v.UnionIssue<v.LiteralIssue> | v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.BooleanIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>>;
|
|
1779
|
+
}, v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.LengthIssue<`0x${string}`, 66> | v.LiteralIssue | v.UnionIssue<v.LiteralIssue> | v.BooleanIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>>;
|
|
1780
1780
|
readonly '~types'?: {
|
|
1781
1781
|
readonly input: {
|
|
1782
1782
|
time: number;
|
|
@@ -1786,14 +1786,14 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1786
1786
|
hash: string;
|
|
1787
1787
|
fee: string;
|
|
1788
1788
|
feeToken: string;
|
|
1789
|
+
side: "B" | "A";
|
|
1789
1790
|
px: string;
|
|
1790
1791
|
sz: string;
|
|
1791
|
-
|
|
1792
|
+
tid: number;
|
|
1792
1793
|
startPosition: string;
|
|
1793
1794
|
dir: string;
|
|
1794
1795
|
closedPnl: string;
|
|
1795
1796
|
crossed: boolean;
|
|
1796
|
-
tid: number;
|
|
1797
1797
|
};
|
|
1798
1798
|
readonly output: {
|
|
1799
1799
|
time: number;
|
|
@@ -1803,16 +1803,16 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1803
1803
|
hash: `0x${string}`;
|
|
1804
1804
|
fee: string;
|
|
1805
1805
|
feeToken: string;
|
|
1806
|
+
side: "B" | "A";
|
|
1806
1807
|
px: string;
|
|
1807
1808
|
sz: string;
|
|
1808
|
-
|
|
1809
|
+
tid: number;
|
|
1809
1810
|
startPosition: string;
|
|
1810
1811
|
dir: string;
|
|
1811
1812
|
closedPnl: string;
|
|
1812
1813
|
crossed: boolean;
|
|
1813
|
-
tid: number;
|
|
1814
1814
|
};
|
|
1815
|
-
readonly issue: v.StringIssue | v.RegexIssue<string> | v.
|
|
1815
|
+
readonly issue: v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.LengthIssue<`0x${string}`, 66> | v.LiteralIssue | v.UnionIssue<v.LiteralIssue> | v.BooleanIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>;
|
|
1816
1816
|
} | undefined;
|
|
1817
1817
|
}, v.DescriptionAction<{
|
|
1818
1818
|
time: number;
|
|
@@ -1822,14 +1822,14 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1822
1822
|
hash: `0x${string}`;
|
|
1823
1823
|
fee: string;
|
|
1824
1824
|
feeToken: string;
|
|
1825
|
+
side: "B" | "A";
|
|
1825
1826
|
px: string;
|
|
1826
1827
|
sz: string;
|
|
1827
|
-
|
|
1828
|
+
tid: number;
|
|
1828
1829
|
startPosition: string;
|
|
1829
1830
|
dir: string;
|
|
1830
1831
|
closedPnl: string;
|
|
1831
1832
|
crossed: boolean;
|
|
1832
|
-
tid: number;
|
|
1833
1833
|
}, "Fill details for the TWAP slice.">]>;
|
|
1834
1834
|
readonly twapId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "ID of the TWAP.">]>;
|
|
1835
1835
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -1841,14 +1841,14 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1841
1841
|
hash: `0x${string}`;
|
|
1842
1842
|
fee: string;
|
|
1843
1843
|
feeToken: string;
|
|
1844
|
+
side: "B" | "A";
|
|
1844
1845
|
px: string;
|
|
1845
1846
|
sz: string;
|
|
1846
|
-
|
|
1847
|
+
tid: number;
|
|
1847
1848
|
startPosition: string;
|
|
1848
1849
|
dir: string;
|
|
1849
1850
|
closedPnl: string;
|
|
1850
1851
|
crossed: boolean;
|
|
1851
|
-
tid: number;
|
|
1852
1852
|
};
|
|
1853
1853
|
twapId: number;
|
|
1854
1854
|
}, "TWAP slice fill details.">]>, undefined>, v.DescriptionAction<{
|
|
@@ -1860,14 +1860,14 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1860
1860
|
hash: `0x${string}`;
|
|
1861
1861
|
fee: string;
|
|
1862
1862
|
feeToken: string;
|
|
1863
|
+
side: "B" | "A";
|
|
1863
1864
|
px: string;
|
|
1864
1865
|
sz: string;
|
|
1865
|
-
|
|
1866
|
+
tid: number;
|
|
1866
1867
|
startPosition: string;
|
|
1867
1868
|
dir: string;
|
|
1868
1869
|
closedPnl: string;
|
|
1869
1870
|
crossed: boolean;
|
|
1870
|
-
tid: number;
|
|
1871
1871
|
};
|
|
1872
1872
|
twapId: number;
|
|
1873
1873
|
}[], "Array of TWAP slice fills.">]>;
|
|
@@ -1881,14 +1881,14 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1881
1881
|
hash: `0x${string}`;
|
|
1882
1882
|
fee: string;
|
|
1883
1883
|
feeToken: string;
|
|
1884
|
+
side: "B" | "A";
|
|
1884
1885
|
px: string;
|
|
1885
1886
|
sz: string;
|
|
1886
|
-
|
|
1887
|
+
tid: number;
|
|
1887
1888
|
startPosition: string;
|
|
1888
1889
|
dir: string;
|
|
1889
1890
|
closedPnl: string;
|
|
1890
1891
|
crossed: boolean;
|
|
1891
|
-
tid: number;
|
|
1892
1892
|
};
|
|
1893
1893
|
twapId: number;
|
|
1894
1894
|
}[];
|
|
@@ -1969,25 +1969,25 @@ export declare const WsUserEvent: v.SchemaWithPipe<readonly [v.UnionSchema<[v.Sc
|
|
|
1969
1969
|
hash: `0x${string}`;
|
|
1970
1970
|
fee: string;
|
|
1971
1971
|
feeToken: string;
|
|
1972
|
+
side: "B" | "A";
|
|
1972
1973
|
px: string;
|
|
1973
1974
|
sz: string;
|
|
1974
|
-
|
|
1975
|
+
tid: number;
|
|
1975
1976
|
startPosition: string;
|
|
1976
1977
|
dir: string;
|
|
1977
1978
|
closedPnl: string;
|
|
1978
1979
|
crossed: boolean;
|
|
1979
|
-
tid: number;
|
|
1980
1980
|
};
|
|
1981
1981
|
twapId: number;
|
|
1982
1982
|
}[];
|
|
1983
1983
|
}, "User event.">]>;
|
|
1984
1984
|
export type WsUserEvent = v.InferOutput<typeof WsUserEvent>;
|
|
1985
1985
|
/** User fills. */
|
|
1986
|
-
export declare const WsUserFills: v.SchemaWithPipe<readonly [v.
|
|
1986
|
+
export declare const WsUserFills: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1987
1987
|
/** User address. */
|
|
1988
1988
|
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.">]>;
|
|
1989
1989
|
/** Array of fill events. */
|
|
1990
|
-
readonly fills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
1990
|
+
readonly fills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1991
1991
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
1992
1992
|
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
1993
1993
|
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
@@ -2002,7 +2002,7 @@ export declare const WsUserFills: v.SchemaWithPipe<readonly [v.StrictObjectSchem
|
|
|
2002
2002
|
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
2003
2003
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
2004
2004
|
readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
|
|
2005
|
-
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
2005
|
+
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2006
2006
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
2007
2007
|
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
2008
2008
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
@@ -2093,11 +2093,11 @@ export declare const WsUserFills: v.SchemaWithPipe<readonly [v.StrictObjectSchem
|
|
|
2093
2093
|
}, "User fills.">]>;
|
|
2094
2094
|
export type WsUserFills = v.InferOutput<typeof WsUserFills>;
|
|
2095
2095
|
/** User fundings. */
|
|
2096
|
-
export declare const WsUserFundings: v.SchemaWithPipe<readonly [v.
|
|
2096
|
+
export declare const WsUserFundings: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2097
2097
|
/** User address. */
|
|
2098
2098
|
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.">]>;
|
|
2099
2099
|
/** Array of funding events. */
|
|
2100
|
-
readonly fundings: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
2100
|
+
readonly fundings: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
2101
2101
|
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).">]>;
|
|
2102
2102
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
2103
2103
|
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.">]>;
|
|
@@ -2128,14 +2128,14 @@ export declare const WsUserFundings: v.SchemaWithPipe<readonly [v.StrictObjectSc
|
|
|
2128
2128
|
}, "User fundings.">]>;
|
|
2129
2129
|
export type WsUserFundings = v.InferOutput<typeof WsUserFundings>;
|
|
2130
2130
|
/** User non-funding ledger updates. */
|
|
2131
|
-
export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v.
|
|
2131
|
+
export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2132
2132
|
/** User address. */
|
|
2133
2133
|
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.">]>;
|
|
2134
2134
|
/** Array of non-funding ledger updates. */
|
|
2135
|
-
readonly nonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
2135
|
+
readonly nonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2136
2136
|
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).">]>;
|
|
2137
2137
|
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.">]>;
|
|
2138
|
-
readonly delta: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.
|
|
2138
|
+
readonly delta: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2139
2139
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"accountClassTransfer", undefined>, v.DescriptionAction<"accountClassTransfer", "Update type.">]>;
|
|
2140
2140
|
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.">]>;
|
|
2141
2141
|
readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the transfer is to the perpetual account.">]>;
|
|
@@ -2143,13 +2143,13 @@ export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v
|
|
|
2143
2143
|
type: "accountClassTransfer";
|
|
2144
2144
|
usdc: string;
|
|
2145
2145
|
toPerp: boolean;
|
|
2146
|
-
}, "Transfer between spot and perpetual accounts.">]>, v.SchemaWithPipe<readonly [v.
|
|
2146
|
+
}, "Transfer between spot and perpetual accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2147
2147
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"deposit", undefined>, v.DescriptionAction<"deposit", "Update type.">]>;
|
|
2148
2148
|
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.">]>;
|
|
2149
2149
|
}, undefined>, v.DescriptionAction<{
|
|
2150
2150
|
type: "deposit";
|
|
2151
2151
|
usdc: string;
|
|
2152
|
-
}, "Deposit update to an account.">]>, v.SchemaWithPipe<readonly [v.
|
|
2152
|
+
}, "Deposit update to an account.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2153
2153
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"internalTransfer", undefined>, v.DescriptionAction<"internalTransfer", "Update type.">]>;
|
|
2154
2154
|
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.">]>;
|
|
2155
2155
|
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.">]>;
|
|
@@ -2161,12 +2161,12 @@ export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v
|
|
|
2161
2161
|
user: `0x${string}`;
|
|
2162
2162
|
destination: `0x${string}`;
|
|
2163
2163
|
fee: string;
|
|
2164
|
-
}, "Internal transfer between accounts.">]>, v.SchemaWithPipe<readonly [v.
|
|
2164
|
+
}, "Internal transfer between accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2165
2165
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"liquidation", undefined>, v.DescriptionAction<"liquidation", "Update type.">]>;
|
|
2166
2166
|
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.">]>;
|
|
2167
2167
|
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.">]>;
|
|
2168
2168
|
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.">]>;
|
|
2169
|
-
readonly liquidatedPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
2169
|
+
readonly liquidatedPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
2170
2170
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol of the liquidated position.">]>;
|
|
2171
2171
|
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.">]>;
|
|
2172
2172
|
}, undefined>, undefined>, v.DescriptionAction<{
|
|
@@ -2182,7 +2182,7 @@ export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v
|
|
|
2182
2182
|
coin: string;
|
|
2183
2183
|
szi: string;
|
|
2184
2184
|
}[];
|
|
2185
|
-
}, "Liquidation event update.">]>, v.SchemaWithPipe<readonly [v.
|
|
2185
|
+
}, "Liquidation event update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2186
2186
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"rewardsClaim", undefined>, v.DescriptionAction<"rewardsClaim", "Update type.">]>;
|
|
2187
2187
|
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.">]>;
|
|
2188
2188
|
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
|
|
@@ -2190,7 +2190,7 @@ export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v
|
|
|
2190
2190
|
type: "rewardsClaim";
|
|
2191
2191
|
amount: string;
|
|
2192
2192
|
token: string;
|
|
2193
|
-
}, "Rewards claim event update.">]>, v.SchemaWithPipe<readonly [v.
|
|
2193
|
+
}, "Rewards claim event update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2194
2194
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"spotTransfer", undefined>, v.DescriptionAction<"spotTransfer", "Update type.">]>;
|
|
2195
2195
|
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
|
|
2196
2196
|
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred.">]>;
|
|
@@ -2212,7 +2212,7 @@ export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v
|
|
|
2212
2212
|
nativeTokenFee: string;
|
|
2213
2213
|
nonce: null;
|
|
2214
2214
|
feeToken: string;
|
|
2215
|
-
}, "Spot transfer update between accounts.">]>, v.SchemaWithPipe<readonly [v.
|
|
2215
|
+
}, "Spot transfer update between accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2216
2216
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"subAccountTransfer", undefined>, v.DescriptionAction<"subAccountTransfer", "Update type.">]>;
|
|
2217
2217
|
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.">]>;
|
|
2218
2218
|
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.">]>;
|
|
@@ -2222,7 +2222,7 @@ export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v
|
|
|
2222
2222
|
usdc: string;
|
|
2223
2223
|
user: `0x${string}`;
|
|
2224
2224
|
destination: `0x${string}`;
|
|
2225
|
-
}, "Transfer update between sub-accounts.">]>, v.SchemaWithPipe<readonly [v.
|
|
2225
|
+
}, "Transfer update between sub-accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2226
2226
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultCreate", undefined>, v.DescriptionAction<"vaultCreate", "Update type.">]>;
|
|
2227
2227
|
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.">]>;
|
|
2228
2228
|
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.">]>;
|
|
@@ -2232,7 +2232,7 @@ export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v
|
|
|
2232
2232
|
vault: `0x${string}`;
|
|
2233
2233
|
usdc: string;
|
|
2234
2234
|
fee: string;
|
|
2235
|
-
}, "Vault creation update.">]>, v.SchemaWithPipe<readonly [v.
|
|
2235
|
+
}, "Vault creation update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2236
2236
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultDeposit", undefined>, v.DescriptionAction<"vaultDeposit", "Update type.">]>;
|
|
2237
2237
|
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.">]>;
|
|
2238
2238
|
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.">]>;
|
|
@@ -2240,7 +2240,7 @@ export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v
|
|
|
2240
2240
|
type: "vaultDeposit";
|
|
2241
2241
|
vault: `0x${string}`;
|
|
2242
2242
|
usdc: string;
|
|
2243
|
-
}, "Vault deposit update.">]>, v.SchemaWithPipe<readonly [v.
|
|
2243
|
+
}, "Vault deposit update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2244
2244
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultDistribution", undefined>, v.DescriptionAction<"vaultDistribution", "Update type.">]>;
|
|
2245
2245
|
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.">]>;
|
|
2246
2246
|
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.">]>;
|
|
@@ -2248,7 +2248,7 @@ export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v
|
|
|
2248
2248
|
type: "vaultDistribution";
|
|
2249
2249
|
vault: `0x${string}`;
|
|
2250
2250
|
usdc: string;
|
|
2251
|
-
}, "Vault distribution update.">]>, v.SchemaWithPipe<readonly [v.
|
|
2251
|
+
}, "Vault distribution update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2252
2252
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultWithdraw", undefined>, v.DescriptionAction<"vaultWithdraw", "Update type.">]>;
|
|
2253
2253
|
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}`, "Vault address.">]>;
|
|
2254
2254
|
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.">]>;
|
|
@@ -2266,7 +2266,7 @@ export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v
|
|
|
2266
2266
|
closingCost: string;
|
|
2267
2267
|
basis: string;
|
|
2268
2268
|
netWithdrawnUsd: string;
|
|
2269
|
-
}, "Vault withdrawal event update.">]>, v.SchemaWithPipe<readonly [v.
|
|
2269
|
+
}, "Vault withdrawal event update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2270
2270
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"withdraw", undefined>, v.DescriptionAction<"withdraw", "Update type.">]>;
|
|
2271
2271
|
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.">]>;
|
|
2272
2272
|
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.">]>;
|
|
@@ -2575,13 +2575,13 @@ export declare const WsUserNonFundingLedgerUpdates: v.SchemaWithPipe<readonly [v
|
|
|
2575
2575
|
}, "User non-funding ledger updates.">]>;
|
|
2576
2576
|
export type WsUserNonFundingLedgerUpdates = v.InferOutput<typeof WsUserNonFundingLedgerUpdates>;
|
|
2577
2577
|
/** User TWAP history. */
|
|
2578
|
-
export declare const WsUserTwapHistory: v.SchemaWithPipe<readonly [v.
|
|
2578
|
+
export declare const WsUserTwapHistory: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2579
2579
|
/** User address. */
|
|
2580
2580
|
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.">]>;
|
|
2581
2581
|
/** Array of historical TWAP fills. */
|
|
2582
|
-
readonly history: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
2582
|
+
readonly history: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2583
2583
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Creation time of the history record (in seconds since epoch).">]>;
|
|
2584
|
-
readonly state: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.
|
|
2584
|
+
readonly state: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2585
2585
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
2586
2586
|
readonly executedNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed notional value.">]>;
|
|
2587
2587
|
readonly executedSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed size.">]>;
|
|
@@ -2615,9 +2615,9 @@ export declare const WsUserTwapHistory: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
2615
2615
|
timestamp: number;
|
|
2616
2616
|
user: `0x${string}`;
|
|
2617
2617
|
}, "State of the TWAP order.">]>;
|
|
2618
|
-
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
2618
|
+
readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
2619
2619
|
readonly status: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"finished", undefined>, v.LiteralSchema<"activated", undefined>, v.LiteralSchema<"terminated", undefined>], undefined>, v.DescriptionAction<"finished" | "activated" | "terminated", "Status of the TWAP order.">]>;
|
|
2620
|
-
}, undefined>, v.
|
|
2620
|
+
}, undefined>, v.ObjectSchema<{
|
|
2621
2621
|
readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"error", undefined>, v.DescriptionAction<"error", "Status of the TWAP order.">]>;
|
|
2622
2622
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
|
|
2623
2623
|
}, undefined>], undefined>, v.DescriptionAction<{
|
|
@@ -2701,12 +2701,12 @@ export declare const WsUserTwapHistory: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
2701
2701
|
}, "User TWAP history.">]>;
|
|
2702
2702
|
export type WsUserTwapHistory = v.InferOutput<typeof WsUserTwapHistory>;
|
|
2703
2703
|
/** User TWAP slice fills. */
|
|
2704
|
-
export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.
|
|
2704
|
+
export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2705
2705
|
/** User address. */
|
|
2706
2706
|
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.">]>;
|
|
2707
2707
|
/** Array of TWAP slice fills. */
|
|
2708
|
-
readonly twapSliceFills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
2709
|
-
readonly fill: v.SchemaWithPipe<readonly [Omit<v.
|
|
2708
|
+
readonly twapSliceFills: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2709
|
+
readonly fill: v.SchemaWithPipe<readonly [Omit<v.ObjectSchema<{
|
|
2710
2710
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
2711
2711
|
readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Price.">]>;
|
|
2712
2712
|
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
@@ -2721,7 +2721,7 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2721
2721
|
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
2722
2722
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
2723
2723
|
readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
|
|
2724
|
-
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
2724
|
+
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2725
2725
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
2726
2726
|
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
2727
2727
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
@@ -2752,7 +2752,7 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2752
2752
|
readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee charged or rebate received (negative indicates rebate).">]>;
|
|
2753
2753
|
readonly tid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique transaction identifier for a partial fill of an order.">]>;
|
|
2754
2754
|
readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
|
|
2755
|
-
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
2755
|
+
readonly liquidation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2756
2756
|
readonly liquidatedUser: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the liquidated user.">]>;
|
|
2757
2757
|
readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price at the time of liquidation.">]>;
|
|
2758
2758
|
readonly method: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"market", undefined>, v.LiteralSchema<"backstop", undefined>], undefined>, v.DescriptionAction<"market" | "backstop", "Liquidation method.">]>;
|
|
@@ -2776,14 +2776,14 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2776
2776
|
hash: string;
|
|
2777
2777
|
fee: string;
|
|
2778
2778
|
feeToken: string;
|
|
2779
|
+
side: "B" | "A";
|
|
2779
2780
|
px: string;
|
|
2780
2781
|
sz: string;
|
|
2781
|
-
|
|
2782
|
+
tid: number;
|
|
2782
2783
|
startPosition: string;
|
|
2783
2784
|
dir: string;
|
|
2784
2785
|
closedPnl: string;
|
|
2785
2786
|
crossed: boolean;
|
|
2786
|
-
tid: number;
|
|
2787
2787
|
}, {
|
|
2788
2788
|
time: number;
|
|
2789
2789
|
oid: number;
|
|
@@ -2792,14 +2792,14 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2792
2792
|
hash: `0x${string}`;
|
|
2793
2793
|
fee: string;
|
|
2794
2794
|
feeToken: string;
|
|
2795
|
+
side: "B" | "A";
|
|
2795
2796
|
px: string;
|
|
2796
2797
|
sz: string;
|
|
2797
|
-
|
|
2798
|
+
tid: number;
|
|
2798
2799
|
startPosition: string;
|
|
2799
2800
|
dir: string;
|
|
2800
2801
|
closedPnl: string;
|
|
2801
2802
|
crossed: boolean;
|
|
2802
|
-
tid: number;
|
|
2803
2803
|
}>;
|
|
2804
2804
|
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
2805
2805
|
time: number;
|
|
@@ -2809,15 +2809,15 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2809
2809
|
hash: `0x${string}`;
|
|
2810
2810
|
fee: string;
|
|
2811
2811
|
feeToken: string;
|
|
2812
|
+
side: "B" | "A";
|
|
2812
2813
|
px: string;
|
|
2813
2814
|
sz: string;
|
|
2814
|
-
|
|
2815
|
+
tid: number;
|
|
2815
2816
|
startPosition: string;
|
|
2816
2817
|
dir: string;
|
|
2817
2818
|
closedPnl: string;
|
|
2818
2819
|
crossed: boolean;
|
|
2819
|
-
|
|
2820
|
-
}, v.StringIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.LengthIssue<`0x${string}`, 66> | v.LiteralIssue | v.UnionIssue<v.LiteralIssue> | v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.BooleanIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>>;
|
|
2820
|
+
}, v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.LengthIssue<`0x${string}`, 66> | v.LiteralIssue | v.UnionIssue<v.LiteralIssue> | v.BooleanIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>>;
|
|
2821
2821
|
readonly '~types'?: {
|
|
2822
2822
|
readonly input: {
|
|
2823
2823
|
time: number;
|
|
@@ -2827,14 +2827,14 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2827
2827
|
hash: string;
|
|
2828
2828
|
fee: string;
|
|
2829
2829
|
feeToken: string;
|
|
2830
|
+
side: "B" | "A";
|
|
2830
2831
|
px: string;
|
|
2831
2832
|
sz: string;
|
|
2832
|
-
|
|
2833
|
+
tid: number;
|
|
2833
2834
|
startPosition: string;
|
|
2834
2835
|
dir: string;
|
|
2835
2836
|
closedPnl: string;
|
|
2836
2837
|
crossed: boolean;
|
|
2837
|
-
tid: number;
|
|
2838
2838
|
};
|
|
2839
2839
|
readonly output: {
|
|
2840
2840
|
time: number;
|
|
@@ -2844,16 +2844,16 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2844
2844
|
hash: `0x${string}`;
|
|
2845
2845
|
fee: string;
|
|
2846
2846
|
feeToken: string;
|
|
2847
|
+
side: "B" | "A";
|
|
2847
2848
|
px: string;
|
|
2848
2849
|
sz: string;
|
|
2849
|
-
|
|
2850
|
+
tid: number;
|
|
2850
2851
|
startPosition: string;
|
|
2851
2852
|
dir: string;
|
|
2852
2853
|
closedPnl: string;
|
|
2853
2854
|
crossed: boolean;
|
|
2854
|
-
tid: number;
|
|
2855
2855
|
};
|
|
2856
|
-
readonly issue: v.StringIssue | v.RegexIssue<string> | v.
|
|
2856
|
+
readonly issue: v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.StringIssue | v.RegexIssue<string> | v.ObjectIssue | v.LengthIssue<`0x${string}`, 66> | v.LiteralIssue | v.UnionIssue<v.LiteralIssue> | v.BooleanIssue | v.NullIssue | v.UnionIssue<v.NumberIssue | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.NullIssue>;
|
|
2857
2857
|
} | undefined;
|
|
2858
2858
|
}, v.DescriptionAction<{
|
|
2859
2859
|
time: number;
|
|
@@ -2863,14 +2863,14 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2863
2863
|
hash: `0x${string}`;
|
|
2864
2864
|
fee: string;
|
|
2865
2865
|
feeToken: string;
|
|
2866
|
+
side: "B" | "A";
|
|
2866
2867
|
px: string;
|
|
2867
2868
|
sz: string;
|
|
2868
|
-
|
|
2869
|
+
tid: number;
|
|
2869
2870
|
startPosition: string;
|
|
2870
2871
|
dir: string;
|
|
2871
2872
|
closedPnl: string;
|
|
2872
2873
|
crossed: boolean;
|
|
2873
|
-
tid: number;
|
|
2874
2874
|
}, "Fill details for the TWAP slice.">]>;
|
|
2875
2875
|
readonly twapId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "ID of the TWAP.">]>;
|
|
2876
2876
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -2882,14 +2882,14 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2882
2882
|
hash: `0x${string}`;
|
|
2883
2883
|
fee: string;
|
|
2884
2884
|
feeToken: string;
|
|
2885
|
+
side: "B" | "A";
|
|
2885
2886
|
px: string;
|
|
2886
2887
|
sz: string;
|
|
2887
|
-
|
|
2888
|
+
tid: number;
|
|
2888
2889
|
startPosition: string;
|
|
2889
2890
|
dir: string;
|
|
2890
2891
|
closedPnl: string;
|
|
2891
2892
|
crossed: boolean;
|
|
2892
|
-
tid: number;
|
|
2893
2893
|
};
|
|
2894
2894
|
twapId: number;
|
|
2895
2895
|
}, "TWAP slice fill details.">]>, undefined>, v.DescriptionAction<{
|
|
@@ -2901,14 +2901,14 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2901
2901
|
hash: `0x${string}`;
|
|
2902
2902
|
fee: string;
|
|
2903
2903
|
feeToken: string;
|
|
2904
|
+
side: "B" | "A";
|
|
2904
2905
|
px: string;
|
|
2905
2906
|
sz: string;
|
|
2906
|
-
|
|
2907
|
+
tid: number;
|
|
2907
2908
|
startPosition: string;
|
|
2908
2909
|
dir: string;
|
|
2909
2910
|
closedPnl: string;
|
|
2910
2911
|
crossed: boolean;
|
|
2911
|
-
tid: number;
|
|
2912
2912
|
};
|
|
2913
2913
|
twapId: number;
|
|
2914
2914
|
}[], "Array of TWAP slice fills.">]>;
|
|
@@ -2925,14 +2925,14 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2925
2925
|
hash: `0x${string}`;
|
|
2926
2926
|
fee: string;
|
|
2927
2927
|
feeToken: string;
|
|
2928
|
+
side: "B" | "A";
|
|
2928
2929
|
px: string;
|
|
2929
2930
|
sz: string;
|
|
2930
|
-
|
|
2931
|
+
tid: number;
|
|
2931
2932
|
startPosition: string;
|
|
2932
2933
|
dir: string;
|
|
2933
2934
|
closedPnl: string;
|
|
2934
2935
|
crossed: boolean;
|
|
2935
|
-
tid: number;
|
|
2936
2936
|
};
|
|
2937
2937
|
twapId: number;
|
|
2938
2938
|
}[];
|
|
@@ -2940,10 +2940,10 @@ export declare const WsUserTwapSliceFills: v.SchemaWithPipe<readonly [v.StrictOb
|
|
|
2940
2940
|
}, "User TWAP slice fills.">]>;
|
|
2941
2941
|
export type WsUserTwapSliceFills = v.InferOutput<typeof WsUserTwapSliceFills>;
|
|
2942
2942
|
/** Comprehensive user and market data. */
|
|
2943
|
-
export declare const WsWebData2: v.SchemaWithPipe<readonly [v.
|
|
2943
|
+
export declare const WsWebData2: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2944
2944
|
/** Account summary for perpetual trading. */
|
|
2945
|
-
readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.
|
|
2946
|
-
readonly marginSummary: v.SchemaWithPipe<readonly [v.
|
|
2945
|
+
readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2946
|
+
readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2947
2947
|
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.">]>;
|
|
2948
2948
|
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.">]>;
|
|
2949
2949
|
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.">]>;
|
|
@@ -2954,7 +2954,7 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
2954
2954
|
totalRawUsd: string;
|
|
2955
2955
|
totalMarginUsed: string;
|
|
2956
2956
|
}, "Margin summary details.">]>;
|
|
2957
|
-
readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.
|
|
2957
|
+
readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2958
2958
|
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.">]>;
|
|
2959
2959
|
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.">]>;
|
|
2960
2960
|
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.">]>;
|
|
@@ -2967,16 +2967,16 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
2967
2967
|
}, "Cross-margin summary details.">]>;
|
|
2968
2968
|
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.">]>;
|
|
2969
2969
|
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.">]>;
|
|
2970
|
-
readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
2970
|
+
readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2971
2971
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
|
|
2972
|
-
readonly position: v.SchemaWithPipe<readonly [v.
|
|
2972
|
+
readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2973
2973
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
2974
2974
|
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.">]>;
|
|
2975
|
-
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.
|
|
2975
|
+
readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
2976
2976
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
|
|
2977
2977
|
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.">]>;
|
|
2978
2978
|
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$).">]>;
|
|
2979
|
-
}, undefined>, v.
|
|
2979
|
+
}, undefined>, v.ObjectSchema<{
|
|
2980
2980
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
|
|
2981
2981
|
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.">]>;
|
|
2982
2982
|
}, undefined>], undefined>, v.DescriptionAction<{
|
|
@@ -2994,7 +2994,7 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
2994
2994
|
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.">]>;
|
|
2995
2995
|
readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
|
|
2996
2996
|
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.">]>;
|
|
2997
|
-
readonly cumFunding: v.SchemaWithPipe<readonly [v.
|
|
2997
|
+
readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2998
2998
|
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.">]>;
|
|
2999
2999
|
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.">]>;
|
|
3000
3000
|
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.">]>;
|
|
@@ -3169,7 +3169,7 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3169
3169
|
time: number;
|
|
3170
3170
|
}, "Account summary for perpetual trading.">]>;
|
|
3171
3171
|
/** Leading vaults information. */
|
|
3172
|
-
readonly leadingVaults: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
3172
|
+
readonly leadingVaults: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
3173
3173
|
/** Address of the vault. */
|
|
3174
3174
|
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.">]>;
|
|
3175
3175
|
/** Name of the vault. */
|
|
@@ -3181,7 +3181,7 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3181
3181
|
/** Total equity in vaults. */
|
|
3182
3182
|
readonly totalVaultEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total equity in vaults.">]>;
|
|
3183
3183
|
/** User open orders with frontend information. */
|
|
3184
|
-
readonly openOrders: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
3184
|
+
readonly openOrders: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3185
3185
|
readonly triggerCondition: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Condition for triggering the order.">]>;
|
|
3186
3186
|
readonly isTrigger: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a trigger order.">]>;
|
|
3187
3187
|
readonly triggerPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Trigger price.">]>;
|
|
@@ -3193,8 +3193,8 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3193
3193
|
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.">]>;
|
|
3194
3194
|
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.">]>;
|
|
3195
3195
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
3196
|
-
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
3197
3196
|
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).">]>;
|
|
3197
|
+
readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
|
|
3198
3198
|
readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
|
|
3199
3199
|
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).">]>;
|
|
3200
3200
|
readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
|
|
@@ -3210,8 +3210,8 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3210
3210
|
cloid: `0x${string}` | null;
|
|
3211
3211
|
oid: number;
|
|
3212
3212
|
coin: string;
|
|
3213
|
-
sz: string;
|
|
3214
3213
|
side: "B" | "A";
|
|
3214
|
+
sz: string;
|
|
3215
3215
|
limitPx: string;
|
|
3216
3216
|
timestamp: number;
|
|
3217
3217
|
origSz: string;
|
|
@@ -3227,8 +3227,8 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3227
3227
|
cloid: `0x${string}` | null;
|
|
3228
3228
|
oid: number;
|
|
3229
3229
|
coin: string;
|
|
3230
|
-
sz: string;
|
|
3231
3230
|
side: "B" | "A";
|
|
3231
|
+
sz: string;
|
|
3232
3232
|
limitPx: string;
|
|
3233
3233
|
timestamp: number;
|
|
3234
3234
|
origSz: string;
|
|
@@ -3240,8 +3240,8 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3240
3240
|
/** Cumulative ledger value. */
|
|
3241
3241
|
readonly cumLedger: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative ledger value.">]>;
|
|
3242
3242
|
/** Metadata for perpetual assets. */
|
|
3243
|
-
readonly meta: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.
|
|
3244
|
-
readonly universe: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
3243
|
+
readonly meta: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3244
|
+
readonly universe: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3245
3245
|
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.">]>;
|
|
3246
3246
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the universe.">]>;
|
|
3247
3247
|
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.">]>;
|
|
@@ -3263,9 +3263,9 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3263
3263
|
onlyIsolated?: true | undefined;
|
|
3264
3264
|
isDelisted?: true | undefined;
|
|
3265
3265
|
}[], "Trading universes available for perpetual trading.">]>;
|
|
3266
|
-
readonly marginTables: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
3266
|
+
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<{
|
|
3267
3267
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Description of the margin table.">]>;
|
|
3268
|
-
readonly marginTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
3268
|
+
readonly marginTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3269
3269
|
readonly lowerBound: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Lower position size boundary for this tier.">]>;
|
|
3270
3270
|
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.">]>;
|
|
3271
3271
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -3328,7 +3328,7 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3328
3328
|
}][];
|
|
3329
3329
|
}, "Metadata for perpetual assets.">]>;
|
|
3330
3330
|
/** Context information for perpetual assets. */
|
|
3331
|
-
readonly assetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
3331
|
+
readonly assetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3332
3332
|
readonly funding: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding rate.">]>;
|
|
3333
3333
|
readonly openInterest: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total open interest.">]>;
|
|
3334
3334
|
readonly premium: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Premium price.">]>;
|
|
@@ -3369,7 +3369,7 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3369
3369
|
/** User address. */
|
|
3370
3370
|
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.">]>;
|
|
3371
3371
|
/** TWAP states. */
|
|
3372
|
-
readonly twapStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
3372
|
+
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<{
|
|
3373
3373
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
3374
3374
|
readonly executedNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed notional value.">]>;
|
|
3375
3375
|
readonly executedSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed size.">]>;
|
|
@@ -3404,8 +3404,8 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3404
3404
|
user: `0x${string}`;
|
|
3405
3405
|
}][], "TWAP states.">]>;
|
|
3406
3406
|
/** Account summary for spot trading. */
|
|
3407
|
-
readonly spotState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
3408
|
-
readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
3407
|
+
readonly spotState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3408
|
+
readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3409
3409
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
3410
3410
|
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.">]>;
|
|
3411
3411
|
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
@@ -3424,7 +3424,7 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3424
3424
|
hold: string;
|
|
3425
3425
|
entryNtl: string;
|
|
3426
3426
|
}[], "Balance for each token.">]>;
|
|
3427
|
-
readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
3427
|
+
readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3428
3428
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
3429
3429
|
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.">]>;
|
|
3430
3430
|
readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
|
|
@@ -3465,7 +3465,7 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3465
3465
|
}[] | undefined;
|
|
3466
3466
|
} | undefined, "Account summary for spot trading.">]>;
|
|
3467
3467
|
/** Context information for spot assets. */
|
|
3468
|
-
readonly spotAssetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.
|
|
3468
|
+
readonly spotAssetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3469
3469
|
readonly circulatingSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Circulating supply.">]>;
|
|
3470
3470
|
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
|
|
3471
3471
|
readonly totalSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total supply.">]>;
|
|
@@ -3559,8 +3559,8 @@ export declare const WsWebData2: v.SchemaWithPipe<readonly [v.StrictObjectSchema
|
|
|
3559
3559
|
cloid: `0x${string}` | null;
|
|
3560
3560
|
oid: number;
|
|
3561
3561
|
coin: string;
|
|
3562
|
-
sz: string;
|
|
3563
3562
|
side: "B" | "A";
|
|
3563
|
+
sz: string;
|
|
3564
3564
|
limitPx: string;
|
|
3565
3565
|
timestamp: number;
|
|
3566
3566
|
origSz: string;
|