@nadohq/client 0.15.0 → 0.18.0

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 (253) hide show
  1. package/dist/BaseSpotAPI-BeTjhXT_.d.cts +14 -0
  2. package/dist/BaseSpotAPI-BeTjhXT_.d.cts.map +1 -0
  3. package/dist/BaseSpotAPI-Ck64kyYt.d.ts +14 -0
  4. package/dist/BaseSpotAPI-Ck64kyYt.d.ts.map +1 -0
  5. package/dist/MarketExecuteAPI-BBp0Nn6N.d.cts +55 -0
  6. package/dist/MarketExecuteAPI-BBp0Nn6N.d.cts.map +1 -0
  7. package/dist/MarketExecuteAPI-_S9-rNsv.d.ts +55 -0
  8. package/dist/MarketExecuteAPI-_S9-rNsv.d.ts.map +1 -0
  9. package/dist/MarketQueryAPI-Dhb8hWiD.d.cts +118 -0
  10. package/dist/MarketQueryAPI-Dhb8hWiD.d.cts.map +1 -0
  11. package/dist/MarketQueryAPI-Dz8FrVPK.d.ts +118 -0
  12. package/dist/MarketQueryAPI-Dz8FrVPK.d.ts.map +1 -0
  13. package/dist/PerpExecuteAPI-C0APgWq4.d.cts +7 -0
  14. package/dist/PerpExecuteAPI-C0APgWq4.d.cts.map +1 -0
  15. package/dist/PerpExecuteAPI-DPNJdARF.d.ts +7 -0
  16. package/dist/PerpExecuteAPI-DPNJdARF.d.ts.map +1 -0
  17. package/dist/PerpQueryAPI-RGhdNhoJ.d.cts +19 -0
  18. package/dist/PerpQueryAPI-RGhdNhoJ.d.cts.map +1 -0
  19. package/dist/PerpQueryAPI-tJbMmCcO.d.ts +19 -0
  20. package/dist/PerpQueryAPI-tJbMmCcO.d.ts.map +1 -0
  21. package/dist/SpotExecuteAPI-UWnX_Hm4.d.ts +22 -0
  22. package/dist/SpotExecuteAPI-UWnX_Hm4.d.ts.map +1 -0
  23. package/dist/SpotExecuteAPI-b07ixUz2.d.cts +22 -0
  24. package/dist/SpotExecuteAPI-b07ixUz2.d.cts.map +1 -0
  25. package/dist/SpotQueryAPI-CfZcvt4p.d.ts +36 -0
  26. package/dist/SpotQueryAPI-CfZcvt4p.d.ts.map +1 -0
  27. package/dist/SpotQueryAPI-DS85MzQB.d.cts +36 -0
  28. package/dist/SpotQueryAPI-DS85MzQB.d.cts.map +1 -0
  29. package/dist/SubaccountExecuteAPI-DhHBzzdk.d.cts +21 -0
  30. package/dist/SubaccountExecuteAPI-DhHBzzdk.d.cts.map +1 -0
  31. package/dist/SubaccountExecuteAPI-KApMbONz.d.ts +21 -0
  32. package/dist/SubaccountExecuteAPI-KApMbONz.d.ts.map +1 -0
  33. package/dist/SubaccountQueryAPI-C9h3epmM.d.cts +40 -0
  34. package/dist/SubaccountQueryAPI-C9h3epmM.d.cts.map +1 -0
  35. package/dist/SubaccountQueryAPI-DnLcgfiM.d.ts +40 -0
  36. package/dist/SubaccountQueryAPI-DnLcgfiM.d.ts.map +1 -0
  37. package/dist/WebSocketExecuteAPI-7gLrCoXN.d.cts +44 -0
  38. package/dist/WebSocketExecuteAPI-7gLrCoXN.d.cts.map +1 -0
  39. package/dist/WebSocketExecuteAPI-DHhKag16.d.ts +44 -0
  40. package/dist/WebSocketExecuteAPI-DHhKag16.d.ts.map +1 -0
  41. package/dist/WebSocketQueryAPI-B9vBQo5q.d.ts +20 -0
  42. package/dist/WebSocketQueryAPI-B9vBQo5q.d.ts.map +1 -0
  43. package/dist/WebSocketQueryAPI-BMLp4dCH.d.cts +20 -0
  44. package/dist/WebSocketQueryAPI-BMLp4dCH.d.cts.map +1 -0
  45. package/dist/WebSocketSubscriptionAPI-bApRHac8.d.cts +34 -0
  46. package/dist/WebSocketSubscriptionAPI-bApRHac8.d.cts.map +1 -0
  47. package/dist/WebSocketSubscriptionAPI-qUFRFcRI.d.ts +34 -0
  48. package/dist/WebSocketSubscriptionAPI-qUFRFcRI.d.ts.map +1 -0
  49. package/dist/apis/base.cjs +30 -60
  50. package/dist/apis/base.cjs.map +1 -1
  51. package/dist/apis/base.d.cts +2 -22
  52. package/dist/apis/base.d.ts +2 -22
  53. package/dist/apis/base.js +28 -34
  54. package/dist/apis/base.js.map +1 -1
  55. package/dist/apis/market/MarketExecuteAPI.cjs +164 -190
  56. package/dist/apis/market/MarketExecuteAPI.cjs.map +1 -1
  57. package/dist/apis/market/MarketExecuteAPI.d.cts +2 -61
  58. package/dist/apis/market/MarketExecuteAPI.d.ts +2 -61
  59. package/dist/apis/market/MarketExecuteAPI.js +162 -164
  60. package/dist/apis/market/MarketExecuteAPI.js.map +1 -1
  61. package/dist/apis/market/MarketQueryAPI.cjs +157 -181
  62. package/dist/apis/market/MarketQueryAPI.cjs.map +1 -1
  63. package/dist/apis/market/MarketQueryAPI.d.cts +2 -124
  64. package/dist/apis/market/MarketQueryAPI.d.ts +2 -124
  65. package/dist/apis/market/MarketQueryAPI.js +155 -155
  66. package/dist/apis/market/MarketQueryAPI.js.map +1 -1
  67. package/dist/apis/market/index.cjs +8 -36
  68. package/dist/apis/market/index.cjs.map +1 -1
  69. package/dist/apis/market/index.d.cts +3 -19
  70. package/dist/apis/market/index.d.ts +3 -19
  71. package/dist/apis/market/index.js +6 -8
  72. package/dist/apis/market/index.js.map +1 -1
  73. package/dist/apis/market/types.cjs +0 -19
  74. package/dist/apis/market/types.d.cts +2 -41
  75. package/dist/apis/market/types.d.ts +2 -41
  76. package/dist/apis/market/types.js +1 -1
  77. package/dist/apis/perp/PerpExecuteAPI.cjs +6 -31
  78. package/dist/apis/perp/PerpExecuteAPI.cjs.map +1 -1
  79. package/dist/apis/perp/PerpExecuteAPI.d.cts +2 -12
  80. package/dist/apis/perp/PerpExecuteAPI.d.ts +2 -12
  81. package/dist/apis/perp/PerpExecuteAPI.js +5 -6
  82. package/dist/apis/perp/PerpExecuteAPI.js.map +1 -1
  83. package/dist/apis/perp/PerpQueryAPI.cjs +20 -44
  84. package/dist/apis/perp/PerpQueryAPI.cjs.map +1 -1
  85. package/dist/apis/perp/PerpQueryAPI.d.cts +2 -23
  86. package/dist/apis/perp/PerpQueryAPI.d.ts +2 -23
  87. package/dist/apis/perp/PerpQueryAPI.js +18 -18
  88. package/dist/apis/perp/PerpQueryAPI.js.map +1 -1
  89. package/dist/apis/perp/index.cjs +8 -33
  90. package/dist/apis/perp/index.cjs.map +1 -1
  91. package/dist/apis/perp/index.d.cts +2 -16
  92. package/dist/apis/perp/index.d.ts +2 -16
  93. package/dist/apis/perp/index.js +6 -7
  94. package/dist/apis/perp/index.js.map +1 -1
  95. package/dist/apis/spot/BaseSpotAPI.cjs +21 -51
  96. package/dist/apis/spot/BaseSpotAPI.cjs.map +1 -1
  97. package/dist/apis/spot/BaseSpotAPI.d.cts +2 -18
  98. package/dist/apis/spot/BaseSpotAPI.d.ts +2 -18
  99. package/dist/apis/spot/BaseSpotAPI.js +19 -28
  100. package/dist/apis/spot/BaseSpotAPI.js.map +1 -1
  101. package/dist/apis/spot/SpotExecuteAPI.cjs +72 -104
  102. package/dist/apis/spot/SpotExecuteAPI.cjs.map +1 -1
  103. package/dist/apis/spot/SpotExecuteAPI.d.cts +2 -27
  104. package/dist/apis/spot/SpotExecuteAPI.d.ts +2 -27
  105. package/dist/apis/spot/SpotExecuteAPI.js +70 -85
  106. package/dist/apis/spot/SpotExecuteAPI.js.map +1 -1
  107. package/dist/apis/spot/SpotQueryAPI.cjs +34 -71
  108. package/dist/apis/spot/SpotQueryAPI.cjs.map +1 -1
  109. package/dist/apis/spot/SpotQueryAPI.d.cts +2 -35
  110. package/dist/apis/spot/SpotQueryAPI.d.ts +2 -35
  111. package/dist/apis/spot/SpotQueryAPI.js +32 -45
  112. package/dist/apis/spot/SpotQueryAPI.js.map +1 -1
  113. package/dist/apis/spot/index.cjs +11 -36
  114. package/dist/apis/spot/index.cjs.map +1 -1
  115. package/dist/apis/spot/index.d.cts +3 -23
  116. package/dist/apis/spot/index.d.ts +3 -23
  117. package/dist/apis/spot/index.js +9 -8
  118. package/dist/apis/spot/index.js.map +1 -1
  119. package/dist/apis/spot/types.cjs +0 -19
  120. package/dist/apis/spot/types.d.cts +2 -27
  121. package/dist/apis/spot/types.d.ts +2 -27
  122. package/dist/apis/spot/types.js +1 -1
  123. package/dist/apis/subaccount/SubaccountExecuteAPI.cjs +32 -56
  124. package/dist/apis/subaccount/SubaccountExecuteAPI.cjs.map +1 -1
  125. package/dist/apis/subaccount/SubaccountExecuteAPI.d.cts +2 -26
  126. package/dist/apis/subaccount/SubaccountExecuteAPI.d.ts +2 -26
  127. package/dist/apis/subaccount/SubaccountExecuteAPI.js +30 -30
  128. package/dist/apis/subaccount/SubaccountExecuteAPI.js.map +1 -1
  129. package/dist/apis/subaccount/SubaccountQueryAPI.cjs +48 -72
  130. package/dist/apis/subaccount/SubaccountQueryAPI.cjs.map +1 -1
  131. package/dist/apis/subaccount/SubaccountQueryAPI.d.cts +2 -44
  132. package/dist/apis/subaccount/SubaccountQueryAPI.d.ts +2 -44
  133. package/dist/apis/subaccount/SubaccountQueryAPI.js +46 -46
  134. package/dist/apis/subaccount/SubaccountQueryAPI.js.map +1 -1
  135. package/dist/apis/subaccount/index.cjs +32 -64
  136. package/dist/apis/subaccount/index.cjs.map +1 -1
  137. package/dist/apis/subaccount/index.d.cts +3 -27
  138. package/dist/apis/subaccount/index.d.ts +3 -27
  139. package/dist/apis/subaccount/index.js +30 -39
  140. package/dist/apis/subaccount/index.js.map +1 -1
  141. package/dist/apis/subaccount/types.cjs +0 -19
  142. package/dist/apis/subaccount/types.d.cts +2 -9
  143. package/dist/apis/subaccount/types.d.ts +2 -9
  144. package/dist/apis/subaccount/types.js +1 -1
  145. package/dist/apis/types.cjs +0 -19
  146. package/dist/apis/types.d.cts +2 -9
  147. package/dist/apis/types.d.ts +2 -9
  148. package/dist/apis/types.js +1 -1
  149. package/dist/apis/ws/WebSocketExecuteAPI.cjs +42 -70
  150. package/dist/apis/ws/WebSocketExecuteAPI.cjs.map +1 -1
  151. package/dist/apis/ws/WebSocketExecuteAPI.d.cts +2 -48
  152. package/dist/apis/ws/WebSocketExecuteAPI.d.ts +2 -48
  153. package/dist/apis/ws/WebSocketExecuteAPI.js +40 -44
  154. package/dist/apis/ws/WebSocketExecuteAPI.js.map +1 -1
  155. package/dist/apis/ws/WebSocketQueryAPI.cjs +19 -39
  156. package/dist/apis/ws/WebSocketQueryAPI.cjs.map +1 -1
  157. package/dist/apis/ws/WebSocketQueryAPI.d.cts +2 -23
  158. package/dist/apis/ws/WebSocketQueryAPI.d.ts +2 -23
  159. package/dist/apis/ws/WebSocketQueryAPI.js +17 -13
  160. package/dist/apis/ws/WebSocketQueryAPI.js.map +1 -1
  161. package/dist/apis/ws/WebSocketSubscriptionAPI.cjs +40 -58
  162. package/dist/apis/ws/WebSocketSubscriptionAPI.cjs.map +1 -1
  163. package/dist/apis/ws/WebSocketSubscriptionAPI.d.cts +2 -37
  164. package/dist/apis/ws/WebSocketSubscriptionAPI.d.ts +2 -37
  165. package/dist/apis/ws/WebSocketSubscriptionAPI.js +38 -32
  166. package/dist/apis/ws/WebSocketSubscriptionAPI.js.map +1 -1
  167. package/dist/apis/ws/index.cjs +18 -39
  168. package/dist/apis/ws/index.cjs.map +1 -1
  169. package/dist/apis/ws/index.d.cts +2 -22
  170. package/dist/apis/ws/index.d.ts +2 -22
  171. package/dist/apis/ws/index.js +13 -10
  172. package/dist/apis/ws/index.js.map +1 -1
  173. package/dist/base-B92wTsrc.d.ts +20 -0
  174. package/dist/base-B92wTsrc.d.ts.map +1 -0
  175. package/dist/base-BYkH_-5-.d.cts +20 -0
  176. package/dist/base-BYkH_-5-.d.cts.map +1 -0
  177. package/dist/client.cjs +53 -77
  178. package/dist/client.cjs.map +1 -1
  179. package/dist/client.d.cts +28 -49
  180. package/dist/client.d.cts.map +1 -0
  181. package/dist/client.d.ts +28 -49
  182. package/dist/client.d.ts.map +1 -0
  183. package/dist/client.js +46 -46
  184. package/dist/client.js.map +1 -1
  185. package/dist/context-YHVv2kD4.d.cts +44 -0
  186. package/dist/context-YHVv2kD4.d.cts.map +1 -0
  187. package/dist/context-YfcGQ0Sr.d.ts +44 -0
  188. package/dist/context-YfcGQ0Sr.d.ts.map +1 -0
  189. package/dist/context.cjs +92 -122
  190. package/dist/context.cjs.map +1 -1
  191. package/dist/context.d.cts +2 -42
  192. package/dist/context.d.ts +2 -42
  193. package/dist/context.js +90 -105
  194. package/dist/context.js.map +1 -1
  195. package/dist/createNadoClient.cjs +15 -32
  196. package/dist/createNadoClient.cjs.map +1 -1
  197. package/dist/createNadoClient.d.cts +5 -32
  198. package/dist/createNadoClient.d.cts.map +1 -0
  199. package/dist/createNadoClient.d.ts +5 -32
  200. package/dist/createNadoClient.d.ts.map +1 -0
  201. package/dist/createNadoClient.js +13 -8
  202. package/dist/createNadoClient.js.map +1 -1
  203. package/dist/index-BFQPcj2w.d.cts +9 -0
  204. package/dist/index-BFQPcj2w.d.cts.map +1 -0
  205. package/dist/index-CSG04f_b.d.cts +12 -0
  206. package/dist/index-CSG04f_b.d.cts.map +1 -0
  207. package/dist/index-Cc2RdeRK.d.cts +19 -0
  208. package/dist/index-Cc2RdeRK.d.cts.map +1 -0
  209. package/dist/index-DIX4yJe-.d.ts +9 -0
  210. package/dist/index-DIX4yJe-.d.ts.map +1 -0
  211. package/dist/index-DVJ1Mu6s.d.ts +9 -0
  212. package/dist/index-DVJ1Mu6s.d.ts.map +1 -0
  213. package/dist/index-DkTJs2nZ.d.cts +9 -0
  214. package/dist/index-DkTJs2nZ.d.cts.map +1 -0
  215. package/dist/index-Dw9iFeeU.d.ts +19 -0
  216. package/dist/index-Dw9iFeeU.d.ts.map +1 -0
  217. package/dist/index-Mhjd1FK8.d.ts +12 -0
  218. package/dist/index-Mhjd1FK8.d.ts.map +1 -0
  219. package/dist/index-RtQYDuRY.d.ts +19 -0
  220. package/dist/index-RtQYDuRY.d.ts.map +1 -0
  221. package/dist/index-jTtf55U_.d.cts +19 -0
  222. package/dist/index-jTtf55U_.d.cts.map +1 -0
  223. package/dist/index.cjs +50 -44
  224. package/dist/index.d.cts +15 -32
  225. package/dist/index.d.ts +15 -32
  226. package/dist/index.js +9 -10
  227. package/dist/types-B-tOIIKl.d.ts +29 -0
  228. package/dist/types-B-tOIIKl.d.ts.map +1 -0
  229. package/dist/types-B6oFoDTo.d.ts +11 -0
  230. package/dist/types-B6oFoDTo.d.ts.map +1 -0
  231. package/dist/types-BFFzjzRy.d.ts +43 -0
  232. package/dist/types-BFFzjzRy.d.ts.map +1 -0
  233. package/dist/types-BWRdhQd_.d.cts +11 -0
  234. package/dist/types-BWRdhQd_.d.cts.map +1 -0
  235. package/dist/types-C5DKLOen.d.ts +11 -0
  236. package/dist/types-C5DKLOen.d.ts.map +1 -0
  237. package/dist/types-CCj4QJO8.d.cts +29 -0
  238. package/dist/types-CCj4QJO8.d.cts.map +1 -0
  239. package/dist/types-D27__G6_.d.cts +11 -0
  240. package/dist/types-D27__G6_.d.cts.map +1 -0
  241. package/dist/types-YBdM1sun.d.cts +43 -0
  242. package/dist/types-YBdM1sun.d.cts.map +1 -0
  243. package/package.json +11 -11
  244. package/dist/apis/market/types.cjs.map +0 -1
  245. package/dist/apis/market/types.js.map +0 -1
  246. package/dist/apis/spot/types.cjs.map +0 -1
  247. package/dist/apis/spot/types.js.map +0 -1
  248. package/dist/apis/subaccount/types.cjs.map +0 -1
  249. package/dist/apis/subaccount/types.js.map +0 -1
  250. package/dist/apis/types.cjs.map +0 -1
  251. package/dist/apis/types.js.map +0 -1
  252. package/dist/index.cjs.map +0 -1
  253. package/dist/index.js.map +0 -1
@@ -0,0 +1,14 @@
1
+ import { t as BaseNadoAPI } from "./base-BYkH_-5-.cjs";
2
+ import { s as ProductIdOrTokenAddress } from "./types-CCj4QJO8.cjs";
3
+ import { ContractInstance, ERC20_ABI } from "@nadohq/shared";
4
+
5
+ //#region src/apis/spot/BaseSpotAPI.d.ts
6
+ declare class BaseSpotAPI extends BaseNadoAPI {
7
+ /**
8
+ * Retrieves the ERC20 token contract for a spot product
9
+ */
10
+ getTokenContractForProduct(params: ProductIdOrTokenAddress): Promise<ContractInstance<typeof ERC20_ABI>>;
11
+ }
12
+ //#endregion
13
+ export { BaseSpotAPI as t };
14
+ //# sourceMappingURL=BaseSpotAPI-BeTjhXT_.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseSpotAPI-BeTjhXT_.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/BaseSpotAPI.ts"],"mappings":";;;;;cASa,WAAA,SAAoB,WAAA;;AAAjC;;EAIQ,0BAAA,CACJ,MAAA,EAAQ,uBAAA,GACP,OAAA,CAAQ,gBAAA,QAAwB,SAAA;AAAA"}
@@ -0,0 +1,14 @@
1
+ import { t as BaseNadoAPI } from "./base-B92wTsrc.js";
2
+ import { s as ProductIdOrTokenAddress } from "./types-B-tOIIKl.js";
3
+ import { ContractInstance, ERC20_ABI } from "@nadohq/shared";
4
+
5
+ //#region src/apis/spot/BaseSpotAPI.d.ts
6
+ declare class BaseSpotAPI extends BaseNadoAPI {
7
+ /**
8
+ * Retrieves the ERC20 token contract for a spot product
9
+ */
10
+ getTokenContractForProduct(params: ProductIdOrTokenAddress): Promise<ContractInstance<typeof ERC20_ABI>>;
11
+ }
12
+ //#endregion
13
+ export { BaseSpotAPI as t };
14
+ //# sourceMappingURL=BaseSpotAPI-Ck64kyYt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseSpotAPI-Ck64kyYt.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/BaseSpotAPI.ts"],"mappings":";;;;;cASa,WAAA,SAAoB,WAAA;;AAAjC;;EAIQ,0BAAA,CACJ,MAAA,EAAQ,uBAAA,GACP,OAAA,CAAQ,gBAAA,QAAwB,SAAA;AAAA"}
@@ -0,0 +1,55 @@
1
+ import { t as BaseNadoAPI } from "./base-BYkH_-5-.cjs";
2
+ import { a as CancelTriggerProductOrdersParams, c as PlaceOrdersParams, i as CancelTriggerOrdersParams, l as PlaceTriggerOrderParams, n as CancelOrdersParams, r as CancelProductOrdersParams, s as PlaceOrderParams, t as CancelAndPlaceOrderParams, u as PlaceTriggerOrdersParams } from "./types-YBdM1sun.cjs";
3
+ import { EngineServerExecuteSuccessResult } from "@nadohq/engine-client";
4
+
5
+ //#region src/apis/market/MarketExecuteAPI.d.ts
6
+ declare class MarketExecuteAPI extends BaseNadoAPI {
7
+ /**
8
+ * Places an order through the engine
9
+ * @param params
10
+ */
11
+ placeOrder(params: PlaceOrderParams): Promise<import("@nadohq/engine-client").EnginePlaceOrderResult>;
12
+ /**
13
+ * Places multiple orders through the engine
14
+ * @param params
15
+ */
16
+ placeOrders(params: PlaceOrdersParams): Promise<EngineServerExecuteSuccessResult<'place_orders'>>;
17
+ /**
18
+ * Cancels orders through the engine
19
+ * @param params
20
+ */
21
+ cancelOrders(params: CancelOrdersParams): Promise<EngineServerExecuteSuccessResult<"cancel_orders">>;
22
+ /**
23
+ * Cancels orders through the engine and places a new one
24
+ * @param params
25
+ */
26
+ cancelAndPlace(params: CancelAndPlaceOrderParams): Promise<EngineServerExecuteSuccessResult<"cancel_and_place">>;
27
+ /**
28
+ * Cancels all orders for provided products through the engine.
29
+ * @param params
30
+ */
31
+ cancelProductOrders(params: CancelProductOrdersParams): Promise<EngineServerExecuteSuccessResult<"cancel_product_orders">>;
32
+ /**
33
+ * Places a trigger order through the trigger service
34
+ * @param params
35
+ */
36
+ placeTriggerOrder(params: PlaceTriggerOrderParams): Promise<import("@nadohq/trigger-client").TriggerServerExecuteSuccessResult<"place_order">>;
37
+ /**
38
+ * Places multiple trigger orders through the trigger service
39
+ * @param params
40
+ */
41
+ placeTriggerOrders(params: PlaceTriggerOrdersParams): Promise<import("@nadohq/trigger-client").TriggerServerExecuteSuccessResult<"place_orders">>;
42
+ /**
43
+ * Cancels all trigger orders for provided digests through the trigger service.
44
+ * @param params
45
+ */
46
+ cancelTriggerOrders(params: CancelTriggerOrdersParams): Promise<import("@nadohq/trigger-client").TriggerServerExecuteSuccessResult<"cancel_orders">>;
47
+ /**
48
+ * Cancels all trigger orders for provided products through the trigger service.
49
+ * @param params
50
+ */
51
+ cancelTriggerProductOrders(params: CancelTriggerProductOrdersParams): Promise<import("@nadohq/trigger-client").TriggerServerExecuteSuccessResult<"cancel_product_orders">>;
52
+ }
53
+ //#endregion
54
+ export { MarketExecuteAPI as t };
55
+ //# sourceMappingURL=MarketExecuteAPI-BBp0Nn6N.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketExecuteAPI-BBp0Nn6N.d.cts","names":[],"sources":["../src/apis/market/src/apis/market/MarketExecuteAPI.ts"],"mappings":";;;;;cAea,gBAAA,SAAyB,WAAA;;AAAtC;;;EAKQ,UAAA,CAAW,MAAA,EAAQ,gBAAA,GAAgB,OAAA,iCAAA,sBAAA;EAAA;;;;EAqBnC,WAAA,CACJ,MAAA,EAAQ,iBAAA,GACP,OAAA,CAAQ,gCAAA;EAyBkC;;;;EAAvC,YAAA,CAAa,MAAA,EAAQ,kBAAA,GAAkB,OAAA,CAAA,gCAAA;EAgDX;;;;EAnC5B,cAAA,CAAe,MAAA,EAAQ,yBAAA,GAAyB,OAAA,CAAA,gCAAA;EAgErB;;;;EA7B3B,mBAAA,CAAoB,MAAA,EAAQ,yBAAA,GAAyB,OAAA,CAAA,gCAAA;EAgEc;;;;EAnDnE,iBAAA,CAAkB,MAAA,EAAQ,uBAAA,GAAuB,OAAA,kCAAA,iCAAA;EA7GjD;;;;EA6HA,kBAAA,CAAmB,MAAA,EAAQ,wBAAA,GAAwB,OAAA,kCAAA,iCAAA;EAxGnD;;;;EA8HA,mBAAA,CAAoB,MAAA,EAAQ,yBAAA,GAAyB,OAAA,kCAAA,iCAAA;EAnGrD;;;;EAgHA,0BAAA,CAA2B,MAAA,EAAQ,gCAAA,GAAgC,OAAA,kCAAA,iCAAA;AAAA"}
@@ -0,0 +1,55 @@
1
+ import { t as BaseNadoAPI } from "./base-B92wTsrc.js";
2
+ import { a as CancelTriggerProductOrdersParams, c as PlaceOrdersParams, i as CancelTriggerOrdersParams, l as PlaceTriggerOrderParams, n as CancelOrdersParams, r as CancelProductOrdersParams, s as PlaceOrderParams, t as CancelAndPlaceOrderParams, u as PlaceTriggerOrdersParams } from "./types-BFFzjzRy.js";
3
+ import { EngineServerExecuteSuccessResult } from "@nadohq/engine-client";
4
+
5
+ //#region src/apis/market/MarketExecuteAPI.d.ts
6
+ declare class MarketExecuteAPI extends BaseNadoAPI {
7
+ /**
8
+ * Places an order through the engine
9
+ * @param params
10
+ */
11
+ placeOrder(params: PlaceOrderParams): Promise<import("@nadohq/engine-client").EnginePlaceOrderResult>;
12
+ /**
13
+ * Places multiple orders through the engine
14
+ * @param params
15
+ */
16
+ placeOrders(params: PlaceOrdersParams): Promise<EngineServerExecuteSuccessResult<'place_orders'>>;
17
+ /**
18
+ * Cancels orders through the engine
19
+ * @param params
20
+ */
21
+ cancelOrders(params: CancelOrdersParams): Promise<EngineServerExecuteSuccessResult<"cancel_orders">>;
22
+ /**
23
+ * Cancels orders through the engine and places a new one
24
+ * @param params
25
+ */
26
+ cancelAndPlace(params: CancelAndPlaceOrderParams): Promise<EngineServerExecuteSuccessResult<"cancel_and_place">>;
27
+ /**
28
+ * Cancels all orders for provided products through the engine.
29
+ * @param params
30
+ */
31
+ cancelProductOrders(params: CancelProductOrdersParams): Promise<EngineServerExecuteSuccessResult<"cancel_product_orders">>;
32
+ /**
33
+ * Places a trigger order through the trigger service
34
+ * @param params
35
+ */
36
+ placeTriggerOrder(params: PlaceTriggerOrderParams): Promise<import("@nadohq/trigger-client").TriggerServerExecuteSuccessResult<"place_order">>;
37
+ /**
38
+ * Places multiple trigger orders through the trigger service
39
+ * @param params
40
+ */
41
+ placeTriggerOrders(params: PlaceTriggerOrdersParams): Promise<import("@nadohq/trigger-client").TriggerServerExecuteSuccessResult<"place_orders">>;
42
+ /**
43
+ * Cancels all trigger orders for provided digests through the trigger service.
44
+ * @param params
45
+ */
46
+ cancelTriggerOrders(params: CancelTriggerOrdersParams): Promise<import("@nadohq/trigger-client").TriggerServerExecuteSuccessResult<"cancel_orders">>;
47
+ /**
48
+ * Cancels all trigger orders for provided products through the trigger service.
49
+ * @param params
50
+ */
51
+ cancelTriggerProductOrders(params: CancelTriggerProductOrdersParams): Promise<import("@nadohq/trigger-client").TriggerServerExecuteSuccessResult<"cancel_product_orders">>;
52
+ }
53
+ //#endregion
54
+ export { MarketExecuteAPI as t };
55
+ //# sourceMappingURL=MarketExecuteAPI-_S9-rNsv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketExecuteAPI-_S9-rNsv.d.ts","names":[],"sources":["../src/apis/market/src/apis/market/MarketExecuteAPI.ts"],"mappings":";;;;;cAea,gBAAA,SAAyB,WAAA;;AAAtC;;;EAKQ,UAAA,CAAW,MAAA,EAAQ,gBAAA,GAAgB,OAAA,iCAAA,sBAAA;EAAA;;;;EAqBnC,WAAA,CACJ,MAAA,EAAQ,iBAAA,GACP,OAAA,CAAQ,gCAAA;EAyBkC;;;;EAAvC,YAAA,CAAa,MAAA,EAAQ,kBAAA,GAAkB,OAAA,CAAA,gCAAA;EAgDX;;;;EAnC5B,cAAA,CAAe,MAAA,EAAQ,yBAAA,GAAyB,OAAA,CAAA,gCAAA;EAgErB;;;;EA7B3B,mBAAA,CAAoB,MAAA,EAAQ,yBAAA,GAAyB,OAAA,CAAA,gCAAA;EAgEc;;;;EAnDnE,iBAAA,CAAkB,MAAA,EAAQ,uBAAA,GAAuB,OAAA,kCAAA,iCAAA;EA7GjD;;;;EA6HA,kBAAA,CAAmB,MAAA,EAAQ,wBAAA,GAAwB,OAAA,kCAAA,iCAAA;EAxGnD;;;;EA8HA,mBAAA,CAAoB,MAAA,EAAQ,yBAAA,GAAyB,OAAA,kCAAA,iCAAA;EAnGrD;;;;EAgHA,0BAAA,CAA2B,MAAA,EAAQ,gCAAA,GAAgC,OAAA,kCAAA,iCAAA;AAAA"}
@@ -0,0 +1,118 @@
1
+ import { t as BaseNadoAPI } from "./base-BYkH_-5-.cjs";
2
+ import { o as GetTriggerOrdersParams } from "./types-YBdM1sun.cjs";
3
+ import { GetEngineAllMarketsResponse, GetEngineMarketLiquidityParams, GetEngineMarketPriceParams, GetEngineMarketPricesParams, GetEngineMaxOrderSizeParams, GetEngineSubaccountOrdersParams, GetEngineSubaccountProductOrdersParams, ValidateEngineOrderParams } from "@nadohq/engine-client";
4
+ import { GetIndexerCandlesticksParams, GetIndexerEdgeCandlesticksParams, GetIndexerEdgeMarketSnapshotsParams, GetIndexerFundingRateParams, GetIndexerMarketSnapshotsParams, GetIndexerMultiProductFundingRatesParams, GetIndexerMultiProductSnapshotsParams, GetIndexerOrdersParams, GetIndexerOrdersResponse, GetIndexerProductSnapshotsParams } from "@nadohq/indexer-client";
5
+
6
+ //#region src/apis/market/MarketQueryAPI.d.ts
7
+ declare class MarketQueryAPI extends BaseNadoAPI {
8
+ /**
9
+ * Retrieves all market states from the offchain engine
10
+ */
11
+ getAllMarkets(): Promise<GetEngineAllMarketsResponse>;
12
+ /**
13
+ * Get all edge engine markets
14
+ */
15
+ getEdgeAllMarkets(): Promise<Record<number, GetEngineAllMarketsResponse>>;
16
+ /**
17
+ * Retrieves all spread health groups
18
+ */
19
+ getHealthGroups(): Promise<import("@nadohq/engine-client").GetEngineHealthGroupsResponse>;
20
+ /**
21
+ * Queries engine to determine if the order can be submitted within health requirements
22
+ */
23
+ validateOrderParams(params: ValidateEngineOrderParams): Promise<import("@nadohq/engine-client").ValidateEngineOrderResponse>;
24
+ /**
25
+ * Queries the offchain engine to retrieve status of any open orders for the given subaccount
26
+ * @param params
27
+ */
28
+ getOpenSubaccountOrders(params: GetEngineSubaccountOrdersParams): Promise<import("@nadohq/engine-client").EngineSubaccountOrders>;
29
+ /**
30
+ * Queries the offchain engine to retrieve status of any open orders for the given subaccount for multiple products
31
+ * @param params
32
+ */
33
+ getOpenSubaccountMultiProductOrders(params: GetEngineSubaccountProductOrdersParams): Promise<import("@nadohq/engine-client").GetEngineSubaccountProductOrdersResponse>;
34
+ /**
35
+ * Queries the offchain trigger service to list trigger orders. Requires a signature
36
+ * @param params
37
+ */
38
+ getTriggerOrders(params: GetTriggerOrdersParams): Promise<import("@nadohq/trigger-client").TriggerListOrdersResponse>;
39
+ /**
40
+ * Queries indexer to fetch historical orders
41
+ *
42
+ * @param params
43
+ */
44
+ getHistoricalOrders(params: GetIndexerOrdersParams): Promise<GetIndexerOrdersResponse>;
45
+ /**
46
+ * Queries engine to determine maximum order size
47
+ * @param params
48
+ */
49
+ getMaxOrderSize(params: GetEngineMaxOrderSizeParams): Promise<import("bignumber.js").BigNumber>;
50
+ /**
51
+ * Retrieves liquidity per price tick from the engine. The engine will skip price levels that have no liquidity,
52
+ * so it is not guaranteed that the bids/asks are evenly spaced
53
+ */
54
+ getMarketLiquidity(params: GetEngineMarketLiquidityParams): Promise<import("@nadohq/engine-client").GetEngineMarketLiquidityResponse>;
55
+ /**
56
+ * Historical candlesticks from the indexer, use getLatestMarketPrice for the latest orderbook prices
57
+ *
58
+ * @param params
59
+ */
60
+ getCandlesticks(params: GetIndexerCandlesticksParams): Promise<import("@nadohq/indexer-client").GetIndexerCandlesticksResponse>;
61
+ /**
62
+ * Historical candlesticks from Edge, use getLatestMarketPrice for the latest orderbook prices
63
+ *
64
+ * @param params
65
+ */
66
+ getEdgeCandlesticks(params: GetIndexerEdgeCandlesticksParams): Promise<import("@nadohq/indexer-client").GetIndexerCandlesticksResponse>;
67
+ /**
68
+ * Retrieves the latest off-chain orderbook price from the engine
69
+ *
70
+ * @param params
71
+ */
72
+ getLatestMarketPrice(params: GetEngineMarketPriceParams): Promise<import("@nadohq/engine-client").EngineMarketPrice>;
73
+ /**
74
+ * Retrieves the latest off-chain orderbook price from the engine for multiple markets
75
+ *
76
+ * @param params
77
+ */
78
+ getLatestMarketPrices(params: GetEngineMarketPricesParams): Promise<import("@nadohq/engine-client").GetEngineMarketPricesResponse>;
79
+ /**
80
+ * Retrieves the latest funding rate for a perp product
81
+ *
82
+ * @param params
83
+ */
84
+ getFundingRate(params: GetIndexerFundingRateParams): Promise<import("@nadohq/indexer-client").IndexerFundingRate>;
85
+ /**
86
+ * Retrieves the latest funding rate for multiple perp products
87
+ *
88
+ * @param params
89
+ */
90
+ getMultiProductFundingRates(params: GetIndexerMultiProductFundingRatesParams): Promise<import("@nadohq/indexer-client").GetIndexerMultiProductFundingRatesResponse>;
91
+ /**
92
+ * Retrieves the historical snapshots for a product from the indexer
93
+ *
94
+ * @param params
95
+ */
96
+ getProductSnapshots(params: GetIndexerProductSnapshotsParams): Promise<import("@nadohq/indexer-client").GetIndexerProductSnapshotsResponse>;
97
+ /**
98
+ * Retrieves the historical snapshots for a market from the indexer
99
+ *
100
+ * @param params
101
+ */
102
+ getMarketSnapshots(params: GetIndexerMarketSnapshotsParams): Promise<import("@nadohq/indexer-client").GetIndexerMarketSnapshotsResponse>;
103
+ /**
104
+ * Retrieves the historical snapshots for a market from Edge
105
+ *
106
+ * @param params
107
+ */
108
+ getEdgeMarketSnapshots(params: GetIndexerEdgeMarketSnapshotsParams): Promise<import("@nadohq/indexer-client").GetIndexerEdgeMarketSnapshotResponse>;
109
+ /**
110
+ * Retrieves the historical snapshots for multiple products from the indexer
111
+ *
112
+ * @param params
113
+ */
114
+ getMultiProductSnapshots(params: GetIndexerMultiProductSnapshotsParams): Promise<import("@nadohq/indexer-client").GetIndexerMultiProductSnapshotsResponse>;
115
+ }
116
+ //#endregion
117
+ export { MarketQueryAPI as t };
118
+ //# sourceMappingURL=MarketQueryAPI-Dhb8hWiD.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketQueryAPI-Dhb8hWiD.d.cts","names":[],"sources":["../src/apis/market/src/apis/market/MarketQueryAPI.ts"],"mappings":";;;;;;cAyBa,cAAA,SAAuB,WAAA;;AAApC;;EAIQ,aAAA,CAAA,GAAiB,OAAA,CAAQ,2BAAA;EAAA;;;EAOzB,iBAAA,CAAA,GAAqB,OAAA,CACzB,MAAA,SAAe,2BAAA;EADU;;;EASrB,eAAA,CAAA,GAAe,OAAA,iCAAA,6BAAA;EAeiB;;;EARhC,mBAAA,CAAoB,MAAA,EAAQ,yBAAA,GAAyB,OAAA,iCAAA,2BAAA;EA0B5B;;;;EAlBzB,uBAAA,CAAwB,MAAA,EAAQ,+BAAA,GAA+B,OAAA,iCAAA,sBAAA;EAyCvC;;;;EAjCxB,mCAAA,CACJ,MAAA,EAAQ,sCAAA,GAAsC,OAAA,iCAAA,wCAAA;EAiDU;;;;EAxCpD,gBAAA,CAAiB,MAAA,EAAQ,sBAAA,GAAsB,OAAA,kCAAA,yBAAA;EAmEjB;;;;;EAtD9B,mBAAA,CACJ,MAAA,EAAQ,sBAAA,GACP,OAAA,CAAQ,wBAAA;EAiFuB;;;;EAzE5B,eAAA,CAAgB,MAAA,EAAQ,2BAAA,GAA2B,OAAA,wBAAA,SAAA;EA2Fe;;;;EAnFlE,kBAAA,CAAmB,MAAA,EAAQ,8BAAA,GAA8B,OAAA,iCAAA,gCAAA;EApFlB;;;;;EA6FvC,eAAA,CAAgB,MAAA,EAAQ,4BAAA,GAA4B,OAAA,kCAAA,8BAAA;EAlF/B;;;;;EA2FrB,mBAAA,CAAoB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,kCAAA,8BAAA;EA3E5D;;;;;EAoFA,oBAAA,CAAqB,MAAA,EAAQ,0BAAA,GAA0B,OAAA,iCAAA,iBAAA;EA5EvB;;;;;EAqFhC,qBAAA,CAAsB,MAAA,EAAQ,2BAAA,GAA2B,OAAA,iCAAA,6BAAA;EA5E7D;;;;;EAqFI,cAAA,CAAe,MAAA,EAAQ,2BAAA,GAA2B,OAAA,kCAAA,kBAAA;EA5EH;;;;;EAqF/C,2BAAA,CACJ,MAAA,EAAQ,wCAAA,GAAwC,OAAA,kCAAA,0CAAA;EAvEvC;;;;;EAiFL,mBAAA,CAAoB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,kCAAA,kCAAA;EAjE5D;;;;;EA0EA,kBAAA,CAAmB,MAAA,EAAQ,+BAAA,GAA+B,OAAA,kCAAA,iCAAA;EAjElC;;;;;EA0ExB,sBAAA,CAAuB,MAAA,EAAQ,mCAAA,GAAmC,OAAA,kCAAA,oCAAA;EAjE9C;;;;;EA0EpB,wBAAA,CACJ,MAAA,EAAQ,qCAAA,GAAqC,OAAA,kCAAA,uCAAA;AAAA"}
@@ -0,0 +1,118 @@
1
+ import { t as BaseNadoAPI } from "./base-B92wTsrc.js";
2
+ import { o as GetTriggerOrdersParams } from "./types-BFFzjzRy.js";
3
+ import { GetEngineAllMarketsResponse, GetEngineMarketLiquidityParams, GetEngineMarketPriceParams, GetEngineMarketPricesParams, GetEngineMaxOrderSizeParams, GetEngineSubaccountOrdersParams, GetEngineSubaccountProductOrdersParams, ValidateEngineOrderParams } from "@nadohq/engine-client";
4
+ import { GetIndexerCandlesticksParams, GetIndexerEdgeCandlesticksParams, GetIndexerEdgeMarketSnapshotsParams, GetIndexerFundingRateParams, GetIndexerMarketSnapshotsParams, GetIndexerMultiProductFundingRatesParams, GetIndexerMultiProductSnapshotsParams, GetIndexerOrdersParams, GetIndexerOrdersResponse, GetIndexerProductSnapshotsParams } from "@nadohq/indexer-client";
5
+
6
+ //#region src/apis/market/MarketQueryAPI.d.ts
7
+ declare class MarketQueryAPI extends BaseNadoAPI {
8
+ /**
9
+ * Retrieves all market states from the offchain engine
10
+ */
11
+ getAllMarkets(): Promise<GetEngineAllMarketsResponse>;
12
+ /**
13
+ * Get all edge engine markets
14
+ */
15
+ getEdgeAllMarkets(): Promise<Record<number, GetEngineAllMarketsResponse>>;
16
+ /**
17
+ * Retrieves all spread health groups
18
+ */
19
+ getHealthGroups(): Promise<import("@nadohq/engine-client").GetEngineHealthGroupsResponse>;
20
+ /**
21
+ * Queries engine to determine if the order can be submitted within health requirements
22
+ */
23
+ validateOrderParams(params: ValidateEngineOrderParams): Promise<import("@nadohq/engine-client").ValidateEngineOrderResponse>;
24
+ /**
25
+ * Queries the offchain engine to retrieve status of any open orders for the given subaccount
26
+ * @param params
27
+ */
28
+ getOpenSubaccountOrders(params: GetEngineSubaccountOrdersParams): Promise<import("@nadohq/engine-client").EngineSubaccountOrders>;
29
+ /**
30
+ * Queries the offchain engine to retrieve status of any open orders for the given subaccount for multiple products
31
+ * @param params
32
+ */
33
+ getOpenSubaccountMultiProductOrders(params: GetEngineSubaccountProductOrdersParams): Promise<import("@nadohq/engine-client").GetEngineSubaccountProductOrdersResponse>;
34
+ /**
35
+ * Queries the offchain trigger service to list trigger orders. Requires a signature
36
+ * @param params
37
+ */
38
+ getTriggerOrders(params: GetTriggerOrdersParams): Promise<import("@nadohq/trigger-client").TriggerListOrdersResponse>;
39
+ /**
40
+ * Queries indexer to fetch historical orders
41
+ *
42
+ * @param params
43
+ */
44
+ getHistoricalOrders(params: GetIndexerOrdersParams): Promise<GetIndexerOrdersResponse>;
45
+ /**
46
+ * Queries engine to determine maximum order size
47
+ * @param params
48
+ */
49
+ getMaxOrderSize(params: GetEngineMaxOrderSizeParams): Promise<import("bignumber.js").BigNumber>;
50
+ /**
51
+ * Retrieves liquidity per price tick from the engine. The engine will skip price levels that have no liquidity,
52
+ * so it is not guaranteed that the bids/asks are evenly spaced
53
+ */
54
+ getMarketLiquidity(params: GetEngineMarketLiquidityParams): Promise<import("@nadohq/engine-client").GetEngineMarketLiquidityResponse>;
55
+ /**
56
+ * Historical candlesticks from the indexer, use getLatestMarketPrice for the latest orderbook prices
57
+ *
58
+ * @param params
59
+ */
60
+ getCandlesticks(params: GetIndexerCandlesticksParams): Promise<import("@nadohq/indexer-client").GetIndexerCandlesticksResponse>;
61
+ /**
62
+ * Historical candlesticks from Edge, use getLatestMarketPrice for the latest orderbook prices
63
+ *
64
+ * @param params
65
+ */
66
+ getEdgeCandlesticks(params: GetIndexerEdgeCandlesticksParams): Promise<import("@nadohq/indexer-client").GetIndexerCandlesticksResponse>;
67
+ /**
68
+ * Retrieves the latest off-chain orderbook price from the engine
69
+ *
70
+ * @param params
71
+ */
72
+ getLatestMarketPrice(params: GetEngineMarketPriceParams): Promise<import("@nadohq/engine-client").EngineMarketPrice>;
73
+ /**
74
+ * Retrieves the latest off-chain orderbook price from the engine for multiple markets
75
+ *
76
+ * @param params
77
+ */
78
+ getLatestMarketPrices(params: GetEngineMarketPricesParams): Promise<import("@nadohq/engine-client").GetEngineMarketPricesResponse>;
79
+ /**
80
+ * Retrieves the latest funding rate for a perp product
81
+ *
82
+ * @param params
83
+ */
84
+ getFundingRate(params: GetIndexerFundingRateParams): Promise<import("@nadohq/indexer-client").IndexerFundingRate>;
85
+ /**
86
+ * Retrieves the latest funding rate for multiple perp products
87
+ *
88
+ * @param params
89
+ */
90
+ getMultiProductFundingRates(params: GetIndexerMultiProductFundingRatesParams): Promise<import("@nadohq/indexer-client").GetIndexerMultiProductFundingRatesResponse>;
91
+ /**
92
+ * Retrieves the historical snapshots for a product from the indexer
93
+ *
94
+ * @param params
95
+ */
96
+ getProductSnapshots(params: GetIndexerProductSnapshotsParams): Promise<import("@nadohq/indexer-client").GetIndexerProductSnapshotsResponse>;
97
+ /**
98
+ * Retrieves the historical snapshots for a market from the indexer
99
+ *
100
+ * @param params
101
+ */
102
+ getMarketSnapshots(params: GetIndexerMarketSnapshotsParams): Promise<import("@nadohq/indexer-client").GetIndexerMarketSnapshotsResponse>;
103
+ /**
104
+ * Retrieves the historical snapshots for a market from Edge
105
+ *
106
+ * @param params
107
+ */
108
+ getEdgeMarketSnapshots(params: GetIndexerEdgeMarketSnapshotsParams): Promise<import("@nadohq/indexer-client").GetIndexerEdgeMarketSnapshotResponse>;
109
+ /**
110
+ * Retrieves the historical snapshots for multiple products from the indexer
111
+ *
112
+ * @param params
113
+ */
114
+ getMultiProductSnapshots(params: GetIndexerMultiProductSnapshotsParams): Promise<import("@nadohq/indexer-client").GetIndexerMultiProductSnapshotsResponse>;
115
+ }
116
+ //#endregion
117
+ export { MarketQueryAPI as t };
118
+ //# sourceMappingURL=MarketQueryAPI-Dz8FrVPK.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketQueryAPI-Dz8FrVPK.d.ts","names":[],"sources":["../src/apis/market/src/apis/market/MarketQueryAPI.ts"],"mappings":";;;;;;cAyBa,cAAA,SAAuB,WAAA;;AAApC;;EAIQ,aAAA,CAAA,GAAiB,OAAA,CAAQ,2BAAA;EAAA;;;EAOzB,iBAAA,CAAA,GAAqB,OAAA,CACzB,MAAA,SAAe,2BAAA;EADU;;;EASrB,eAAA,CAAA,GAAe,OAAA,iCAAA,6BAAA;EAeiB;;;EARhC,mBAAA,CAAoB,MAAA,EAAQ,yBAAA,GAAyB,OAAA,iCAAA,2BAAA;EA0B5B;;;;EAlBzB,uBAAA,CAAwB,MAAA,EAAQ,+BAAA,GAA+B,OAAA,iCAAA,sBAAA;EAyCvC;;;;EAjCxB,mCAAA,CACJ,MAAA,EAAQ,sCAAA,GAAsC,OAAA,iCAAA,wCAAA;EAiDU;;;;EAxCpD,gBAAA,CAAiB,MAAA,EAAQ,sBAAA,GAAsB,OAAA,kCAAA,yBAAA;EAmEjB;;;;;EAtD9B,mBAAA,CACJ,MAAA,EAAQ,sBAAA,GACP,OAAA,CAAQ,wBAAA;EAiFuB;;;;EAzE5B,eAAA,CAAgB,MAAA,EAAQ,2BAAA,GAA2B,OAAA,wBAAA,SAAA;EA2Fe;;;;EAnFlE,kBAAA,CAAmB,MAAA,EAAQ,8BAAA,GAA8B,OAAA,iCAAA,gCAAA;EApFlB;;;;;EA6FvC,eAAA,CAAgB,MAAA,EAAQ,4BAAA,GAA4B,OAAA,kCAAA,8BAAA;EAlF/B;;;;;EA2FrB,mBAAA,CAAoB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,kCAAA,8BAAA;EA3E5D;;;;;EAoFA,oBAAA,CAAqB,MAAA,EAAQ,0BAAA,GAA0B,OAAA,iCAAA,iBAAA;EA5EvB;;;;;EAqFhC,qBAAA,CAAsB,MAAA,EAAQ,2BAAA,GAA2B,OAAA,iCAAA,6BAAA;EA5E7D;;;;;EAqFI,cAAA,CAAe,MAAA,EAAQ,2BAAA,GAA2B,OAAA,kCAAA,kBAAA;EA5EH;;;;;EAqF/C,2BAAA,CACJ,MAAA,EAAQ,wCAAA,GAAwC,OAAA,kCAAA,0CAAA;EAvEvC;;;;;EAiFL,mBAAA,CAAoB,MAAA,EAAQ,gCAAA,GAAgC,OAAA,kCAAA,kCAAA;EAjE5D;;;;;EA0EA,kBAAA,CAAmB,MAAA,EAAQ,+BAAA,GAA+B,OAAA,kCAAA,iCAAA;EAjElC;;;;;EA0ExB,sBAAA,CAAuB,MAAA,EAAQ,mCAAA,GAAmC,OAAA,kCAAA,oCAAA;EAjE9C;;;;;EA0EpB,wBAAA,CACJ,MAAA,EAAQ,qCAAA,GAAqC,OAAA,kCAAA,uCAAA;AAAA"}
@@ -0,0 +1,7 @@
1
+ import { t as BaseNadoAPI } from "./base-BYkH_-5-.cjs";
2
+
3
+ //#region src/apis/perp/PerpExecuteAPI.d.ts
4
+ declare class PerpExecuteAPI extends BaseNadoAPI {}
5
+ //#endregion
6
+ export { PerpExecuteAPI as t };
7
+ //# sourceMappingURL=PerpExecuteAPI-C0APgWq4.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PerpExecuteAPI-C0APgWq4.d.cts","names":[],"sources":["../src/apis/perp/src/apis/perp/PerpExecuteAPI.ts"],"mappings":";;;cAEa,cAAA,SAAuB,WAAW"}
@@ -0,0 +1,7 @@
1
+ import { t as BaseNadoAPI } from "./base-B92wTsrc.js";
2
+
3
+ //#region src/apis/perp/PerpExecuteAPI.d.ts
4
+ declare class PerpExecuteAPI extends BaseNadoAPI {}
5
+ //#endregion
6
+ export { PerpExecuteAPI as t };
7
+ //# sourceMappingURL=PerpExecuteAPI-DPNJdARF.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PerpExecuteAPI-DPNJdARF.d.ts","names":[],"sources":["../src/apis/perp/src/apis/perp/PerpExecuteAPI.ts"],"mappings":";;;cAEa,cAAA,SAAuB,WAAW"}
@@ -0,0 +1,19 @@
1
+ import { t as BaseNadoAPI } from "./base-BYkH_-5-.cjs";
2
+ import { GetIndexerMultiProductPerpPricesParams, GetIndexerPerpPricesParams } from "@nadohq/indexer-client";
3
+
4
+ //#region src/apis/perp/PerpQueryAPI.d.ts
5
+ declare class PerpQueryAPI extends BaseNadoAPI {
6
+ /**
7
+ * Gets the latest index & mark price for a perp product
8
+ * @param params
9
+ */
10
+ getPerpPrices(params: GetIndexerPerpPricesParams): Promise<import("@nadohq/indexer-client").IndexerPerpPrices>;
11
+ /**
12
+ * Gets the latest index & mark price for multiple perp products
13
+ * @param params
14
+ */
15
+ getMultiProductPerpPrices(params: GetIndexerMultiProductPerpPricesParams): Promise<import("@nadohq/indexer-client").GetIndexerMultiProductPerpPricesResponse>;
16
+ }
17
+ //#endregion
18
+ export { PerpQueryAPI as t };
19
+ //# sourceMappingURL=PerpQueryAPI-RGhdNhoJ.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PerpQueryAPI-RGhdNhoJ.d.cts","names":[],"sources":["../src/apis/perp/src/apis/perp/PerpQueryAPI.ts"],"mappings":";;;;cAMa,YAAA,SAAqB,WAAA;;AAAlC;;;EAKQ,aAAA,CAAc,MAAA,EAAQ,0BAAA,GAA0B,OAAA,kCAAA,iBAAA;EAAA;;;;EAQhD,yBAAA,CACJ,MAAA,EAAQ,sCAAA,GAAsC,OAAA,kCAAA,wCAAA;AAAA"}
@@ -0,0 +1,19 @@
1
+ import { t as BaseNadoAPI } from "./base-B92wTsrc.js";
2
+ import { GetIndexerMultiProductPerpPricesParams, GetIndexerPerpPricesParams } from "@nadohq/indexer-client";
3
+
4
+ //#region src/apis/perp/PerpQueryAPI.d.ts
5
+ declare class PerpQueryAPI extends BaseNadoAPI {
6
+ /**
7
+ * Gets the latest index & mark price for a perp product
8
+ * @param params
9
+ */
10
+ getPerpPrices(params: GetIndexerPerpPricesParams): Promise<import("@nadohq/indexer-client").IndexerPerpPrices>;
11
+ /**
12
+ * Gets the latest index & mark price for multiple perp products
13
+ * @param params
14
+ */
15
+ getMultiProductPerpPrices(params: GetIndexerMultiProductPerpPricesParams): Promise<import("@nadohq/indexer-client").GetIndexerMultiProductPerpPricesResponse>;
16
+ }
17
+ //#endregion
18
+ export { PerpQueryAPI as t };
19
+ //# sourceMappingURL=PerpQueryAPI-tJbMmCcO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PerpQueryAPI-tJbMmCcO.d.ts","names":[],"sources":["../src/apis/perp/src/apis/perp/PerpQueryAPI.ts"],"mappings":";;;;cAMa,YAAA,SAAqB,WAAA;;AAAlC;;;EAKQ,aAAA,CAAc,MAAA,EAAQ,0BAAA,GAA0B,OAAA,kCAAA,iBAAA;EAAA;;;;EAQhD,yBAAA,CACJ,MAAA,EAAQ,sCAAA,GAAsC,OAAA,kCAAA,wCAAA;AAAA"}
@@ -0,0 +1,22 @@
1
+ import { a as MintMockERC20Params, c as TransferQuoteParams, l as WithdrawCollateralParams, n as BurnNlpParams, o as MintNlpParams, t as ApproveAllowanceParams } from "./types-B-tOIIKl.js";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-Ck64kyYt.js";
3
+ import { DepositCollateralParams } from "@nadohq/shared";
4
+
5
+ //#region src/apis/spot/SpotExecuteAPI.d.ts
6
+ declare class SpotExecuteAPI extends BaseSpotAPI {
7
+ deposit(params: DepositCollateralParams): Promise<`0x${string}`>;
8
+ withdraw(params: WithdrawCollateralParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"withdraw_collateral">>;
9
+ approveAllowance(params: ApproveAllowanceParams): Promise<`0x${string}`>;
10
+ /**
11
+ * Transfers quote between subaccounts under the same wallet.
12
+ *
13
+ * @param params
14
+ */
15
+ transferQuote(params: TransferQuoteParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"transfer_quote">>;
16
+ mintNlp(params: MintNlpParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"mint_nlp">>;
17
+ burnNlp(params: BurnNlpParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"burn_nlp">>;
18
+ _mintMockERC20(params: MintMockERC20Params): Promise<`0x${string}`>;
19
+ }
20
+ //#endregion
21
+ export { SpotExecuteAPI as t };
22
+ //# sourceMappingURL=SpotExecuteAPI-UWnX_Hm4.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpotExecuteAPI-UWnX_Hm4.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotExecuteAPI.ts"],"mappings":";;;;;cAmBa,cAAA,SAAuB,WAAA;EAC5B,OAAA,CAAQ,MAAA,EAAQ,uBAAA,GAAuB,OAAA;EAUvC,QAAA,CAAS,MAAA,EAAQ,wBAAA,GAAwB,OAAA,iCAAA,gCAAA;EASzC,gBAAA,CAAiB,MAAA,EAAQ,sBAAA,GAAsB,OAAA;;;;;;EAoB/C,aAAA,CAAc,MAAA,EAAQ,mBAAA,GAAmB,OAAA,iCAAA,gCAAA;EASzC,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,cAAA,CAAe,MAAA,EAAQ,mBAAA,GAAmB,OAAA;AAAA"}
@@ -0,0 +1,22 @@
1
+ import { a as MintMockERC20Params, c as TransferQuoteParams, l as WithdrawCollateralParams, n as BurnNlpParams, o as MintNlpParams, t as ApproveAllowanceParams } from "./types-CCj4QJO8.cjs";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-BeTjhXT_.cjs";
3
+ import { DepositCollateralParams } from "@nadohq/shared";
4
+
5
+ //#region src/apis/spot/SpotExecuteAPI.d.ts
6
+ declare class SpotExecuteAPI extends BaseSpotAPI {
7
+ deposit(params: DepositCollateralParams): Promise<`0x${string}`>;
8
+ withdraw(params: WithdrawCollateralParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"withdraw_collateral">>;
9
+ approveAllowance(params: ApproveAllowanceParams): Promise<`0x${string}`>;
10
+ /**
11
+ * Transfers quote between subaccounts under the same wallet.
12
+ *
13
+ * @param params
14
+ */
15
+ transferQuote(params: TransferQuoteParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"transfer_quote">>;
16
+ mintNlp(params: MintNlpParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"mint_nlp">>;
17
+ burnNlp(params: BurnNlpParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"burn_nlp">>;
18
+ _mintMockERC20(params: MintMockERC20Params): Promise<`0x${string}`>;
19
+ }
20
+ //#endregion
21
+ export { SpotExecuteAPI as t };
22
+ //# sourceMappingURL=SpotExecuteAPI-b07ixUz2.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpotExecuteAPI-b07ixUz2.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotExecuteAPI.ts"],"mappings":";;;;;cAmBa,cAAA,SAAuB,WAAA;EAC5B,OAAA,CAAQ,MAAA,EAAQ,uBAAA,GAAuB,OAAA;EAUvC,QAAA,CAAS,MAAA,EAAQ,wBAAA,GAAwB,OAAA,iCAAA,gCAAA;EASzC,gBAAA,CAAiB,MAAA,EAAQ,sBAAA,GAAsB,OAAA;;;;;;EAoB/C,aAAA,CAAc,MAAA,EAAQ,mBAAA,GAAmB,OAAA,iCAAA,gCAAA;EASzC,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,OAAA,CAAQ,MAAA,EAAQ,aAAA,GAAa,OAAA,iCAAA,gCAAA;EAS7B,cAAA,CAAe,MAAA,EAAQ,mBAAA,GAAmB,OAAA;AAAA"}
@@ -0,0 +1,36 @@
1
+ import { i as GetTokenWalletBalanceParams, r as GetTokenAllowanceParams } from "./types-B-tOIIKl.js";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-Ck64kyYt.js";
3
+ import { GetEngineMaxMintNlpAmountParams, GetEngineMaxWithdrawableParams } from "@nadohq/engine-client";
4
+ import BigNumber from "bignumber.js";
5
+
6
+ //#region src/apis/spot/SpotQueryAPI.d.ts
7
+ declare class SpotQueryAPI extends BaseSpotAPI {
8
+ /**
9
+ * Gets the estimated max withdrawable amount for a product
10
+ * @param params
11
+ */
12
+ getMaxWithdrawable(params: GetEngineMaxWithdrawableParams): Promise<BigNumber>;
13
+ /**
14
+ * Queries engine to determine maximum quote amount for minting NLP.
15
+ *
16
+ * @param params
17
+ */
18
+ getMaxMintNlpAmount(params: GetEngineMaxMintNlpAmountParams): Promise<BigNumber>;
19
+ /**
20
+ * Helper to get current token balance in the user's wallet (i.e. not in a Nado subaccount)
21
+ */
22
+ getTokenWalletBalance({
23
+ address,
24
+ ...rest
25
+ }: GetTokenWalletBalanceParams): Promise<bigint>;
26
+ /**
27
+ * Helper to get current token allowance
28
+ */
29
+ getTokenAllowance({
30
+ address,
31
+ ...rest
32
+ }: GetTokenAllowanceParams): Promise<BigNumber>;
33
+ }
34
+ //#endregion
35
+ export { SpotQueryAPI as t };
36
+ //# sourceMappingURL=SpotQueryAPI-CfZcvt4p.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpotQueryAPI-CfZcvt4p.d.ts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotQueryAPI.ts"],"mappings":";;;;;;cASa,YAAA,SAAqB,WAAA;;AAAlC;;;EAKQ,kBAAA,CAAmB,MAAA,EAAQ,8BAAA,GAA8B,OAAA,CAAA,SAAA;EAAA;;;;;EASzD,mBAAA,CAAoB,MAAA,EAAQ,+BAAA,GAA+B,OAAA,CAAA,SAAA;EAU9D;;;EAHG,qBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,2BAAA,GAA8B,OAAA;EAWI;;;EAH/B,iBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,uBAAA,GAA0B,OAAA,CAAQ,SAAA;AAAA"}
@@ -0,0 +1,36 @@
1
+ import { i as GetTokenWalletBalanceParams, r as GetTokenAllowanceParams } from "./types-CCj4QJO8.cjs";
2
+ import { t as BaseSpotAPI } from "./BaseSpotAPI-BeTjhXT_.cjs";
3
+ import { GetEngineMaxMintNlpAmountParams, GetEngineMaxWithdrawableParams } from "@nadohq/engine-client";
4
+ import BigNumber from "bignumber.js";
5
+
6
+ //#region src/apis/spot/SpotQueryAPI.d.ts
7
+ declare class SpotQueryAPI extends BaseSpotAPI {
8
+ /**
9
+ * Gets the estimated max withdrawable amount for a product
10
+ * @param params
11
+ */
12
+ getMaxWithdrawable(params: GetEngineMaxWithdrawableParams): Promise<BigNumber>;
13
+ /**
14
+ * Queries engine to determine maximum quote amount for minting NLP.
15
+ *
16
+ * @param params
17
+ */
18
+ getMaxMintNlpAmount(params: GetEngineMaxMintNlpAmountParams): Promise<BigNumber>;
19
+ /**
20
+ * Helper to get current token balance in the user's wallet (i.e. not in a Nado subaccount)
21
+ */
22
+ getTokenWalletBalance({
23
+ address,
24
+ ...rest
25
+ }: GetTokenWalletBalanceParams): Promise<bigint>;
26
+ /**
27
+ * Helper to get current token allowance
28
+ */
29
+ getTokenAllowance({
30
+ address,
31
+ ...rest
32
+ }: GetTokenAllowanceParams): Promise<BigNumber>;
33
+ }
34
+ //#endregion
35
+ export { SpotQueryAPI as t };
36
+ //# sourceMappingURL=SpotQueryAPI-DS85MzQB.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpotQueryAPI-DS85MzQB.d.cts","names":[],"sources":["../src/apis/spot/src/apis/spot/SpotQueryAPI.ts"],"mappings":";;;;;;cASa,YAAA,SAAqB,WAAA;;AAAlC;;;EAKQ,kBAAA,CAAmB,MAAA,EAAQ,8BAAA,GAA8B,OAAA,CAAA,SAAA;EAAA;;;;;EASzD,mBAAA,CAAoB,MAAA,EAAQ,+BAAA,GAA+B,OAAA,CAAA,SAAA;EAU9D;;;EAHG,qBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,2BAAA,GAA8B,OAAA;EAWI;;;EAH/B,iBAAA,CAAA;IACJ,OAAA;IAAA,GACG;EAAA,GACF,uBAAA,GAA0B,OAAA,CAAQ,SAAA;AAAA"}
@@ -0,0 +1,21 @@
1
+ import { t as BaseNadoAPI } from "./base-BYkH_-5-.cjs";
2
+ import { n as LinkSignerParams, r as LiquidateSubaccountParams } from "./types-BWRdhQd_.cjs";
3
+
4
+ //#region src/apis/subaccount/SubaccountExecuteAPI.d.ts
5
+ declare class SubaccountExecuteAPI extends BaseNadoAPI {
6
+ /**
7
+ * Liquidates a subaccount
8
+ *
9
+ * @param params
10
+ */
11
+ liquidateSubaccount(params: LiquidateSubaccountParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"liquidate_subaccount">>;
12
+ /**
13
+ * Links a signer to a subaccount to allow them to sign transactions on behalf of the subaccount
14
+ *
15
+ * @param params
16
+ */
17
+ linkSigner(params: LinkSignerParams): Promise<import("@nadohq/engine-client").EngineServerExecuteSuccessResult<"link_signer">>;
18
+ }
19
+ //#endregion
20
+ export { SubaccountExecuteAPI as t };
21
+ //# sourceMappingURL=SubaccountExecuteAPI-DhHBzzdk.d.cts.map