lighter-sdk-client 0.2.11

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 (360) hide show
  1. package/README.md +574 -0
  2. package/dist/api/exchange/change-account-tier.cjs +6 -0
  3. package/dist/api/exchange/change-account-tier.d.cts +14 -0
  4. package/dist/api/exchange/change-account-tier.d.ts +14 -0
  5. package/dist/api/exchange/change-account-tier.js +6 -0
  6. package/dist/api/exchange/fastwithdraw.cjs +6 -0
  7. package/dist/api/exchange/fastwithdraw.d.cts +14 -0
  8. package/dist/api/exchange/fastwithdraw.d.ts +14 -0
  9. package/dist/api/exchange/fastwithdraw.js +6 -0
  10. package/dist/api/exchange/index.cjs +37 -0
  11. package/dist/api/exchange/index.d.cts +8 -0
  12. package/dist/api/exchange/index.d.ts +8 -0
  13. package/dist/api/exchange/index.js +37 -0
  14. package/dist/api/exchange/notification-ack.cjs +6 -0
  15. package/dist/api/exchange/notification-ack.d.cts +13 -0
  16. package/dist/api/exchange/notification-ack.d.ts +13 -0
  17. package/dist/api/exchange/notification-ack.js +6 -0
  18. package/dist/api/exchange/send-tx-batch.cjs +6 -0
  19. package/dist/api/exchange/send-tx-batch.d.cts +22 -0
  20. package/dist/api/exchange/send-tx-batch.d.ts +22 -0
  21. package/dist/api/exchange/send-tx-batch.js +6 -0
  22. package/dist/api/exchange/send-tx.cjs +12 -0
  23. package/dist/api/exchange/send-tx.d.cts +33 -0
  24. package/dist/api/exchange/send-tx.d.ts +33 -0
  25. package/dist/api/exchange/send-tx.js +12 -0
  26. package/dist/api/exchange/tokens-create.cjs +6 -0
  27. package/dist/api/exchange/tokens-create.d.cts +24 -0
  28. package/dist/api/exchange/tokens-create.d.ts +24 -0
  29. package/dist/api/exchange/tokens-create.js +6 -0
  30. package/dist/api/exchange/tokens-revoke.cjs +6 -0
  31. package/dist/api/exchange/tokens-revoke.d.cts +15 -0
  32. package/dist/api/exchange/tokens-revoke.d.ts +15 -0
  33. package/dist/api/exchange/tokens-revoke.js +6 -0
  34. package/dist/api/info/account-by-l1-address.cjs +6 -0
  35. package/dist/api/info/account-by-l1-address.d.cts +28 -0
  36. package/dist/api/info/account-by-l1-address.d.ts +28 -0
  37. package/dist/api/info/account-by-l1-address.js +6 -0
  38. package/dist/api/info/account.cjs +6 -0
  39. package/dist/api/info/account.d.cts +67 -0
  40. package/dist/api/info/account.d.ts +67 -0
  41. package/dist/api/info/account.js +6 -0
  42. package/dist/api/info/announcement.cjs +6 -0
  43. package/dist/api/info/announcement.d.cts +15 -0
  44. package/dist/api/info/announcement.d.ts +15 -0
  45. package/dist/api/info/announcement.js +6 -0
  46. package/dist/api/info/api-keys.cjs +6 -0
  47. package/dist/api/info/api-keys.d.cts +19 -0
  48. package/dist/api/info/api-keys.d.ts +19 -0
  49. package/dist/api/info/api-keys.js +6 -0
  50. package/dist/api/info/asset-details.cjs +6 -0
  51. package/dist/api/info/asset-details.d.cts +26 -0
  52. package/dist/api/info/asset-details.d.ts +26 -0
  53. package/dist/api/info/asset-details.js +6 -0
  54. package/dist/api/info/candles.cjs +6 -0
  55. package/dist/api/info/candles.d.cts +23 -0
  56. package/dist/api/info/candles.d.ts +23 -0
  57. package/dist/api/info/candles.js +6 -0
  58. package/dist/api/info/exchange-stats.cjs +6 -0
  59. package/dist/api/info/exchange-stats.d.cts +11 -0
  60. package/dist/api/info/exchange-stats.d.ts +11 -0
  61. package/dist/api/info/exchange-stats.js +6 -0
  62. package/dist/api/info/fastbridge-info.cjs +6 -0
  63. package/dist/api/info/fastbridge-info.d.cts +10 -0
  64. package/dist/api/info/fastbridge-info.d.ts +10 -0
  65. package/dist/api/info/fastbridge-info.js +6 -0
  66. package/dist/api/info/funding-rates.cjs +6 -0
  67. package/dist/api/info/funding-rates.d.cts +16 -0
  68. package/dist/api/info/funding-rates.d.ts +16 -0
  69. package/dist/api/info/funding-rates.js +6 -0
  70. package/dist/api/info/fundings.cjs +6 -0
  71. package/dist/api/info/fundings.d.cts +21 -0
  72. package/dist/api/info/fundings.d.ts +21 -0
  73. package/dist/api/info/fundings.js +6 -0
  74. package/dist/api/info/index.cjs +85 -0
  75. package/dist/api/info/index.d.cts +22 -0
  76. package/dist/api/info/index.d.ts +22 -0
  77. package/dist/api/info/index.js +85 -0
  78. package/dist/api/info/next-nonce.cjs +6 -0
  79. package/dist/api/info/next-nonce.d.cts +14 -0
  80. package/dist/api/info/next-nonce.d.ts +14 -0
  81. package/dist/api/info/next-nonce.js +6 -0
  82. package/dist/api/info/order-book-details.cjs +8 -0
  83. package/dist/api/info/order-book-details.d.cts +95 -0
  84. package/dist/api/info/order-book-details.d.ts +95 -0
  85. package/dist/api/info/order-book-details.js +8 -0
  86. package/dist/api/info/order-books.cjs +6 -0
  87. package/dist/api/info/order-books.d.cts +16 -0
  88. package/dist/api/info/order-books.d.ts +16 -0
  89. package/dist/api/info/order-books.js +6 -0
  90. package/dist/api/info/recent-trades.cjs +6 -0
  91. package/dist/api/info/recent-trades.d.cts +11 -0
  92. package/dist/api/info/recent-trades.d.ts +11 -0
  93. package/dist/api/info/recent-trades.js +6 -0
  94. package/dist/api/info/root-info.cjs +6 -0
  95. package/dist/api/info/root-info.d.cts +8 -0
  96. package/dist/api/info/root-info.d.ts +8 -0
  97. package/dist/api/info/root-info.js +6 -0
  98. package/dist/api/info/root-status.cjs +6 -0
  99. package/dist/api/info/root-status.d.cts +10 -0
  100. package/dist/api/info/root-status.d.ts +10 -0
  101. package/dist/api/info/root-status.js +6 -0
  102. package/dist/api/info/tx-from-l1-hash.cjs +6 -0
  103. package/dist/api/info/tx-from-l1-hash.d.cts +9 -0
  104. package/dist/api/info/tx-from-l1-hash.d.ts +9 -0
  105. package/dist/api/info/tx-from-l1-hash.js +6 -0
  106. package/dist/api/info/tx.cjs +6 -0
  107. package/dist/api/info/tx.d.cts +33 -0
  108. package/dist/api/info/tx.d.ts +33 -0
  109. package/dist/api/info/tx.js +6 -0
  110. package/dist/api/info/txs.cjs +6 -0
  111. package/dist/api/info/txs.d.cts +11 -0
  112. package/dist/api/info/txs.d.ts +11 -0
  113. package/dist/api/info/txs.js +6 -0
  114. package/dist/api/info/withdrawal-delay.cjs +6 -0
  115. package/dist/api/info/withdrawal-delay.d.cts +8 -0
  116. package/dist/api/info/withdrawal-delay.d.ts +8 -0
  117. package/dist/api/info/withdrawal-delay.js +6 -0
  118. package/dist/api/info-private/account-active-orders.cjs +6 -0
  119. package/dist/api/info-private/account-active-orders.d.cts +11 -0
  120. package/dist/api/info-private/account-active-orders.d.ts +11 -0
  121. package/dist/api/info-private/account-active-orders.js +6 -0
  122. package/dist/api/info-private/account-inactive-orders.cjs +6 -0
  123. package/dist/api/info-private/account-inactive-orders.d.cts +52 -0
  124. package/dist/api/info-private/account-inactive-orders.d.ts +52 -0
  125. package/dist/api/info-private/account-inactive-orders.js +6 -0
  126. package/dist/api/info-private/account-limits.cjs +6 -0
  127. package/dist/api/info-private/account-limits.d.cts +16 -0
  128. package/dist/api/info-private/account-limits.d.ts +16 -0
  129. package/dist/api/info-private/account-limits.js +6 -0
  130. package/dist/api/info-private/account-metadata.cjs +6 -0
  131. package/dist/api/info-private/account-metadata.d.cts +22 -0
  132. package/dist/api/info-private/account-metadata.d.ts +22 -0
  133. package/dist/api/info-private/account-metadata.js +6 -0
  134. package/dist/api/info-private/deposit-history.cjs +6 -0
  135. package/dist/api/info-private/deposit-history.d.cts +27 -0
  136. package/dist/api/info-private/deposit-history.d.ts +27 -0
  137. package/dist/api/info-private/deposit-history.js +6 -0
  138. package/dist/api/info-private/export.cjs +6 -0
  139. package/dist/api/info-private/export.d.cts +16 -0
  140. package/dist/api/info-private/export.d.ts +16 -0
  141. package/dist/api/info-private/export.js +6 -0
  142. package/dist/api/info-private/fastwithdraw-info.cjs +6 -0
  143. package/dist/api/info-private/fastwithdraw-info.d.cts +16 -0
  144. package/dist/api/info-private/fastwithdraw-info.d.ts +16 -0
  145. package/dist/api/info-private/fastwithdraw-info.js +6 -0
  146. package/dist/api/info-private/index.cjs +75 -0
  147. package/dist/api/info-private/index.d.cts +19 -0
  148. package/dist/api/info-private/index.d.ts +19 -0
  149. package/dist/api/info-private/index.js +75 -0
  150. package/dist/api/info-private/l1-metadata.cjs +6 -0
  151. package/dist/api/info-private/l1-metadata.d.cts +16 -0
  152. package/dist/api/info-private/l1-metadata.d.ts +16 -0
  153. package/dist/api/info-private/l1-metadata.js +6 -0
  154. package/dist/api/info-private/liquidations.cjs +6 -0
  155. package/dist/api/info-private/liquidations.d.cts +66 -0
  156. package/dist/api/info-private/liquidations.d.ts +66 -0
  157. package/dist/api/info-private/liquidations.js +6 -0
  158. package/dist/api/info-private/pnl.cjs +6 -0
  159. package/dist/api/info-private/pnl.d.cts +24 -0
  160. package/dist/api/info-private/pnl.d.ts +24 -0
  161. package/dist/api/info-private/pnl.js +6 -0
  162. package/dist/api/info-private/position-funding.cjs +6 -0
  163. package/dist/api/info-private/position-funding.d.cts +28 -0
  164. package/dist/api/info-private/position-funding.d.ts +28 -0
  165. package/dist/api/info-private/position-funding.js +6 -0
  166. package/dist/api/info-private/public-pools-metadata.cjs +6 -0
  167. package/dist/api/info-private/public-pools-metadata.d.cts +24 -0
  168. package/dist/api/info-private/public-pools-metadata.d.ts +24 -0
  169. package/dist/api/info-private/public-pools-metadata.js +6 -0
  170. package/dist/api/info-private/referral-points.cjs +6 -0
  171. package/dist/api/info-private/referral-points.d.cts +24 -0
  172. package/dist/api/info-private/referral-points.d.ts +24 -0
  173. package/dist/api/info-private/referral-points.js +6 -0
  174. package/dist/api/info-private/tokens.cjs +6 -0
  175. package/dist/api/info-private/tokens.d.cts +24 -0
  176. package/dist/api/info-private/tokens.d.ts +24 -0
  177. package/dist/api/info-private/tokens.js +6 -0
  178. package/dist/api/info-private/trades.cjs +6 -0
  179. package/dist/api/info-private/trades.d.cts +49 -0
  180. package/dist/api/info-private/trades.d.ts +49 -0
  181. package/dist/api/info-private/trades.js +6 -0
  182. package/dist/api/info-private/transfer-fee-info.cjs +6 -0
  183. package/dist/api/info-private/transfer-fee-info.d.cts +15 -0
  184. package/dist/api/info-private/transfer-fee-info.d.ts +15 -0
  185. package/dist/api/info-private/transfer-fee-info.js +6 -0
  186. package/dist/api/info-private/transfer-history.cjs +6 -0
  187. package/dist/api/info-private/transfer-history.d.cts +27 -0
  188. package/dist/api/info-private/transfer-history.d.ts +27 -0
  189. package/dist/api/info-private/transfer-history.js +6 -0
  190. package/dist/api/info-private/withdraw-history.cjs +6 -0
  191. package/dist/api/info-private/withdraw-history.d.cts +27 -0
  192. package/dist/api/info-private/withdraw-history.d.ts +27 -0
  193. package/dist/api/info-private/withdraw-history.js +6 -0
  194. package/dist/chunk-2R5COGAH.cjs +10 -0
  195. package/dist/chunk-3OSXAPI3.js +8 -0
  196. package/dist/chunk-3R4OL3TU.cjs +17 -0
  197. package/dist/chunk-3SKO62BC.js +0 -0
  198. package/dist/chunk-3Y76Q54G.js +18 -0
  199. package/dist/chunk-3ZIFHX7Q.cjs +1 -0
  200. package/dist/chunk-467IJZRE.js +14 -0
  201. package/dist/chunk-472ULOSN.js +10 -0
  202. package/dist/chunk-4LNJ2577.js +17 -0
  203. package/dist/chunk-4MZ3XQUJ.cjs +13 -0
  204. package/dist/chunk-4TIJW7PH.cjs +14 -0
  205. package/dist/chunk-4VAZ7ZA2.js +10 -0
  206. package/dist/chunk-5JDRAN7L.cjs +22 -0
  207. package/dist/chunk-5P5CPB5A.js +18 -0
  208. package/dist/chunk-5U6X6DI7.cjs +13 -0
  209. package/dist/chunk-5WEMEUUI.js +22 -0
  210. package/dist/chunk-5YGIBBTZ.js +357 -0
  211. package/dist/chunk-62KDFQ7D.js +367 -0
  212. package/dist/chunk-6CD3YMMG.cjs +1 -0
  213. package/dist/chunk-6GCE6YQR.cjs +8 -0
  214. package/dist/chunk-6LUEPRL7.cjs +16 -0
  215. package/dist/chunk-76SPKVHT.js +48 -0
  216. package/dist/chunk-77QSYYAW.js +13 -0
  217. package/dist/chunk-7U2USLAM.cjs +8 -0
  218. package/dist/chunk-A2APDMN3.js +13 -0
  219. package/dist/chunk-AKEQDKGA.js +167 -0
  220. package/dist/chunk-AMNDQGYL.js +18 -0
  221. package/dist/chunk-BA2QFD27.cjs +19 -0
  222. package/dist/chunk-BES73YEF.js +8 -0
  223. package/dist/chunk-BKIL4UXV.cjs +22 -0
  224. package/dist/chunk-BKJGDTS3.js +8 -0
  225. package/dist/chunk-BVC2AA7Y.cjs +8 -0
  226. package/dist/chunk-BXMXWCMD.js +13 -0
  227. package/dist/chunk-C7OTZCGC.js +0 -0
  228. package/dist/chunk-DCKMNDS3.js +0 -0
  229. package/dist/chunk-DOZF64YC.cjs +17 -0
  230. package/dist/chunk-DW6W5SX2.cjs +18 -0
  231. package/dist/chunk-E3GJJZER.cjs +8 -0
  232. package/dist/chunk-EBSW5ZYW.js +19 -0
  233. package/dist/chunk-F24JA2OV.cjs +22 -0
  234. package/dist/chunk-FJJWUBKM.js +17 -0
  235. package/dist/chunk-FM4WWIRI.cjs +17 -0
  236. package/dist/chunk-FODEDUT4.js +8 -0
  237. package/dist/chunk-GEWTGUEG.cjs +1 -0
  238. package/dist/chunk-GI4WUHSL.cjs +1 -0
  239. package/dist/chunk-GYABNQWH.js +8 -0
  240. package/dist/chunk-GYQ6HJQY.cjs +21 -0
  241. package/dist/chunk-INCL3WRA.cjs +13 -0
  242. package/dist/chunk-IQQRFW4A.cjs +8 -0
  243. package/dist/chunk-IT6LK2G5.cjs +19 -0
  244. package/dist/chunk-IXF4QUC6.js +8 -0
  245. package/dist/chunk-J3UZK77O.cjs +18 -0
  246. package/dist/chunk-J7GXRK7R.cjs +19 -0
  247. package/dist/chunk-JNTYHWDJ.js +22 -0
  248. package/dist/chunk-JTE4UBAX.js +8 -0
  249. package/dist/chunk-JTP6DTDN.js +0 -0
  250. package/dist/chunk-K7ZQARON.js +8 -0
  251. package/dist/chunk-KV6G2ZCR.js +539 -0
  252. package/dist/chunk-L5SDFTHR.cjs +242 -0
  253. package/dist/chunk-LBVNEQ5R.cjs +21 -0
  254. package/dist/chunk-LYNZNSLV.js +18 -0
  255. package/dist/chunk-MAPH47LH.cjs +1 -0
  256. package/dist/chunk-MO4PMYTS.js +0 -0
  257. package/dist/chunk-MOMFTZ7N.cjs +357 -0
  258. package/dist/chunk-MZCKU6FF.js +8 -0
  259. package/dist/chunk-NIMYOIVU.cjs +1 -0
  260. package/dist/chunk-NIT6TCVS.cjs +8 -0
  261. package/dist/chunk-NOFXPTLU.js +8 -0
  262. package/dist/chunk-NRZGE42C.js +23 -0
  263. package/dist/chunk-NSFKW27X.js +0 -0
  264. package/dist/chunk-O3PA6HV2.js +18 -0
  265. package/dist/chunk-ON64OVOQ.cjs +20 -0
  266. package/dist/chunk-OPSCTD6W.js +17 -0
  267. package/dist/chunk-P32EPCEM.js +19 -0
  268. package/dist/chunk-PEALQBVN.js +19 -0
  269. package/dist/chunk-PP4Q2W66.cjs +10 -0
  270. package/dist/chunk-PPU2VWXX.js +12 -0
  271. package/dist/chunk-Q2MT7FZ7.js +242 -0
  272. package/dist/chunk-QCE5PEXE.cjs +8 -0
  273. package/dist/chunk-QMXZQNBK.cjs +8 -0
  274. package/dist/chunk-QNM3HYIV.cjs +8 -0
  275. package/dist/chunk-QXGO7TJ2.js +17 -0
  276. package/dist/chunk-RGVFMOQI.js +20 -0
  277. package/dist/chunk-RYDJEI67.cjs +48 -0
  278. package/dist/chunk-S4OE3IME.js +13 -0
  279. package/dist/chunk-SA6CXVP6.js +22 -0
  280. package/dist/chunk-SK6Y2YH6.js +0 -0
  281. package/dist/chunk-TELGVFFP.js +13 -0
  282. package/dist/chunk-TPGO4YD3.js +21 -0
  283. package/dist/chunk-TSHQJVUP.js +0 -0
  284. package/dist/chunk-TWGXKYO2.cjs +23 -0
  285. package/dist/chunk-U25GSCR7.cjs +17 -0
  286. package/dist/chunk-U2SM46CP.cjs +17 -0
  287. package/dist/chunk-UICTRTWB.cjs +367 -0
  288. package/dist/chunk-UORSMHI2.js +21 -0
  289. package/dist/chunk-VDBWTSBC.cjs +1 -0
  290. package/dist/chunk-VNQKWIQG.cjs +13 -0
  291. package/dist/chunk-VT3N7TOX.js +325 -0
  292. package/dist/chunk-VW77SNCY.js +24 -0
  293. package/dist/chunk-W2BVNVOC.cjs +1 -0
  294. package/dist/chunk-W2CTGWUW.cjs +539 -0
  295. package/dist/chunk-W5VY4TWP.js +16 -0
  296. package/dist/chunk-WDQ4YM6C.cjs +167 -0
  297. package/dist/chunk-WK6OQRMG.cjs +8 -0
  298. package/dist/chunk-WWLOQFSW.cjs +12 -0
  299. package/dist/chunk-X7E6XJVQ.cjs +18 -0
  300. package/dist/chunk-XOG6T533.cjs +18 -0
  301. package/dist/chunk-XPZBVL56.cjs +325 -0
  302. package/dist/chunk-XQGOXCT4.js +22 -0
  303. package/dist/chunk-YVJVFJ24.cjs +19 -0
  304. package/dist/chunk-YWN57BJF.js +8 -0
  305. package/dist/chunk-Z5XTWR2A.cjs +8 -0
  306. package/dist/chunk-ZDNQFOED.js +17 -0
  307. package/dist/chunk-ZGWYI7Q2.cjs +24 -0
  308. package/dist/chunk-ZIMFMYT2.cjs +22 -0
  309. package/dist/chunk-ZJVQD6JD.cjs +18 -0
  310. package/dist/chunk-ZKFXRN6W.cjs +13 -0
  311. package/dist/chunk-ZWYNOAL3.js +19 -0
  312. package/dist/client/exchange-client.cjs +14 -0
  313. package/dist/client/exchange-client.d.cts +352 -0
  314. package/dist/client/exchange-client.d.ts +352 -0
  315. package/dist/client/exchange-client.js +14 -0
  316. package/dist/client/index.cjs +71 -0
  317. package/dist/client/index.d.cts +53 -0
  318. package/dist/client/index.d.ts +53 -0
  319. package/dist/client/index.js +71 -0
  320. package/dist/client/info-client.cjs +27 -0
  321. package/dist/client/info-client.d.cts +255 -0
  322. package/dist/client/info-client.d.ts +255 -0
  323. package/dist/client/info-client.js +27 -0
  324. package/dist/client/info-private-client.cjs +25 -0
  325. package/dist/client/info-private-client.d.cts +293 -0
  326. package/dist/client/info-private-client.d.ts +293 -0
  327. package/dist/client/info-private-client.js +25 -0
  328. package/dist/client/l1-bridge-client.cjs +6 -0
  329. package/dist/client/l1-bridge-client.d.cts +45 -0
  330. package/dist/client/l1-bridge-client.d.ts +45 -0
  331. package/dist/client/l1-bridge-client.js +6 -0
  332. package/dist/client/ws-client.cjs +6 -0
  333. package/dist/client/ws-client.d.cts +63 -0
  334. package/dist/client/ws-client.d.ts +63 -0
  335. package/dist/client/ws-client.js +6 -0
  336. package/dist/index.cjs +79 -0
  337. package/dist/index.d.cts +53 -0
  338. package/dist/index.d.ts +53 -0
  339. package/dist/index.js +79 -0
  340. package/dist/signing/index.cjs +7 -0
  341. package/dist/signing/index.d.cts +1 -0
  342. package/dist/signing/index.d.ts +1 -0
  343. package/dist/signing/index.js +7 -0
  344. package/dist/signing/wasm-signer.cjs +6 -0
  345. package/dist/signing/wasm-signer.d.cts +101 -0
  346. package/dist/signing/wasm-signer.d.ts +101 -0
  347. package/dist/signing/wasm-signer.js +6 -0
  348. package/dist/types/bridge.cjs +1 -0
  349. package/dist/types/bridge.d.cts +24 -0
  350. package/dist/types/bridge.d.ts +24 -0
  351. package/dist/types/bridge.js +1 -0
  352. package/dist/types/index.cjs +3 -0
  353. package/dist/types/index.d.cts +2 -0
  354. package/dist/types/index.d.ts +2 -0
  355. package/dist/types/index.js +3 -0
  356. package/dist/types/ws.cjs +1 -0
  357. package/dist/types/ws.d.cts +351 -0
  358. package/dist/types/ws.d.ts +351 -0
  359. package/dist/types/ws.js +1 -0
  360. package/package.json +52 -0
@@ -0,0 +1,95 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface OrderBookDetailsRequest {
4
+ market_id?: number;
5
+ }
6
+ interface OrderBookDetail {
7
+ symbol: string;
8
+ market_id: number;
9
+ market_type: string;
10
+ status: string;
11
+ taker_fee: string;
12
+ maker_fee: string;
13
+ liquidation_fee: string;
14
+ min_base_amount: string;
15
+ min_quote_amount: string;
16
+ order_quote_limit: string;
17
+ supported_size_decimals: number;
18
+ supported_price_decimals: number;
19
+ supported_quote_decimals: number;
20
+ size_decimals: number;
21
+ price_decimals: number;
22
+ quote_multiplier: number;
23
+ default_initial_margin_fraction: number;
24
+ min_initial_margin_fraction: number;
25
+ maintenance_margin_fraction: number;
26
+ closeout_margin_fraction: number;
27
+ last_trade_price: number;
28
+ daily_trades_count: number;
29
+ daily_base_token_volume: number;
30
+ daily_quote_token_volume: number;
31
+ daily_price_low: number;
32
+ daily_price_high: number;
33
+ daily_price_change: number;
34
+ open_interest: number;
35
+ daily_chart: any;
36
+ market_config: {
37
+ market_margin_mode: number;
38
+ insurance_fund_account_index: number;
39
+ };
40
+ }
41
+ interface SpotOrderBookDetail {
42
+ symbol: string;
43
+ market_id: number;
44
+ market_type: string;
45
+ base_asset_id: string;
46
+ quote_asset_id: string;
47
+ status: string;
48
+ taker_fee: string;
49
+ maker_fee: string;
50
+ liquidation_fee: string;
51
+ min_base_amount: string;
52
+ min_quote_amount: string;
53
+ order_quote_limit: string;
54
+ supported_size_decimals: number;
55
+ supported_price_decimals: number;
56
+ supported_quote_decimals: number;
57
+ size_decimals: number;
58
+ price_decimals: number;
59
+ last_trade_price: number;
60
+ daily_trades_count: number;
61
+ daily_base_token_volume: number;
62
+ daily_quote_token_volume: number;
63
+ daily_price_low: number;
64
+ daily_price_high: number;
65
+ daily_price_change: number;
66
+ }
67
+ interface OrderBookDetailsResponse {
68
+ code: number;
69
+ order_book_details: OrderBookDetail[];
70
+ spot_order_book_details: SpotOrderBookDetail[];
71
+ }
72
+ declare function getOrderBookDetails(client: AxiosInstance, params?: OrderBookDetailsRequest): Promise<OrderBookDetailsResponse>;
73
+ interface OrderBookOrdersRequest {
74
+ market_id: number;
75
+ limit?: number;
76
+ }
77
+ interface OrderBookOrder {
78
+ order_index: number;
79
+ order_id: string;
80
+ owner_account_index: number;
81
+ initial_base_amount: string;
82
+ remaining_base_amount: string;
83
+ price: string;
84
+ order_expiry: number;
85
+ }
86
+ interface OrderBookOrdersResponse {
87
+ code?: number;
88
+ total_asks?: number;
89
+ total_bids?: number;
90
+ bids?: OrderBookOrder[];
91
+ asks?: OrderBookOrder[];
92
+ }
93
+ declare function getOrderBookOrders(client: AxiosInstance, params: OrderBookOrdersRequest): Promise<OrderBookOrdersResponse>;
94
+
95
+ export { type OrderBookDetail, type OrderBookDetailsRequest, type OrderBookDetailsResponse, type OrderBookOrder, type OrderBookOrdersRequest, type OrderBookOrdersResponse, type SpotOrderBookDetail, getOrderBookDetails, getOrderBookOrders };
@@ -0,0 +1,95 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface OrderBookDetailsRequest {
4
+ market_id?: number;
5
+ }
6
+ interface OrderBookDetail {
7
+ symbol: string;
8
+ market_id: number;
9
+ market_type: string;
10
+ status: string;
11
+ taker_fee: string;
12
+ maker_fee: string;
13
+ liquidation_fee: string;
14
+ min_base_amount: string;
15
+ min_quote_amount: string;
16
+ order_quote_limit: string;
17
+ supported_size_decimals: number;
18
+ supported_price_decimals: number;
19
+ supported_quote_decimals: number;
20
+ size_decimals: number;
21
+ price_decimals: number;
22
+ quote_multiplier: number;
23
+ default_initial_margin_fraction: number;
24
+ min_initial_margin_fraction: number;
25
+ maintenance_margin_fraction: number;
26
+ closeout_margin_fraction: number;
27
+ last_trade_price: number;
28
+ daily_trades_count: number;
29
+ daily_base_token_volume: number;
30
+ daily_quote_token_volume: number;
31
+ daily_price_low: number;
32
+ daily_price_high: number;
33
+ daily_price_change: number;
34
+ open_interest: number;
35
+ daily_chart: any;
36
+ market_config: {
37
+ market_margin_mode: number;
38
+ insurance_fund_account_index: number;
39
+ };
40
+ }
41
+ interface SpotOrderBookDetail {
42
+ symbol: string;
43
+ market_id: number;
44
+ market_type: string;
45
+ base_asset_id: string;
46
+ quote_asset_id: string;
47
+ status: string;
48
+ taker_fee: string;
49
+ maker_fee: string;
50
+ liquidation_fee: string;
51
+ min_base_amount: string;
52
+ min_quote_amount: string;
53
+ order_quote_limit: string;
54
+ supported_size_decimals: number;
55
+ supported_price_decimals: number;
56
+ supported_quote_decimals: number;
57
+ size_decimals: number;
58
+ price_decimals: number;
59
+ last_trade_price: number;
60
+ daily_trades_count: number;
61
+ daily_base_token_volume: number;
62
+ daily_quote_token_volume: number;
63
+ daily_price_low: number;
64
+ daily_price_high: number;
65
+ daily_price_change: number;
66
+ }
67
+ interface OrderBookDetailsResponse {
68
+ code: number;
69
+ order_book_details: OrderBookDetail[];
70
+ spot_order_book_details: SpotOrderBookDetail[];
71
+ }
72
+ declare function getOrderBookDetails(client: AxiosInstance, params?: OrderBookDetailsRequest): Promise<OrderBookDetailsResponse>;
73
+ interface OrderBookOrdersRequest {
74
+ market_id: number;
75
+ limit?: number;
76
+ }
77
+ interface OrderBookOrder {
78
+ order_index: number;
79
+ order_id: string;
80
+ owner_account_index: number;
81
+ initial_base_amount: string;
82
+ remaining_base_amount: string;
83
+ price: string;
84
+ order_expiry: number;
85
+ }
86
+ interface OrderBookOrdersResponse {
87
+ code?: number;
88
+ total_asks?: number;
89
+ total_bids?: number;
90
+ bids?: OrderBookOrder[];
91
+ asks?: OrderBookOrder[];
92
+ }
93
+ declare function getOrderBookOrders(client: AxiosInstance, params: OrderBookOrdersRequest): Promise<OrderBookOrdersResponse>;
94
+
95
+ export { type OrderBookDetail, type OrderBookDetailsRequest, type OrderBookDetailsResponse, type OrderBookOrder, type OrderBookOrdersRequest, type OrderBookOrdersResponse, type SpotOrderBookDetail, getOrderBookDetails, getOrderBookOrders };
@@ -0,0 +1,8 @@
1
+ import {
2
+ getOrderBookDetails,
3
+ getOrderBookOrders
4
+ } from "../../chunk-ZWYNOAL3.js";
5
+ export {
6
+ getOrderBookDetails,
7
+ getOrderBookOrders
8
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkWK6OQRMGcjs = require('../../chunk-WK6OQRMG.cjs');
4
+
5
+
6
+ exports.getOrderBooks = _chunkWK6OQRMGcjs.getOrderBooks;
@@ -0,0 +1,16 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface PriceLevel {
4
+ price: string;
5
+ size: string;
6
+ }
7
+ interface OrderBook {
8
+ market_id: number;
9
+ bids: PriceLevel[];
10
+ asks: PriceLevel[];
11
+ last_update_id: string;
12
+ }
13
+ type OrderBooksResponse = OrderBook[];
14
+ declare function getOrderBooks(client: AxiosInstance): Promise<OrderBooksResponse>;
15
+
16
+ export { type OrderBook, type OrderBooksResponse, type PriceLevel, getOrderBooks };
@@ -0,0 +1,16 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface PriceLevel {
4
+ price: string;
5
+ size: string;
6
+ }
7
+ interface OrderBook {
8
+ market_id: number;
9
+ bids: PriceLevel[];
10
+ asks: PriceLevel[];
11
+ last_update_id: string;
12
+ }
13
+ type OrderBooksResponse = OrderBook[];
14
+ declare function getOrderBooks(client: AxiosInstance): Promise<OrderBooksResponse>;
15
+
16
+ export { type OrderBook, type OrderBooksResponse, type PriceLevel, getOrderBooks };
@@ -0,0 +1,6 @@
1
+ import {
2
+ getOrderBooks
3
+ } from "../../chunk-3OSXAPI3.js";
4
+ export {
5
+ getOrderBooks
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkZKFXRN6Wcjs = require('../../chunk-ZKFXRN6W.cjs');
4
+
5
+
6
+ exports.getRecentTrades = _chunkZKFXRN6Wcjs.getRecentTrades;
@@ -0,0 +1,11 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { Trade } from '../info-private/trades.cjs';
3
+
4
+ interface RecentTradesRequest {
5
+ market_id: number;
6
+ limit: number;
7
+ }
8
+ type RecentTradesResponse = Trade[];
9
+ declare function getRecentTrades(client: AxiosInstance, params: RecentTradesRequest): Promise<RecentTradesResponse>;
10
+
11
+ export { type RecentTradesRequest, type RecentTradesResponse, getRecentTrades };
@@ -0,0 +1,11 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { Trade } from '../info-private/trades.js';
3
+
4
+ interface RecentTradesRequest {
5
+ market_id: number;
6
+ limit: number;
7
+ }
8
+ type RecentTradesResponse = Trade[];
9
+ declare function getRecentTrades(client: AxiosInstance, params: RecentTradesRequest): Promise<RecentTradesResponse>;
10
+
11
+ export { type RecentTradesRequest, type RecentTradesResponse, getRecentTrades };
@@ -0,0 +1,6 @@
1
+ import {
2
+ getRecentTrades
3
+ } from "../../chunk-BXMXWCMD.js";
4
+ export {
5
+ getRecentTrades
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkQNM3HYIVcjs = require('../../chunk-QNM3HYIV.cjs');
4
+
5
+
6
+ exports.getRootInfo = _chunkQNM3HYIVcjs.getRootInfo;
@@ -0,0 +1,8 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface RootInfoResponse {
4
+ contract_address: string;
5
+ }
6
+ declare function getRootInfo(client: AxiosInstance): Promise<RootInfoResponse>;
7
+
8
+ export { type RootInfoResponse, getRootInfo };
@@ -0,0 +1,8 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface RootInfoResponse {
4
+ contract_address: string;
5
+ }
6
+ declare function getRootInfo(client: AxiosInstance): Promise<RootInfoResponse>;
7
+
8
+ export { type RootInfoResponse, getRootInfo };
@@ -0,0 +1,6 @@
1
+ import {
2
+ getRootInfo
3
+ } from "../../chunk-IXF4QUC6.js";
4
+ export {
5
+ getRootInfo
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkIQQRFW4Acjs = require('../../chunk-IQQRFW4A.cjs');
4
+
5
+
6
+ exports.getRootStatus = _chunkIQQRFW4Acjs.getRootStatus;
@@ -0,0 +1,10 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface RootStatusResponse {
4
+ status: number;
5
+ network_id: number;
6
+ timestamp: string;
7
+ }
8
+ declare function getRootStatus(client: AxiosInstance): Promise<RootStatusResponse>;
9
+
10
+ export { type RootStatusResponse, getRootStatus };
@@ -0,0 +1,10 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface RootStatusResponse {
4
+ status: number;
5
+ network_id: number;
6
+ timestamp: string;
7
+ }
8
+ declare function getRootStatus(client: AxiosInstance): Promise<RootStatusResponse>;
9
+
10
+ export { type RootStatusResponse, getRootStatus };
@@ -0,0 +1,6 @@
1
+ import {
2
+ getRootStatus
3
+ } from "../../chunk-NOFXPTLU.js";
4
+ export {
5
+ getRootStatus
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkWWLOQFSWcjs = require('../../chunk-WWLOQFSW.cjs');
4
+
5
+
6
+ exports.getTransactionFromL1TxHash = _chunkWWLOQFSWcjs.getTransactionFromL1TxHash;
@@ -0,0 +1,9 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { Transaction } from './tx.cjs';
3
+
4
+ interface TransactionFromL1TxHashRequest {
5
+ l1_tx_hash: string;
6
+ }
7
+ declare function getTransactionFromL1TxHash(client: AxiosInstance, params: TransactionFromL1TxHashRequest): Promise<Transaction>;
8
+
9
+ export { type TransactionFromL1TxHashRequest, getTransactionFromL1TxHash };
@@ -0,0 +1,9 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { Transaction } from './tx.js';
3
+
4
+ interface TransactionFromL1TxHashRequest {
5
+ l1_tx_hash: string;
6
+ }
7
+ declare function getTransactionFromL1TxHash(client: AxiosInstance, params: TransactionFromL1TxHashRequest): Promise<Transaction>;
8
+
9
+ export { type TransactionFromL1TxHashRequest, getTransactionFromL1TxHash };
@@ -0,0 +1,6 @@
1
+ import {
2
+ getTransactionFromL1TxHash
3
+ } from "../../chunk-PPU2VWXX.js";
4
+ export {
5
+ getTransactionFromL1TxHash
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkVNQKWIQGcjs = require('../../chunk-VNQKWIQG.cjs');
4
+
5
+
6
+ exports.getTransaction = _chunkVNQKWIQGcjs.getTransaction;
@@ -0,0 +1,33 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface TransactionRequest {
4
+ by: "hash" | "index";
5
+ value: string;
6
+ }
7
+ interface Transaction {
8
+ hash: string;
9
+ block_height: number;
10
+ sequence_index: number;
11
+ account_index: number;
12
+ nonce: number;
13
+ type: string | number;
14
+ info?: string;
15
+ event_info?: string;
16
+ data?: any;
17
+ status: number | "pending" | "confirmed" | "failed";
18
+ transaction_index?: number;
19
+ l1_address?: string;
20
+ expire_at?: number;
21
+ queued_at?: number;
22
+ committed_at?: number;
23
+ verified_at?: number;
24
+ executed_at?: number;
25
+ parent_hash?: string;
26
+ created_at?: string;
27
+ updated_at?: string;
28
+ code?: number;
29
+ message?: string;
30
+ }
31
+ declare function getTransaction(client: AxiosInstance, params: TransactionRequest): Promise<Transaction>;
32
+
33
+ export { type Transaction, type TransactionRequest, getTransaction };
@@ -0,0 +1,33 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface TransactionRequest {
4
+ by: "hash" | "index";
5
+ value: string;
6
+ }
7
+ interface Transaction {
8
+ hash: string;
9
+ block_height: number;
10
+ sequence_index: number;
11
+ account_index: number;
12
+ nonce: number;
13
+ type: string | number;
14
+ info?: string;
15
+ event_info?: string;
16
+ data?: any;
17
+ status: number | "pending" | "confirmed" | "failed";
18
+ transaction_index?: number;
19
+ l1_address?: string;
20
+ expire_at?: number;
21
+ queued_at?: number;
22
+ committed_at?: number;
23
+ verified_at?: number;
24
+ executed_at?: number;
25
+ parent_hash?: string;
26
+ created_at?: string;
27
+ updated_at?: string;
28
+ code?: number;
29
+ message?: string;
30
+ }
31
+ declare function getTransaction(client: AxiosInstance, params: TransactionRequest): Promise<Transaction>;
32
+
33
+ export { type Transaction, type TransactionRequest, getTransaction };
@@ -0,0 +1,6 @@
1
+ import {
2
+ getTransaction
3
+ } from "../../chunk-TELGVFFP.js";
4
+ export {
5
+ getTransaction
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk7U2USLAMcjs = require('../../chunk-7U2USLAM.cjs');
4
+
5
+
6
+ exports.getTransactions = _chunk7U2USLAMcjs.getTransactions;
@@ -0,0 +1,11 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { Transaction } from './tx.cjs';
3
+
4
+ interface TransactionsRequest {
5
+ cursor?: string;
6
+ limit?: number;
7
+ }
8
+ type TransactionsResponse = Transaction[];
9
+ declare function getTransactions(client: AxiosInstance, params?: TransactionsRequest): Promise<TransactionsResponse>;
10
+
11
+ export { type TransactionsRequest, type TransactionsResponse, getTransactions };
@@ -0,0 +1,11 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { Transaction } from './tx.js';
3
+
4
+ interface TransactionsRequest {
5
+ cursor?: string;
6
+ limit?: number;
7
+ }
8
+ type TransactionsResponse = Transaction[];
9
+ declare function getTransactions(client: AxiosInstance, params?: TransactionsRequest): Promise<TransactionsResponse>;
10
+
11
+ export { type TransactionsRequest, type TransactionsResponse, getTransactions };
@@ -0,0 +1,6 @@
1
+ import {
2
+ getTransactions
3
+ } from "../../chunk-GYABNQWH.js";
4
+ export {
5
+ getTransactions
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkQCE5PEXEcjs = require('../../chunk-QCE5PEXE.cjs');
4
+
5
+
6
+ exports.getWithdrawalDelay = _chunkQCE5PEXEcjs.getWithdrawalDelay;
@@ -0,0 +1,8 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface WithdrawalDelayResponse {
4
+ seconds: number;
5
+ }
6
+ declare function getWithdrawalDelay(client: AxiosInstance): Promise<WithdrawalDelayResponse>;
7
+
8
+ export { type WithdrawalDelayResponse, getWithdrawalDelay };
@@ -0,0 +1,8 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface WithdrawalDelayResponse {
4
+ seconds: number;
5
+ }
6
+ declare function getWithdrawalDelay(client: AxiosInstance): Promise<WithdrawalDelayResponse>;
7
+
8
+ export { type WithdrawalDelayResponse, getWithdrawalDelay };
@@ -0,0 +1,6 @@
1
+ import {
2
+ getWithdrawalDelay
3
+ } from "../../chunk-K7ZQARON.js";
4
+ export {
5
+ getWithdrawalDelay
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkXOG6T533cjs = require('../../chunk-XOG6T533.cjs');
4
+
5
+
6
+ exports.getAccountActiveOrders = _chunkXOG6T533cjs.getAccountActiveOrders;
@@ -0,0 +1,11 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { Orders } from './account-inactive-orders.cjs';
3
+
4
+ interface AccountActiveOrdersRequest {
5
+ account_index: number;
6
+ market_id: number;
7
+ auth?: string;
8
+ }
9
+ declare function getAccountActiveOrders(client: AxiosInstance, params: AccountActiveOrdersRequest, authorization?: string): Promise<Orders>;
10
+
11
+ export { type AccountActiveOrdersRequest, getAccountActiveOrders };
@@ -0,0 +1,11 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { Orders } from './account-inactive-orders.js';
3
+
4
+ interface AccountActiveOrdersRequest {
5
+ account_index: number;
6
+ market_id: number;
7
+ auth?: string;
8
+ }
9
+ declare function getAccountActiveOrders(client: AxiosInstance, params: AccountActiveOrdersRequest, authorization?: string): Promise<Orders>;
10
+
11
+ export { type AccountActiveOrdersRequest, getAccountActiveOrders };
@@ -0,0 +1,6 @@
1
+ import {
2
+ getAccountActiveOrders
3
+ } from "../../chunk-AMNDQGYL.js";
4
+ export {
5
+ getAccountActiveOrders
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkBKIL4UXVcjs = require('../../chunk-BKIL4UXV.cjs');
4
+
5
+
6
+ exports.getAccountInactiveOrders = _chunkBKIL4UXVcjs.getAccountInactiveOrders;
@@ -0,0 +1,52 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ interface Order {
4
+ order_index: number;
5
+ client_order_index: number;
6
+ order_id: string;
7
+ client_order_id: string;
8
+ market_index: number;
9
+ owner_account_index: number;
10
+ initial_base_amount: string;
11
+ price: string;
12
+ nonce: number;
13
+ remaining_base_amount: string;
14
+ is_ask: boolean;
15
+ base_size: number;
16
+ base_price: number;
17
+ filled_base_amount: string;
18
+ filled_quote_amount: string;
19
+ side: string;
20
+ type: string;
21
+ time_in_force: string;
22
+ reduce_only: boolean;
23
+ trigger_price: string;
24
+ order_expiry: number;
25
+ status: string;
26
+ trigger_status: string;
27
+ trigger_time: number;
28
+ parent_order_index: number;
29
+ parent_order_id: string;
30
+ to_trigger_order_id_0?: string;
31
+ to_trigger_order_id_1?: string;
32
+ to_cancel_order_id_0?: string;
33
+ to_cancel_order_id_1?: string;
34
+ block_height: number;
35
+ timestamp: number;
36
+ }
37
+ interface Orders {
38
+ code: number;
39
+ orders: Order[];
40
+ }
41
+ interface AccountInactiveOrdersRequest {
42
+ account_index: number;
43
+ limit: number;
44
+ auth?: string;
45
+ market_id?: number;
46
+ ask_filter?: number;
47
+ between_timestamps?: string;
48
+ cursor?: string;
49
+ }
50
+ declare function getAccountInactiveOrders(client: AxiosInstance, params: AccountInactiveOrdersRequest, authorization?: string): Promise<Orders>;
51
+
52
+ export { type AccountInactiveOrdersRequest, type Order, type Orders, getAccountInactiveOrders };