@symmio/trading-core 0.1.0 → 0.2.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 (441) hide show
  1. package/README.md +18 -45
  2. package/dist/balance-history/get-balance-history/balance-history-filter.d.ts +1 -1
  3. package/dist/balance-history/get-balance-history/get-balance-history.d.ts +3 -3
  4. package/dist/balance-history/get-balance-history/index.d.ts +5 -5
  5. package/dist/balance-history/get-balance-history/query-document.d.ts +2 -2
  6. package/dist/balance-history/get-balance-history/query.d.ts +4 -4
  7. package/dist/balance-history/get-balance-history/to-balance-history-row.d.ts +2 -2
  8. package/dist/balance-history/index.d.ts +1 -1
  9. package/dist/core/chains/actions/get-chain-config.d.ts +1 -1
  10. package/dist/core/chains/actions/list-supported-chains.d.ts +1 -1
  11. package/dist/core/chains/index.d.ts +5 -5
  12. package/dist/core/chains/registry.d.ts +1 -1
  13. package/dist/core/config/config-key.d.ts +1 -1
  14. package/dist/core/config/create-config.d.ts +5 -5
  15. package/dist/core/config/index.d.ts +1 -1
  16. package/dist/core/config/merge-chain-config.d.ts +2 -2
  17. package/dist/index.d.ts +57 -41
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +138 -127
  20. package/dist/muon/client.d.ts +1 -1
  21. package/dist/muon/deallocate-upnl-sig/get-deallocate-upnl-sig.d.ts +3 -3
  22. package/dist/muon/deallocate-upnl-sig/index.d.ts +2 -2
  23. package/dist/muon/deallocate-upnl-sig/query.d.ts +4 -4
  24. package/dist/muon/index.d.ts +11 -11
  25. package/dist/muon/party-a-overview/get-muon-party-a-overview.d.ts +4 -4
  26. package/dist/muon/party-a-overview/get-muon-party-a-overview.d.ts.map +1 -1
  27. package/dist/muon/party-a-overview/get-muon-party-a-overview.js.map +1 -1
  28. package/dist/muon/party-a-overview/index.d.ts +2 -2
  29. package/dist/muon/party-a-overview/query.d.ts +4 -4
  30. package/dist/muon/price/get-muon-price.d.ts +3 -3
  31. package/dist/muon/price/index.d.ts +2 -2
  32. package/dist/muon/price/query.d.ts +4 -4
  33. package/dist/muon/price-range/get-muon-price-range.d.ts +4 -4
  34. package/dist/muon/price-range/get-muon-price-range.d.ts.map +1 -1
  35. package/dist/muon/price-range/get-muon-price-range.js.map +1 -1
  36. package/dist/muon/price-range/index.d.ts +2 -2
  37. package/dist/muon/price-range/query.d.ts +4 -4
  38. package/dist/muon/settle-upnl/get-muon-settle-upnl.d.ts +4 -4
  39. package/dist/muon/settle-upnl/get-muon-settle-upnl.d.ts.map +1 -1
  40. package/dist/muon/settle-upnl/get-muon-settle-upnl.js.map +1 -1
  41. package/dist/muon/settle-upnl/index.d.ts +2 -2
  42. package/dist/muon/settle-upnl/query.d.ts +4 -4
  43. package/dist/muon/upnl/get-muon-upnl.d.ts +4 -4
  44. package/dist/muon/upnl/get-muon-upnl.d.ts.map +1 -1
  45. package/dist/muon/upnl/get-muon-upnl.js.map +1 -1
  46. package/dist/muon/upnl/index.d.ts +2 -2
  47. package/dist/muon/upnl/query.d.ts +4 -4
  48. package/dist/muon/upnl-a/get-muon-upnl-a.d.ts +4 -4
  49. package/dist/muon/upnl-a/get-muon-upnl-a.d.ts.map +1 -1
  50. package/dist/muon/upnl-a/get-muon-upnl-a.js.map +1 -1
  51. package/dist/muon/upnl-a/index.d.ts +2 -2
  52. package/dist/muon/upnl-a/query.d.ts +4 -4
  53. package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.d.ts +4 -4
  54. package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.d.ts.map +1 -1
  55. package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.js.map +1 -1
  56. package/dist/muon/upnl-a-with-symbol-price/index.d.ts +2 -2
  57. package/dist/muon/upnl-a-with-symbol-price/query.d.ts +4 -4
  58. package/dist/muon/upnl-b/get-muon-upnl-b.d.ts +3 -3
  59. package/dist/muon/upnl-b/index.d.ts +2 -2
  60. package/dist/muon/upnl-b/query.d.ts +4 -4
  61. package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.d.ts +4 -4
  62. package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.d.ts.map +1 -1
  63. package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.js.map +1 -1
  64. package/dist/muon/upnl-with-symbol-price/index.d.ts +2 -2
  65. package/dist/muon/upnl-with-symbol-price/query.d.ts +4 -4
  66. package/dist/notifications/index.d.ts +2 -2
  67. package/dist/notifications/search/index.d.ts +2 -2
  68. package/dist/notifications/search/query.d.ts +4 -4
  69. package/dist/notifications/search/search-notifications.d.ts +3 -3
  70. package/dist/notifications/types.d.ts +1 -1
  71. package/dist/price-service/enigma/health/get-enigma-price-service-health.d.ts +2 -2
  72. package/dist/price-service/enigma/health/index.d.ts +2 -2
  73. package/dist/price-service/enigma/health/query.d.ts +4 -4
  74. package/dist/price-service/enigma/index.d.ts +5 -5
  75. package/dist/price-service/enigma/metadata/get-enigma-price-service-metadata.d.ts +3 -3
  76. package/dist/price-service/enigma/metadata/index.d.ts +2 -2
  77. package/dist/price-service/enigma/metadata/query.d.ts +4 -4
  78. package/dist/price-service/enigma/prices-by-addresses/get-enigma-price-service-prices-by-addresses.d.ts +3 -3
  79. package/dist/price-service/enigma/prices-by-addresses/index.d.ts +2 -2
  80. package/dist/price-service/enigma/prices-by-addresses/query.d.ts +4 -4
  81. package/dist/price-service/enigma/prices-by-names/get-enigma-price-service-prices-by-names.d.ts +3 -3
  82. package/dist/price-service/enigma/prices-by-names/index.d.ts +2 -2
  83. package/dist/price-service/enigma/prices-by-names/query.d.ts +4 -4
  84. package/dist/price-service/enigma/symbols-info/get-enigma-price-service-symbols-info.d.ts +3 -3
  85. package/dist/price-service/enigma/symbols-info/index.d.ts +2 -2
  86. package/dist/price-service/enigma/symbols-info/query.d.ts +4 -4
  87. package/dist/price-service/index.d.ts +1 -1
  88. package/dist/quotes/apply-notification.d.ts +2 -2
  89. package/dist/quotes/fees/index.d.ts +2 -2
  90. package/dist/quotes/fingerprint.d.ts +1 -1
  91. package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.d.ts +3 -3
  92. package/dist/quotes/get-quote-events-by-type/index.d.ts +4 -4
  93. package/dist/quotes/get-quote-events-by-type/query-document.d.ts +2 -2
  94. package/dist/quotes/get-quote-events-by-type/query.d.ts +5 -5
  95. package/dist/quotes/get-quote-events-by-type/to-quote-event-row.d.ts +2 -2
  96. package/dist/quotes/get-quote-funding/get-quote-funding.d.ts +3 -3
  97. package/dist/quotes/get-quote-funding/index.d.ts +4 -4
  98. package/dist/quotes/get-quote-funding/query-document.d.ts +1 -1
  99. package/dist/quotes/get-quote-funding/query.d.ts +4 -4
  100. package/dist/quotes/get-quote-funding/to-funding-row.d.ts +2 -2
  101. package/dist/quotes/get-quote-history/close-type.d.ts +2 -2
  102. package/dist/quotes/get-quote-history/get-quote-history.d.ts +3 -3
  103. package/dist/quotes/get-quote-history/index.d.ts +5 -5
  104. package/dist/quotes/get-quote-history/query-document.d.ts +2 -2
  105. package/dist/quotes/get-quote-history/query.d.ts +4 -4
  106. package/dist/quotes/get-quote-history/to-history-row.d.ts +2 -2
  107. package/dist/quotes/get-quote-history/types.d.ts +1 -1
  108. package/dist/quotes/get-sub-account-quotes/get-sub-account-quotes.d.ts +3 -3
  109. package/dist/quotes/get-sub-account-quotes/index.d.ts +2 -2
  110. package/dist/quotes/get-sub-account-quotes/query.d.ts +4 -4
  111. package/dist/quotes/grouping/aggregate-metrics.d.ts +2 -2
  112. package/dist/quotes/grouping/group-quotes.d.ts +2 -2
  113. package/dist/quotes/grouping/group-strategy.d.ts +1 -1
  114. package/dist/quotes/grouping/index.d.ts +5 -5
  115. package/dist/quotes/grouping/partition-quotes.d.ts +1 -1
  116. package/dist/quotes/grouping/quote-group.d.ts +3 -3
  117. package/dist/quotes/index.d.ts +16 -16
  118. package/dist/quotes/liquidation/calculate-liquidation-price.d.ts +1 -1
  119. package/dist/quotes/liquidation/index.d.ts +1 -1
  120. package/dist/quotes/open-quantity.d.ts +1 -1
  121. package/dist/quotes/reconcile-quotes.d.ts +5 -5
  122. package/dist/quotes/resolve-quote-accounts.d.ts +3 -3
  123. package/dist/quotes/should-accelerate.d.ts +1 -1
  124. package/dist/quotes/to-unified-quote.d.ts +4 -4
  125. package/dist/quotes/unified-quote.d.ts +3 -3
  126. package/dist/quotes/upnl/calculate-quote-pnl.d.ts +1 -1
  127. package/dist/quotes/upnl/calculate-quote-upnl.d.ts +1 -1
  128. package/dist/quotes/upnl/index.d.ts +3 -3
  129. package/dist/shared/utils/simulate-before-write.d.ts +2 -2
  130. package/dist/solvers/error-codes/get-solver-error-codes.d.ts +2 -2
  131. package/dist/solvers/error-codes/index.d.ts +2 -2
  132. package/dist/solvers/error-codes/query.d.ts +4 -4
  133. package/dist/solvers/funding-info/get-funding-info.d.ts +37 -0
  134. package/dist/solvers/funding-info/get-funding-info.d.ts.map +1 -0
  135. package/dist/solvers/funding-info/get-funding-info.js +24 -0
  136. package/dist/solvers/funding-info/get-funding-info.js.map +1 -0
  137. package/dist/solvers/funding-info/index.d.ts +6 -0
  138. package/dist/solvers/funding-info/index.d.ts.map +1 -0
  139. package/dist/solvers/funding-info/project-funding-rate.d.ts +30 -0
  140. package/dist/solvers/funding-info/project-funding-rate.d.ts.map +1 -0
  141. package/dist/solvers/funding-info/project-funding-rate.js +9 -0
  142. package/dist/solvers/funding-info/project-funding-rate.js.map +1 -0
  143. package/dist/solvers/funding-info/query.d.ts +28 -0
  144. package/dist/solvers/funding-info/query.d.ts.map +1 -0
  145. package/dist/solvers/funding-info/query.js +24 -0
  146. package/dist/solvers/funding-info/query.js.map +1 -0
  147. package/dist/solvers/funding-info/to-funding-info.d.ts +14 -0
  148. package/dist/solvers/funding-info/to-funding-info.d.ts.map +1 -0
  149. package/dist/solvers/funding-info/to-funding-info.js +15 -0
  150. package/dist/solvers/funding-info/to-funding-info.js.map +1 -0
  151. package/dist/solvers/funding-info/types.d.ts +35 -0
  152. package/dist/solvers/funding-info/types.d.ts.map +1 -0
  153. package/dist/solvers/instant-close/get-instant-closes/get-instant-closes.d.ts +3 -3
  154. package/dist/solvers/instant-close/get-instant-closes/index.d.ts +3 -3
  155. package/dist/solvers/instant-close/get-instant-closes/query.d.ts +4 -4
  156. package/dist/solvers/instant-close/get-instant-closes/to-pending-instant-close.d.ts +1 -1
  157. package/dist/solvers/instant-close/index.d.ts +7 -7
  158. package/dist/solvers/instant-close/instant-close/index.d.ts +2 -2
  159. package/dist/solvers/instant-close/instant-close/instant-close.d.ts +3 -3
  160. package/dist/solvers/instant-close/instant-close/query.d.ts +3 -3
  161. package/dist/solvers/instant-close/instant-close-auto/index.d.ts +2 -2
  162. package/dist/solvers/instant-close/instant-close-auto/instant-close-auto.d.ts +3 -3
  163. package/dist/solvers/instant-close/instant-close-auto/query.d.ts +3 -3
  164. package/dist/solvers/instant-close/instant-close-bulk/index.d.ts +2 -2
  165. package/dist/solvers/instant-close/instant-close-bulk/instant-close-bulk.d.ts +3 -3
  166. package/dist/solvers/instant-close/instant-close-bulk/query.d.ts +3 -3
  167. package/dist/solvers/instant-close/instant-close-bulk-auto/index.d.ts +2 -2
  168. package/dist/solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.d.ts +4 -4
  169. package/dist/solvers/instant-close/instant-close-bulk-auto/query.d.ts +3 -3
  170. package/dist/solvers/instant-close/prepare-instant-close-params/index.d.ts +1 -1
  171. package/dist/solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.d.ts +4 -4
  172. package/dist/solvers/instant-close/shared/close-math.d.ts +1 -1
  173. package/dist/solvers/instant-close/shared/hedger-api.d.ts +3 -3
  174. package/dist/solvers/instant-close/shared/index.d.ts +5 -5
  175. package/dist/solvers/instant-close/shared/quote-constraints.d.ts +1 -1
  176. package/dist/solvers/instant-close/shared/types.d.ts +2 -2
  177. package/dist/solvers/instant-open/get-instant-open-quote-id/get-instant-open-quote-id.d.ts +2 -2
  178. package/dist/solvers/instant-open/get-instant-open-quote-id/index.d.ts +2 -2
  179. package/dist/solvers/instant-open/get-instant-open-quote-id/query.d.ts +4 -4
  180. package/dist/solvers/instant-open/get-instant-opens/get-instant-opens.d.ts +3 -3
  181. package/dist/solvers/instant-open/get-instant-opens/index.d.ts +3 -3
  182. package/dist/solvers/instant-open/get-instant-opens/query.d.ts +4 -4
  183. package/dist/solvers/instant-open/get-instant-opens/to-pending-instant-open.d.ts +2 -2
  184. package/dist/solvers/instant-open/index.d.ts +6 -6
  185. package/dist/solvers/instant-open/instant-open/index.d.ts +2 -2
  186. package/dist/solvers/instant-open/instant-open/instant-open.d.ts +3 -3
  187. package/dist/solvers/instant-open/instant-open/query.d.ts +3 -3
  188. package/dist/solvers/instant-open/instant-open-auto/index.d.ts +2 -2
  189. package/dist/solvers/instant-open/instant-open-auto/instant-open-auto.d.ts +3 -3
  190. package/dist/solvers/instant-open/instant-open-auto/query.d.ts +3 -3
  191. package/dist/solvers/instant-open/prepare-instant-open-params/index.d.ts +2 -2
  192. package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.d.ts +6 -6
  193. package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/index.d.ts +4 -4
  194. package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/resolve-fee-rates.d.ts +3 -3
  195. package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/resolve-locked-params.d.ts +3 -3
  196. package/dist/solvers/instant-open/shared/calldata.d.ts +1 -1
  197. package/dist/solvers/instant-open/shared/eip712.d.ts +2 -2
  198. package/dist/solvers/instant-open/shared/hedger-api.d.ts +3 -3
  199. package/dist/solvers/instant-open/shared/index.d.ts +8 -8
  200. package/dist/solvers/instant-open/shared/operations.d.ts +2 -2
  201. package/dist/solvers/instant-open/shared/quote-constraints.d.ts +3 -3
  202. package/dist/solvers/instant-open/shared/trade-math.d.ts +1 -1
  203. package/dist/solvers/instant-open/shared/types.d.ts +4 -4
  204. package/dist/solvers/locked-params/get-locked-params.d.ts +3 -3
  205. package/dist/solvers/locked-params/index.d.ts +3 -3
  206. package/dist/solvers/locked-params/query.d.ts +4 -4
  207. package/dist/solvers/market-info/get-market-info.d.ts +32 -0
  208. package/dist/solvers/market-info/get-market-info.d.ts.map +1 -0
  209. package/dist/solvers/market-info/get-market-info.js +23 -0
  210. package/dist/solvers/market-info/get-market-info.js.map +1 -0
  211. package/dist/solvers/market-info/index.d.ts +5 -0
  212. package/dist/solvers/market-info/index.d.ts.map +1 -0
  213. package/dist/solvers/market-info/query.d.ts +29 -0
  214. package/dist/solvers/market-info/query.d.ts.map +1 -0
  215. package/dist/solvers/market-info/query.js +21 -0
  216. package/dist/solvers/market-info/query.js.map +1 -0
  217. package/dist/solvers/market-info/to-market-info.d.ts +13 -0
  218. package/dist/solvers/market-info/to-market-info.d.ts.map +1 -0
  219. package/dist/solvers/market-info/to-market-info.js +28 -0
  220. package/dist/solvers/market-info/to-market-info.js.map +1 -0
  221. package/dist/solvers/market-info/types.d.ts +32 -0
  222. package/dist/solvers/market-info/types.d.ts.map +1 -0
  223. package/dist/solvers/markets/get-markets.d.ts +3 -3
  224. package/dist/solvers/markets/index.d.ts +3 -3
  225. package/dist/solvers/markets/query.d.ts +4 -4
  226. package/dist/solvers/notional-cap/check-notional-cap.d.ts +2 -2
  227. package/dist/solvers/notional-cap/get-notional-cap-all.d.ts +3 -3
  228. package/dist/solvers/notional-cap/get-notional-cap-all.d.ts.map +1 -1
  229. package/dist/solvers/notional-cap/get-notional-cap-all.js +1 -5
  230. package/dist/solvers/notional-cap/get-notional-cap-all.js.map +1 -1
  231. package/dist/solvers/notional-cap/get-notional-cap-by-symbol-id.d.ts +3 -3
  232. package/dist/solvers/notional-cap/get-open-interest-by-symbol-id.d.ts +2 -2
  233. package/dist/solvers/notional-cap/index.d.ts +9 -9
  234. package/dist/solvers/notional-cap/query-all.d.ts +4 -4
  235. package/dist/solvers/notional-cap/query-open-interest.d.ts +4 -4
  236. package/dist/solvers/notional-cap/query.d.ts +4 -4
  237. package/dist/solvers/notional-cap/to-market-notional-cap.d.ts +2 -2
  238. package/dist/solvers/notional-cap/to-market-notional-cap.d.ts.map +1 -1
  239. package/dist/solvers/notional-cap/to-market-notional-cap.js +1 -5
  240. package/dist/solvers/notional-cap/to-market-notional-cap.js.map +1 -1
  241. package/dist/solvers/shared/index.d.ts +1 -1
  242. package/dist/solvers/shared/resolvers/index.d.ts +3 -3
  243. package/dist/solvers/shared/resolvers/resolve-mark-price.d.ts +1 -1
  244. package/dist/solvers/shared/resolvers/resolve-market.d.ts +2 -2
  245. package/dist/solvers/types/generated/enigma-solver.js +10 -4
  246. package/dist/solvers/types/generated/enigma-solver.js.map +1 -1
  247. package/dist/symmio-contracts/abi/index.d.ts +3 -3
  248. package/dist/symmio-contracts/abi/v0.8.5/index.d.ts +3 -3
  249. package/dist/symmio-contracts/account-layer/actions/add-margin.d.ts +2 -2
  250. package/dist/symmio-contracts/account-layer/actions/create-sub-accounts.d.ts +3 -3
  251. package/dist/symmio-contracts/account-layer/actions/delete-sub-account.d.ts +2 -2
  252. package/dist/symmio-contracts/account-layer/actions/deposit-and-allocate-for-account.d.ts +2 -2
  253. package/dist/symmio-contracts/account-layer/actions/deposit-for-account.d.ts +2 -2
  254. package/dist/symmio-contracts/account-layer/actions/edit-account-name.d.ts +2 -2
  255. package/dist/symmio-contracts/account-layer/actions/get-account-balance-info.d.ts +3 -3
  256. package/dist/symmio-contracts/account-layer/actions/get-account-balance-of.d.ts +2 -2
  257. package/dist/symmio-contracts/account-layer/actions/get-sub-account-virtual-nonce.d.ts +2 -2
  258. package/dist/symmio-contracts/account-layer/actions/get-sub-account.d.ts +3 -3
  259. package/dist/symmio-contracts/account-layer/actions/get-sub-accounts-count-of-user.d.ts +2 -2
  260. package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts-addresses.d.ts +2 -2
  261. package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts.d.ts +3 -3
  262. package/dist/symmio-contracts/account-layer/actions/get-virtual-account.d.ts +3 -3
  263. package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-addresses-of-sub-account.d.ts +2 -2
  264. package/dist/symmio-contracts/account-layer/actions/predict-next-virtual-account.d.ts +3 -3
  265. package/dist/symmio-contracts/account-layer/actions/remove-margin.d.ts +3 -3
  266. package/dist/symmio-contracts/account-layer/actions/simulate-add-margin.d.ts +4 -4
  267. package/dist/symmio-contracts/account-layer/actions/simulate-create-sub-accounts.d.ts +4 -4
  268. package/dist/symmio-contracts/account-layer/actions/simulate-delete-sub-account.d.ts +4 -4
  269. package/dist/symmio-contracts/account-layer/actions/simulate-deposit-and-allocate-for-account.d.ts +4 -4
  270. package/dist/symmio-contracts/account-layer/actions/simulate-deposit-for-account.d.ts +4 -4
  271. package/dist/symmio-contracts/account-layer/actions/simulate-edit-account-name.d.ts +4 -4
  272. package/dist/symmio-contracts/account-layer/actions/simulate-remove-margin.d.ts +4 -4
  273. package/dist/symmio-contracts/account-layer/index.d.ts +49 -49
  274. package/dist/symmio-contracts/account-layer/query/add-margin.d.ts +2 -2
  275. package/dist/symmio-contracts/account-layer/query/create-sub-accounts.d.ts +2 -2
  276. package/dist/symmio-contracts/account-layer/query/delete-sub-account.d.ts +2 -2
  277. package/dist/symmio-contracts/account-layer/query/deposit-and-allocate-for-account.d.ts +2 -2
  278. package/dist/symmio-contracts/account-layer/query/deposit-for-account.d.ts +2 -2
  279. package/dist/symmio-contracts/account-layer/query/edit-account-name.d.ts +2 -2
  280. package/dist/symmio-contracts/account-layer/query/get-account-balance-info.d.ts +4 -4
  281. package/dist/symmio-contracts/account-layer/query/get-account-balance-of.d.ts +4 -4
  282. package/dist/symmio-contracts/account-layer/query/get-sub-account-virtual-nonce.d.ts +4 -4
  283. package/dist/symmio-contracts/account-layer/query/get-sub-account.d.ts +4 -4
  284. package/dist/symmio-contracts/account-layer/query/get-sub-accounts-count-of-user.d.ts +4 -4
  285. package/dist/symmio-contracts/account-layer/query/get-user-sub-accounts-addresses.d.ts +4 -4
  286. package/dist/symmio-contracts/account-layer/query/get-user-sub-accounts.d.ts +4 -4
  287. package/dist/symmio-contracts/account-layer/query/get-virtual-account.d.ts +4 -4
  288. package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-addresses-of-sub-account.d.ts +4 -4
  289. package/dist/symmio-contracts/account-layer/query/predict-next-virtual-account.d.ts +4 -4
  290. package/dist/symmio-contracts/account-layer/query/remove-margin.d.ts +2 -2
  291. package/dist/symmio-contracts/account-layer/query/simulate-add-margin.d.ts +3 -3
  292. package/dist/symmio-contracts/account-layer/query/simulate-create-sub-accounts.d.ts +3 -3
  293. package/dist/symmio-contracts/account-layer/query/simulate-delete-sub-account.d.ts +3 -3
  294. package/dist/symmio-contracts/account-layer/query/simulate-deposit-and-allocate-for-account.d.ts +3 -3
  295. package/dist/symmio-contracts/account-layer/query/simulate-deposit-for-account.d.ts +3 -3
  296. package/dist/symmio-contracts/account-layer/query/simulate-edit-account-name.d.ts +3 -3
  297. package/dist/symmio-contracts/account-layer/query/simulate-remove-margin.d.ts +3 -3
  298. package/dist/symmio-contracts/collateral/actions/approve-collateral.d.ts +2 -2
  299. package/dist/symmio-contracts/collateral/actions/get-collateral-allowance.d.ts +2 -2
  300. package/dist/symmio-contracts/collateral/actions/get-collateral-balance.d.ts +2 -2
  301. package/dist/symmio-contracts/collateral/actions/simulate-approve-collateral.d.ts +3 -3
  302. package/dist/symmio-contracts/collateral/index.d.ts +8 -8
  303. package/dist/symmio-contracts/collateral/query/approve-collateral.d.ts +2 -2
  304. package/dist/symmio-contracts/collateral/query/get-collateral-allowance.d.ts +4 -4
  305. package/dist/symmio-contracts/collateral/query/get-collateral-balance.d.ts +4 -4
  306. package/dist/symmio-contracts/collateral/query/simulate-approve-collateral.d.ts +3 -3
  307. package/dist/symmio-contracts/instant-layer/actions/get-delegation-expiry.d.ts +2 -2
  308. package/dist/symmio-contracts/instant-layer/actions/get-is-delegation-active.d.ts +2 -2
  309. package/dist/symmio-contracts/instant-layer/actions/grant-delegation.d.ts +3 -3
  310. package/dist/symmio-contracts/instant-layer/actions/simulate-grant-delegation.d.ts +4 -4
  311. package/dist/symmio-contracts/instant-layer/index.d.ts +9 -9
  312. package/dist/symmio-contracts/instant-layer/query/get-delegation-expiry.d.ts +4 -4
  313. package/dist/symmio-contracts/instant-layer/query/get-is-delegation-active.d.ts +4 -4
  314. package/dist/symmio-contracts/instant-layer/query/grant-delegation.d.ts +2 -2
  315. package/dist/symmio-contracts/instant-layer/query/simulate-grant-delegation.d.ts +3 -3
  316. package/dist/symmio-contracts/symmio/actions/allocate.d.ts +2 -2
  317. package/dist/symmio-contracts/symmio/actions/deallocate.d.ts +3 -3
  318. package/dist/symmio-contracts/symmio/actions/finalize-withdraw-request.d.ts +2 -2
  319. package/dist/symmio-contracts/symmio/actions/get-fee-for-user.d.ts +2 -2
  320. package/dist/symmio-contracts/symmio/actions/get-last-withdraw-request-id.d.ts +2 -2
  321. package/dist/symmio-contracts/symmio/actions/get-onchain-contract-markets.d.ts +2 -2
  322. package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.d.ts +4 -4
  323. package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.d.ts.map +1 -1
  324. package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.js.map +1 -1
  325. package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.d.ts +3 -3
  326. package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.d.ts.map +1 -1
  327. package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.js.map +1 -1
  328. package/dist/symmio-contracts/symmio/actions/get-pending-withdraw-requests.d.ts +3 -3
  329. package/dist/symmio-contracts/symmio/actions/get-quote.d.ts +3 -3
  330. package/dist/symmio-contracts/symmio/actions/get-withdraw-requests.d.ts +3 -3
  331. package/dist/symmio-contracts/symmio/actions/get-withdrawable-time.d.ts +2 -2
  332. package/dist/symmio-contracts/symmio/actions/initiate-withdraw.d.ts +3 -3
  333. package/dist/symmio-contracts/symmio/actions/request-cancel-withdraw.d.ts +2 -2
  334. package/dist/symmio-contracts/symmio/actions/simulate-allocate.d.ts +4 -4
  335. package/dist/symmio-contracts/symmio/actions/simulate-deallocate.d.ts +4 -4
  336. package/dist/symmio-contracts/symmio/actions/simulate-finalize-withdraw-request.d.ts +4 -4
  337. package/dist/symmio-contracts/symmio/actions/simulate-initiate-withdraw.d.ts +4 -4
  338. package/dist/symmio-contracts/symmio/actions/simulate-request-cancel-withdraw.d.ts +4 -4
  339. package/dist/symmio-contracts/symmio/index.d.ts +40 -40
  340. package/dist/symmio-contracts/symmio/internal/call-as-sub-account.d.ts +1 -1
  341. package/dist/symmio-contracts/symmio/internal/simulate-call-as-sub-account.d.ts +2 -2
  342. package/dist/symmio-contracts/symmio/parts.d.ts +1 -1
  343. package/dist/symmio-contracts/symmio/query/allocate.d.ts +2 -2
  344. package/dist/symmio-contracts/symmio/query/deallocate.d.ts +2 -2
  345. package/dist/symmio-contracts/symmio/query/finalize-withdraw-request.d.ts +2 -2
  346. package/dist/symmio-contracts/symmio/query/get-fee-for-user.d.ts +4 -4
  347. package/dist/symmio-contracts/symmio/query/get-last-withdraw-request-id.d.ts +4 -4
  348. package/dist/symmio-contracts/symmio/query/get-onchain-contract-markets.d.ts +4 -4
  349. package/dist/symmio-contracts/symmio/query/get-party-a-open-positions.d.ts +4 -4
  350. package/dist/symmio-contracts/symmio/query/get-party-a-pending-quotes.d.ts +4 -4
  351. package/dist/symmio-contracts/symmio/query/get-pending-withdraw-requests.d.ts +4 -4
  352. package/dist/symmio-contracts/symmio/query/get-quote.d.ts +4 -4
  353. package/dist/symmio-contracts/symmio/query/get-withdraw-requests.d.ts +4 -4
  354. package/dist/symmio-contracts/symmio/query/get-withdrawable-time.d.ts +4 -4
  355. package/dist/symmio-contracts/symmio/query/initiate-withdraw.d.ts +2 -2
  356. package/dist/symmio-contracts/symmio/query/request-cancel-withdraw.d.ts +2 -2
  357. package/dist/symmio-contracts/symmio/query/simulate-allocate.d.ts +3 -3
  358. package/dist/symmio-contracts/symmio/query/simulate-deallocate.d.ts +3 -3
  359. package/dist/symmio-contracts/symmio/query/simulate-finalize-withdraw-request.d.ts +3 -3
  360. package/dist/symmio-contracts/symmio/query/simulate-initiate-withdraw.d.ts +3 -3
  361. package/dist/symmio-contracts/symmio/query/simulate-request-cancel-withdraw.d.ts +3 -3
  362. package/dist/symmio-contracts/symmio/types.d.ts +1 -1
  363. package/dist/symmio-contracts/symmio/types.d.ts.map +1 -1
  364. package/dist/symmio-contracts/symmio/types.js.map +1 -1
  365. package/dist/symmio-subgraph/index.d.ts +1 -1
  366. package/dist/symmio-subgraph/query-subgraph/index.d.ts +2 -2
  367. package/dist/symmio-subgraph/query-subgraph/query-subgraph.d.ts +3 -3
  368. package/dist/symmio-subgraph/query-subgraph/query.d.ts +4 -4
  369. package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts +4 -4
  370. package/dist/symmio-subgraph/types/generated/analytics/index.d.ts +1 -1
  371. package/dist/symmio-subgraph/types/generated/events/gql.d.ts +1 -1
  372. package/dist/symmio-subgraph/types/generated/events/index.d.ts +1 -1
  373. package/dist/tpsl/config/get-tpsl-config.d.ts +3 -3
  374. package/dist/tpsl/config/index.d.ts +2 -2
  375. package/dist/tpsl/config/query.d.ts +4 -4
  376. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.d.ts +37 -0
  377. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.d.ts.map +1 -0
  378. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.js +43 -0
  379. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.js.map +1 -0
  380. package/dist/tpsl/delete-quote-tpsl/index.d.ts +3 -0
  381. package/dist/tpsl/delete-quote-tpsl/index.d.ts.map +1 -0
  382. package/dist/tpsl/delete-quote-tpsl/query.d.ts +15 -0
  383. package/dist/tpsl/delete-quote-tpsl/query.d.ts.map +1 -0
  384. package/dist/tpsl/delete-quote-tpsl/query.js +12 -0
  385. package/dist/tpsl/delete-quote-tpsl/query.js.map +1 -0
  386. package/dist/tpsl/get-quote-tpsl/get-quote-tpsl.d.ts +4 -4
  387. package/dist/tpsl/get-quote-tpsl/index.d.ts +2 -2
  388. package/dist/tpsl/get-quote-tpsl/query.d.ts +7 -5
  389. package/dist/tpsl/get-quote-tpsl/query.d.ts.map +1 -1
  390. package/dist/tpsl/get-quote-tpsl/query.js +4 -1
  391. package/dist/tpsl/get-quote-tpsl/query.js.map +1 -1
  392. package/dist/tpsl/index.d.ts +8 -7
  393. package/dist/tpsl/index.d.ts.map +1 -1
  394. package/dist/tpsl/internal/resolve-tpsl-config.d.ts +2 -2
  395. package/dist/tpsl/set-quote-tpsl/build-conditional-order-leg.d.ts +1 -1
  396. package/dist/tpsl/set-quote-tpsl/build-conditional-order-message.d.ts +1 -1
  397. package/dist/tpsl/set-quote-tpsl/index.d.ts +5 -5
  398. package/dist/tpsl/set-quote-tpsl/query.d.ts +3 -3
  399. package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.d.ts +4 -4
  400. package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.js +11 -11
  401. package/dist/tpsl/set-quote-tpsl/sign-tpsl-request.d.ts +2 -2
  402. package/dist/tpsl/signing-spec/delete-query.d.ts +12 -0
  403. package/dist/tpsl/signing-spec/delete-query.d.ts.map +1 -0
  404. package/dist/tpsl/signing-spec/delete-query.js +21 -0
  405. package/dist/tpsl/signing-spec/delete-query.js.map +1 -0
  406. package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.d.ts +18 -0
  407. package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.d.ts.map +1 -0
  408. package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.js +25 -0
  409. package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.js.map +1 -0
  410. package/dist/tpsl/signing-spec/get-tpsl-signing-spec.d.ts +3 -3
  411. package/dist/tpsl/signing-spec/index.d.ts +4 -2
  412. package/dist/tpsl/signing-spec/index.d.ts.map +1 -1
  413. package/dist/tpsl/signing-spec/query.d.ts +4 -4
  414. package/dist/tpsl/slippage.d.ts +1 -1
  415. package/dist/tpsl/types/generated/tpsl-handler.js +6 -3
  416. package/dist/tpsl/types/generated/tpsl-handler.js.map +1 -1
  417. package/dist/tpsl/validate-tpsl.d.ts +2 -2
  418. package/dist/transfers/get-transfer-history/get-transfer-history.d.ts +3 -3
  419. package/dist/transfers/get-transfer-history/index.d.ts +4 -4
  420. package/dist/transfers/get-transfer-history/query-document.d.ts +2 -2
  421. package/dist/transfers/get-transfer-history/query.d.ts +4 -4
  422. package/dist/transfers/get-transfer-history/to-transfer-row.d.ts +2 -2
  423. package/dist/transfers/index.d.ts +1 -1
  424. package/dist/websocket/index.d.ts +3 -3
  425. package/dist/websocket/notifications/build-subscribe-message.d.ts +1 -1
  426. package/dist/websocket/notifications/index.d.ts +5 -5
  427. package/dist/websocket/notifications/normalize-notification.d.ts +1 -1
  428. package/dist/websocket/notifications/parse-notification-frame.d.ts +2 -2
  429. package/dist/websocket/notifications/watch-notifications.d.ts +4 -4
  430. package/dist/websocket/prices/index.d.ts +3 -3
  431. package/dist/websocket/prices/parse-price-frame.d.ts +1 -1
  432. package/dist/websocket/prices/watch-enigma-prices.d.ts +5 -5
  433. package/dist/websocket/socket/create-reconnecting-socket.d.ts +2 -2
  434. package/dist/websocket/socket/get-socket-pool.d.ts +2 -2
  435. package/dist/websocket/socket/index.d.ts +4 -4
  436. package/dist/websocket/socket/socket-pool.d.ts +2 -2
  437. package/dist/websocket/tpsl/index.d.ts +3 -3
  438. package/dist/websocket/tpsl/parse-tpsl-frame.d.ts +1 -1
  439. package/dist/websocket/tpsl/types.d.ts +1 -1
  440. package/dist/websocket/tpsl/watch-tpsl-notifications.d.ts +4 -4
  441. package/package.json +8 -6
@@ -1,5 +1,5 @@
1
- import { PositionType } from '../../symmio-contracts/symmio/types';
2
- import { MarketNotionalCap } from './types';
1
+ import { PositionType } from '../../symmio-contracts/symmio/types.js';
2
+ import { MarketNotionalCap } from './types.js';
3
3
  /**
4
4
  * Inputs to {@link checkNotionalCap}. `notional` is a decimal-string dollar
5
5
  * value (e.g. `"125.5"`), matching the `markPrice × quantity` shape used by
@@ -1,6 +1,6 @@
1
- import { Config } from '../../core/config';
2
- import { ChainIdParameter, Compute } from '../../shared/types/properties';
3
- import { MarketNotionalCap } from './types';
1
+ import { Config } from '../../core/config/index.js';
2
+ import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
3
+ import { MarketNotionalCap } from './types.js';
4
4
  /**
5
5
  * Parameters for {@link getNotionalCapAll}.
6
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"get-notional-cap-all.d.ts","sourceRoot":"","sources":["../../../src/solvers/notional-cap/get-notional-cap-all.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAEpE,oFAAoF;AACpF,MAAM,WAAW,2BAA2B;IAC1C,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,yFAAyF;IACzF,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AASD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE,2BAAgC,GAC3C,OAAO,CAAC,2BAA2B,CAAC,CAwBtC"}
1
+ {"version":3,"file":"get-notional-cap-all.d.ts","sourceRoot":"","sources":["../../../src/solvers/notional-cap/get-notional-cap-all.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAEpE,oFAAoF;AACpF,MAAM,WAAW,2BAA2B;IAC1C,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,yFAAyF;IACzF,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE,2BAAgC,GAC3C,OAAO,CAAC,2BAA2B,CAAC,CAwBtC"}
@@ -2,12 +2,8 @@ import { SymmApiError as e, SymmError as t } from "../../shared/errors/symm-erro
2
2
  import { getNotionalCap as n } from "../types/generated/enigma-solver.js";
3
3
  import { toMarketNotionalCap as r } from "./to-market-notional-cap.js";
4
4
  import { isAxiosError as i } from "axios";
5
+ import { toFiniteNumber as a } from "@symmio/utils/number";
5
6
  //#region src/solvers/notional-cap/get-notional-cap-all.ts
6
- function a(e) {
7
- if (e == null) return 0;
8
- let t = typeof e == "number" ? e : Number(e);
9
- return Number.isFinite(t) ? t : 0;
10
- }
11
7
  async function o(o, s = {}) {
12
8
  let { solver: c } = o.getChainConfig(s.chainId);
13
9
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"get-notional-cap-all.js","names":[],"sources":["../../../src/solvers/notional-cap/get-notional-cap-all.ts"],"sourcesContent":["import { isAxiosError } from \"axios\";\nimport type { Config } from \"../../core/config\";\nimport { SymmApiError, SymmError } from \"../../shared/errors/symm-error\";\nimport type { ChainIdParameter, Compute } from \"../../shared/types/properties\";\nimport { getNotionalCap } from \"../types/generated/enigma-solver\";\nimport { toMarketNotionalCap } from \"./to-market-notional-cap\";\nimport type { MarketNotionalCap } from \"./types\";\n\n/**\n * Parameters for {@link getNotionalCapAll}.\n */\nexport type GetNotionalCapAllParameters = Compute<ChainIdParameter>;\n\n/** Return type of {@link getNotionalCapAll}: aggregate totals + per-symbol rows. */\nexport interface GetNotionalCapAllReturnType {\n /** Number of symbols the solver returned. */\n count: number;\n /** Σ `openInterest` across every market (dollars). */\n totalOpenInterest: number;\n /** Σ `used` across every market (dollars). */\n totalUsed: number;\n /** Per-symbol rows, decoded with the same mapper as {@link getNotionalCapBySymbolId}. */\n symbols: MarketNotionalCap[];\n}\n\n/** Coerce an optional numeric solver field (declared `number` but served as string) to `number`. */\nfunction toNumber(value: number | string | undefined | null): number {\n if (value === undefined || value === null) return 0;\n const parsed = typeof value === \"number\" ? value : Number(value);\n return Number.isFinite(parsed) ? parsed : 0;\n}\n\n/**\n * Fetch every market's notional cap in one call (`/notional_cap`). Surfaces the\n * aggregate `totalOpenInterest` / `totalUsed` and the per-symbol rows decoded\n * via {@link toMarketNotionalCap} — the same mapper the single-symbol read uses.\n *\n * Dollar amounts are returned as plain `number` values exactly as the solver\n * reports them; no decimal scaling. HTTP / transport failures throw\n * {@link SymmApiError}.\n *\n * @example\n * ```ts\n * const all = await getNotionalCapAll(config, {});\n * console.log(all.totalOpenInterest, all.symbols.length);\n * ```\n */\nexport async function getNotionalCapAll(\n config: Config,\n parameters: GetNotionalCapAllParameters = {},\n): Promise<GetNotionalCapAllReturnType> {\n const { solver } = config.getChainConfig(parameters.chainId);\n try {\n const response = await getNotionalCap(undefined, { baseURL: solver.url });\n const r = response.data as Record<string, unknown>;\n const rawSymbols = Array.isArray(r.symbols) ? (r.symbols as Parameters<typeof toMarketNotionalCap>[0][]) : [];\n return {\n count: toNumber(r.count as number | string | undefined),\n totalOpenInterest: toNumber(r.total_open_interest as number | string | undefined),\n totalUsed: toNumber(r.total_used as number | string | undefined),\n symbols: rawSymbols.map(toMarketNotionalCap),\n };\n } catch (err) {\n if (err instanceof SymmError) throw err;\n if (isAxiosError(err)) {\n throw SymmApiError.fromAxios(err, { code: \"FETCH_NOTIONAL_CAP_ALL_FAILED\", baseURL: solver.url });\n }\n throw new SymmError(\n \"api\",\n \"FETCH_NOTIONAL_CAP_ALL_FAILED\",\n `Failed to fetch notional caps: ${err instanceof Error ? err.message : String(err)}`,\n { cause: err instanceof Error ? err : undefined },\n );\n }\n}\n"],"mappings":";;;;;AA0BA,SAAS,EAAS,GAAmD;CACnE,IAAI,KAAiC,MAAM,OAAO;CAClD,IAAM,IAAS,OAAO,KAAU,WAAW,IAAQ,OAAO,CAAK;CAC/D,OAAO,OAAO,SAAS,CAAM,IAAI,IAAS;AAC5C;AAiBA,eAAsB,EACpB,GACA,IAA0C,CAAC,GACL;CACtC,IAAM,EAAE,cAAW,EAAO,eAAe,EAAW,OAAO;CAC3D,IAAI;EAEF,IAAM,KAAI,MADa,EAAe,KAAA,GAAW,EAAE,SAAS,EAAO,IAAI,CAAC,GACrD,MACb,IAAa,MAAM,QAAQ,EAAE,OAAO,IAAK,EAAE,UAA0D,CAAC;EAC5G,OAAO;GACL,OAAO,EAAS,EAAE,KAAoC;GACtD,mBAAmB,EAAS,EAAE,mBAAkD;GAChF,WAAW,EAAS,EAAE,UAAyC;GAC/D,SAAS,EAAW,IAAI,CAAmB;EAC7C;CACF,SAAS,GAAK;EAKZ,MAJI,aAAe,IAAiB,IAChC,EAAa,CAAG,IACZ,EAAa,UAAU,GAAK;GAAE,MAAM;GAAiC,SAAS,EAAO;EAAI,CAAC,IAE5F,IAAI,EACR,OACA,iCACA,kCAAkC,aAAe,QAAQ,EAAI,UAAU,OAAO,CAAG,KACjF,EAAE,OAAO,aAAe,QAAQ,IAAM,KAAA,EAAU,CAClD;CACF;AACF"}
1
+ {"version":3,"file":"get-notional-cap-all.js","names":[],"sources":["../../../src/solvers/notional-cap/get-notional-cap-all.ts"],"sourcesContent":["import { toFiniteNumber } from \"@symmio/utils/number\";\nimport { isAxiosError } from \"axios\";\nimport type { Config } from \"../../core/config\";\nimport { SymmApiError, SymmError } from \"../../shared/errors/symm-error\";\nimport type { ChainIdParameter, Compute } from \"../../shared/types/properties\";\nimport { getNotionalCap } from \"../types/generated/enigma-solver\";\nimport { toMarketNotionalCap } from \"./to-market-notional-cap\";\nimport type { MarketNotionalCap } from \"./types\";\n\n/**\n * Parameters for {@link getNotionalCapAll}.\n */\nexport type GetNotionalCapAllParameters = Compute<ChainIdParameter>;\n\n/** Return type of {@link getNotionalCapAll}: aggregate totals + per-symbol rows. */\nexport interface GetNotionalCapAllReturnType {\n /** Number of symbols the solver returned. */\n count: number;\n /** Σ `openInterest` across every market (dollars). */\n totalOpenInterest: number;\n /** Σ `used` across every market (dollars). */\n totalUsed: number;\n /** Per-symbol rows, decoded with the same mapper as {@link getNotionalCapBySymbolId}. */\n symbols: MarketNotionalCap[];\n}\n\n/**\n * Fetch every market's notional cap in one call (`/notional_cap`). Surfaces the\n * aggregate `totalOpenInterest` / `totalUsed` and the per-symbol rows decoded\n * via {@link toMarketNotionalCap} — the same mapper the single-symbol read uses.\n *\n * Dollar amounts are returned as plain `number` values exactly as the solver\n * reports them; no decimal scaling. HTTP / transport failures throw\n * {@link SymmApiError}.\n *\n * @example\n * ```ts\n * const all = await getNotionalCapAll(config, {});\n * console.log(all.totalOpenInterest, all.symbols.length);\n * ```\n */\nexport async function getNotionalCapAll(\n config: Config,\n parameters: GetNotionalCapAllParameters = {},\n): Promise<GetNotionalCapAllReturnType> {\n const { solver } = config.getChainConfig(parameters.chainId);\n try {\n const response = await getNotionalCap(undefined, { baseURL: solver.url });\n const r = response.data as Record<string, unknown>;\n const rawSymbols = Array.isArray(r.symbols) ? (r.symbols as Parameters<typeof toMarketNotionalCap>[0][]) : [];\n return {\n count: toFiniteNumber(r.count as number | string | undefined),\n totalOpenInterest: toFiniteNumber(r.total_open_interest as number | string | undefined),\n totalUsed: toFiniteNumber(r.total_used as number | string | undefined),\n symbols: rawSymbols.map(toMarketNotionalCap),\n };\n } catch (err) {\n if (err instanceof SymmError) throw err;\n if (isAxiosError(err)) {\n throw SymmApiError.fromAxios(err, { code: \"FETCH_NOTIONAL_CAP_ALL_FAILED\", baseURL: solver.url });\n }\n throw new SymmError(\n \"api\",\n \"FETCH_NOTIONAL_CAP_ALL_FAILED\",\n `Failed to fetch notional caps: ${err instanceof Error ? err.message : String(err)}`,\n { cause: err instanceof Error ? err : undefined },\n );\n }\n}\n"],"mappings":";;;;;;AAyCA,eAAsB,EACpB,GACA,IAA0C,CAAC,GACL;CACtC,IAAM,EAAE,cAAW,EAAO,eAAe,EAAW,OAAO;CAC3D,IAAI;EAEF,IAAM,KAAI,MADa,EAAe,KAAA,GAAW,EAAE,SAAS,EAAO,IAAI,CAAC,GACrD,MACb,IAAa,MAAM,QAAQ,EAAE,OAAO,IAAK,EAAE,UAA0D,CAAC;EAC5G,OAAO;GACL,OAAO,EAAe,EAAE,KAAoC;GAC5D,mBAAmB,EAAe,EAAE,mBAAkD;GACtF,WAAW,EAAe,EAAE,UAAyC;GACrE,SAAS,EAAW,IAAI,CAAmB;EAC7C;CACF,SAAS,GAAK;EAKZ,MAJI,aAAe,IAAiB,IAChC,EAAa,CAAG,IACZ,EAAa,UAAU,GAAK;GAAE,MAAM;GAAiC,SAAS,EAAO;EAAI,CAAC,IAE5F,IAAI,EACR,OACA,iCACA,kCAAkC,aAAe,QAAQ,EAAI,UAAU,OAAO,CAAG,KACjF,EAAE,OAAO,aAAe,QAAQ,IAAM,KAAA,EAAU,CAClD;CACF;AACF"}
@@ -1,6 +1,6 @@
1
- import { Config } from '../../core/config';
2
- import { ChainIdParameter, Compute } from '../../shared/types/properties';
3
- import { MarketNotionalCap } from './types';
1
+ import { Config } from '../../core/config/index.js';
2
+ import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
3
+ import { MarketNotionalCap } from './types.js';
4
4
  /**
5
5
  * Parameters for {@link getNotionalCapBySymbolId}.
6
6
  */
@@ -1,5 +1,5 @@
1
- import { Config } from '../../core/config';
2
- import { ChainIdParameter, Compute } from '../../shared/types/properties';
1
+ import { Config } from '../../core/config/index.js';
2
+ import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
3
3
  /**
4
4
  * Parameters for {@link getOpenInterestBySymbolId}.
5
5
  */
@@ -1,10 +1,10 @@
1
- export * from './check-notional-cap';
2
- export * from './get-notional-cap-all';
3
- export * from './get-notional-cap-by-symbol-id';
4
- export * from './get-open-interest-by-symbol-id';
5
- export * from './query';
6
- export * from './query-all';
7
- export * from './query-open-interest';
8
- export * from './to-market-notional-cap';
9
- export * from './types';
1
+ export * from './check-notional-cap.js';
2
+ export * from './get-notional-cap-all.js';
3
+ export * from './get-notional-cap-by-symbol-id.js';
4
+ export * from './get-open-interest-by-symbol-id.js';
5
+ export * from './query.js';
6
+ export * from './query-all.js';
7
+ export * from './query-open-interest.js';
8
+ export * from './to-market-notional-cap.js';
9
+ export * from './types.js';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,7 @@
1
- import { Config } from '../../core/config';
2
- import { Compute, ConfigKeyParameter } from '../../shared/types/properties';
3
- import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query';
4
- import { GetNotionalCapAllParameters, GetNotionalCapAllReturnType } from './get-notional-cap-all';
1
+ import { Config } from '../../core/config/index.js';
2
+ import { Compute, ConfigKeyParameter } from '../../shared/types/properties.js';
3
+ import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query.js';
4
+ import { GetNotionalCapAllParameters, GetNotionalCapAllReturnType } from './get-notional-cap-all.js';
5
5
  /** Data resolved by the {@link getNotionalCapAllQueryOptions} query. */
6
6
  export type GetNotionalCapAllData = GetNotionalCapAllReturnType;
7
7
  /** Build the TanStack Query key for {@link getNotionalCapAllQueryOptions}. */
@@ -1,7 +1,7 @@
1
- import { Config } from '../../core/config';
2
- import { Compute, ConfigKeyParameter } from '../../shared/types/properties';
3
- import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query';
4
- import { GetOpenInterestBySymbolIdParameters, GetOpenInterestBySymbolIdReturnType } from './get-open-interest-by-symbol-id';
1
+ import { Config } from '../../core/config/index.js';
2
+ import { Compute, ConfigKeyParameter } from '../../shared/types/properties.js';
3
+ import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query.js';
4
+ import { GetOpenInterestBySymbolIdParameters, GetOpenInterestBySymbolIdReturnType } from './get-open-interest-by-symbol-id.js';
5
5
  /** Data resolved by the {@link getOpenInterestBySymbolIdQueryOptions} query. */
6
6
  export type GetOpenInterestBySymbolIdData = GetOpenInterestBySymbolIdReturnType;
7
7
  /** Build the TanStack Query key for {@link getOpenInterestBySymbolIdQueryOptions}. */
@@ -1,7 +1,7 @@
1
- import { Config } from '../../core/config';
2
- import { Compute, ConfigKeyParameter } from '../../shared/types/properties';
3
- import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query';
4
- import { GetNotionalCapBySymbolIdParameters, GetNotionalCapBySymbolIdReturnType } from './get-notional-cap-by-symbol-id';
1
+ import { Config } from '../../core/config/index.js';
2
+ import { Compute, ConfigKeyParameter } from '../../shared/types/properties.js';
3
+ import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query.js';
4
+ import { GetNotionalCapBySymbolIdParameters, GetNotionalCapBySymbolIdReturnType } from './get-notional-cap-by-symbol-id.js';
5
5
  /** Data resolved by the {@link getNotionalCapBySymbolIdQueryOptions} query. */
6
6
  export type GetNotionalCapBySymbolIdData = GetNotionalCapBySymbolIdReturnType;
7
7
  /**
@@ -1,5 +1,5 @@
1
- import { ApiNotionalCapBySymbolResponse } from '../types/generated/enigma-solver';
2
- import { MarketNotionalCap } from './types';
1
+ import { ApiNotionalCapBySymbolResponse } from '../types/generated/enigma-solver.js';
2
+ import { MarketNotionalCap } from './types.js';
3
3
  /**
4
4
  * Map the generated `ApiNotionalCapBySymbolResponse` into the SDK's
5
5
  * {@link MarketNotionalCap}. Missing numeric fields default to `0`; the
@@ -1 +1 @@
1
- {"version":3,"file":"to-market-notional-cap.d.ts","sourceRoot":"","sources":["../../../src/solvers/notional-cap/to-market-notional-cap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAcjD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,8BAA8B,GAAG,iBAAiB,CAe1F"}
1
+ {"version":3,"file":"to-market-notional-cap.d.ts","sourceRoot":"","sources":["../../../src/solvers/notional-cap/to-market-notional-cap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,8BAA8B,GAAG,iBAAiB,CAe1F"}
@@ -1,9 +1,5 @@
1
+ import { toFiniteNumber as e } from "@symmio/utils/number";
1
2
  //#region src/solvers/notional-cap/to-market-notional-cap.ts
2
- function e(e) {
3
- if (e == null) return 0;
4
- let t = typeof e == "number" ? e : Number(e);
5
- return Number.isFinite(t) ? t : 0;
6
- }
7
3
  function t(t) {
8
4
  let n = t;
9
5
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"to-market-notional-cap.js","names":[],"sources":["../../../src/solvers/notional-cap/to-market-notional-cap.ts"],"sourcesContent":["import type { ApiNotionalCapBySymbolResponse } from \"../types/generated/enigma-solver\";\nimport type { MarketNotionalCap } from \"./types\";\n\n/**\n * Coerce an optional numeric solver field to a finite `number`, defaulting to\n * `0`. The endpoint declares these fields as `number` in the OpenAPI spec but\n * the running solver actually returns them as **decimal strings** (e.g.\n * `\"112258.5966...\"`), so we accept both shapes and parse strings via `Number`.\n */\nfunction toNumber(value: number | string | undefined | null): number {\n if (value === undefined || value === null) return 0;\n const parsed = typeof value === \"number\" ? value : Number(value);\n return Number.isFinite(parsed) ? parsed : 0;\n}\n\n/**\n * Map the generated `ApiNotionalCapBySymbolResponse` into the SDK's\n * {@link MarketNotionalCap}. Missing numeric fields default to `0`; the\n * solver-reported `error` string is forwarded verbatim (or `null` when absent).\n */\nexport function toMarketNotionalCap(raw: ApiNotionalCapBySymbolResponse): MarketNotionalCap {\n const r = raw as ApiNotionalCapBySymbolResponse & Record<string, unknown>;\n return {\n symbolId: toNumber(r.symbol_id as number | string | undefined),\n symbol: typeof r.symbol === \"string\" ? r.symbol : \"\",\n totalCap: toNumber(r.total_cap as number | string | undefined),\n used: toNumber(r.used as number | string | undefined),\n availableToLong: toNumber(r.available_to_long as number | string | undefined),\n availableToShort: toNumber(r.available_to_short as number | string | undefined),\n openInterest: toNumber(r.open_interest as number | string | undefined),\n price: toNumber(r.price as number | string | undefined),\n tokenBalance: toNumber(r.token_balance as number | string | undefined),\n usdcBalance: toNumber(r.usdc_balance as number | string | undefined),\n error: typeof r.error === \"string\" && r.error.length > 0 ? r.error : null,\n };\n}\n"],"mappings":";AASA,SAAS,EAAS,GAAmD;CACnE,IAAI,KAAiC,MAAM,OAAO;CAClD,IAAM,IAAS,OAAO,KAAU,WAAW,IAAQ,OAAO,CAAK;CAC/D,OAAO,OAAO,SAAS,CAAM,IAAI,IAAS;AAC5C;AAOA,SAAgB,EAAoB,GAAwD;CAC1F,IAAM,IAAI;CACV,OAAO;EACL,UAAU,EAAS,EAAE,SAAwC;EAC7D,QAAQ,OAAO,EAAE,UAAW,WAAW,EAAE,SAAS;EAClD,UAAU,EAAS,EAAE,SAAwC;EAC7D,MAAM,EAAS,EAAE,IAAmC;EACpD,iBAAiB,EAAS,EAAE,iBAAgD;EAC5E,kBAAkB,EAAS,EAAE,kBAAiD;EAC9E,cAAc,EAAS,EAAE,aAA4C;EACrE,OAAO,EAAS,EAAE,KAAoC;EACtD,cAAc,EAAS,EAAE,aAA4C;EACrE,aAAa,EAAS,EAAE,YAA2C;EACnE,OAAO,OAAO,EAAE,SAAU,YAAY,EAAE,MAAM,SAAS,IAAI,EAAE,QAAQ;CACvE;AACF"}
1
+ {"version":3,"file":"to-market-notional-cap.js","names":[],"sources":["../../../src/solvers/notional-cap/to-market-notional-cap.ts"],"sourcesContent":["import { toFiniteNumber } from \"@symmio/utils/number\";\nimport type { ApiNotionalCapBySymbolResponse } from \"../types/generated/enigma-solver\";\nimport type { MarketNotionalCap } from \"./types\";\n\n/**\n * Map the generated `ApiNotionalCapBySymbolResponse` into the SDK's\n * {@link MarketNotionalCap}. Missing numeric fields default to `0`; the\n * solver-reported `error` string is forwarded verbatim (or `null` when absent).\n */\nexport function toMarketNotionalCap(raw: ApiNotionalCapBySymbolResponse): MarketNotionalCap {\n const r = raw as ApiNotionalCapBySymbolResponse & Record<string, unknown>;\n return {\n symbolId: toFiniteNumber(r.symbol_id),\n symbol: typeof r.symbol === \"string\" ? r.symbol : \"\",\n totalCap: toFiniteNumber(r.total_cap),\n used: toFiniteNumber(r.used),\n availableToLong: toFiniteNumber(r.available_to_long),\n availableToShort: toFiniteNumber(r.available_to_short),\n openInterest: toFiniteNumber(r.open_interest),\n price: toFiniteNumber(r.price),\n tokenBalance: toFiniteNumber(r.token_balance),\n usdcBalance: toFiniteNumber(r.usdc_balance),\n error: typeof r.error === \"string\" && r.error.length > 0 ? r.error : null,\n };\n}\n"],"mappings":";;AASA,SAAgB,EAAoB,GAAwD;CAC1F,IAAM,IAAI;CACV,OAAO;EACL,UAAU,EAAe,EAAE,SAAS;EACpC,QAAQ,OAAO,EAAE,UAAW,WAAW,EAAE,SAAS;EAClD,UAAU,EAAe,EAAE,SAAS;EACpC,MAAM,EAAe,EAAE,IAAI;EAC3B,iBAAiB,EAAe,EAAE,iBAAiB;EACnD,kBAAkB,EAAe,EAAE,kBAAkB;EACrD,cAAc,EAAe,EAAE,aAAa;EAC5C,OAAO,EAAe,EAAE,KAAK;EAC7B,cAAc,EAAe,EAAE,aAAa;EAC5C,aAAa,EAAe,EAAE,YAAY;EAC1C,OAAO,OAAO,EAAE,SAAU,YAAY,EAAE,MAAM,SAAS,IAAI,EAAE,QAAQ;CACvE;AACF"}
@@ -5,5 +5,5 @@
5
5
  * instant-* slices lives here. Slice-specific shared lives under each slice's
6
6
  * own `shared/` folder.
7
7
  */
8
- export * from './resolvers';
8
+ export * from './resolvers/index.js';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './resolve-mark-price';
2
- export * from './resolve-market';
3
- export * from './types';
1
+ export * from './resolve-mark-price.js';
2
+ export * from './resolve-market.js';
3
+ export * from './types.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Config } from '../../../core/config';
1
+ import { Config } from '../../../core/config/index.js';
2
2
  /**
3
3
  * Parameters for {@link resolveMarkPrice}.
4
4
  */
@@ -1,5 +1,5 @@
1
- import { Config } from '../../../core/config';
2
- import { ResolvedMarket } from './types';
1
+ import { Config } from '../../../core/config/index.js';
2
+ import { ResolvedMarket } from './types.js';
3
3
  /**
4
4
  * Parameters for {@link resolveMarket}.
5
5
  */
@@ -1,19 +1,25 @@
1
1
  import e from "axios";
2
2
  //#region src/solvers/types/generated/enigma-solver.ts
3
- var t = (t) => e.get("/contract-symbols", t), n = (t) => e.get("/error_codes", t), r = (t, n, r) => e.get(`/get_locked_params/${t}`, {
3
+ var t = (t) => e.get("/contract-symbols", t), n = (t) => e.get("/error_codes", t), r = (t, n) => e.get("/get_funding_info", {
4
+ ...n,
5
+ params: {
6
+ ...t,
7
+ ...n?.params
8
+ }
9
+ }), i = (t, n, r) => e.get(`/get_locked_params/${t}`, {
4
10
  ...r,
5
11
  params: {
6
12
  ...n,
7
13
  ...r?.params
8
14
  }
9
- }), i = (t, n) => e.get(`/instant_close/${t}`, n), a = (t, n) => e.get(`/instant_open/${t}`, n), o = (t, n) => e.get(`/instant_quote_id/${t}`, n), s = (t, n) => e.post("/instant_trade/instant_close", t, n), c = (t, n) => e.post("/instant_trade/instant_open", t, n), l = (t, n) => e.get("/notional_cap", {
15
+ }), a = (t) => e.get("/get_market_info", t), o = (t, n) => e.get(`/instant_close/${t}`, n), s = (t, n) => e.get(`/instant_open/${t}`, n), c = (t, n) => e.get(`/instant_quote_id/${t}`, n), l = (t, n) => e.post("/instant_trade/instant_close", t, n), u = (t, n) => e.post("/instant_trade/instant_open", t, n), d = (t, n) => e.get("/notional_cap", {
10
16
  ...n,
11
17
  params: {
12
18
  ...t,
13
19
  ...n?.params
14
20
  }
15
- }), u = (t, n) => e.get(`/notional_cap/${t}`, n);
21
+ }), f = (t, n) => e.get(`/notional_cap/${t}`, n);
16
22
  //#endregion
17
- export { t as getContractSymbols, n as getErrorCodes, r as getGetLockedParamsSymbol, i as getInstantCloseAccountAddress, a as getInstantOpenAccountAddress, o as getInstantQuoteIdTempQuoteId, l as getNotionalCap, u as getNotionalCapSymbolId, s as postInstantTradeInstantClose, c as postInstantTradeInstantOpen };
23
+ export { t as getContractSymbols, n as getErrorCodes, r as getGetFundingInfo, i as getGetLockedParamsSymbol, a as getGetMarketInfo, o as getInstantCloseAccountAddress, s as getInstantOpenAccountAddress, c as getInstantQuoteIdTempQuoteId, d as getNotionalCap, f as getNotionalCapSymbolId, l as postInstantTradeInstantClose, u as postInstantTradeInstantOpen };
18
24
 
19
25
  //# sourceMappingURL=enigma-solver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enigma-solver.js","names":[],"sources":["../../../../src/solvers/types/generated/enigma-solver.ts"],"sourcesContent":["/**\n * Generated by orval v8.14.0 🍺\n * Do not edit manually.\n * Low Cap Solver API\n * API for Low Cap Solver trading system\n * OpenAPI spec version: 1.0\n */\nimport type { AxiosRequestConfig, AxiosResponse } from \"axios\";\nimport axios from \"axios\";\n\nexport interface SymbolContractSymbol {\n asset?: string;\n funding_rate_epoch_duration?: string;\n funding_rate_window_time?: string;\n hedger_fee_close?: string;\n hedger_fee_open?: string;\n is_valid?: boolean;\n lot_size?: string;\n max_funding_rate?: string;\n max_leverage?: string;\n max_notional_value?: number;\n max_quantity?: string;\n min_acceptable_portion_lf?: string;\n min_acceptable_quote_value?: string;\n min_notional_value?: string;\n name?: string;\n price_precision?: number;\n quantity_precision?: number;\n rfq_allowed?: boolean;\n /** \"all\", \"long\", or \"short\" */\n side?: string;\n /** 0: Disabled, 1: Close only, 2: Open only, 3: Fully enabled */\n state?: number;\n symbol?: string;\n symbol_id?: number;\n /** From price service GetSymbolsInfo */\n token_address?: string;\n trading_fee?: string;\n}\n\nexport interface ApiContractSymbolsResponse {\n count?: number;\n symbols?: SymbolContractSymbol[];\n}\n\nexport type ApiCustomTableDataItem = { [key: string]: unknown };\n\nexport interface ApiCustomTableHeader {\n key?: string;\n label?: string;\n}\n\nexport interface ApiCustomTable {\n data?: ApiCustomTableDataItem[];\n headers?: ApiCustomTableHeader[];\n title?: string;\n}\n\nexport interface ApiFundingInfoResponse {\n [key: string]: {\n funding_rate_epoch_duration?: number;\n next_funding_rate_long?: string;\n next_funding_rate_short?: string;\n next_funding_time?: number;\n };\n}\n\nexport enum ApiGaslessAction {\n GaslessActionAddMargin = \"add_margin\",\n GaslessActionRemoveMargin = \"remove_margin\",\n GaslessActionDelegate = \"delegate_access_for_session_key\",\n}\nexport enum ApiGaslessRequestAction {\n add_margin = \"add_margin\",\n remove_margin = \"remove_margin\",\n delegate_access_for_session_key = \"delegate_access_for_session_key\",\n}\nexport interface Eip712AccountJSON {\n addr: string;\n isPartyB?: boolean;\n}\n\nexport interface Eip712DelegationInfoJSON {\n account: Eip712AccountJSON;\n delegatedSigner: string;\n expiryTimestamp: number;\n /** @minItems 1 */\n selectors: string[];\n}\n\nexport interface Eip712ReplayHeaderJSON {\n deadline: number;\n nonce?: number;\n salt: string;\n}\n\nexport interface Eip712SignedDelegationJSON {\n delegationInfo: Eip712DelegationInfoJSON;\n replayAttackHeader: Eip712ReplayHeaderJSON;\n}\n\nexport interface Eip712DelegationWithSigJSON {\n signature: string;\n signedDelegation: Eip712SignedDelegationJSON;\n}\n\nexport interface Eip712FlexFieldJSON {\n authorizedFlexFiller?: string;\n length?: number;\n offset?: number;\n}\n\nexport interface Eip712SignedOperationJSON {\n callData: string;\n flexFields?: Eip712FlexFieldJSON[];\n maxUses?: number;\n replayAttackHeader: Eip712ReplayHeaderJSON;\n signer: string;\n signerAccount: Eip712AccountJSON;\n target: string;\n}\n\nexport interface Eip712OperationWithSigJSON {\n signature: string;\n signedOperation: Eip712SignedOperationJSON;\n}\n\nexport interface ApiGaslessRequest {\n action: ApiGaslessRequestAction;\n delegation?: Eip712DelegationWithSigJSON;\n operation?: Eip712OperationWithSigJSON;\n}\n\nexport interface ApiGaslessResponse {\n action?: ApiGaslessAction;\n blockHash?: string;\n blockNumber?: number;\n dailyRemaining?: number;\n gasUsed?: number;\n partyA?: string;\n transactionHash?: string;\n}\n\nexport interface ApiGetEstimatedPriceResponse {\n price?: string;\n}\n\nexport interface ApiGetInstantCloseResponse {\n close_price?: string;\n quantity_to_close?: string;\n quote_id?: number;\n}\n\nexport interface ApiGetInstantOpenResponse {\n cva?: string;\n lf?: string;\n order_type?: number;\n partyAmm?: string;\n partyBmm?: string;\n party_a_address?: string;\n position_type?: number;\n quantity?: string;\n requested_open_price?: string;\n symbol_id?: number;\n temp_quote_id?: number;\n /** UUID is the frontend-provided UUID from the V2 sendQuote metadata */\n uuid?: string;\n}\n\nexport interface ApiGetQuoteIdResponse {\n quote_id?: number;\n}\n\nexport interface ApiQuoteInfo {\n affiliate?: string;\n avg_closed_price?: string;\n block_number?: number;\n closed_amount?: string;\n create_timestamp?: string;\n cva?: string;\n deadline?: string;\n id?: string;\n initial_cva?: string;\n initial_lf?: string;\n initial_opened_price?: string;\n initial_party_amm?: string;\n initial_party_bmm?: string;\n last_funding_payment_timestamp?: string;\n lf?: string;\n market_price?: string;\n max_funding_rate?: string;\n opened_price?: string;\n order_type?: number;\n parent_id?: string;\n party_a?: string;\n party_amm?: string;\n party_b?: string;\n party_bmm?: string;\n position_type?: number;\n quantity?: string;\n quantity_to_close?: string;\n quote_status?: number;\n requested_close_price?: string;\n requested_open_price?: string;\n status_modify_timestamp?: string;\n symbol_id?: string;\n trading_fee?: string;\n}\n\nexport interface ApiGetQuotesResponse {\n count?: number;\n quotes?: ApiQuoteInfo[];\n}\n\nexport interface ApiPeriodStats {\n \"1h\"?: number;\n \"1w\"?: number;\n \"24h\"?: number;\n \"5m\"?: number;\n}\n\nexport interface ApiStatsMetrics {\n \"Completed Closes\"?: ApiPeriodStats;\n \"Completed Opens\"?: ApiPeriodStats;\n \"Instant Closes\"?: ApiPeriodStats;\n \"Instant Opens\"?: ApiPeriodStats;\n}\n\nexport interface ApiGetStatsResponse {\n custom_tables?: ApiCustomTable[];\n periodic_stats?: ApiStatsMetrics;\n}\n\nexport interface ApiGetTempQuoteStatusResponse {\n cva?: string;\n error_category?: string;\n /** Populated only when State is \"Failed\" or \"Cancelled\". ErrorCode mirrors\n * the synchronous /instant_trade contract; ErrorCategory is the stable\n * bucket the frontend maps to user-facing copy. See\n * docs/v2/INSTANT_TRADE_ERRORS.md. */\n error_code?: number;\n error_detail?: string;\n error_message?: string;\n lf?: string;\n margin?: string;\n max_funding_rate?: string;\n opened_price?: string;\n order_type?: number;\n party_a_account?: string;\n party_amm?: string;\n position_type?: number;\n price?: string;\n quantity?: string;\n quote_id?: number;\n state?: string;\n sub_account?: string;\n symbol_id?: number;\n}\n\nexport interface ApiLockedParamsBySymbolIdResponse {\n cva?: string;\n leverage?: string;\n lf?: string;\n partyAmm?: string;\n partyBmm?: string;\n}\n\nexport interface ApiNotionalCapBySymbolResponse {\n available_to_long?: number;\n available_to_short?: number;\n error?: string;\n open_interest?: number;\n price?: number;\n symbol?: string;\n symbol_id?: number;\n token_balance?: number;\n total_cap?: number;\n usdc_balance?: number;\n used?: number;\n used_tokens?: number;\n}\n\nexport interface ApiNotionalCapAllSymbolsResponse {\n count?: number;\n symbols?: ApiNotionalCapBySymbolResponse[];\n total_open_interest?: number;\n total_used?: number;\n}\n\nexport interface ApiPostInstantOpenResponse {\n partyBmm?: string;\n temp_quote_id?: number;\n}\n\nexport interface ApiRevenueBySymbolItem {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n symbol?: string;\n symbol_id?: number;\n total_revenue?: string;\n}\n\nexport interface ApiRevenueBatchPerSymbolResponse {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n symbols?: ApiRevenueBySymbolItem[];\n total_revenue?: string;\n}\n\nexport interface ApiRevenueResponse {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n total_revenue?: string;\n}\n\nexport interface ApiV2InstantCloseRequest {\n /**\n * @minItems 1\n * @maxItems 100\n */\n operations: Eip712OperationWithSigJSON[];\n}\n\nexport interface ApiV2InstantOpenRequest {\n addMargin?: Eip712OperationWithSigJSON;\n sendQuote: Eip712OperationWithSigJSON;\n}\n\nexport enum ClientErrorCategory {\n CategoryValidation = \"validation\",\n CategoryAuthentication = \"authentication\",\n CategoryAuthorization = \"authorization\",\n CategorySlippage = \"slippage\",\n CategoryLiquidity = \"liquidity\",\n CategoryAccountState = \"account_state\",\n CategorySymbolState = \"symbol_state\",\n CategoryRateLimit = \"rate_limit\",\n CategoryTimeout = \"timeout\",\n CategoryInternal = \"internal\",\n CategoryUnavailable = \"unavailable\",\n}\nexport interface ClientErrorCodeInfo {\n category?: ClientErrorCategory;\n code?: number;\n http_status?: number;\n message?: string;\n}\n\nexport interface XfiberErrorResponse {\n code?: number;\n error_detail?: string;\n error_message?: string;\n}\n\nexport type GetErrorCodes200 = { [key: string]: string };\n\nexport type GetEstimatedPriceParams = {\n /**\n * Symbol ID\n */\n symbol_id: number;\n /**\n * Order quantity\n */\n quantity: string;\n /**\n * Position type (long/short)\n */\n position_type: string;\n /**\n * Entry type (open/close)\n */\n entry: string;\n /**\n * Price\n */\n price: string;\n};\n\nexport type GetGetFundingInfoParams = {\n /**\n * Symbol names (omit for all)\n */\n symbols?: string[];\n};\n\nexport type GetGetLockedParamsSymbolParams = {\n /**\n * Leverage\n */\n leverage: number;\n};\n\nexport type GetGetMarketInfo200 = { [key: string]: unknown };\n\nexport type GetInstantTradeEip712Config200 = { [key: string]: unknown };\n\nexport type GetNotionalCapParams = {\n /**\n * Limit results (max 500, default 100)\n */\n limit?: number;\n /**\n * Offset for pagination (default 0)\n */\n offset?: number;\n};\n\nexport type GetNotionalCapBatchParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n};\n\nexport type GetQuotesParams = {\n /**\n * Symbol ID filter\n */\n symbol_id?: number;\n /**\n * Party A address filter\n */\n party_a?: string;\n /**\n * Quote status filter (1-7)\n */\n status?: number;\n /**\n * Limit results (max 500, default 100)\n */\n limit?: number;\n /**\n * Offset for pagination (default 0)\n */\n offset?: number;\n};\n\nexport type GetRevenueParams = {\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenueBatchParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenuePerSymbolParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenueSymbolIdParams = {\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetStatsParams = {\n /**\n * Filter response to specific stat types (periodic_stats, single_metrics, custom_tables, alerts)\n */\n include?: string[];\n};\n\n/**\n * @summary Get contract symbols\n */\nexport const getContractSymbols = (\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiContractSymbolsResponse>> => {\n return axios.get(`/contract-symbols`, options);\n};\n\n/**\n * @summary Get API error codes\n */\nexport const getErrorCodes = (options?: AxiosRequestConfig): Promise<AxiosResponse<GetErrorCodes200>> => {\n return axios.get(`/error_codes`, options);\n};\n\n/**\n * Returns solver-registered error codes (>= 3000) with message, category, and http_status. Use the flat /error_codes endpoint for backward-compatible code→message lookups.\n * @summary Get detailed API error codes\n */\nexport const getErrorCodesDetailed = (options?: AxiosRequestConfig): Promise<AxiosResponse<ClientErrorCodeInfo[]>> => {\n return axios.get(`/error_codes/detailed`, options);\n};\n\n/**\n * Get estimated execution price from inventory service (dry-run mode)\n * @summary Get estimated price for order\n */\nexport const getEstimatedPrice = (\n params: GetEstimatedPriceParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetEstimatedPriceResponse>> => {\n return axios.get(`/estimated-price`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get funding info\n */\nexport const getGetFundingInfo = (\n params?: GetGetFundingInfoParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiFundingInfoResponse>> => {\n return axios.get(`/get_funding_info`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get locked params by symbol\n */\nexport const getGetLockedParamsSymbol = (\n symbol: string,\n params: GetGetLockedParamsSymbolParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiLockedParamsBySymbolIdResponse>> => {\n return axios.get(`/get_locked_params/${symbol}`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns a JSON object whose keys are symbol names (dynamic — sourced from contract-symbol data) mapping to {trading_volume, lifetime_value}, plus top-level aggregate fields total_value_24h and total_lifetime_value.\n * @summary Get 24h market info\n */\nexport const getGetMarketInfo = (options?: AxiosRequestConfig): Promise<AxiosResponse<GetGetMarketInfo200>> => {\n return axios.get(`/get_market_info`, options);\n};\n\n/**\n * Returns all pending instant close orders for a given SubAccount address.\n * @summary Get pending instant close orders\n */\nexport const getInstantCloseAccountAddress = (\n accountAddress: string,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetInstantCloseResponse[]>> => {\n return axios.get(`/instant_close/${accountAddress}`, options);\n};\n\n/**\n * Returns all pending instant open orders for a given SubAccount address.\n * @summary Get pending instant open orders\n */\nexport const getInstantOpenAccountAddress = (\n accountAddress: string,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetInstantOpenResponse[]>> => {\n return axios.get(`/instant_open/${accountAddress}`, options);\n};\n\n/**\n * @summary Get quote ID by temp ID\n */\nexport const getInstantQuoteIdTempQuoteId = (\n tempQuoteId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetQuoteIdResponse>> => {\n return axios.get(`/instant_quote_id/${tempQuoteId}`, options);\n};\n\n/**\n * Returns the EIP-712 domain, domain separator, type hashes, and full type definitions that clients must use when constructing signatures for V2 instant open/close operations. No authentication required.\n * @summary Get V2 EIP-712 signing config\n */\nexport const getInstantTradeEip712Config = (\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<GetInstantTradeEip712Config200>> => {\n return axios.get(`/instant_trade/eip712-config`, options);\n};\n\n/**\n * Relay a single user-signed EIP-712 operation so the solver wallet executes it on-chain. The user pays no native gas. Identity is proven by EIP-712 signature recovery; no JWT required. Synchronous — returns the on-chain tx hash on success or a clear error on failure.\n *\n * **Supported actions** (set via the `action` field):\n * - `add_margin` — top up the allocated balance of an existing VirtualAccount via AccountLayer.addMargin. The signer must own the VA (its parent SubAccount must equal the signer's SubAccount). Requires `operation`.\n * - `remove_margin` — withdraw allocated margin from an existing VirtualAccount via AccountLayer.removeMargin. Requires `operation`.\n * - `delegate_access_for_session_key` — grant a delegate signer access for one or more allowlisted selectors via InstantLayer.grantBatchDelegationBySig. Requires `delegation`.\n *\n * Exactly one of `operation` or `delegation` must be present per request. Delegation selectors are restricted to: `sendQuoteWithAffiliateAndData`, `requestToClosePosition`, `addMarginToNextVA`, `addMargin`, `removeMargin`, `allocate`, `deallocate`, `safeDeallocate`, `initiateWithdraw`, `finalizeWithdrawRequest`, `requestCancelWithdraw`.\n *\n * Each PartyA is limited to `GASLESS_DAILY_MAX` accepted attempts per UTC day (default 5). The counter is consumed on every attempt past basic validation, regardless of downstream success or failure; the `dailyRemaining` field in the response reports the user's remaining quota.\n * @summary Submit a gasless operation\n */\nexport const postInstantTradeExecuteOperation = (\n apiGaslessRequest: ApiGaslessRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGaslessResponse>> => {\n return axios.post(`/instant_trade/execute-operation`, apiGaslessRequest, options);\n};\n\n/**\n * Submit one or more V2 close operations (requestToClosePosition), one per quote. No JWT required — identity is proven by EIP-712 signature recovery. On any failure the whole request is rejected. Processing happens asynchronously.\n * @summary Submit V2 instant close\n */\nexport const postInstantTradeInstantClose = (\n apiV2InstantCloseRequest: ApiV2InstantCloseRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<void>> => {\n return axios.post(`/instant_trade/instant_close`, apiV2InstantCloseRequest, options);\n};\n\n/**\n * Submit a V2 instant open request with pre-signed EIP-712 PartyA operations (addMargin + sendQuote). No JWT required — identity is proven by EIP-712 signature recovery. Processing (hedge, muon sigs, symmio-api call) happens asynchronously.\n * @summary Submit V2 instant open\n */\nexport const postInstantTradeInstantOpen = (\n apiV2InstantOpenRequest: ApiV2InstantOpenRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiPostInstantOpenResponse>> => {\n return axios.post(`/instant_trade/instant_open`, apiV2InstantOpenRequest, options);\n};\n\n/**\n * @summary Get notional caps for all symbols\n */\nexport const getNotionalCap = (\n params?: GetNotionalCapParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapAllSymbolsResponse>> => {\n return axios.get(`/notional_cap`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get notional caps for multiple symbols\n */\nexport const getNotionalCapBatch = (\n params: GetNotionalCapBatchParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapAllSymbolsResponse>> => {\n return axios.get(`/notional_cap/batch`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get notional cap by symbol\n */\nexport const getNotionalCapSymbolId = (\n symbolId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapBySymbolResponse>> => {\n return axios.get(`/notional_cap/${symbolId}`, options);\n};\n\n/**\n * Get quotes from the event listener database with optional filters\n * @summary Get quotes from event listener\n */\nexport const getQuotes = (\n params?: GetQuotesParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetQuotesResponse>> => {\n return axios.get(`/quotes`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue. Filterable by time_range or custom start/end timestamps.\n * @summary Get aggregated revenue for all symbols\n */\nexport const getRevenue = (\n params?: GetRevenueParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue for a set of symbols. Pass symbol_ids as a comma-separated list or repeated query params (max 100).\n * @summary Get aggregated revenue for multiple symbols\n */\nexport const getRevenueBatch = (\n params: GetRevenueBatchParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue/batch`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns aggregated revenue totals AND a per-symbol breakdown for the requested symbol_ids. Each item in `symbols` carries symbol_id, symbol name, and the same revenue dimensions returned at the top level. Symbols with no rows in the filter window are omitted; entries follow the request's symbol_ids order. Pass symbol_ids as a comma-separated list or repeated query params (max 100).\n * @summary Get aggregated revenue plus per-symbol breakdown\n */\nexport const getRevenuePerSymbol = (\n params: GetRevenuePerSymbolParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueBatchPerSymbolResponse>> => {\n return axios.get(`/revenue/per-symbol`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue for one symbol. Filterable by time_range or custom timestamps.\n * @summary Get aggregated revenue for a specific symbol\n */\nexport const getRevenueSymbolId = (\n symbolId: number,\n params?: GetRevenueSymbolIdParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue/${symbolId}`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Get instant trading statistics for different time periods (5m, 1h, 24h, 1w) grouped by metric type\n * @summary Get trading statistics\n */\nexport const getStats = (\n params?: GetStatsParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetStatsResponse>> => {\n return axios.get(`/stats`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get temp quote status\n */\nexport const getTempQuoteStatusTempQuoteId = (\n tempQuoteId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetTempQuoteStatusResponse>> => {\n return axios.get(`/temp_quote_status/${tempQuoteId}`, options);\n};\n\nexport type GetContractSymbolsResult = AxiosResponse<ApiContractSymbolsResponse>;\nexport type GetErrorCodesResult = AxiosResponse<GetErrorCodes200>;\nexport type GetErrorCodesDetailedResult = AxiosResponse<ClientErrorCodeInfo[]>;\nexport type GetEstimatedPriceResult = AxiosResponse<ApiGetEstimatedPriceResponse>;\nexport type GetGetFundingInfoResult = AxiosResponse<ApiFundingInfoResponse>;\nexport type GetGetLockedParamsSymbolResult = AxiosResponse<ApiLockedParamsBySymbolIdResponse>;\nexport type GetGetMarketInfoResult = AxiosResponse<GetGetMarketInfo200>;\nexport type GetInstantCloseAccountAddressResult = AxiosResponse<ApiGetInstantCloseResponse[]>;\nexport type GetInstantOpenAccountAddressResult = AxiosResponse<ApiGetInstantOpenResponse[]>;\nexport type GetInstantQuoteIdTempQuoteIdResult = AxiosResponse<ApiGetQuoteIdResponse>;\nexport type GetInstantTradeEip712ConfigResult = AxiosResponse<GetInstantTradeEip712Config200>;\nexport type PostInstantTradeExecuteOperationResult = AxiosResponse<ApiGaslessResponse>;\nexport type PostInstantTradeInstantCloseResult = AxiosResponse<void>;\nexport type PostInstantTradeInstantOpenResult = AxiosResponse<ApiPostInstantOpenResponse>;\nexport type GetNotionalCapResult = AxiosResponse<ApiNotionalCapAllSymbolsResponse>;\nexport type GetNotionalCapBatchResult = AxiosResponse<ApiNotionalCapAllSymbolsResponse>;\nexport type GetNotionalCapSymbolIdResult = AxiosResponse<ApiNotionalCapBySymbolResponse>;\nexport type GetQuotesResult = AxiosResponse<ApiGetQuotesResponse>;\nexport type GetRevenueResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetRevenueBatchResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetRevenuePerSymbolResult = AxiosResponse<ApiRevenueBatchPerSymbolResponse>;\nexport type GetRevenueSymbolIdResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetStatsResult = AxiosResponse<ApiGetStatsResponse>;\nexport type GetTempQuoteStatusTempQuoteIdResult = AxiosResponse<ApiGetTempQuoteStatusResponse>;\n"],"mappings":";;AAuhBA,IAAa,KACX,MAEO,EAAM,IAAI,qBAAqB,CAAO,GAMlC,KAAiB,MACrB,EAAM,IAAI,gBAAgB,CAAO,GAyC7B,KACX,GACA,GACA,MAEO,EAAM,IAAI,sBAAsB,KAAU;CAC/C,GAAG;CACH,QAAQ;EAAE,GAAG;EAAQ,GAAG,GAAS;CAAO;AAC1C,CAAC,GAeU,KACX,GACA,MAEO,EAAM,IAAI,kBAAkB,KAAkB,CAAO,GAOjD,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB,KAAkB,CAAO,GAMhD,KACX,GACA,MAEO,EAAM,IAAI,qBAAqB,KAAe,CAAO,GAqCjD,KACX,GACA,MAEO,EAAM,KAAK,gCAAgC,GAA0B,CAAO,GAOxE,KACX,GACA,MAEO,EAAM,KAAK,+BAA+B,GAAyB,CAAO,GAMtE,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB;CAChC,GAAG;CACH,QAAQ;EAAE,GAAG;EAAQ,GAAG,GAAS;CAAO;AAC1C,CAAC,GAmBU,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB,KAAY,CAAO"}
1
+ {"version":3,"file":"enigma-solver.js","names":[],"sources":["../../../../src/solvers/types/generated/enigma-solver.ts"],"sourcesContent":["/**\n * Generated by orval v8.14.0 🍺\n * Do not edit manually.\n * Low Cap Solver API\n * API for Low Cap Solver trading system\n * OpenAPI spec version: 1.0\n */\nimport type { AxiosRequestConfig, AxiosResponse } from \"axios\";\nimport axios from \"axios\";\n\nexport interface SymbolContractSymbol {\n asset?: string;\n funding_rate_epoch_duration?: string;\n funding_rate_window_time?: string;\n hedger_fee_close?: string;\n hedger_fee_open?: string;\n is_valid?: boolean;\n lot_size?: string;\n max_funding_rate?: string;\n max_leverage?: string;\n max_notional_value?: number;\n max_quantity?: string;\n min_acceptable_portion_lf?: string;\n min_acceptable_quote_value?: string;\n min_notional_value?: string;\n name?: string;\n price_precision?: number;\n quantity_precision?: number;\n rfq_allowed?: boolean;\n /** \"all\", \"long\", or \"short\" */\n side?: string;\n /** 0: Disabled, 1: Close only, 2: Open only, 3: Fully enabled */\n state?: number;\n symbol?: string;\n symbol_id?: number;\n /** From price service GetSymbolsInfo */\n token_address?: string;\n trading_fee?: string;\n}\n\nexport interface ApiContractSymbolsResponse {\n count?: number;\n symbols?: SymbolContractSymbol[];\n}\n\nexport type ApiCustomTableDataItem = { [key: string]: unknown };\n\nexport interface ApiCustomTableHeader {\n key?: string;\n label?: string;\n}\n\nexport interface ApiCustomTable {\n data?: ApiCustomTableDataItem[];\n headers?: ApiCustomTableHeader[];\n title?: string;\n}\n\nexport interface ApiFundingInfoResponse {\n [key: string]: {\n funding_rate_epoch_duration?: number;\n next_funding_rate_long?: string;\n next_funding_rate_short?: string;\n next_funding_time?: number;\n };\n}\n\nexport enum ApiGaslessAction {\n GaslessActionAddMargin = \"add_margin\",\n GaslessActionRemoveMargin = \"remove_margin\",\n GaslessActionDelegate = \"delegate_access_for_session_key\",\n}\nexport enum ApiGaslessRequestAction {\n add_margin = \"add_margin\",\n remove_margin = \"remove_margin\",\n delegate_access_for_session_key = \"delegate_access_for_session_key\",\n}\nexport interface Eip712AccountJSON {\n addr: string;\n isPartyB?: boolean;\n}\n\nexport interface Eip712DelegationInfoJSON {\n account: Eip712AccountJSON;\n delegatedSigner: string;\n expiryTimestamp: number;\n /** @minItems 1 */\n selectors: string[];\n}\n\nexport interface Eip712ReplayHeaderJSON {\n deadline: number;\n nonce?: number;\n salt: string;\n}\n\nexport interface Eip712SignedDelegationJSON {\n delegationInfo: Eip712DelegationInfoJSON;\n replayAttackHeader: Eip712ReplayHeaderJSON;\n}\n\nexport interface Eip712DelegationWithSigJSON {\n signature: string;\n signedDelegation: Eip712SignedDelegationJSON;\n}\n\nexport interface Eip712FlexFieldJSON {\n authorizedFlexFiller?: string;\n length?: number;\n offset?: number;\n}\n\nexport interface Eip712SignedOperationJSON {\n callData: string;\n flexFields?: Eip712FlexFieldJSON[];\n maxUses?: number;\n replayAttackHeader: Eip712ReplayHeaderJSON;\n signer: string;\n signerAccount: Eip712AccountJSON;\n target: string;\n}\n\nexport interface Eip712OperationWithSigJSON {\n signature: string;\n signedOperation: Eip712SignedOperationJSON;\n}\n\nexport interface ApiGaslessRequest {\n action: ApiGaslessRequestAction;\n delegation?: Eip712DelegationWithSigJSON;\n operation?: Eip712OperationWithSigJSON;\n}\n\nexport interface ApiGaslessResponse {\n action?: ApiGaslessAction;\n blockHash?: string;\n blockNumber?: number;\n dailyRemaining?: number;\n gasUsed?: number;\n partyA?: string;\n transactionHash?: string;\n}\n\nexport interface ApiGetEstimatedPriceResponse {\n price?: string;\n}\n\nexport interface ApiGetInstantCloseResponse {\n close_price?: string;\n quantity_to_close?: string;\n quote_id?: number;\n}\n\nexport interface ApiGetInstantOpenResponse {\n cva?: string;\n lf?: string;\n order_type?: number;\n partyAmm?: string;\n partyBmm?: string;\n party_a_address?: string;\n position_type?: number;\n quantity?: string;\n requested_open_price?: string;\n symbol_id?: number;\n temp_quote_id?: number;\n /** UUID is the frontend-provided UUID from the V2 sendQuote metadata */\n uuid?: string;\n}\n\nexport interface ApiGetQuoteIdResponse {\n quote_id?: number;\n}\n\nexport interface ApiQuoteInfo {\n affiliate?: string;\n avg_closed_price?: string;\n block_number?: number;\n closed_amount?: string;\n create_timestamp?: string;\n cva?: string;\n deadline?: string;\n id?: string;\n initial_cva?: string;\n initial_lf?: string;\n initial_opened_price?: string;\n initial_party_amm?: string;\n initial_party_bmm?: string;\n last_funding_payment_timestamp?: string;\n lf?: string;\n market_price?: string;\n max_funding_rate?: string;\n opened_price?: string;\n order_type?: number;\n parent_id?: string;\n party_a?: string;\n party_amm?: string;\n party_b?: string;\n party_bmm?: string;\n position_type?: number;\n quantity?: string;\n quantity_to_close?: string;\n quote_status?: number;\n requested_close_price?: string;\n requested_open_price?: string;\n status_modify_timestamp?: string;\n symbol_id?: string;\n trading_fee?: string;\n}\n\nexport interface ApiGetQuotesResponse {\n count?: number;\n quotes?: ApiQuoteInfo[];\n}\n\nexport interface ApiPeriodStats {\n \"1h\"?: number;\n \"1w\"?: number;\n \"24h\"?: number;\n \"5m\"?: number;\n}\n\nexport interface ApiStatsMetrics {\n \"Completed Closes\"?: ApiPeriodStats;\n \"Completed Opens\"?: ApiPeriodStats;\n \"Instant Closes\"?: ApiPeriodStats;\n \"Instant Opens\"?: ApiPeriodStats;\n}\n\nexport interface ApiGetStatsResponse {\n custom_tables?: ApiCustomTable[];\n periodic_stats?: ApiStatsMetrics;\n}\n\nexport interface ApiGetTempQuoteStatusResponse {\n cva?: string;\n error_category?: string;\n /** Populated only when State is \"Failed\" or \"Cancelled\". ErrorCode mirrors\n * the synchronous /instant_trade contract; ErrorCategory is the stable\n * bucket the frontend maps to user-facing copy. See\n * docs/v2/INSTANT_TRADE_ERRORS.md. */\n error_code?: number;\n error_detail?: string;\n error_message?: string;\n lf?: string;\n margin?: string;\n max_funding_rate?: string;\n opened_price?: string;\n order_type?: number;\n party_a_account?: string;\n party_amm?: string;\n position_type?: number;\n price?: string;\n quantity?: string;\n quote_id?: number;\n state?: string;\n sub_account?: string;\n symbol_id?: number;\n}\n\nexport interface ApiLockedParamsBySymbolIdResponse {\n cva?: string;\n leverage?: string;\n lf?: string;\n partyAmm?: string;\n partyBmm?: string;\n}\n\nexport interface ApiNotionalCapBySymbolResponse {\n available_to_long?: number;\n available_to_short?: number;\n error?: string;\n open_interest?: number;\n price?: number;\n symbol?: string;\n symbol_id?: number;\n token_balance?: number;\n total_cap?: number;\n usdc_balance?: number;\n used?: number;\n used_tokens?: number;\n}\n\nexport interface ApiNotionalCapAllSymbolsResponse {\n count?: number;\n symbols?: ApiNotionalCapBySymbolResponse[];\n total_open_interest?: number;\n total_used?: number;\n}\n\nexport interface ApiPostInstantOpenResponse {\n partyBmm?: string;\n temp_quote_id?: number;\n}\n\nexport interface ApiRevenueBySymbolItem {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n symbol?: string;\n symbol_id?: number;\n total_revenue?: string;\n}\n\nexport interface ApiRevenueBatchPerSymbolResponse {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n symbols?: ApiRevenueBySymbolItem[];\n total_revenue?: string;\n}\n\nexport interface ApiRevenueResponse {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n total_revenue?: string;\n}\n\nexport interface ApiV2InstantCloseRequest {\n /**\n * @minItems 1\n * @maxItems 100\n */\n operations: Eip712OperationWithSigJSON[];\n}\n\nexport interface ApiV2InstantOpenRequest {\n addMargin?: Eip712OperationWithSigJSON;\n sendQuote: Eip712OperationWithSigJSON;\n}\n\nexport enum ClientErrorCategory {\n CategoryValidation = \"validation\",\n CategoryAuthentication = \"authentication\",\n CategoryAuthorization = \"authorization\",\n CategorySlippage = \"slippage\",\n CategoryLiquidity = \"liquidity\",\n CategoryAccountState = \"account_state\",\n CategorySymbolState = \"symbol_state\",\n CategoryRateLimit = \"rate_limit\",\n CategoryTimeout = \"timeout\",\n CategoryInternal = \"internal\",\n CategoryUnavailable = \"unavailable\",\n}\nexport interface ClientErrorCodeInfo {\n category?: ClientErrorCategory;\n code?: number;\n http_status?: number;\n message?: string;\n}\n\nexport interface XfiberErrorResponse {\n code?: number;\n error_detail?: string;\n error_message?: string;\n}\n\nexport type GetErrorCodes200 = { [key: string]: string };\n\nexport type GetEstimatedPriceParams = {\n /**\n * Symbol ID\n */\n symbol_id: number;\n /**\n * Order quantity\n */\n quantity: string;\n /**\n * Position type (long/short)\n */\n position_type: string;\n /**\n * Entry type (open/close)\n */\n entry: string;\n /**\n * Price\n */\n price: string;\n};\n\nexport type GetGetFundingInfoParams = {\n /**\n * Symbol names (omit for all)\n */\n symbols?: string[];\n};\n\nexport type GetGetLockedParamsSymbolParams = {\n /**\n * Leverage\n */\n leverage: number;\n};\n\nexport type GetGetMarketInfo200 = { [key: string]: unknown };\n\nexport type GetInstantTradeEip712Config200 = { [key: string]: unknown };\n\nexport type GetNotionalCapParams = {\n /**\n * Limit results (max 500, default 100)\n */\n limit?: number;\n /**\n * Offset for pagination (default 0)\n */\n offset?: number;\n};\n\nexport type GetNotionalCapBatchParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n};\n\nexport type GetQuotesParams = {\n /**\n * Symbol ID filter\n */\n symbol_id?: number;\n /**\n * Party A address filter\n */\n party_a?: string;\n /**\n * Quote status filter (1-7)\n */\n status?: number;\n /**\n * Limit results (max 500, default 100)\n */\n limit?: number;\n /**\n * Offset for pagination (default 0)\n */\n offset?: number;\n};\n\nexport type GetRevenueParams = {\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenueBatchParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenuePerSymbolParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenueSymbolIdParams = {\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetStatsParams = {\n /**\n * Filter response to specific stat types (periodic_stats, single_metrics, custom_tables, alerts)\n */\n include?: string[];\n};\n\n/**\n * @summary Get contract symbols\n */\nexport const getContractSymbols = (\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiContractSymbolsResponse>> => {\n return axios.get(`/contract-symbols`, options);\n};\n\n/**\n * @summary Get API error codes\n */\nexport const getErrorCodes = (options?: AxiosRequestConfig): Promise<AxiosResponse<GetErrorCodes200>> => {\n return axios.get(`/error_codes`, options);\n};\n\n/**\n * Returns solver-registered error codes (>= 3000) with message, category, and http_status. Use the flat /error_codes endpoint for backward-compatible code→message lookups.\n * @summary Get detailed API error codes\n */\nexport const getErrorCodesDetailed = (options?: AxiosRequestConfig): Promise<AxiosResponse<ClientErrorCodeInfo[]>> => {\n return axios.get(`/error_codes/detailed`, options);\n};\n\n/**\n * Get estimated execution price from inventory service (dry-run mode)\n * @summary Get estimated price for order\n */\nexport const getEstimatedPrice = (\n params: GetEstimatedPriceParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetEstimatedPriceResponse>> => {\n return axios.get(`/estimated-price`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get funding info\n */\nexport const getGetFundingInfo = (\n params?: GetGetFundingInfoParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiFundingInfoResponse>> => {\n return axios.get(`/get_funding_info`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get locked params by symbol\n */\nexport const getGetLockedParamsSymbol = (\n symbol: string,\n params: GetGetLockedParamsSymbolParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiLockedParamsBySymbolIdResponse>> => {\n return axios.get(`/get_locked_params/${symbol}`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns a JSON object whose keys are symbol names (dynamic — sourced from contract-symbol data) mapping to {trading_volume, lifetime_value}, plus top-level aggregate fields total_value_24h and total_lifetime_value.\n * @summary Get 24h market info\n */\nexport const getGetMarketInfo = (options?: AxiosRequestConfig): Promise<AxiosResponse<GetGetMarketInfo200>> => {\n return axios.get(`/get_market_info`, options);\n};\n\n/**\n * Returns all pending instant close orders for a given SubAccount address.\n * @summary Get pending instant close orders\n */\nexport const getInstantCloseAccountAddress = (\n accountAddress: string,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetInstantCloseResponse[]>> => {\n return axios.get(`/instant_close/${accountAddress}`, options);\n};\n\n/**\n * Returns all pending instant open orders for a given SubAccount address.\n * @summary Get pending instant open orders\n */\nexport const getInstantOpenAccountAddress = (\n accountAddress: string,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetInstantOpenResponse[]>> => {\n return axios.get(`/instant_open/${accountAddress}`, options);\n};\n\n/**\n * @summary Get quote ID by temp ID\n */\nexport const getInstantQuoteIdTempQuoteId = (\n tempQuoteId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetQuoteIdResponse>> => {\n return axios.get(`/instant_quote_id/${tempQuoteId}`, options);\n};\n\n/**\n * Returns the EIP-712 domain, domain separator, type hashes, and full type definitions that clients must use when constructing signatures for V2 instant open/close operations. No authentication required.\n * @summary Get V2 EIP-712 signing config\n */\nexport const getInstantTradeEip712Config = (\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<GetInstantTradeEip712Config200>> => {\n return axios.get(`/instant_trade/eip712-config`, options);\n};\n\n/**\n * Relay a single user-signed EIP-712 operation so the solver wallet executes it on-chain. The user pays no native gas. Identity is proven by EIP-712 signature recovery; no JWT required. Synchronous — returns the on-chain tx hash on success or a clear error on failure.\n *\n * **Supported actions** (set via the `action` field):\n * - `add_margin` — top up the allocated balance of an existing VirtualAccount via AccountLayer.addMargin. The signer must own the VA (its parent SubAccount must equal the signer's SubAccount). Requires `operation`.\n * - `remove_margin` — withdraw allocated margin from an existing VirtualAccount via AccountLayer.removeMargin. Requires `operation`.\n * - `delegate_access_for_session_key` — grant a delegate signer access for one or more allowlisted selectors via InstantLayer.grantBatchDelegationBySig. Requires `delegation`.\n *\n * Exactly one of `operation` or `delegation` must be present per request. Delegation selectors are restricted to: `sendQuoteWithAffiliateAndData`, `requestToClosePosition`, `addMarginToNextVA`, `addMargin`, `removeMargin`, `allocate`, `deallocate`, `safeDeallocate`, `initiateWithdraw`, `finalizeWithdrawRequest`, `requestCancelWithdraw`.\n *\n * Each PartyA is limited to `GASLESS_DAILY_MAX` accepted attempts per UTC day (default 5). The counter is consumed on every attempt past basic validation, regardless of downstream success or failure; the `dailyRemaining` field in the response reports the user's remaining quota.\n * @summary Submit a gasless operation\n */\nexport const postInstantTradeExecuteOperation = (\n apiGaslessRequest: ApiGaslessRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGaslessResponse>> => {\n return axios.post(`/instant_trade/execute-operation`, apiGaslessRequest, options);\n};\n\n/**\n * Submit one or more V2 close operations (requestToClosePosition), one per quote. No JWT required — identity is proven by EIP-712 signature recovery. On any failure the whole request is rejected. Processing happens asynchronously.\n * @summary Submit V2 instant close\n */\nexport const postInstantTradeInstantClose = (\n apiV2InstantCloseRequest: ApiV2InstantCloseRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<void>> => {\n return axios.post(`/instant_trade/instant_close`, apiV2InstantCloseRequest, options);\n};\n\n/**\n * Submit a V2 instant open request with pre-signed EIP-712 PartyA operations (addMargin + sendQuote). No JWT required — identity is proven by EIP-712 signature recovery. Processing (hedge, muon sigs, symmio-api call) happens asynchronously.\n * @summary Submit V2 instant open\n */\nexport const postInstantTradeInstantOpen = (\n apiV2InstantOpenRequest: ApiV2InstantOpenRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiPostInstantOpenResponse>> => {\n return axios.post(`/instant_trade/instant_open`, apiV2InstantOpenRequest, options);\n};\n\n/**\n * @summary Get notional caps for all symbols\n */\nexport const getNotionalCap = (\n params?: GetNotionalCapParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapAllSymbolsResponse>> => {\n return axios.get(`/notional_cap`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get notional caps for multiple symbols\n */\nexport const getNotionalCapBatch = (\n params: GetNotionalCapBatchParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapAllSymbolsResponse>> => {\n return axios.get(`/notional_cap/batch`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get notional cap by symbol\n */\nexport const getNotionalCapSymbolId = (\n symbolId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapBySymbolResponse>> => {\n return axios.get(`/notional_cap/${symbolId}`, options);\n};\n\n/**\n * Get quotes from the event listener database with optional filters\n * @summary Get quotes from event listener\n */\nexport const getQuotes = (\n params?: GetQuotesParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetQuotesResponse>> => {\n return axios.get(`/quotes`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue. Filterable by time_range or custom start/end timestamps.\n * @summary Get aggregated revenue for all symbols\n */\nexport const getRevenue = (\n params?: GetRevenueParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue for a set of symbols. Pass symbol_ids as a comma-separated list or repeated query params (max 100).\n * @summary Get aggregated revenue for multiple symbols\n */\nexport const getRevenueBatch = (\n params: GetRevenueBatchParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue/batch`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns aggregated revenue totals AND a per-symbol breakdown for the requested symbol_ids. Each item in `symbols` carries symbol_id, symbol name, and the same revenue dimensions returned at the top level. Symbols with no rows in the filter window are omitted; entries follow the request's symbol_ids order. Pass symbol_ids as a comma-separated list or repeated query params (max 100).\n * @summary Get aggregated revenue plus per-symbol breakdown\n */\nexport const getRevenuePerSymbol = (\n params: GetRevenuePerSymbolParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueBatchPerSymbolResponse>> => {\n return axios.get(`/revenue/per-symbol`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue for one symbol. Filterable by time_range or custom timestamps.\n * @summary Get aggregated revenue for a specific symbol\n */\nexport const getRevenueSymbolId = (\n symbolId: number,\n params?: GetRevenueSymbolIdParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue/${symbolId}`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Get instant trading statistics for different time periods (5m, 1h, 24h, 1w) grouped by metric type\n * @summary Get trading statistics\n */\nexport const getStats = (\n params?: GetStatsParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetStatsResponse>> => {\n return axios.get(`/stats`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get temp quote status\n */\nexport const getTempQuoteStatusTempQuoteId = (\n tempQuoteId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetTempQuoteStatusResponse>> => {\n return axios.get(`/temp_quote_status/${tempQuoteId}`, options);\n};\n\nexport type GetContractSymbolsResult = AxiosResponse<ApiContractSymbolsResponse>;\nexport type GetErrorCodesResult = AxiosResponse<GetErrorCodes200>;\nexport type GetErrorCodesDetailedResult = AxiosResponse<ClientErrorCodeInfo[]>;\nexport type GetEstimatedPriceResult = AxiosResponse<ApiGetEstimatedPriceResponse>;\nexport type GetGetFundingInfoResult = AxiosResponse<ApiFundingInfoResponse>;\nexport type GetGetLockedParamsSymbolResult = AxiosResponse<ApiLockedParamsBySymbolIdResponse>;\nexport type GetGetMarketInfoResult = AxiosResponse<GetGetMarketInfo200>;\nexport type GetInstantCloseAccountAddressResult = AxiosResponse<ApiGetInstantCloseResponse[]>;\nexport type GetInstantOpenAccountAddressResult = AxiosResponse<ApiGetInstantOpenResponse[]>;\nexport type GetInstantQuoteIdTempQuoteIdResult = AxiosResponse<ApiGetQuoteIdResponse>;\nexport type GetInstantTradeEip712ConfigResult = AxiosResponse<GetInstantTradeEip712Config200>;\nexport type PostInstantTradeExecuteOperationResult = AxiosResponse<ApiGaslessResponse>;\nexport type PostInstantTradeInstantCloseResult = AxiosResponse<void>;\nexport type PostInstantTradeInstantOpenResult = AxiosResponse<ApiPostInstantOpenResponse>;\nexport type GetNotionalCapResult = AxiosResponse<ApiNotionalCapAllSymbolsResponse>;\nexport type GetNotionalCapBatchResult = AxiosResponse<ApiNotionalCapAllSymbolsResponse>;\nexport type GetNotionalCapSymbolIdResult = AxiosResponse<ApiNotionalCapBySymbolResponse>;\nexport type GetQuotesResult = AxiosResponse<ApiGetQuotesResponse>;\nexport type GetRevenueResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetRevenueBatchResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetRevenuePerSymbolResult = AxiosResponse<ApiRevenueBatchPerSymbolResponse>;\nexport type GetRevenueSymbolIdResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetStatsResult = AxiosResponse<ApiGetStatsResponse>;\nexport type GetTempQuoteStatusTempQuoteIdResult = AxiosResponse<ApiGetTempQuoteStatusResponse>;\n"],"mappings":";;AAuhBA,IAAa,KACX,MAEO,EAAM,IAAI,qBAAqB,CAAO,GAMlC,KAAiB,MACrB,EAAM,IAAI,gBAAgB,CAAO,GA4B7B,KACX,GACA,MAEO,EAAM,IAAI,qBAAqB;CACpC,GAAG;CACH,QAAQ;EAAE,GAAG;EAAQ,GAAG,GAAS;CAAO;AAC1C,CAAC,GAMU,KACX,GACA,GACA,MAEO,EAAM,IAAI,sBAAsB,KAAU;CAC/C,GAAG;CACH,QAAQ;EAAE,GAAG;EAAQ,GAAG,GAAS;CAAO;AAC1C,CAAC,GAOU,KAAoB,MACxB,EAAM,IAAI,oBAAoB,CAAO,GAOjC,KACX,GACA,MAEO,EAAM,IAAI,kBAAkB,KAAkB,CAAO,GAOjD,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB,KAAkB,CAAO,GAMhD,KACX,GACA,MAEO,EAAM,IAAI,qBAAqB,KAAe,CAAO,GAqCjD,KACX,GACA,MAEO,EAAM,KAAK,gCAAgC,GAA0B,CAAO,GAOxE,KACX,GACA,MAEO,EAAM,KAAK,+BAA+B,GAAyB,CAAO,GAMtE,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB;CAChC,GAAG;CACH,QAAQ;EAAE,GAAG;EAAQ,GAAG,GAAS;CAAO;AAC1C,CAAC,GAmBU,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB,KAAY,CAAO"}
@@ -3,7 +3,7 @@
3
3
  * version today). When a second version is added, route the public re-exports
4
4
  * here so consumers keep importing from `@symmio/trading-core/abi`.
5
5
  */
6
- export { accountLayerAbi } from './v0.8.5/account-layer';
7
- export { instantLayerAbi } from './v0.8.5/instant-layer';
8
- export { symmioAbi } from './v0.8.5/symmio';
6
+ export { accountLayerAbi } from './v0.8.5/account-layer.js';
7
+ export { instantLayerAbi } from './v0.8.5/instant-layer.js';
8
+ export { symmioAbi } from './v0.8.5/symmio.js';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export { accountLayerAbi } from './account-layer';
2
- export { instantLayerAbi } from './instant-layer';
3
- export { symmioAbi } from './symmio';
1
+ export { accountLayerAbi } from './account-layer.js';
2
+ export { instantLayerAbi } from './instant-layer.js';
3
+ export { symmioAbi } from './symmio.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { Address, Hash } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { Compute, WriteContractParameter } from '../../../shared/types/properties';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
4
4
  /**
5
5
  * Parameters for {@link addMargin}.
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { Address, Hash } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { Compute, WriteContractParameter } from '../../../shared/types/properties';
4
- import { SubAccountCreationData } from '../types';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
4
+ import { SubAccountCreationData } from '../types.js';
5
5
  /**
6
6
  * Parameters for {@link createSubAccounts}.
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import { Address, Hash } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { Compute, WriteContractParameter } from '../../../shared/types/properties';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
4
4
  /**
5
5
  * Parameters for {@link deleteSubAccount}.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { Address, Hash } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { Compute, WriteContractParameter } from '../../../shared/types/properties';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
4
4
  /**
5
5
  * Parameters for {@link depositAndAllocateForAccount}.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { Address, Hash } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { Compute, WriteContractParameter } from '../../../shared/types/properties';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
4
4
  /**
5
5
  * Parameters for {@link depositForAccount}.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { Address, Hash } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { Compute, WriteContractParameter } from '../../../shared/types/properties';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
4
4
  /**
5
5
  * Parameters for {@link editAccountName}.
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { ChainIdParameter, Compute } from '../../../shared/types/properties';
4
- import { AccountBalanceInfo } from '../types';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
4
+ import { AccountBalanceInfo } from '../types.js';
5
5
  /**
6
6
  * Parameters for {@link getAccountBalanceInfo}.
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { ChainIdParameter, Compute } from '../../../shared/types/properties';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
4
4
  /**
5
5
  * Parameters for {@link getAccountBalanceOf}.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { ChainIdParameter, Compute } from '../../../shared/types/properties';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
4
4
  /**
5
5
  * Parameters for {@link getSubAccountVirtualNonce}.
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { ChainIdParameter, Compute } from '../../../shared/types/properties';
4
- import { SubAccountDetail } from '../types';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
4
+ import { SubAccountDetail } from '../types.js';
5
5
  /**
6
6
  * Parameters for {@link getSubAccount}.
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { ChainIdParameter, Compute } from '../../../shared/types/properties';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
4
4
  /**
5
5
  * Parameters for {@link getSubAccountsCountOfUser}.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { ChainIdParameter, Compute } from '../../../shared/types/properties';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
4
4
  /**
5
5
  * Parameters for {@link getUserSubAccountsAddresses}.
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { ChainIdParameter, Compute } from '../../../shared/types/properties';
4
- import { SubAccountDetail } from '../types';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
4
+ import { SubAccountDetail } from '../types.js';
5
5
  /**
6
6
  * Parameters for {@link getUserSubAccounts}.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Address, Hex } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { ChainIdParameter, Compute } from '../../../shared/types/properties';
4
- import { VirtualAccountIsolationType } from '../../../solvers/instant-open/shared/types';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
4
+ import { VirtualAccountIsolationType } from '../../../solvers/instant-open/shared/types.js';
5
5
  /**
6
6
  * Parameters for {@link getVirtualAccount}.
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { ChainIdParameter, Compute } from '../../../shared/types/properties';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
4
4
  /**
5
5
  * Parameters for {@link getVirtualAccountsAddressesOfSubAccount}.
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../../core/config';
3
- import { ChainIdParameter, Compute } from '../../../shared/types/properties';
4
- import { VirtualAccountIsolationType } from '../../../solvers/instant-open/shared/types';
2
+ import { Config } from '../../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
4
+ import { VirtualAccountIsolationType } from '../../../solvers/instant-open/shared/types.js';
5
5
  /**
6
6
  * Parameters for {@link getPredictedNextVirtualAccount}.
7
7
  */