@nktkas/hyperliquid 0.13.0 → 0.13.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.
Files changed (206) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +42 -17
  3. package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
  4. package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
  5. package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.js +2 -0
  6. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.d.ts +3 -1
  7. package/esm/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
  8. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.js +1 -1
  9. package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
  10. package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
  11. package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.js +2 -0
  12. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts.map +1 -1
  13. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.js +1 -1
  14. package/{script/deps/jsr.io/@std/encoding/1.0.6 → esm/deps/jsr.io/@std/encoding/1.0.7}/hex.d.ts +3 -1
  15. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/hex.js +1 -1
  17. package/esm/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts +9 -0
  18. package/esm/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@std/msgpack/1.0.3/_types.js +2 -0
  20. package/esm/deps/jsr.io/@std/msgpack/{1.0.2 → 1.0.3}/encode.d.ts +3 -1
  21. package/esm/deps/jsr.io/@std/msgpack/1.0.3/encode.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@std/msgpack/{1.0.2 → 1.0.3}/encode.js +2 -2
  23. package/esm/mod.d.ts +15 -14
  24. package/esm/mod.d.ts.map +1 -1
  25. package/esm/src/clients/event.d.ts +64 -21
  26. package/esm/src/clients/event.d.ts.map +1 -1
  27. package/esm/src/clients/event.js +76 -18
  28. package/esm/src/clients/public.d.ts +244 -52
  29. package/esm/src/clients/public.d.ts.map +1 -1
  30. package/esm/src/clients/public.js +243 -47
  31. package/esm/src/clients/wallet.d.ts +122 -53
  32. package/esm/src/clients/wallet.d.ts.map +1 -1
  33. package/esm/src/clients/wallet.js +201 -65
  34. package/esm/src/transports/http/http_transport.d.ts.map +1 -1
  35. package/esm/src/transports/http/http_transport.js +4 -1
  36. package/esm/src/transports/websocket/hyperliquid_event_target.d.ts +27 -21
  37. package/esm/src/transports/websocket/hyperliquid_event_target.d.ts.map +1 -1
  38. package/esm/src/transports/websocket/hyperliquid_event_target.js +37 -0
  39. package/esm/src/transports/websocket/websocket_request_dispatcher.d.ts.map +1 -1
  40. package/esm/src/transports/websocket/websocket_request_dispatcher.js +4 -4
  41. package/esm/src/transports/websocket/websocket_transport.d.ts +7 -10
  42. package/esm/src/transports/websocket/websocket_transport.d.ts.map +1 -1
  43. package/esm/src/transports/websocket/websocket_transport.js +41 -35
  44. package/esm/src/types/common.d.ts +3 -0
  45. package/esm/src/types/common.d.ts.map +1 -0
  46. package/esm/src/types/common.js +1 -0
  47. package/esm/src/types/exchange/common.d.ts +36 -0
  48. package/esm/src/types/exchange/common.d.ts.map +1 -0
  49. package/esm/src/types/exchange/common.js +1 -0
  50. package/esm/src/types/exchange/requests.d.ts +502 -0
  51. package/esm/src/types/exchange/requests.d.ts.map +1 -0
  52. package/esm/src/types/exchange/requests.js +1 -0
  53. package/esm/src/types/exchange/responses.d.ts +141 -0
  54. package/esm/src/types/exchange/responses.d.ts.map +1 -0
  55. package/esm/src/types/exchange/responses.js +1 -0
  56. package/esm/src/types/explorer/common.d.ts +37 -0
  57. package/esm/src/types/explorer/common.d.ts.map +1 -0
  58. package/esm/src/types/explorer/common.js +1 -0
  59. package/esm/src/types/explorer/requests.d.ts +35 -0
  60. package/esm/src/types/explorer/requests.d.ts.map +1 -0
  61. package/esm/src/types/explorer/requests.js +1 -0
  62. package/esm/src/types/explorer/responses.d.ts +23 -0
  63. package/esm/src/types/explorer/responses.d.ts.map +1 -0
  64. package/esm/src/types/explorer/responses.js +1 -0
  65. package/esm/src/types/info/accounts.d.ts +489 -0
  66. package/esm/src/types/info/accounts.d.ts.map +1 -0
  67. package/esm/src/types/info/accounts.js +1 -0
  68. package/esm/src/types/info/assets.d.ts +275 -0
  69. package/esm/src/types/info/assets.d.ts.map +1 -0
  70. package/esm/src/types/info/assets.js +1 -0
  71. package/esm/src/types/info/delegations.d.ts +117 -0
  72. package/esm/src/types/info/delegations.d.ts.map +1 -0
  73. package/esm/src/types/info/delegations.js +1 -0
  74. package/esm/src/types/info/orders.d.ts +209 -0
  75. package/esm/src/types/info/orders.d.ts.map +1 -0
  76. package/esm/src/types/info/orders.js +1 -0
  77. package/esm/src/types/info/requests.d.ts +445 -0
  78. package/esm/src/types/info/requests.d.ts.map +1 -0
  79. package/esm/src/types/info/requests.js +1 -0
  80. package/esm/src/types/info/vaults.d.ts +90 -0
  81. package/esm/src/types/info/vaults.d.ts.map +1 -0
  82. package/esm/src/types/info/vaults.js +1 -0
  83. package/esm/src/types/subscriptions/common.d.ts +208 -0
  84. package/esm/src/types/subscriptions/common.d.ts.map +1 -0
  85. package/esm/src/types/subscriptions/common.js +1 -0
  86. package/esm/src/types/subscriptions/requests.d.ts +134 -0
  87. package/esm/src/types/subscriptions/requests.d.ts.map +1 -0
  88. package/esm/src/types/subscriptions/requests.js +1 -0
  89. package/esm/src/utils/key_sort.d.ts +3 -3
  90. package/esm/src/utils/key_sort.d.ts.map +1 -1
  91. package/esm/src/utils/signing.d.ts +1 -1
  92. package/esm/src/utils/signing.js +2 -2
  93. package/package.json +2 -2
  94. package/script/deps/jsr.io/@derzade/typescript-event-target/1.1.1/mod.js +13 -3
  95. package/script/deps/jsr.io/@derzade/typescript-event-target/1.1.1/src/TypedEventTarget.js +23 -13
  96. package/script/deps/jsr.io/@noble/hashes/1.7.1/src/_assert.js +55 -45
  97. package/script/deps/jsr.io/@noble/hashes/1.7.1/src/_u64.js +97 -87
  98. package/script/deps/jsr.io/@noble/hashes/1.7.1/src/crypto.js +14 -4
  99. package/script/deps/jsr.io/@noble/hashes/1.7.1/src/sha3.js +288 -278
  100. package/script/deps/jsr.io/@noble/hashes/1.7.1/src/utils.js +238 -228
  101. package/script/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
  102. package/script/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
  103. package/script/deps/jsr.io/@std/bytes/1.0.5/_types.js +13 -0
  104. package/script/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.d.ts +3 -1
  105. package/script/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
  106. package/script/deps/jsr.io/@std/bytes/1.0.5/concat.js +45 -0
  107. package/script/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
  108. package/script/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
  109. package/script/deps/jsr.io/@std/encoding/1.0.7/_types.js +13 -0
  110. package/script/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts.map +1 -1
  111. package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +39 -0
  112. package/{esm/deps/jsr.io/@std/encoding/1.0.6 → script/deps/jsr.io/@std/encoding/1.0.7}/hex.d.ts +3 -1
  113. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  114. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.js +123 -0
  115. package/script/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts +9 -0
  116. package/script/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts.map +1 -0
  117. package/script/deps/jsr.io/@std/msgpack/1.0.3/_types.js +13 -0
  118. package/script/deps/jsr.io/@std/msgpack/{1.0.2 → 1.0.3}/encode.d.ts +3 -1
  119. package/script/deps/jsr.io/@std/msgpack/1.0.3/encode.d.ts.map +1 -0
  120. package/script/deps/jsr.io/@std/msgpack/1.0.3/encode.js +250 -0
  121. package/script/mod.d.ts +15 -14
  122. package/script/mod.d.ts.map +1 -1
  123. package/script/mod.js +23 -13
  124. package/script/src/clients/event.d.ts +64 -21
  125. package/script/src/clients/event.d.ts.map +1 -1
  126. package/script/src/clients/event.js +551 -483
  127. package/script/src/clients/public.d.ts +244 -52
  128. package/script/src/clients/public.d.ts.map +1 -1
  129. package/script/src/clients/public.js +914 -708
  130. package/script/src/clients/wallet.d.ts +122 -53
  131. package/script/src/clients/wallet.d.ts.map +1 -1
  132. package/script/src/clients/wallet.js +1121 -975
  133. package/script/src/transports/base.js +25 -15
  134. package/script/src/transports/http/http_transport.d.ts.map +1 -1
  135. package/script/src/transports/http/http_transport.js +174 -161
  136. package/script/src/transports/websocket/hyperliquid_event_target.d.ts +27 -21
  137. package/script/src/transports/websocket/hyperliquid_event_target.d.ts.map +1 -1
  138. package/script/src/transports/websocket/hyperliquid_event_target.js +80 -33
  139. package/script/src/transports/websocket/reconnecting_websocket.js +364 -354
  140. package/script/src/transports/websocket/websocket_request_dispatcher.d.ts.map +1 -1
  141. package/script/src/transports/websocket/websocket_request_dispatcher.js +196 -186
  142. package/script/src/transports/websocket/websocket_transport.d.ts +7 -10
  143. package/script/src/transports/websocket/websocket_transport.d.ts.map +1 -1
  144. package/script/src/transports/websocket/websocket_transport.js +236 -220
  145. package/script/src/types/common.d.ts +3 -0
  146. package/script/src/types/common.d.ts.map +1 -0
  147. package/script/src/types/common.js +12 -0
  148. package/script/src/types/exchange/common.d.ts +36 -0
  149. package/script/src/types/exchange/common.d.ts.map +1 -0
  150. package/script/src/types/exchange/common.js +12 -0
  151. package/script/src/types/exchange/requests.d.ts +502 -0
  152. package/script/src/types/exchange/requests.d.ts.map +1 -0
  153. package/script/src/types/exchange/requests.js +12 -0
  154. package/script/src/types/exchange/responses.d.ts +141 -0
  155. package/script/src/types/exchange/responses.d.ts.map +1 -0
  156. package/script/src/types/exchange/responses.js +12 -0
  157. package/script/src/types/explorer/common.d.ts +37 -0
  158. package/script/src/types/explorer/common.d.ts.map +1 -0
  159. package/script/src/types/explorer/common.js +12 -0
  160. package/script/src/types/explorer/requests.d.ts +35 -0
  161. package/script/src/types/explorer/requests.d.ts.map +1 -0
  162. package/script/src/types/explorer/requests.js +12 -0
  163. package/script/src/types/explorer/responses.d.ts +23 -0
  164. package/script/src/types/explorer/responses.d.ts.map +1 -0
  165. package/script/src/types/explorer/responses.js +12 -0
  166. package/script/src/types/info/accounts.d.ts +489 -0
  167. package/script/src/types/info/accounts.d.ts.map +1 -0
  168. package/script/src/types/info/accounts.js +12 -0
  169. package/script/src/types/info/assets.d.ts +275 -0
  170. package/script/src/types/info/assets.d.ts.map +1 -0
  171. package/script/src/types/info/assets.js +12 -0
  172. package/script/src/types/info/delegations.d.ts +117 -0
  173. package/script/src/types/info/delegations.d.ts.map +1 -0
  174. package/script/src/types/info/delegations.js +12 -0
  175. package/script/src/types/info/orders.d.ts +209 -0
  176. package/script/src/types/info/orders.d.ts.map +1 -0
  177. package/script/src/types/info/orders.js +12 -0
  178. package/script/src/types/info/requests.d.ts +445 -0
  179. package/script/src/types/info/requests.d.ts.map +1 -0
  180. package/script/src/types/info/requests.js +12 -0
  181. package/script/src/types/info/vaults.d.ts +90 -0
  182. package/script/src/types/info/vaults.d.ts.map +1 -0
  183. package/script/src/types/info/vaults.js +12 -0
  184. package/script/src/types/subscriptions/common.d.ts +208 -0
  185. package/script/src/types/subscriptions/common.d.ts.map +1 -0
  186. package/script/src/types/subscriptions/common.js +12 -0
  187. package/script/src/types/subscriptions/requests.d.ts +134 -0
  188. package/script/src/types/subscriptions/requests.d.ts.map +1 -0
  189. package/script/src/types/subscriptions/requests.js +12 -0
  190. package/script/src/utils/key_sort.d.ts +3 -3
  191. package/script/src/utils/key_sort.d.ts.map +1 -1
  192. package/script/src/utils/key_sort.js +133 -123
  193. package/script/src/utils/signing.d.ts +1 -1
  194. package/script/src/utils/signing.js +172 -162
  195. package/esm/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts.map +0 -1
  196. package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +0 -1
  197. package/esm/deps/jsr.io/@std/msgpack/1.0.2/encode.d.ts.map +0 -1
  198. package/script/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts.map +0 -1
  199. package/script/deps/jsr.io/@std/bytes/1.0.4/concat.js +0 -35
  200. package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +0 -29
  201. package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +0 -1
  202. package/script/deps/jsr.io/@std/encoding/1.0.6/hex.js +0 -113
  203. package/script/deps/jsr.io/@std/msgpack/1.0.2/encode.d.ts.map +0 -1
  204. package/script/deps/jsr.io/@std/msgpack/1.0.2/encode.js +0 -240
  205. /package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts +0 -0
  206. /package/script/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts +0 -0
@@ -0,0 +1,37 @@
1
+ import type { Hex } from "../common.js";
2
+ /** Transaction details. */
3
+ export interface TxDetails {
4
+ /** Action performed in transaction. */
5
+ action: {
6
+ /** Action type. */
7
+ type: string;
8
+ /** Additional action parameters. */
9
+ [key: string]: unknown;
10
+ };
11
+ /** Block number where transaction was included. */
12
+ block: number;
13
+ /** Error message if transaction failed. */
14
+ error: string | null;
15
+ /** Transaction hash. */
16
+ hash: Hex;
17
+ /** Transaction creation timestamp. */
18
+ time: number;
19
+ /** Creator's address. */
20
+ user: Hex;
21
+ }
22
+ /** Block details. */
23
+ export interface BlockDetails {
24
+ /** Block creation timestamp. */
25
+ blockTime: number;
26
+ /** Block hash. */
27
+ hash: Hex;
28
+ /** Block height in chain. */
29
+ height: number;
30
+ /** Total transactions in block. */
31
+ numTxs: number;
32
+ /** Block proposer address. */
33
+ proposer: Hex;
34
+ /** List of transactions. */
35
+ txs: TxDetails[];
36
+ }
37
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/src/types/explorer/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAExC,2BAA2B;AAC3B,MAAM,WAAW,SAAS;IACtB,uCAAuC;IACvC,MAAM,EAAE;QACJ,mBAAmB;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,oCAAoC;QACpC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAC1B,CAAC;IACF,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,wBAAwB;IACxB,IAAI,EAAE,GAAG,CAAC;IACV,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,yBAAyB;IACzB,IAAI,EAAE,GAAG,CAAC;CACb;AAED,qBAAqB;AACrB,MAAM,WAAW,YAAY;IACzB,gCAAgC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB;IAClB,IAAI,EAAE,GAAG,CAAC;IACV,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,QAAQ,EAAE,GAAG,CAAC;IACd,4BAA4B;IAC5B,GAAG,EAAE,SAAS,EAAE,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ import type { Hex } from "../common.js";
2
+ /**
3
+ * Request for transaction details by transaction hash.
4
+ * @returns {TxDetailsResponse} Transaction details response.
5
+ * @see null - no documentation
6
+ */
7
+ export interface TxDetailsRequest {
8
+ /** Type of request. */
9
+ type: "txDetails";
10
+ /** Transaction hash. */
11
+ hash: Hex;
12
+ }
13
+ /**
14
+ * Request for block details by block height.
15
+ * @returns {BlockDetailsResponse} Block details response.
16
+ * @see null - no documentation
17
+ */
18
+ export interface BlockDetailsRequest {
19
+ /** Type of request. */
20
+ type: "blockDetails";
21
+ /** Block height. */
22
+ height: number;
23
+ }
24
+ /**
25
+ * Request for user details by user's address.
26
+ * @returns {UserDetailsResponse} User details response.
27
+ * @see null - no documentation
28
+ */
29
+ export interface UserDetailsRequest {
30
+ /** Type of request. */
31
+ type: "userDetails";
32
+ /** User's address. */
33
+ user: Hex;
34
+ }
35
+ //# sourceMappingURL=requests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../../src/src/types/explorer/requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAExC;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B,uBAAuB;IACvB,IAAI,EAAE,WAAW,CAAC;IAClB,wBAAwB;IACxB,IAAI,EAAE,GAAG,CAAC;CACb;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC,uBAAuB;IACvB,IAAI,EAAE,cAAc,CAAC;IACrB,oBAAoB;IACpB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B,uBAAuB;IACvB,IAAI,EAAE,aAAa,CAAC;IACpB,sBAAsB;IACtB,IAAI,EAAE,GAAG,CAAC;CACb"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ import type { BlockDetails, TxDetails } from "./common.js";
2
+ /** Response containing transaction information. */
3
+ export interface TxDetailsResponse {
4
+ /** Type of response. */
5
+ type: "txDetails";
6
+ /** The details of a transaction. */
7
+ tx: TxDetails;
8
+ }
9
+ /** Response containing block information. */
10
+ export interface BlockDetailsResponse {
11
+ /** Type of response. */
12
+ type: "blockDetails";
13
+ /** The details of a block. */
14
+ blockDetails: BlockDetails;
15
+ }
16
+ /** Response containing user details. */
17
+ export interface UserDetailsResponse {
18
+ /** Type of response. */
19
+ type: "userDetails";
20
+ /** The transactions of a user. */
21
+ txs: TxDetails[];
22
+ }
23
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/src/types/explorer/responses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE3D,mDAAmD;AACnD,MAAM,WAAW,iBAAiB;IAC9B,wBAAwB;IACxB,IAAI,EAAE,WAAW,CAAC;IAClB,oCAAoC;IACpC,EAAE,EAAE,SAAS,CAAC;CACjB;AAED,6CAA6C;AAC7C,MAAM,WAAW,oBAAoB;IACjC,wBAAwB;IACxB,IAAI,EAAE,cAAc,CAAC;IACrB,8BAA8B;IAC9B,YAAY,EAAE,YAAY,CAAC;CAC9B;AAED,wCAAwC;AACxC,MAAM,WAAW,mBAAmB;IAChC,wBAAwB;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,kCAAkC;IAClC,GAAG,EAAE,SAAS,EAAE,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,489 @@
1
+ import type { Hex } from "../common.js";
2
+ /** Position for a specific asset. */
3
+ export interface AssetPosition {
4
+ /** Position type. */
5
+ type: "oneWay";
6
+ /** Position details. */
7
+ position: {
8
+ /** Asset symbol. */
9
+ coin: string;
10
+ /** Signed position size. */
11
+ szi: string;
12
+ /** Leverage details. */
13
+ leverage: {
14
+ /** Leverage type. */
15
+ type: "isolated";
16
+ /** Leverage value used. */
17
+ value: number;
18
+ /** Amount of raw USD used. */
19
+ rawUsd: string;
20
+ } | {
21
+ /** Leverage type. */
22
+ type: "cross";
23
+ /** Leverage value used. */
24
+ value: number;
25
+ };
26
+ /** Average entry price. */
27
+ entryPx: string;
28
+ /** Position value. */
29
+ positionValue: string;
30
+ /** Unrealized profit and loss. */
31
+ unrealizedPnl: string;
32
+ /** Return on equity. */
33
+ returnOnEquity: string;
34
+ /** Liquidation price. */
35
+ liquidationPx: string | null;
36
+ /** Margin used. */
37
+ marginUsed: string;
38
+ /** Maximum allowed leverage. */
39
+ maxLeverage: number;
40
+ /** Cumulative funding details. */
41
+ cumFunding: {
42
+ /** Total funding paid or received since account opening. */
43
+ allTime: string;
44
+ /** Funding accumulated since the position was opened. */
45
+ sinceOpen: string;
46
+ /** Funding accumulated since the last change in position size. */
47
+ sinceChange: string;
48
+ };
49
+ };
50
+ }
51
+ /** Perpetual trading clearinghouse state summary. */
52
+ export interface PerpsClearinghouseState {
53
+ /** Margin summary details. */
54
+ marginSummary: {
55
+ /** Total account value. */
56
+ accountValue: string;
57
+ /** Total notional position value. */
58
+ totalNtlPos: string;
59
+ /** Total raw USD value. */
60
+ totalRawUsd: string;
61
+ /** Total margin used. */
62
+ totalMarginUsed: string;
63
+ };
64
+ /** Cross-margin summary details. */
65
+ crossMarginSummary: {
66
+ /** Total account value. */
67
+ accountValue: string;
68
+ /** Total notional position value. */
69
+ totalNtlPos: string;
70
+ /** Total raw USD value. */
71
+ totalRawUsd: string;
72
+ /** Total margin used. */
73
+ totalMarginUsed: string;
74
+ };
75
+ /** Maintenance margin used for cross-margin positions. */
76
+ crossMaintenanceMarginUsed: string;
77
+ /** Amount available for withdrawal. */
78
+ withdrawable: string;
79
+ /** List of asset positions. */
80
+ assetPositions: AssetPosition[];
81
+ /** Timestamp when data was retrieved (in ms since epoch). */
82
+ time: number;
83
+ }
84
+ /** Portfolio metrics grouped by time periods. */
85
+ export type PortfolioPeriods = [
86
+ [
87
+ "day",
88
+ Portfolio
89
+ ],
90
+ [
91
+ "week",
92
+ Portfolio
93
+ ],
94
+ [
95
+ "month",
96
+ Portfolio
97
+ ],
98
+ [
99
+ "allTime",
100
+ Portfolio
101
+ ],
102
+ [
103
+ "perpDay",
104
+ Portfolio
105
+ ],
106
+ [
107
+ "perpWeek",
108
+ Portfolio
109
+ ],
110
+ [
111
+ "perpMonth",
112
+ Portfolio
113
+ ],
114
+ [
115
+ "perpAllTime",
116
+ Portfolio
117
+ ]
118
+ ];
119
+ /** Portfolio metrics snapshot. */
120
+ export interface Portfolio {
121
+ /** History entries for account value as [timestamp, value]. */
122
+ accountValueHistory: [number, string][];
123
+ /** History entries for profit and loss as [timestamp, value]. */
124
+ pnlHistory: [number, string][];
125
+ /** Volume metric for the portfolio. */
126
+ vlm: string;
127
+ }
128
+ /** Balance for a specific spot token. */
129
+ export interface SpotBalance {
130
+ /** Asset symbol. */
131
+ coin: string;
132
+ /** Unique identifier for the token. */
133
+ token: number;
134
+ /** Total balance. */
135
+ total: string;
136
+ /** Amount on hold. */
137
+ hold: string;
138
+ /** Entry notional value. */
139
+ entryNtl: string;
140
+ }
141
+ /** Clearinghouse state for spot tokens. */
142
+ export interface SpotClearinghouseState {
143
+ /** Balance for each token. */
144
+ balances: SpotBalance[];
145
+ }
146
+ /** Sub-account details for a user. */
147
+ export interface SubAccount {
148
+ /** Sub-account name. */
149
+ name: string;
150
+ /** Sub-account address. */
151
+ subAccountUser: Hex;
152
+ /** Master account address. */
153
+ master: Hex;
154
+ /** Perpetual trading clearinghouse state summary. */
155
+ clearinghouseState: PerpsClearinghouseState;
156
+ /** Spot tokens clearinghouse state. */
157
+ spotState: SpotClearinghouseState;
158
+ }
159
+ /** User fee details. */
160
+ export interface UserFees {
161
+ /** Daily user volume metrics. */
162
+ dailyUserVlm: {
163
+ /** Date in YYYY-M-D format. */
164
+ date: `${number}-${number}-${number}`;
165
+ /** User cross-trade volume. */
166
+ userCross: string;
167
+ /** User add-liquidity volume. */
168
+ userAdd: string;
169
+ /** Exchange total volume. */
170
+ exchange: string;
171
+ }[];
172
+ /** Fee schedule information. */
173
+ feeSchedule: {
174
+ /** Cross-trade fee rate. */
175
+ cross: string;
176
+ /** Add-liquidity fee rate. */
177
+ add: string;
178
+ /** Fee tiers details. */
179
+ tiers: {
180
+ /** VIP fee tier information. */
181
+ vip: {
182
+ /** Notional volume cutoff. */
183
+ ntlCutoff: string;
184
+ /** Cross-trade fee rate. */
185
+ cross: string;
186
+ /** Add-liquidity fee rate. */
187
+ add: string;
188
+ }[];
189
+ /** Market maker fee tier information. */
190
+ mm: {
191
+ /** Maker fraction cutoff. */
192
+ makerFractionCutoff: string;
193
+ /** Add-liquidity fee rate. */
194
+ add: string;
195
+ }[];
196
+ };
197
+ /** Referral discount rate. */
198
+ referralDiscount: string;
199
+ };
200
+ /** User cross-trade rate. */
201
+ userCrossRate: string;
202
+ /** User add-liquidity rate. */
203
+ userAddRate: string;
204
+ /** Active referral discount rate. */
205
+ activeReferralDiscount: string;
206
+ /** Trial details. */
207
+ trial: unknown | null;
208
+ /** Fee trial reward amount. */
209
+ feeTrialReward: string;
210
+ /** Timestamp when next trial becomes available. */
211
+ nextTrialAvailableTimestamp: unknown | null;
212
+ }
213
+ /** Rate limits for a user. */
214
+ export interface UserRateLimit {
215
+ /** Cumulative trading volume. */
216
+ cumVlm: string;
217
+ /** Number of API requests used. */
218
+ nRequestsUsed: number;
219
+ /** Maximum allowed API requests. */
220
+ nRequestsCap: number;
221
+ }
222
+ /** User role details. */
223
+ export type UserRole = {
224
+ /** Role identifier. */
225
+ role: "missing" | "user" | "vault";
226
+ } | {
227
+ /** Role identifier. */
228
+ role: "agent";
229
+ /** Details for agent role. */
230
+ data: {
231
+ /** Master account address associated with the agent. */
232
+ user: Hex;
233
+ };
234
+ } | {
235
+ /** Role identifier. */
236
+ role: "subAccount";
237
+ /** Details for sub-account role. */
238
+ data: {
239
+ /** Master account address associated with the sub-account. */
240
+ master: Hex;
241
+ };
242
+ };
243
+ /** Extra agent details for a user. */
244
+ export interface ExtraAgent {
245
+ /** Extra agent address. */
246
+ address: Hex;
247
+ /** Extra agent name. */
248
+ name: string;
249
+ /** Validity period as a timestamp (in ms since epoch). */
250
+ validUntil: number;
251
+ }
252
+ /** Referral details for a user. */
253
+ export interface Referral {
254
+ /** Referrer details. */
255
+ referredBy: {
256
+ /** Referrer address. */
257
+ referrer: Hex;
258
+ /** Referral code used. */
259
+ code: string;
260
+ } | null;
261
+ /** Cumulative traded volume. */
262
+ cumVlm: string;
263
+ /** Rewards earned but not yet claimed. */
264
+ unclaimedRewards: string;
265
+ /** Rewards that have been claimed. */
266
+ claimedRewards: string;
267
+ /** Builder reward amount. */
268
+ builderRewards: string;
269
+ /** Current state of the referrer. */
270
+ referrerState: {
271
+ /** Referrer is ready to receive rewards. */
272
+ stage: "ready";
273
+ /** Referral program details. */
274
+ data: {
275
+ /** Assigned referral code. */
276
+ code: string;
277
+ /** Summary of each referral state. */
278
+ referralStates: {
279
+ /** Cumulative traded volume. */
280
+ cumVlm: string;
281
+ /** Total fees rewarded to the referred user since referral. */
282
+ cumRewardedFeesSinceReferred: string;
283
+ /** Total fees rewarded to the referrer from referred trades. */
284
+ cumFeesRewardedToReferrer: string;
285
+ /** Timestamp when the referred user joined (in ms since epoch). */
286
+ timeJoined: number;
287
+ /** Address of the referred user. */
288
+ user: string;
289
+ }[];
290
+ };
291
+ } | {
292
+ /** Referrer needs to create a referral code. */
293
+ stage: "needToCreateCode";
294
+ } | {
295
+ /** Referrer must complete a trade before earning rewards. */
296
+ stage: "needToTrade";
297
+ /** Required trading volume details for activation. */
298
+ data: {
299
+ /** Required trading volume. */
300
+ required: string;
301
+ };
302
+ };
303
+ /** History of referral rewards. */
304
+ rewardHistory: {
305
+ /** Amount of earned rewards. */
306
+ earned: string;
307
+ /** Traded volume at the time of reward. */
308
+ vlm: string;
309
+ /** Traded volume via referrals. */
310
+ referralVlm: string;
311
+ /** Timestamp when the reward was earned (in ms since epoch). */
312
+ time: number;
313
+ }[];
314
+ }
315
+ /** Funding ledger update for a user. */
316
+ export interface UserFundingUpdate {
317
+ /** Timestamp of the update (in ms since epoch). */
318
+ time: number;
319
+ /** L1 transaction hash. */
320
+ hash: Hex;
321
+ /** Update details. */
322
+ delta: FundingUpdate;
323
+ }
324
+ /** Non-funding ledger update for a user. */
325
+ export interface UserNonFundingLedgerUpdate {
326
+ /** Timestamp of the update (in ms since epoch). */
327
+ time: number;
328
+ /** L1 transaction hash. */
329
+ hash: Hex;
330
+ /** Update details. */
331
+ delta: AccountClassTransferUpdate | DepositUpdate | InternalTransferUpdate | LiquidationUpdate | RewardsClaimUpdate | SpotTransferUpdate | SubAccountTransferUpdate | VaultCreateUpdate | VaultDepositUpdate | VaultDistributionUpdate | VaultWithdrawUpdate | WithdrawUpdate;
332
+ }
333
+ /** Transfer between spot and perpetual accounts. */
334
+ export interface AccountClassTransferUpdate {
335
+ /** Update type. */
336
+ type: "accountClassTransfer";
337
+ /** Amount transferred in USDC. */
338
+ usdc: string;
339
+ /** Indicates if the transfer is to the perpetual account. */
340
+ toPerp: boolean;
341
+ }
342
+ /** Deposit update to an account. */
343
+ export interface DepositUpdate {
344
+ /** Update type. */
345
+ type: "deposit";
346
+ /** Amount deposited in USDC. */
347
+ usdc: string;
348
+ }
349
+ /** Internal transfer between accounts. */
350
+ export interface InternalTransferUpdate {
351
+ /** Update type. */
352
+ type: "internalTransfer";
353
+ /** Amount transferred in USDC. */
354
+ usdc: string;
355
+ /** Initiator's address. */
356
+ user: Hex;
357
+ /** Destination address. */
358
+ destination: Hex;
359
+ /** Transfer fee. */
360
+ fee: string;
361
+ }
362
+ /** Liquidation event update. */
363
+ export interface LiquidationUpdate {
364
+ /** Update type. */
365
+ type: "liquidation";
366
+ /** Total notional value of liquidated positions. */
367
+ liquidatedNtlPos: string;
368
+ /** Account value at liquidation time. */
369
+ accountValue: string;
370
+ /** Leverage type for liquidated positions. */
371
+ leverageType: "Cross" | "Isolated";
372
+ /** Details of each liquidated position. */
373
+ liquidatedPositions: {
374
+ /** Asset symbol of the liquidated position. */
375
+ coin: string;
376
+ /** Signed position size liquidated. */
377
+ szi: string;
378
+ }[];
379
+ }
380
+ /** Funding update details. */
381
+ export interface FundingUpdate {
382
+ /** Update type. */
383
+ type: "funding";
384
+ /** Asset symbol. */
385
+ coin: string;
386
+ /** Amount transferred in USDC. */
387
+ usdc: string;
388
+ /** Signed position size. */
389
+ szi: string;
390
+ /** Applied funding rate. */
391
+ fundingRate: string;
392
+ /** Number of samples. */
393
+ nSamples: number | null;
394
+ }
395
+ /** Rewards claim event update. */
396
+ export interface RewardsClaimUpdate {
397
+ /** Update type. */
398
+ type: "rewardsClaim";
399
+ /** Amount of rewards claimed. */
400
+ amount: string;
401
+ }
402
+ /** Spot transfer update between accounts. */
403
+ export interface SpotTransferUpdate {
404
+ /** Update type. */
405
+ type: "spotTransfer";
406
+ /** Token symbol. */
407
+ token: string;
408
+ /** Amount transferred. */
409
+ amount: string;
410
+ /** Equivalent USDC value. */
411
+ usdcValue: string;
412
+ /** Initiator's address. */
413
+ user: Hex;
414
+ /** Destination address. */
415
+ destination: Hex;
416
+ /** Transfer fee. */
417
+ fee: string;
418
+ }
419
+ /** Transfer update between sub-accounts. */
420
+ export interface SubAccountTransferUpdate {
421
+ /** Update type. */
422
+ type: "subAccountTransfer";
423
+ /** Amount transferred in USDC. */
424
+ usdc: string;
425
+ /** Initiator's address. */
426
+ user: Hex;
427
+ /** Destination address. */
428
+ destination: Hex;
429
+ }
430
+ /** Vault creation update. */
431
+ export interface VaultCreateUpdate {
432
+ /** Update type. */
433
+ type: "vaultCreate";
434
+ /** Address of the created vault. */
435
+ vault: Hex;
436
+ /** Initial allocated amount in USDC. */
437
+ usdc: string;
438
+ /** Vault creation fee. */
439
+ fee: string;
440
+ }
441
+ /** Vault deposit update. */
442
+ export interface VaultDepositUpdate {
443
+ /** Update type. */
444
+ type: "vaultDeposit";
445
+ /** Address of the target vault. */
446
+ vault: Hex;
447
+ /** Amount deposited in USDC. */
448
+ usdc: string;
449
+ }
450
+ /** Vault distribution update. */
451
+ export interface VaultDistributionUpdate {
452
+ /** Update type. */
453
+ type: "vaultDistribution";
454
+ /** Address of the vault distributing funds. */
455
+ vault: Hex;
456
+ /** Amount distributed in USDC. */
457
+ usdc: string;
458
+ }
459
+ /** Vault withdrawal event update. */
460
+ export interface VaultWithdrawUpdate {
461
+ /** Update type. */
462
+ type: "vaultWithdraw";
463
+ /** Vault address. */
464
+ vault: Hex;
465
+ /** Address of the user withdrawing funds. */
466
+ user: Hex;
467
+ /** Withdrawal request amount in USD. */
468
+ requestedUsd: string;
469
+ /** Withdrawal commission fee. */
470
+ commission: string;
471
+ /** Closing cost associated with positions. */
472
+ closingCost: string;
473
+ /** Basis value for withdrawal calculation. */
474
+ basis: string;
475
+ /** Net withdrawn amount in USD after fees and costs. */
476
+ netWithdrawnUsd: string;
477
+ }
478
+ /** Withdrawal update from an account. */
479
+ export interface WithdrawUpdate {
480
+ /** Update type. */
481
+ type: "withdraw";
482
+ /** Amount withdrawn in USDC. */
483
+ usdc: string;
484
+ /** Unique nonce for the withdrawal request. */
485
+ nonce: number;
486
+ /** Withdrawal fee. */
487
+ fee: string;
488
+ }
489
+ //# sourceMappingURL=accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../../../src/src/types/info/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAExC,qCAAqC;AACrC,MAAM,WAAW,aAAa;IAC1B,qBAAqB;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,wBAAwB;IACxB,QAAQ,EAAE;QACN,oBAAoB;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,4BAA4B;QAC5B,GAAG,EAAE,MAAM,CAAC;QACZ,wBAAwB;QACxB,QAAQ,EACF;YACE,qBAAqB;YACrB,IAAI,EAAE,UAAU,CAAC;YACjB,2BAA2B;YAC3B,KAAK,EA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