@katanaperps/katana-perps-sdk 0.0.0-placeholder

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 (428) hide show
  1. package/.nvmrc +1 -0
  2. package/LICENSE +21 -0
  3. package/README.md +90 -0
  4. package/dist/abis/ERC20.json +288 -0
  5. package/dist/abis/EarningsEscrow.json +468 -0
  6. package/dist/abis/Exchange_v1.json +3644 -0
  7. package/dist/abis/IOFT.json +447 -0
  8. package/dist/bridge/config.d.ts +262 -0
  9. package/dist/bridge/config.d.ts.map +1 -0
  10. package/dist/bridge/config.js +221 -0
  11. package/dist/bridge/deposit.d.ts +107 -0
  12. package/dist/bridge/deposit.d.ts.map +1 -0
  13. package/dist/bridge/deposit.js +284 -0
  14. package/dist/bridge/index.d.ts +5 -0
  15. package/dist/bridge/index.d.ts.map +1 -0
  16. package/dist/bridge/index.js +7 -0
  17. package/dist/bridge/utils.d.ts +140 -0
  18. package/dist/bridge/utils.d.ts.map +1 -0
  19. package/dist/bridge/utils.js +66 -0
  20. package/dist/bridge/withdraw.d.ts +42 -0
  21. package/dist/bridge/withdraw.d.ts.map +1 -0
  22. package/dist/bridge/withdraw.js +86 -0
  23. package/dist/client/index.d.ts +4 -0
  24. package/dist/client/index.d.ts.map +1 -0
  25. package/dist/client/index.js +6 -0
  26. package/dist/client/orderBook/index.d.ts +2 -0
  27. package/dist/client/orderBook/index.d.ts.map +1 -0
  28. package/dist/client/orderBook/index.js +4 -0
  29. package/dist/client/orderBook/realTime.d.ts +180 -0
  30. package/dist/client/orderBook/realTime.d.ts.map +1 -0
  31. package/dist/client/orderBook/realTime.js +344 -0
  32. package/dist/client/orderBook/utils.d.ts +15 -0
  33. package/dist/client/orderBook/utils.d.ts.map +1 -0
  34. package/dist/client/orderBook/utils.js +77 -0
  35. package/dist/client/rest/authenticated.d.ts +1199 -0
  36. package/dist/client/rest/authenticated.d.ts.map +1 -0
  37. package/dist/client/rest/authenticated.js +1311 -0
  38. package/dist/client/rest/index.d.ts +3 -0
  39. package/dist/client/rest/index.d.ts.map +1 -0
  40. package/dist/client/rest/index.js +5 -0
  41. package/dist/client/rest/public.d.ts +436 -0
  42. package/dist/client/rest/public.d.ts.map +1 -0
  43. package/dist/client/rest/public.js +502 -0
  44. package/dist/client/webSocket/guards.d.ts +15 -0
  45. package/dist/client/webSocket/guards.d.ts.map +1 -0
  46. package/dist/client/webSocket/guards.js +37 -0
  47. package/dist/client/webSocket/index.d.ts +632 -0
  48. package/dist/client/webSocket/index.d.ts.map +1 -0
  49. package/dist/client/webSocket/index.js +1048 -0
  50. package/dist/client/webSocket/transform.d.ts +3 -0
  51. package/dist/client/webSocket/transform.d.ts.map +1 -0
  52. package/dist/client/webSocket/transform.js +244 -0
  53. package/dist/constants.d.ts +34 -0
  54. package/dist/constants.d.ts.map +1 -0
  55. package/dist/constants.js +38 -0
  56. package/dist/index.d.ts +9 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +14 -0
  59. package/dist/orderbook/apiConversions.d.ts +8 -0
  60. package/dist/orderbook/apiConversions.d.ts.map +1 -0
  61. package/dist/orderbook/apiConversions.js +100 -0
  62. package/dist/orderbook/demo.d.ts +2 -0
  63. package/dist/orderbook/demo.d.ts.map +1 -0
  64. package/dist/orderbook/demo.js +68 -0
  65. package/dist/orderbook/index.d.ts +3 -0
  66. package/dist/orderbook/index.d.ts.map +1 -0
  67. package/dist/orderbook/index.js +5 -0
  68. package/dist/orderbook/quantities.d.ts +112 -0
  69. package/dist/orderbook/quantities.d.ts.map +1 -0
  70. package/dist/orderbook/quantities.js +257 -0
  71. package/dist/orderbook/utils.d.ts +8 -0
  72. package/dist/orderbook/utils.d.ts.map +1 -0
  73. package/dist/orderbook/utils.js +28 -0
  74. package/dist/pipmath.d.ts +21 -0
  75. package/dist/pipmath.d.ts.map +1 -0
  76. package/dist/pipmath.js +110 -0
  77. package/dist/signatures.d.ts +37 -0
  78. package/dist/signatures.d.ts.map +1 -0
  79. package/dist/signatures.js +450 -0
  80. package/dist/tests/orderbook/quantities/calculateInitialMarginFractionWithOverride.test.d.ts +2 -0
  81. package/dist/tests/orderbook/quantities/calculateInitialMarginFractionWithOverride.test.d.ts.map +1 -0
  82. package/dist/tests/orderbook/quantities/calculateInitialMarginFractionWithOverride.test.js +49 -0
  83. package/dist/tests/orderbook/quantities/calculateMaximumInitialMarginFractionOverride.test.d.ts +2 -0
  84. package/dist/tests/orderbook/quantities/calculateMaximumInitialMarginFractionOverride.test.d.ts.map +1 -0
  85. package/dist/tests/orderbook/quantities/calculateMaximumInitialMarginFractionOverride.test.js +122 -0
  86. package/dist/tests/orderbook/quantities/determineMaximumReduceOnlyQuantityAvailableAtPriceLevel.test.d.ts +2 -0
  87. package/dist/tests/orderbook/quantities/determineMaximumReduceOnlyQuantityAvailableAtPriceLevel.test.d.ts.map +1 -0
  88. package/dist/tests/orderbook/quantities/determineMaximumReduceOnlyQuantityAvailableAtPriceLevel.test.js +138 -0
  89. package/dist/tests/orderbook/quantities.test.d.ts +2 -0
  90. package/dist/tests/orderbook/quantities.test.d.ts.map +1 -0
  91. package/dist/tests/orderbook/quantities.test.js +310 -0
  92. package/dist/tests/testHelpers.d.ts +2 -0
  93. package/dist/tests/testHelpers.d.ts.map +1 -0
  94. package/dist/tests/testHelpers.js +16 -0
  95. package/dist/tests/utils/deriveBaseURL.test.d.ts +2 -0
  96. package/dist/tests/utils/deriveBaseURL.test.d.ts.map +1 -0
  97. package/dist/tests/utils/deriveBaseURL.test.js +46 -0
  98. package/dist/typechain-types/ERC20.d.ts +170 -0
  99. package/dist/typechain-types/ERC20.d.ts.map +1 -0
  100. package/dist/typechain-types/ERC20.js +2 -0
  101. package/dist/typechain-types/EarningsEscrow.d.ts +210 -0
  102. package/dist/typechain-types/EarningsEscrow.d.ts.map +1 -0
  103. package/dist/typechain-types/EarningsEscrow.js +2 -0
  104. package/dist/typechain-types/ExchangeLayerZeroAdapter.d.ts +253 -0
  105. package/dist/typechain-types/ExchangeLayerZeroAdapter.d.ts.map +1 -0
  106. package/dist/typechain-types/ExchangeLayerZeroAdapter.js +2 -0
  107. package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.d.ts +338 -0
  108. package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.d.ts.map +1 -0
  109. package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.js +2 -0
  110. package/dist/typechain-types/ExchangeLayerZeroAdapter_v3.d.ts +413 -0
  111. package/dist/typechain-types/ExchangeLayerZeroAdapter_v3.d.ts.map +1 -0
  112. package/dist/typechain-types/ExchangeLayerZeroAdapter_v3.js +2 -0
  113. package/dist/typechain-types/Exchange_v1.d.ts +2172 -0
  114. package/dist/typechain-types/Exchange_v1.d.ts.map +1 -0
  115. package/dist/typechain-types/Exchange_v1.js +2 -0
  116. package/dist/typechain-types/Exchange_v2.d.ts +2148 -0
  117. package/dist/typechain-types/Exchange_v2.d.ts.map +1 -0
  118. package/dist/typechain-types/Exchange_v2.js +2 -0
  119. package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts +148 -0
  120. package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts.map +1 -0
  121. package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.js +2 -0
  122. package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts +1204 -0
  123. package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts.map +1 -0
  124. package/dist/typechain-types/FixedIncomeVaultProvider_v1.js +2 -0
  125. package/dist/typechain-types/IOFT.d.ts +247 -0
  126. package/dist/typechain-types/IOFT.d.ts.map +1 -0
  127. package/dist/typechain-types/IOFT.js +2 -0
  128. package/dist/typechain-types/IRewardVault.d.ts +649 -0
  129. package/dist/typechain-types/IRewardVault.d.ts.map +1 -0
  130. package/dist/typechain-types/IRewardVault.js +2 -0
  131. package/dist/typechain-types/KumaOFTAdapterUSDC.d.ts +638 -0
  132. package/dist/typechain-types/KumaOFTAdapterUSDC.d.ts.map +1 -0
  133. package/dist/typechain-types/KumaOFTAdapterUSDC.js +2 -0
  134. package/dist/typechain-types/KumaOFTUSDC.d.ts +756 -0
  135. package/dist/typechain-types/KumaOFTUSDC.d.ts.map +1 -0
  136. package/dist/typechain-types/KumaOFTUSDC.js +2 -0
  137. package/dist/typechain-types/KumaStargateForwarder_v1.d.ts +252 -0
  138. package/dist/typechain-types/KumaStargateForwarder_v1.d.ts.map +1 -0
  139. package/dist/typechain-types/KumaStargateForwarder_v1.js +2 -0
  140. package/dist/typechain-types/KumaStargateForwarder_v2.d.ts +252 -0
  141. package/dist/typechain-types/KumaStargateForwarder_v2.d.ts.map +1 -0
  142. package/dist/typechain-types/KumaStargateForwarder_v2.js +2 -0
  143. package/dist/typechain-types/ProfitShareVaultProvider_v1.d.ts +1095 -0
  144. package/dist/typechain-types/ProfitShareVaultProvider_v1.d.ts.map +1 -0
  145. package/dist/typechain-types/ProfitShareVaultProvider_v1.js +2 -0
  146. package/dist/typechain-types/StargatePoolUSDC.d.ts +956 -0
  147. package/dist/typechain-types/StargatePoolUSDC.d.ts.map +1 -0
  148. package/dist/typechain-types/StargatePoolUSDC.js +2 -0
  149. package/dist/typechain-types/common.d.ts +51 -0
  150. package/dist/typechain-types/common.d.ts.map +1 -0
  151. package/dist/typechain-types/common.js +2 -0
  152. package/dist/typechain-types/factories/ERC20__factory.d.ts +226 -0
  153. package/dist/typechain-types/factories/ERC20__factory.d.ts.map +1 -0
  154. package/dist/typechain-types/factories/ERC20__factory.js +305 -0
  155. package/dist/typechain-types/factories/EarningsEscrow__factory.d.ts +370 -0
  156. package/dist/typechain-types/factories/EarningsEscrow__factory.d.ts.map +1 -0
  157. package/dist/typechain-types/factories/EarningsEscrow__factory.js +485 -0
  158. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.d.ts +359 -0
  159. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.d.ts.map +1 -0
  160. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.js +471 -0
  161. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.d.ts +419 -0
  162. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.d.ts.map +1 -0
  163. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.js +545 -0
  164. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v3__factory.d.ts +546 -0
  165. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v3__factory.d.ts.map +1 -0
  166. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v3__factory.js +710 -0
  167. package/dist/typechain-types/factories/Exchange_v1__factory.d.ts +2852 -0
  168. package/dist/typechain-types/factories/Exchange_v1__factory.d.ts.map +1 -0
  169. package/dist/typechain-types/factories/Exchange_v1__factory.js +3661 -0
  170. package/dist/typechain-types/factories/Exchange_v2__factory.d.ts +2832 -0
  171. package/dist/typechain-types/factories/Exchange_v2__factory.d.ts.map +1 -0
  172. package/dist/typechain-types/factories/Exchange_v2__factory.js +3636 -0
  173. package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.d.ts +180 -0
  174. package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.d.ts.map +1 -0
  175. package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.js +246 -0
  176. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts +2092 -0
  177. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts.map +1 -0
  178. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.js +2702 -0
  179. package/dist/typechain-types/factories/IOFT__factory.d.ts +352 -0
  180. package/dist/typechain-types/factories/IOFT__factory.d.ts.map +1 -0
  181. package/dist/typechain-types/factories/IOFT__factory.js +464 -0
  182. package/dist/typechain-types/factories/IRewardVault__factory.d.ts +1019 -0
  183. package/dist/typechain-types/factories/IRewardVault__factory.d.ts.map +1 -0
  184. package/dist/typechain-types/factories/IRewardVault__factory.js +1311 -0
  185. package/dist/typechain-types/factories/KumaOFTAdapterUSDC__factory.d.ts +996 -0
  186. package/dist/typechain-types/factories/KumaOFTAdapterUSDC__factory.d.ts.map +1 -0
  187. package/dist/typechain-types/factories/KumaOFTAdapterUSDC__factory.js +1306 -0
  188. package/dist/typechain-types/factories/KumaOFTUSDC__factory.d.ts +1234 -0
  189. package/dist/typechain-types/factories/KumaOFTUSDC__factory.d.ts.map +1 -0
  190. package/dist/typechain-types/factories/KumaOFTUSDC__factory.js +1619 -0
  191. package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.d.ts +354 -0
  192. package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.d.ts.map +1 -0
  193. package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.js +464 -0
  194. package/dist/typechain-types/factories/KumaStargateForwarder_v2__factory.d.ts +370 -0
  195. package/dist/typechain-types/factories/KumaStargateForwarder_v2__factory.d.ts.map +1 -0
  196. package/dist/typechain-types/factories/KumaStargateForwarder_v2__factory.js +486 -0
  197. package/dist/typechain-types/factories/ProfitShareVaultProvider_v1__factory.d.ts +1914 -0
  198. package/dist/typechain-types/factories/ProfitShareVaultProvider_v1__factory.d.ts.map +1 -0
  199. package/dist/typechain-types/factories/ProfitShareVaultProvider_v1__factory.js +2475 -0
  200. package/dist/typechain-types/factories/StargatePoolUSDC__factory.d.ts +1557 -0
  201. package/dist/typechain-types/factories/StargatePoolUSDC__factory.d.ts.map +1 -0
  202. package/dist/typechain-types/factories/StargatePoolUSDC__factory.js +2019 -0
  203. package/dist/typechain-types/factories/index.d.ts +5 -0
  204. package/dist/typechain-types/factories/index.d.ts.map +1 -0
  205. package/dist/typechain-types/factories/index.js +13 -0
  206. package/dist/typechain-types/index.d.ts +10 -0
  207. package/dist/typechain-types/index.d.ts.map +1 -0
  208. package/dist/typechain-types/index.js +15 -0
  209. package/dist/types/delegatedKeys.d.ts +44 -0
  210. package/dist/types/delegatedKeys.d.ts.map +1 -0
  211. package/dist/types/delegatedKeys.js +2 -0
  212. package/dist/types/enums/index.d.ts +4 -0
  213. package/dist/types/enums/index.d.ts.map +1 -0
  214. package/dist/types/enums/index.js +6 -0
  215. package/dist/types/enums/request.d.ts +980 -0
  216. package/dist/types/enums/request.d.ts.map +1 -0
  217. package/dist/types/enums/request.js +906 -0
  218. package/dist/types/enums/response.d.ts +329 -0
  219. package/dist/types/enums/response.d.ts.map +1 -0
  220. package/dist/types/enums/response.js +296 -0
  221. package/dist/types/enums/signature.d.ts +118 -0
  222. package/dist/types/enums/signature.d.ts.map +1 -0
  223. package/dist/types/enums/signature.js +131 -0
  224. package/dist/types/errors.d.ts +5 -0
  225. package/dist/types/errors.d.ts.map +1 -0
  226. package/dist/types/errors.js +2 -0
  227. package/dist/types/index.d.ts +9 -0
  228. package/dist/types/index.d.ts.map +1 -0
  229. package/dist/types/index.js +10 -0
  230. package/dist/types/orderBook.d.ts +72 -0
  231. package/dist/types/orderBook.d.ts.map +1 -0
  232. package/dist/types/orderBook.js +2 -0
  233. package/dist/types/rest/common/common.d.ts +118 -0
  234. package/dist/types/rest/common/common.d.ts.map +1 -0
  235. package/dist/types/rest/common/common.js +2 -0
  236. package/dist/types/rest/common/guards.d.ts +8 -0
  237. package/dist/types/rest/common/guards.d.ts.map +1 -0
  238. package/dist/types/rest/common/guards.js +14 -0
  239. package/dist/types/rest/endpoints/AssociateWallet.d.ts +40 -0
  240. package/dist/types/rest/endpoints/AssociateWallet.d.ts.map +1 -0
  241. package/dist/types/rest/endpoints/AssociateWallet.js +2 -0
  242. package/dist/types/rest/endpoints/CancelOrders.d.ts +134 -0
  243. package/dist/types/rest/endpoints/CancelOrders.d.ts.map +1 -0
  244. package/dist/types/rest/endpoints/CancelOrders.js +2 -0
  245. package/dist/types/rest/endpoints/CreateOrder.d.ts +401 -0
  246. package/dist/types/rest/endpoints/CreateOrder.d.ts.map +1 -0
  247. package/dist/types/rest/endpoints/CreateOrder.js +2 -0
  248. package/dist/types/rest/endpoints/GetAuthenticationToken.d.ts +39 -0
  249. package/dist/types/rest/endpoints/GetAuthenticationToken.d.ts.map +1 -0
  250. package/dist/types/rest/endpoints/GetAuthenticationToken.js +2 -0
  251. package/dist/types/rest/endpoints/GetCandles.d.ts +115 -0
  252. package/dist/types/rest/endpoints/GetCandles.d.ts.map +1 -0
  253. package/dist/types/rest/endpoints/GetCandles.js +2 -0
  254. package/dist/types/rest/endpoints/GetDeposits.d.ts +109 -0
  255. package/dist/types/rest/endpoints/GetDeposits.d.ts.map +1 -0
  256. package/dist/types/rest/endpoints/GetDeposits.js +2 -0
  257. package/dist/types/rest/endpoints/GetExchange.d.ts +78 -0
  258. package/dist/types/rest/endpoints/GetExchange.d.ts.map +1 -0
  259. package/dist/types/rest/endpoints/GetExchange.js +9 -0
  260. package/dist/types/rest/endpoints/GetFills.d.ts +178 -0
  261. package/dist/types/rest/endpoints/GetFills.d.ts.map +1 -0
  262. package/dist/types/rest/endpoints/GetFills.js +2 -0
  263. package/dist/types/rest/endpoints/GetFundingPayments.d.ts +52 -0
  264. package/dist/types/rest/endpoints/GetFundingPayments.d.ts.map +1 -0
  265. package/dist/types/rest/endpoints/GetFundingPayments.js +2 -0
  266. package/dist/types/rest/endpoints/GetFundingRates.d.ts +34 -0
  267. package/dist/types/rest/endpoints/GetFundingRates.d.ts.map +1 -0
  268. package/dist/types/rest/endpoints/GetFundingRates.js +2 -0
  269. package/dist/types/rest/endpoints/GetGasFees.d.ts +23 -0
  270. package/dist/types/rest/endpoints/GetGasFees.d.ts.map +1 -0
  271. package/dist/types/rest/endpoints/GetGasFees.js +2 -0
  272. package/dist/types/rest/endpoints/GetHistoricalPnL.d.ts +39 -0
  273. package/dist/types/rest/endpoints/GetHistoricalPnL.d.ts.map +1 -0
  274. package/dist/types/rest/endpoints/GetHistoricalPnL.js +2 -0
  275. package/dist/types/rest/endpoints/GetInitialMarginFractionOverride.d.ts +31 -0
  276. package/dist/types/rest/endpoints/GetInitialMarginFractionOverride.d.ts.map +1 -0
  277. package/dist/types/rest/endpoints/GetInitialMarginFractionOverride.js +2 -0
  278. package/dist/types/rest/endpoints/GetLiquidations.d.ts +52 -0
  279. package/dist/types/rest/endpoints/GetLiquidations.d.ts.map +1 -0
  280. package/dist/types/rest/endpoints/GetLiquidations.js +2 -0
  281. package/dist/types/rest/endpoints/GetMarketMakerRewardsEpochs.d.ts +534 -0
  282. package/dist/types/rest/endpoints/GetMarketMakerRewardsEpochs.d.ts.map +1 -0
  283. package/dist/types/rest/endpoints/GetMarketMakerRewardsEpochs.js +2 -0
  284. package/dist/types/rest/endpoints/GetMarkets.d.ts +161 -0
  285. package/dist/types/rest/endpoints/GetMarkets.d.ts.map +1 -0
  286. package/dist/types/rest/endpoints/GetMarkets.js +2 -0
  287. package/dist/types/rest/endpoints/GetOrderBook.d.ts +176 -0
  288. package/dist/types/rest/endpoints/GetOrderBook.d.ts.map +1 -0
  289. package/dist/types/rest/endpoints/GetOrderBook.js +2 -0
  290. package/dist/types/rest/endpoints/GetOrders.d.ts +188 -0
  291. package/dist/types/rest/endpoints/GetOrders.d.ts.map +1 -0
  292. package/dist/types/rest/endpoints/GetOrders.js +2 -0
  293. package/dist/types/rest/endpoints/GetPing.d.ts +8 -0
  294. package/dist/types/rest/endpoints/GetPing.d.ts.map +1 -0
  295. package/dist/types/rest/endpoints/GetPing.js +2 -0
  296. package/dist/types/rest/endpoints/GetPositions.d.ts +104 -0
  297. package/dist/types/rest/endpoints/GetPositions.d.ts.map +1 -0
  298. package/dist/types/rest/endpoints/GetPositions.js +2 -0
  299. package/dist/types/rest/endpoints/GetTickers.d.ts +129 -0
  300. package/dist/types/rest/endpoints/GetTickers.d.ts.map +1 -0
  301. package/dist/types/rest/endpoints/GetTickers.js +2 -0
  302. package/dist/types/rest/endpoints/GetTime.d.ts +14 -0
  303. package/dist/types/rest/endpoints/GetTime.d.ts.map +1 -0
  304. package/dist/types/rest/endpoints/GetTime.js +2 -0
  305. package/dist/types/rest/endpoints/GetTrades.d.ts +62 -0
  306. package/dist/types/rest/endpoints/GetTrades.d.ts.map +1 -0
  307. package/dist/types/rest/endpoints/GetTrades.js +2 -0
  308. package/dist/types/rest/endpoints/GetWallets.d.ts +121 -0
  309. package/dist/types/rest/endpoints/GetWallets.d.ts.map +1 -0
  310. package/dist/types/rest/endpoints/GetWallets.js +2 -0
  311. package/dist/types/rest/endpoints/GetWithdrawals.d.ts +98 -0
  312. package/dist/types/rest/endpoints/GetWithdrawals.d.ts.map +1 -0
  313. package/dist/types/rest/endpoints/GetWithdrawals.js +2 -0
  314. package/dist/types/rest/endpoints/GetWithdrawalsFromManagedAccount.d.ts +98 -0
  315. package/dist/types/rest/endpoints/GetWithdrawalsFromManagedAccount.d.ts.map +1 -0
  316. package/dist/types/rest/endpoints/GetWithdrawalsFromManagedAccount.js +2 -0
  317. package/dist/types/rest/endpoints/Payouts.d.ts +199 -0
  318. package/dist/types/rest/endpoints/Payouts.d.ts.map +1 -0
  319. package/dist/types/rest/endpoints/Payouts.js +2 -0
  320. package/dist/types/rest/endpoints/SetInitialMarginFractionOverride.d.ts +83 -0
  321. package/dist/types/rest/endpoints/SetInitialMarginFractionOverride.d.ts.map +1 -0
  322. package/dist/types/rest/endpoints/SetInitialMarginFractionOverride.js +2 -0
  323. package/dist/types/rest/endpoints/WithdrawFunds.d.ts +144 -0
  324. package/dist/types/rest/endpoints/WithdrawFunds.d.ts.map +1 -0
  325. package/dist/types/rest/endpoints/WithdrawFunds.js +2 -0
  326. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByQuantity.d.ts +161 -0
  327. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByQuantity.d.ts.map +1 -0
  328. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByQuantity.js +2 -0
  329. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByShares.d.ts +160 -0
  330. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByShares.d.ts.map +1 -0
  331. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByShares.js +2 -0
  332. package/dist/types/rest/endpoints/index.d.ts +33 -0
  333. package/dist/types/rest/endpoints/index.d.ts.map +1 -0
  334. package/dist/types/rest/endpoints/index.js +35 -0
  335. package/dist/types/rest/endpoints/internal.d.ts +329 -0
  336. package/dist/types/rest/endpoints/internal.d.ts.map +1 -0
  337. package/dist/types/rest/endpoints/internal.js +14 -0
  338. package/dist/types/rest/index.d.ts +4 -0
  339. package/dist/types/rest/index.d.ts.map +1 -0
  340. package/dist/types/rest/index.js +6 -0
  341. package/dist/types/swaps.d.ts +11 -0
  342. package/dist/types/swaps.d.ts.map +1 -0
  343. package/dist/types/swaps.js +2 -0
  344. package/dist/types/utils.d.ts +67 -0
  345. package/dist/types/utils.d.ts.map +1 -0
  346. package/dist/types/utils.js +3 -0
  347. package/dist/types/webSocket/base.d.ts +83 -0
  348. package/dist/types/webSocket/base.d.ts.map +1 -0
  349. package/dist/types/webSocket/base.js +2 -0
  350. package/dist/types/webSocket/constants.d.ts +41 -0
  351. package/dist/types/webSocket/constants.d.ts.map +1 -0
  352. package/dist/types/webSocket/constants.js +54 -0
  353. package/dist/types/webSocket/index.d.ts +6 -0
  354. package/dist/types/webSocket/index.d.ts.map +1 -0
  355. package/dist/types/webSocket/index.js +8 -0
  356. package/dist/types/webSocket/options.d.ts +276 -0
  357. package/dist/types/webSocket/options.d.ts.map +1 -0
  358. package/dist/types/webSocket/options.js +2 -0
  359. package/dist/types/webSocket/request/index.d.ts +3 -0
  360. package/dist/types/webSocket/request/index.d.ts.map +1 -0
  361. package/dist/types/webSocket/request/index.js +5 -0
  362. package/dist/types/webSocket/request/request.d.ts +137 -0
  363. package/dist/types/webSocket/request/request.d.ts.map +1 -0
  364. package/dist/types/webSocket/request/request.js +2 -0
  365. package/dist/types/webSocket/request/subscriptions.d.ts +498 -0
  366. package/dist/types/webSocket/request/subscriptions.d.ts.map +1 -0
  367. package/dist/types/webSocket/request/subscriptions.js +2 -0
  368. package/dist/types/webSocket/response/candles.d.ts +138 -0
  369. package/dist/types/webSocket/response/candles.d.ts.map +1 -0
  370. package/dist/types/webSocket/response/candles.js +2 -0
  371. package/dist/types/webSocket/response/deposits.d.ts +80 -0
  372. package/dist/types/webSocket/response/deposits.d.ts.map +1 -0
  373. package/dist/types/webSocket/response/deposits.js +2 -0
  374. package/dist/types/webSocket/response/fundingPayments.d.ts +78 -0
  375. package/dist/types/webSocket/response/fundingPayments.d.ts.map +1 -0
  376. package/dist/types/webSocket/response/fundingPayments.js +2 -0
  377. package/dist/types/webSocket/response/index.d.ts +13 -0
  378. package/dist/types/webSocket/response/index.d.ts.map +1 -0
  379. package/dist/types/webSocket/response/index.js +15 -0
  380. package/dist/types/webSocket/response/liquidations.d.ts +78 -0
  381. package/dist/types/webSocket/response/liquidations.d.ts.map +1 -0
  382. package/dist/types/webSocket/response/liquidations.js +2 -0
  383. package/dist/types/webSocket/response/orderbook.d.ts +214 -0
  384. package/dist/types/webSocket/response/orderbook.d.ts.map +1 -0
  385. package/dist/types/webSocket/response/orderbook.js +2 -0
  386. package/dist/types/webSocket/response/orders.d.ts +355 -0
  387. package/dist/types/webSocket/response/orders.d.ts.map +1 -0
  388. package/dist/types/webSocket/response/orders.js +2 -0
  389. package/dist/types/webSocket/response/ordersFill.d.ts +138 -0
  390. package/dist/types/webSocket/response/ordersFill.d.ts.map +1 -0
  391. package/dist/types/webSocket/response/ordersFill.js +2 -0
  392. package/dist/types/webSocket/response/positions.d.ts +120 -0
  393. package/dist/types/webSocket/response/positions.d.ts.map +1 -0
  394. package/dist/types/webSocket/response/positions.js +2 -0
  395. package/dist/types/webSocket/response/tickers.d.ts +131 -0
  396. package/dist/types/webSocket/response/tickers.d.ts.map +1 -0
  397. package/dist/types/webSocket/response/tickers.js +2 -0
  398. package/dist/types/webSocket/response/trades.d.ts +90 -0
  399. package/dist/types/webSocket/response/trades.d.ts.map +1 -0
  400. package/dist/types/webSocket/response/trades.js +2 -0
  401. package/dist/types/webSocket/response/webclient/base.d.ts +24 -0
  402. package/dist/types/webSocket/response/webclient/base.d.ts.map +1 -0
  403. package/dist/types/webSocket/response/webclient/base.js +2 -0
  404. package/dist/types/webSocket/response/webclient/events/exchangeStatus.d.ts +31 -0
  405. package/dist/types/webSocket/response/webclient/events/exchangeStatus.d.ts.map +1 -0
  406. package/dist/types/webSocket/response/webclient/events/exchangeStatus.js +2 -0
  407. package/dist/types/webSocket/response/webclient/events/index.d.ts +4 -0
  408. package/dist/types/webSocket/response/webclient/events/index.d.ts.map +1 -0
  409. package/dist/types/webSocket/response/webclient/events/index.js +6 -0
  410. package/dist/types/webSocket/response/webclient/events/reloadBanners.d.ts +17 -0
  411. package/dist/types/webSocket/response/webclient/events/reloadBanners.d.ts.map +1 -0
  412. package/dist/types/webSocket/response/webclient/events/reloadBanners.js +2 -0
  413. package/dist/types/webSocket/response/webclient/events/transactionSettled.d.ts +76 -0
  414. package/dist/types/webSocket/response/webclient/events/transactionSettled.d.ts.map +1 -0
  415. package/dist/types/webSocket/response/webclient/events/transactionSettled.js +2 -0
  416. package/dist/types/webSocket/response/webclient/index.d.ts +3 -0
  417. package/dist/types/webSocket/response/webclient/index.d.ts.map +1 -0
  418. package/dist/types/webSocket/response/webclient/index.js +5 -0
  419. package/dist/types/webSocket/response/webclient/webclient.d.ts +13 -0
  420. package/dist/types/webSocket/response/webclient/webclient.d.ts.map +1 -0
  421. package/dist/types/webSocket/response/webclient/webclient.js +2 -0
  422. package/dist/types/webSocket/response/withdrawals.d.ts +83 -0
  423. package/dist/types/webSocket/response/withdrawals.d.ts.map +1 -0
  424. package/dist/types/webSocket/response/withdrawals.js +2 -0
  425. package/dist/utils.d.ts +63 -0
  426. package/dist/utils.d.ts.map +1 -0
  427. package/dist/utils.js +136 -0
  428. package/package.json +200 -0
@@ -0,0 +1,1199 @@
1
+ import Axios from 'axios';
2
+ import { INTERNAL_SYMBOL } from '#utils';
3
+ import type * as katanaPerps from '#index';
4
+ import type { AnyObj } from '#types/utils';
5
+ import type { AxiosInstance, AxiosRequestConfig, CreateAxiosDefaults } from 'axios';
6
+ /**
7
+ * Authenticated API client configuration options.
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * import { RestAuthenticatedClient } from '@katanaperps/katana-perps-sdk';
12
+ *
13
+ * // Edit the values before for your environment
14
+ * const authenticatedClient = new RestAuthenticatedClient({
15
+ * sandbox: false,
16
+ * apiKey: '1f7c4f52-4af7-4e1b-aa94-94fac8d931aa',
17
+ * apiSecret: 'axuh3ywgg854aq7m73oy6gnnpj5ar9a67szuw5lclbz77zqu0j',
18
+ * walletPrivateKey: '0x...'
19
+ * });
20
+ * ```
21
+ *
22
+ * <br />
23
+ *
24
+ * ---
25
+ *
26
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/interfaces/RestAuthenticatedClientOptions.html)
27
+ * @see client {@link RestAuthenticatedClient}
28
+ *
29
+ * @category API Clients
30
+ */
31
+ export interface RestAuthenticatedClientOptions {
32
+ /**
33
+ * - Used to authenticate the requesting user making requests to the API.
34
+ */
35
+ apiKey: string;
36
+ /**
37
+ * - Used to compute HMAC signature for authenticated requests
38
+ */
39
+ apiSecret: string;
40
+ /**
41
+ * The private key for the wallet making requests to the API.
42
+ *
43
+ * **Note:** This should always be provided except in advanced use case scenarios.
44
+ *
45
+ * - When **provided**, used to create ECDSA signatures for authenticated requests automatically.
46
+ * - When **not provided**, must provider your own {@link katanaperps.SignTypedData signer} to sign requests
47
+ * that require an ECDSA signature.
48
+ */
49
+ walletPrivateKey?: string;
50
+ /**
51
+ * - If `true`, the client will point to [Katana Perps Sandbox API](https;//api-docs-v1-perps.katana.network/#sandbox)
52
+ * - If not provided or `false`, will point to the Katana Perps Production API.
53
+ *
54
+ * @defaultValue false
55
+ */
56
+ sandbox?: boolean;
57
+ /**
58
+ * - Optionally provide a custom baseURL to use instead of the automatically
59
+ * derived value based on the {@link sandbox} option.
60
+ *
61
+ * @internal
62
+ */
63
+ baseURL?: string;
64
+ /**
65
+ * **Optionally** provide the `exchangeContractAddress` as returned by the public clients
66
+ * {@link RestPublicClient.getExchange getExchange} response's
67
+ * {@link katanaperps.KatanaPerpsExchange.exchangeContractAddress exchangeContractAddress} property.
68
+ *
69
+ * - If not provided, this will be fetched and cached automatically from the public client before
70
+ * making the first request which requires it.
71
+ *
72
+ * @internal
73
+ */
74
+ exchangeContractAddress?: string;
75
+ /**
76
+ * Optionally provide the `chainId` as returned by the public clients
77
+ * {@link RestPublicClient.getExchange getExchange} response's
78
+ * {@link katanaperps.KatanaPerpsExchange.chainId chainId} property.
79
+ *
80
+ * - If not provided, this will be fetched and cached automatically from the public client before
81
+ * making the first request which requires it.
82
+ *
83
+ * @internal
84
+ */
85
+ chainId?: number;
86
+ /**
87
+ * Optionally provide the `bridgeAdapterContractAddress` as returned by the public clients
88
+ * {@link RestPublicClient.getExchange getExchange} response's
89
+ * {@link katanaperps.KatanaPerpsExchange.bridgeAdapterContractAddress bridgeAdapterContractAddress}
90
+ * property.
91
+ *
92
+ * - If not provided, this will be fetched and cached automatically from the public client before
93
+ * making the first request which requires it.
94
+ *
95
+ * @internal
96
+ */
97
+ bridgeAdapterContractAddress?: string;
98
+ /**
99
+ * - Changing this value will likely result in a broken client, internal use only.
100
+ *
101
+ * @defaultValue true
102
+ * @internal
103
+ */
104
+ autoCreateHmacHeader?: boolean;
105
+ /**
106
+ * - This is for internal use only and may not work as expected if used.
107
+ *
108
+ * @internal
109
+ */
110
+ axiosConfig?: CreateAxiosDefaults;
111
+ }
112
+ /**
113
+ * The {@link RestAuthenticatedClient} is used to make authenticated requests to the Katana Perps API. It includes
114
+ * methods that make requests on behalf of a specific wallet such as creating and cancelling orders.
115
+ *
116
+ * - The client requires the following properties to automatically handle authentication
117
+ * of requests:
118
+ * - {@link RestAuthenticatedClientOptions.apiKey apiKey}
119
+ * - {@link RestAuthenticatedClientOptions.apiSecret apiSecret}
120
+ * - {@link RestAuthenticatedClientOptions.walletPrivateKey walletPrivateKey}
121
+ * - Optionally, a {@link RestAuthenticatedClientOptions.sandbox sandbox} option can
122
+ * be set to `true` in order to point to the Katana Perps Sandbox API.
123
+ *
124
+ * @example
125
+ * ```typescript
126
+ * import { RestAuthenticatedClient } from '@katanaperps/katana-perps-sdk';
127
+ *
128
+ * // Edit the values before for your environment
129
+ * const authenticatedClient = new RestAuthenticatedClient({
130
+ * sandbox: false,
131
+ * apiKey: '1f7c4f52-4af7-4e1b-aa94-94fac8d931aa',
132
+ * apiSecret: 'axuh3ywgg854aq7m73oy6gnnpj5ar9a67szuw5lclbz77zqu0j',
133
+ * walletPrivateKey: '0x...'
134
+ * });
135
+ * ```
136
+ *
137
+ * <br />
138
+ *
139
+ * ---
140
+ *
141
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html)
142
+ * @see options {@link RestAuthenticatedClientOptions}
143
+ *
144
+ * @category API Clients
145
+ * @category KatanaPerps - Get Market Maker Rewards Epochs
146
+ * @category KatanaPerps - Get Wallets
147
+ * @category KatanaPerps - Get Positions
148
+ * @category KatanaPerps - Associate Wallet
149
+ * @category KatanaPerps - Create Order
150
+ * @category KatanaPerps - Cancel Order
151
+ * @category KatanaPerps - Get Orders
152
+ * @category KatanaPerps - Get Fills
153
+ * @category KatanaPerps - Get Payouts
154
+ * @category KatanaPerps - Authorize Payout
155
+ * @category KatanaPerps - Get Deposits
156
+ * @category KatanaPerps - Get Withdrawals
157
+ * @category KatanaPerps - Withdraw Funds
158
+ * @category KatanaPerps - Get Funding Payments
159
+ * @category KatanaPerps - Get Historical PnL
160
+ * @category KatanaPerps - Get WebSocket Token
161
+ */
162
+ export declare class RestAuthenticatedClient {
163
+ #private;
164
+ /**
165
+ * When creating an authenticated client, a {@link katanaperps.RestPublicClient RestPublicClient} is automatically
166
+ * created and can be used based on the config given for this client.
167
+ *
168
+ * - Can be utilized to fetch public data instead of creating both clients.
169
+ * - Used when fetching the {@link katanaperps.KatanaPerpsExchange.exchangeContractAddress exchangeContractAddress}
170
+ * and {@link katanaperps.KatanaPerpsExchange.chainId chainId} properties from the public client's
171
+ * {@link RestPublicClient.getExchange getExchange} method.
172
+ *
173
+ * @example
174
+ * ```typescript
175
+ * import { RestAuthenticatedClient } from '@katanaperps/katana-perps-sdk';
176
+ *
177
+ * // Edit the values before for your environment
178
+ * const client = new RestAuthenticatedClient({
179
+ * sandbox: true,
180
+ * apiKey: '1f7c4f52-4af7-4e1b-aa94-94fac8d931aa',
181
+ * apiSecret: 'axuh3ywgg854aq7m73oy6gnnpj5ar9a67szuw5lclbz77zqu0j',
182
+ * walletPrivateKey: '0x...'
183
+ * });
184
+ *
185
+ * const wallets = await client.getWallets();
186
+ * ```
187
+ *
188
+ * <br />
189
+ *
190
+ * ---
191
+ *
192
+ * @see client {@link katanaperps.RestPublicClient RestPublicClient}
193
+ *
194
+ * @category Accessors
195
+ */
196
+ readonly public: katanaPerps.RestPublicClient;
197
+ readonly axios: AxiosInstance;
198
+ /**
199
+ * Gets the current configured options for the client.
200
+ *
201
+ * - The `baseURL` is automatically derived from the {@link sandbox} option during construction
202
+ * unless a custom `baseURL` is given.
203
+ * - The `sandbox` will either default to `false` unless provided in the client constructor.
204
+ * - Both `exchangeContractAddress` and `chainId` use the provided values during construction
205
+ * or are automatically fetched from the {@link public} client.
206
+ *
207
+ * @category Accessors
208
+ *
209
+ * @internal
210
+ */
211
+ get config(): Readonly<{
212
+ baseURL: string;
213
+ sandbox: boolean;
214
+ autoCreateHmacHeader: boolean;
215
+ exchangeContractAddress?: string | undefined;
216
+ chainId?: number | undefined;
217
+ bridgeAdapterContractAddress?: string | undefined;
218
+ }>;
219
+ /**
220
+ * The {@link RestAuthenticatedClient} is used to make authenticated requests to the Katana Perps API. It includes
221
+ * methods that make requests on behalf of a specific wallet such as creating and cancelling orders.
222
+ *
223
+ * - The client requires the following properties to automatically handle authentication
224
+ * of requests:
225
+ * - {@link RestAuthenticatedClientOptions.apiKey apiKey}
226
+ * - {@link RestAuthenticatedClientOptions.apiSecret apiSecret}
227
+ * - {@link RestAuthenticatedClientOptions.walletPrivateKey walletPrivateKey}
228
+ * - Optionally, a {@link RestAuthenticatedClientOptions.sandbox sandbox} option can
229
+ * be set to `true` in order to point to the Katana Perps Sandbox API.
230
+ *
231
+ * @example
232
+ * ```typescript
233
+ * import { RestAuthenticatedClient } from '@katanaperps/katana-perps-sdk';
234
+ *
235
+ * // Edit the values before for your environment
236
+ * const client = new RestAuthenticatedClient({
237
+ * sandbox: true,
238
+ * apiKey: '1f7c4f52-4af7-4e1b-aa94-94fac8d931aa',
239
+ * apiSecret: 'axuh3ywgg854aq7m73oy6gnnpj5ar9a67szuw5lclbz77zqu0j',
240
+ * walletPrivateKey: '0x...'
241
+ * });
242
+ *
243
+ * const wallets = await client.getWallets();
244
+ * ```
245
+ *
246
+ * <br />
247
+ *
248
+ * ---
249
+ *
250
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/WebSocketClient.html)
251
+ * @see options {@link RestAuthenticatedClientOptions}
252
+ *
253
+ * @category Constructor
254
+ */
255
+ constructor(options: RestAuthenticatedClientOptions);
256
+ /**
257
+ * <br />
258
+ *
259
+ * ---
260
+ * **Endpoint Parameters**
261
+ *
262
+ * > - HTTP Request: `GET /v1/marketMakerRewardsV1/epoch`
263
+ * > - Endpoint Security: [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
264
+ * > - API Key Scope: [Read](https://api-docs-v1-perps.katana.network/#api-keys)
265
+ * ---
266
+ *
267
+ * <br />
268
+ *
269
+ * <details>
270
+ * <summary><span style="font-size:1.4em;font-weight:bold;">About Overloads</span></summary>
271
+ * <p>
272
+ * This method has two overloads to provide type-safe responses:
273
+ * <ul>
274
+ * <li>
275
+ * Calling this method with a {@link katanaperps.RestRequestGetMarketMakerRewardsEpochWithWallet.wallet wallet}
276
+ * parameter returns {@link katanaperps.MarketMakerRewardsEpochDetailedWithWallet MarketMakerRewardsEpochDetailedWithWallet}
277
+ * </li>
278
+ * <li>
279
+ * Calling this method without a {@link katanaperps.RestRequestGetMarketMakerRewardsEpochWithWallet.wallet wallet}
280
+ * parameter returns {@link katanaperps.MarketMakerRewardsEpochDetailedWithoutWallet MarketMakerRewardsEpochDetailedWithoutWallet}
281
+ * </li>
282
+ * </ul>
283
+ * </p>
284
+ * </details>
285
+ * <br />
286
+ *
287
+ * <br />
288
+ *
289
+ * <h3>Overload 1: With Wallet</h3>
290
+ *
291
+ * <p>The Get Epoch endpoint provides detailed information about
292
+ * epoch configuration as well as wallet epoch performance.</p>
293
+ *
294
+ * > When **providing** a wallet address, the resulting response will
295
+ * > be {@link katanaperps.MarketMakerRewardsEpochDetailedWithWallet MarketMakerRewardsEpochDetailedWithWallet}
296
+ */
297
+ getMarketMakerRewardsEpoch(params: katanaPerps.RestRequestGetMarketMakerRewardsEpochWithWallet): Promise<katanaPerps.MarketMakerRewardsEpochDetailedWithWallet>;
298
+ /**
299
+ * <h3>Overload 2: Without Wallet</h3>
300
+ *
301
+ * > When **not** providing a {@link katanaperps.RestRequestGetMarketMakerRewardsEpochWithWallet.wallet wallet},
302
+ * > the resulting response will be {@link katanaperps.MarketMakerRewardsEpochDetailedWithoutWallet MarketMakerRewardsEpochDetailedWithoutWallet}
303
+ *
304
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getMarketMakerRewardsEpoch)
305
+ * @see request {@link katanaperps.RestRequestGetMarketMakerRewardsEpoch RestRequestGetMarketMakerRewardsEpoch}
306
+ * @see response {@link katanaperps.RestResponseGetMarketMakerRewardsEpoch RestResponseGetMarketMakerRewardsEpoch}
307
+ * @see type {@link katanaperps.KatanaPerpsMarketMakerRewardsEpoch KatanaPerpsMarketMakerRewardsEpoch}
308
+ * @see related {@link getMarketMakerRewardsEpochs this.getMarketMakerRewardsEpochs}
309
+ *
310
+ * @category Rewards & Payouts
311
+ */
312
+ getMarketMakerRewardsEpoch(params: katanaPerps.RestRequestGetMarketMakerRewardsEpochWithoutWallet): Promise<katanaPerps.MarketMakerRewardsEpochDetailedWithoutWallet>;
313
+ /**
314
+ * The Get Epochs endpoint provides a list of the defined
315
+ * market maker rewards epochs.
316
+ *
317
+ * ---
318
+ * **Endpoint Parameters**
319
+ *
320
+ * > - HTTP Request: `GET /v1/marketMakerRewardsV1/epochs`
321
+ * > - Endpoint Security: [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
322
+ * > - API Key Scope: [Read](https://api-docs-v1-perps.katana.network/#api-keys)
323
+ * ---
324
+ *
325
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getMarketMakerRewardsEpochs)
326
+ * @see request {@link katanaperps.RestRequestGetMarketMakerRewardsEpochs RestRequestGetMarketMakerRewardsEpochs}
327
+ * @see response {@link katanaperps.RestResponseGetMarketMakerRewardsEpochs RestResponseGetMarketMakerRewardsEpochs}
328
+ * @see type {@link katanaperps.KatanaPerpsMarketMakerRewardsEpochSummary KatanaPerpsMarketMakerRewardsEpochSummary}
329
+ * @see related {@link getMarketMakerRewardsEpoch client.getMarketMakerRewardsEpoch}
330
+ *
331
+ * @category Rewards & Payouts
332
+ */
333
+ getMarketMakerRewardsEpochs(params?: katanaPerps.RestRequestGetMarketMakerRewardsEpochs): Promise<katanaPerps.RestResponseGetMarketMakerRewardsEpochs>;
334
+ /**
335
+ * Associates a wallet with an API account, allowing access to private data such as fills.
336
+ * Associating a wallet with an API account is often the first step in interacting with private
337
+ * read endpoints.
338
+ *
339
+ * ---
340
+ * **Endpoint Parameters**
341
+ *
342
+ * > - **HTTP Request:** `POST /v1/wallets`
343
+ * > - **Endpoint Security:** [Trade](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
344
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
345
+ * > - **Pagination:** `None`
346
+ * ---
347
+ *
348
+ * @returns
349
+ * - Returns the {@link katanaperps.KatanaPerpsWallet KatanaPerpsWallet} which was associated by the request.
350
+ *
351
+ * ---
352
+ *
353
+ * @example
354
+ * ```typescript
355
+ * const wallet = await client.associateWallet({
356
+ * nonce: uuidv1(),
357
+ * wallet: '0xA71C4aeeAabBBB8D2910F41C2ca3964b81F7310d',
358
+ * });
359
+ * ```
360
+ *
361
+ * <br />
362
+ *
363
+ * ---
364
+ *
365
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#associateWallet)
366
+ * @see request {@link katanaperps.RestRequestAssociateWallet RestRequestAssociateWallet}
367
+ * @see response {@link katanaperps.RestResponseAssociateWallet RestResponseAssociateWallet}
368
+ * @see type {@link katanaperps.KatanaPerpsWallet KatanaPerpsWallet}
369
+ *
370
+ * @category Wallets & Positions
371
+ */
372
+ associateWallet(params: katanaPerps.RestRequestAssociateWallet, referralCode?: string, signer?: undefined | katanaPerps.SignTypedData): Promise<katanaPerps.KatanaPerpsWallet>;
373
+ /**
374
+ * Returns information about the wallets associated with the API account.
375
+ *
376
+ * ---
377
+ * **Endpoint Parameters**
378
+ *
379
+ * > - **HTTP Request:** `GET /v1/wallets`
380
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
381
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
382
+ * > - **Pagination:** `None`
383
+ * ---
384
+ *
385
+ * @returns
386
+ * - An array of {@link katanaperps.KatanaPerpsWallet KatanaPerpsWallet} objects representing all associated wallets.
387
+ *
388
+ * ---
389
+ *
390
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getWallets)
391
+ * @see request {@link katanaperps.RestRequestGetWallets RestRequestGetWallets}
392
+ * @see response {@link katanaperps.RestResponseGetWallets RestResponseGetWallets}
393
+ * @see type {@link katanaperps.KatanaPerpsWallet KatanaPerpsWallet}
394
+ *
395
+ * @category Wallets & Positions
396
+ */
397
+ getWallets(params: katanaPerps.RestRequestGetWallets): Promise<katanaPerps.RestResponseGetWallets>;
398
+ /**
399
+ * Get Positions
400
+ *
401
+ * ---
402
+ * **Endpoint Parameters**
403
+ *
404
+ * > - **HTTP Request:** `GET /v1/positions`
405
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
406
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
407
+ * > - **Pagination:** `None`
408
+ * ---
409
+ *
410
+ * @returns
411
+ * - An array of {@link katanaperps.KatanaPerpsPosition KatanaPerpsPosition} objects representing all matching positions based
412
+ * on your requested params.
413
+ *
414
+ * ---
415
+ *
416
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getPositions)
417
+ * @see request {@link katanaperps.RestRequestGetPositions RestRequestGetPositions}
418
+ * @see response {@link katanaperps.RestResponseGetPositions RestResponseGetPositions}
419
+ * @see type {@link katanaperps.KatanaPerpsPosition KatanaPerpsPosition}
420
+ *
421
+ * @category Wallets & Positions
422
+ */
423
+ getPositions(params: katanaPerps.RestRequestGetPositions): Promise<katanaPerps.RestResponseGetPositions>;
424
+ /**
425
+ * Create and submit an order to the matching engine.
426
+ *
427
+ * - It is recommended to use the {@link katanaPerps.OrderType OrderType} enum when creating
428
+ * your requests. This provides inline documentation and ensures accuracy of the values.
429
+ * - Check out the {@link katanaperps.RestRequestOrder RestRequestOrder} type for an overview
430
+ * of the various parameters needed for different order types.
431
+ *
432
+ * ---
433
+ * **Endpoint Parameters**
434
+ *
435
+ * > - **HTTP Request:** `POST /v1/orders`
436
+ * > - **Endpoint Security:** [Trade](https://api-docs-v1-perps.katana.network/#endpointSecurityTrade)
437
+ * > - **API Key Scope:** [Trade](https://api-docs-v1-perps.katana.network/#api-keys)
438
+ * > - **Pagination:** `None`
439
+ * ---
440
+ *
441
+ * @returns
442
+ * - Returns the {@link katanaPerps.KatanaPerpsOrder KatanaPerpsOrder} which was created by the request.
443
+ *
444
+ * ---
445
+ *
446
+ * @example
447
+ * ```typescript
448
+ * import { OrderType, OrderSide } from '@katanaperps/katana-perps-sdk';
449
+ *
450
+ * try {
451
+ * const order = await client.createOrder({
452
+ * // always use the enum and define it first so that
453
+ * // the type of this params object change to the
454
+ * // appropriate interface with completion hints in IDE!
455
+ * type: OrderType.market,
456
+ * // this object is now narrowed to
457
+ * // interface: RestRequestOrderTypeMarket
458
+ * side: OrderSide.buy,
459
+ * nonce: uuidv1(),
460
+ * wallet: '0xA71C4aeeAabBBB8D2910F41C2ca3964b81F7310d',
461
+ * market: 'ETH-USD',
462
+ * quantity: '10.00000000'
463
+ * });
464
+ * } catch(e) {
465
+ * // order placement failed with an unexpected error
466
+ * // you may use isAxiosError(e) for stronger typing here if desired
467
+ * if (e.response?.data?.code === 'INSUFFICIENT_FUNDS') {
468
+ * // handle insufficient funds errors
469
+ * console.log('Insufficient funds to create order');
470
+ * }
471
+ * }
472
+ * ```
473
+ *
474
+ * <br />
475
+ *
476
+ * ---
477
+ *
478
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#createOrder)
479
+ * @see request {@link katanaperps.RestRequestOrder RestRequestOrder}
480
+ * @see response {@link katanaperps.RestResponseGetOrder RestResponseGetOrder}
481
+ * @see type {@link katanaPerps.KatanaPerpsOrder KatanaPerpsOrder}
482
+ *
483
+ * @category Orders
484
+ */
485
+ createOrder<T extends katanaPerps.OrderType>(params: katanaPerps.RestRequestOrder & {
486
+ type: T;
487
+ }, signer?: undefined | katanaPerps.SignTypedData): Promise<katanaPerps.RestResponseGetOrder>;
488
+ /**
489
+ * Cancel multiple matching orders using one of the following methods:
490
+ *
491
+ * - By {@link katanaperps.RestRequestCancelOrdersByWallet.wallet wallet} (params: {@link katanaperps.RestRequestCancelOrdersByWallet RestRequestCancelOrdersByWallet})
492
+ * - By {@link katanaperps.RestRequestCancelOrdersByMarket.wallet wallet} & {@link katanaperps.RestRequestCancelOrdersByMarket.market market} (params: {@link katanaperps.RestRequestCancelOrdersByMarket RestRequestCancelOrdersByMarket})
493
+ * - By {@link katanaperps.RestRequestCancelOrdersByMarket.wallet wallet} & {@link katanaperps.RestRequestCancelOrdersByOrderIds.orderIds orderIds} (params: {@link katanaperps.RestRequestCancelOrdersByOrderIds RestRequestCancelOrdersByOrderIds})
494
+ *
495
+ * ---
496
+ * **Endpoint Parameters**
497
+ *
498
+ * > - **HTTP Request:** `DELETE /v1/orders`
499
+ * > - **Endpoint Security:** [Trade](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
500
+ * > - **API Key Scope:** [Trade](https://api-docs-v1-perps.katana.network/#api-keys)
501
+ * > - **Pagination:** `None`
502
+ * ---
503
+ *
504
+ * @returns
505
+ * - Returns an array of cancelled orders matching {@link katanaperps.KatanaPerpsCanceledOrder KatanaPerpsCanceledOrder}
506
+ *
507
+ * ---
508
+ *
509
+ * @example
510
+ * ```typescript
511
+ * const allOrders = client.cancelOrders({
512
+ * nonce: uuidv1(),
513
+ * wallet: '0xA71C4aeeAabBBB8D2910F41C2ca3964b81F7310d',
514
+ * });
515
+ *
516
+ * const ordersForMarket = client.cancelOrders({
517
+ * nonce: uuidv1(),
518
+ * wallet: '0xA71C4aeeAabBBB8D2910F41C2ca3964b81F7310d',
519
+ * market: 'ETH-USD'
520
+ * });
521
+ * ```
522
+ *
523
+ * <br />
524
+ *
525
+ * ---
526
+ *
527
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#cancelOrders)
528
+ * @see request {@link katanaperps.RestRequestCancelOrders RestRequestCancelOrders}
529
+ * @see response {@link katanaperps.RestResponseCancelOrders RestResponseCancelOrders}
530
+ * @see type {@link katanaperps.KatanaPerpsCanceledOrder KatanaPerpsCanceledOrder}
531
+ * @see related {@link cancelOrder client.cancelOrder}
532
+ *
533
+ * @category Orders
534
+ */
535
+ cancelOrders(params: katanaPerps.RestRequestCancelOrders, signer?: katanaPerps.SignTypedData | undefined): Promise<katanaPerps.RestResponseCancelOrders>;
536
+ private makeCancelOrdersRequest;
537
+ /**
538
+ * Returns an order matching your {@link katanaperps.RestRequestGetOrder.orderId orderId} request parameter.
539
+ *
540
+ * - Can be an order's {@link katanaPerps.KatanaPerpsOrder.orderId orderId}
541
+ * - To get an order by its {@link katanaPerps.KatanaPerpsOrder.clientOrderId clientOrderId},
542
+ * you should prefix the value with `client:`.
543
+ *
544
+ * ---
545
+ * **Endpoint Parameters**
546
+ *
547
+ * > - **HTTP Request:** `GET /v1/orders`
548
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
549
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
550
+ * > - **Pagination:** `None`
551
+ * ---
552
+ *
553
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getOrder)
554
+ * @see request {@link katanaperps.RestRequestGetOrder RestRequestGetOrder}
555
+ * @see response {@link katanaperps.RestResponseGetOrder RestResponseGetOrder}
556
+ * @see type {@link katanaPerps.KatanaPerpsOrder KatanaPerpsOrder}
557
+ * @see related {@link getOrders client.getOrders}
558
+ *
559
+ * @category Orders
560
+ */
561
+ getOrder(params: katanaPerps.RestRequestGetOrder): Promise<katanaPerps.RestResponseGetOrder>;
562
+ /**
563
+ * Returns information about open and past {@link katanaPerps.KatanaPerpsOrder orders}.
564
+ *
565
+ * ---
566
+ * **Endpoint Parameters**
567
+ *
568
+ * > - **HTTP Request:** `GET /v1/orders`
569
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
570
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
571
+ * > - **Pagination:**
572
+ * > {@link katanaperps.RestRequestPaginationWithFromId.start start},
573
+ * > {@link katanaperps.RestRequestPaginationWithFromId.end end},
574
+ * > {@link katanaperps.RestRequestPaginationWithFromId.limit limit},
575
+ * > {@link katanaperps.RestRequestPaginationWithFromId.fromId fromId}
576
+ * ---
577
+ *
578
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getOrders)
579
+ * @see request {@link katanaperps.RestRequestGetOrders RestRequestGetOrders}
580
+ * @see response {@link katanaperps.RestResponseGetOrders RestResponseGetOrders}
581
+ * @see type {@link katanaPerps.KatanaPerpsOrder KatanaPerpsOrder}
582
+ * @see related {@link getOrder client.getOrder}
583
+ *
584
+ * @category Orders
585
+ */
586
+ getOrders(params: katanaPerps.RestRequestGetOrders): Promise<katanaPerps.RestResponseGetOrders>;
587
+ /**
588
+ * Get a single fill from the API by your requests {@link katanaperps.RestRequestGetFill.fillId fillId}
589
+ * parameter.
590
+ *
591
+ * ---
592
+ * **Endpoint Parameters**
593
+ *
594
+ * > - **HTTP Request:** `GET /v1/fills`
595
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
596
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
597
+ * > - **Pagination:** `None`
598
+ * ---
599
+ *
600
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getFill)
601
+ * @see request {@link katanaperps.RestRequestGetFill RestRequestGetFill}
602
+ * @see response {@link katanaperps.RestResponseGetFill RestResponseGetFill}
603
+ * @see type {@link katanaperps.KatanaPerpsFill KatanaPerpsFill}
604
+ * @see related {@link getFills client.getFills}
605
+ *
606
+ * @category Fills & Historical
607
+ */
608
+ getFill(params: katanaPerps.RestRequestGetFill): Promise<katanaPerps.KatanaPerpsFill>;
609
+ /**
610
+ * Get an array of {@link KatanaPerpsFill} objects matching your request parameters.
611
+ *
612
+ * ---
613
+ * **Endpoint Parameters**
614
+ *
615
+ * > - **HTTP Request:** `GET /v1/fills`
616
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
617
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
618
+ * > - **Pagination:**
619
+ * > {@link katanaperps.RestRequestPaginationWithFromId.start start},
620
+ * > {@link katanaperps.RestRequestPaginationWithFromId.end end},
621
+ * > {@link katanaperps.RestRequestPaginationWithFromId.limit limit},
622
+ * > {@link katanaperps.RestRequestPaginationWithFromId.fromId fromId}
623
+ * ---
624
+ *
625
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getFills)
626
+ * @see request {@link katanaperps.RestRequestGetFills RestRequestGetFills}
627
+ * @see response {@link katanaperps.RestResponseGetFills RestResponseGetFills}
628
+ * @see type {@link katanaperps.KatanaPerpsFill KatanaPerpsFill}
629
+ * @see related {@link getFill client.getFill}
630
+ *
631
+ * @category Fills & Historical
632
+ */
633
+ getFills(params: katanaPerps.RestRequestGetFills): Promise<katanaPerps.RestResponseGetFills>;
634
+ /**
635
+ * Returns information about a payout program and the requested wallets earned/paid amounts for
636
+ * the program.
637
+ *
638
+ * - Includes the data required to authorize a payout using the `distribute`
639
+ * function of the escrow contract.
640
+ * - Throws an error if the {@link katanaperps.KatanaPerpsPayoutProgram.quantityOwed quantityOwed}
641
+ * is `0`
642
+ *
643
+ * ---
644
+ * **Endpoint Parameters**
645
+ *
646
+ * > - **HTTP Request:** `POST /v1/payouts`
647
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
648
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
649
+ * > - **Pagination:** `None`
650
+ * ---
651
+ *
652
+ * @example
653
+ * ```typescript
654
+ * import { PayoutProgram } from '@katanaperps/katana-perps-sdk';
655
+ *
656
+ * // create client
657
+ *
658
+ * await client.authorizePayout({
659
+ * wallet: '0x...',
660
+ * nonce: uuidv1(),
661
+ * // use the PayoutProgram enum for inline auto completion
662
+ * program: PayoutProgram.tradingRewardsV2
663
+ * });
664
+ * ```
665
+ *
666
+ *
667
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#authorizePayout)
668
+ * @see request {@link katanaperps.RestRequestAuthorizePayout RestRequestAuthorizePayout}
669
+ * @see response {@link katanaperps.RestResponseAuthorizePayout RestResponseAuthorizePayout}
670
+ * @see type {@link katanaperps.KatanaPerpsPayoutProgramAuthorization KatanaPerpsPayoutProgramAuthorization}
671
+ *
672
+ * @category Rewards & Payouts
673
+ */
674
+ authorizePayout(params: katanaPerps.RestRequestAuthorizePayout): Promise<katanaPerps.KatanaPerpsPayoutProgramAuthorization>;
675
+ /**
676
+ * Returns information about a payout program and the requested wallets
677
+ * earned/paid amounts for the program.
678
+ *
679
+ * ---
680
+ * **Endpoint Parameters**
681
+ *
682
+ * > - **HTTP Request:** `GET /v1/payouts`
683
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
684
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
685
+ * > - **Pagination:** `None`
686
+ * ---
687
+ *
688
+ * @example
689
+ * ```typescript
690
+ * import { PayoutProgram } from '@katanaperps/katana-perps-sdk';
691
+ *
692
+ * // create client
693
+ *
694
+ * await client.getPayouts({
695
+ * wallet: '0x...',
696
+ * nonce: uuidv1(),
697
+ * // use the PayoutProgram enum for inline auto completion
698
+ * program: PayoutProgram.tradingRewardsV2
699
+ * });
700
+ * ```
701
+ *
702
+ * <br />
703
+ *
704
+ * ---
705
+ *
706
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getPayouts)
707
+ * @see request {@link katanaperps.RestRequestGetPayouts RestRequestGetPayouts}
708
+ * @see response {@link katanaperps.RestResponseGetPayouts RestResponseGetPayouts}
709
+ * @see type {@link katanaperps.KatanaPerpsPayoutProgram KatanaPerpsPayoutProgram}
710
+ *
711
+ * @category Rewards & Payouts
712
+ */
713
+ getPayouts(params: katanaPerps.RestRequestGetPayouts): Promise<katanaPerps.KatanaPerpsPayoutProgram>;
714
+ /**
715
+ * Returns information about deposits made by a wallet.
716
+ *
717
+ * ---
718
+ * **Endpoint Parameters**
719
+ *
720
+ * > - **HTTP Request:** `GET /v1/deposits`
721
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
722
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
723
+ * > - **Pagination:** `None`
724
+ * ---
725
+ *
726
+ * @returns
727
+ * - Returns a single {@link katanaperps.KatanaPerpsDeposit KatanaPerpsDeposit} object matching your parameters.
728
+ *
729
+ * ---
730
+ *
731
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getDeposit)
732
+ * @see request {@link katanaperps.RestRequestGetDeposit RestRequestGetDeposit}
733
+ * @see response {@link katanaperps.RestResponseGetDeposit RestResponseGetDeposit}
734
+ * @see type {@link katanaperps.KatanaPerpsDeposit KatanaPerpsDeposit}
735
+ * @see related {@link getDeposits client.getDeposits}
736
+ *
737
+ * @category Deposits & Withdrawals
738
+ */
739
+ getDeposit(params: katanaPerps.RestRequestGetDeposit): Promise<katanaPerps.KatanaPerpsDeposit>;
740
+ /**
741
+ * Returns information about deposits made by a wallet.
742
+ *
743
+ * ---
744
+ * **Endpoint Parameters**
745
+ *
746
+ * > - **HTTP Request:** `GET /v1/deposits`
747
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
748
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
749
+ * > - **Pagination:**
750
+ * > {@link katanaperps.RestRequestPaginationWithFromId.start start},
751
+ * > {@link katanaperps.RestRequestPaginationWithFromId.end end},
752
+ * > {@link katanaperps.RestRequestPaginationWithFromId.limit limit},
753
+ * > {@link katanaperps.RestRequestPaginationWithFromId.fromId fromId}
754
+ * ---
755
+ *
756
+ * @returns
757
+ * - Returns an array of {@link katanaperps.KatanaPerpsDeposit KatanaPerpsDeposit} objects matching your parameters.
758
+ *
759
+ * ---
760
+ *
761
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getDeposits)
762
+ * @see request {@link katanaperps.RestRequestGetDeposits RestRequestGetDeposits}
763
+ * @see response {@link katanaperps.RestResponseGetDeposits RestResponseGetDeposits}
764
+ * @see type {@link katanaperps.KatanaPerpsDeposit KatanaPerpsDeposit}
765
+ * @see related {@link getDeposit client.getDeposit}
766
+ *
767
+ * @category Deposits & Withdrawals
768
+ */
769
+ getDeposits(params: katanaPerps.RestRequestGetDeposits): Promise<katanaPerps.RestResponseGetDeposits>;
770
+ /**
771
+ * A convenience method that helps capture the appropriate value for the
772
+ * {@link withdraw} method's {@link katanaperps.RestRequestWithdrawFundsBase.maximumGasFee maximumGasFee}
773
+ * parameter.
774
+ *
775
+ * - Calls `publicClient.getGasFees` and adds the defined `maximumSlippagePercent` to it.
776
+ * - User should then confirm the value is acceptable before calling {@link withdraw} method.
777
+ * - If gas were `0.05000000` and `maximumSlippagePercent` is `0.10000000` (10%) then result would be `0.05500000`
778
+ * - The value is represented in USD.
779
+ *
780
+ * ---
781
+ *
782
+ * @returns
783
+ * - A value indicating the max gas fee that should be allowed (in USD) based on the
784
+ * core gas fee with your `maximumSlippagePercent` added. This value should always
785
+ * be validated by your application before calling {@link withdraw} method with this
786
+ * as your {@link katanaperps.RestRequestWithdrawFundsBase.maximumGasFee maximumGasFee}
787
+ * parameter.
788
+ *
789
+ * ---
790
+ *
791
+ * @example
792
+ * ```typescript
793
+ * // returns the max gas fee in USD you will accept for a withdrawal
794
+ * const maximumGasFee = await client.calculateWithdrawalMaximumGasFee({
795
+ * bridgeTarget: BridgeTarget.STARGATE_ETHEREUM,
796
+ * // 10% slippage alllowed (default)
797
+ * maximumSlippagePercent: '0.10000000'
798
+ * });
799
+ *
800
+ * // never pay more than $1 USD in gas fees to withdrawal
801
+ * if (Number(maximumGasFee) >= 1) {
802
+ * throw new Error('Too Much Gas cost to Withdraw! ${maximumGasFee} USD >= 1 USD!');
803
+ * }
804
+ *
805
+ * const withdrawal = await client.withdraw({
806
+ * nonce: uuidv1(),
807
+ * wallet: '0xA71C4aeeAabBBB8D2910F41C2ca3964b81F7310d',
808
+ * quantity: '100.00000000',
809
+ * maximumGasFee,
810
+ * bridgeTarget: BridgeTarget.STARGATE_ETHEREUM
811
+ * });
812
+ * ```
813
+ *
814
+ * <br />
815
+ *
816
+ * ---
817
+ *
818
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#calculateWithdrawalMaximumGasFee)
819
+ * @see related {@link withdraw client.withdraw}
820
+ */
821
+ calculateWithdrawalMaximumGasFee({ bridgeTarget, maximumSlippagePercent, }: {
822
+ /**
823
+ * The bridge target for the withdrawal of funds.
824
+ *
825
+ * - Utilize the {@link BridgeTarget} enum for convenience and
826
+ * auto-completion.
827
+ * - Automatically calculates the {@link bridgeAdapterAddress} &
828
+ * {@link bridgeAdapterPayload} parameters for the targeted network.
829
+ *
830
+ * @see enum {@link BridgeTarget}
831
+ */
832
+ bridgeTarget: katanaPerps.BridgeTarget;
833
+ /**
834
+ * Maximum slippage percent in pips percent format (ex `0.10000000` for 10%)
835
+ *
836
+ * @example
837
+ * ```typescript
838
+ * // 10%
839
+ * '0.10000000'
840
+ * ```
841
+ */
842
+ maximumSlippagePercent: string;
843
+ }): Promise<string>;
844
+ /**
845
+ * Withdraw funds from the exchange.
846
+ *
847
+ * - Unlike deposits, withdrawals are initiated via this REST API endpoint.
848
+ * - Once the withdrawal is validated, Katana Perps automatically dispatches the
849
+ * resulting transaction to send funds to the wallet.
850
+ *
851
+ * ---
852
+ * **Endpoint Parameters**
853
+ *
854
+ * > - **HTTP Request:** `POST /v1/withdrawals`
855
+ * > - **Endpoint Security:** [Trade](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
856
+ * > - **API Key Scope:** [Withdraw](https://api-docs-v1-perps.katana.network/#api-keys)
857
+ * > - **Pagination:** `None`
858
+ * ---
859
+ *
860
+ * @returns
861
+ * - Returns an {@link katanaperps.KatanaPerpsWithdrawal KatanaPerpsWithdrawal} object providing the details of the
862
+ * withdrawal.
863
+ *
864
+ * ---
865
+ *
866
+ * @example
867
+ * ```typescript
868
+ * // returns the max gas fee in USD you will accept for a withdrawal
869
+ * const maximumGasFee = await client.calculateWithdrawalMaximumGasFee({
870
+ * bridgeTarget: BridgeTarget.STARGATE_ETHEREUM,
871
+ * // 10% slippage alllowed (default)
872
+ * maximumSlippagePercent: '0.10000000'
873
+ * });
874
+ *
875
+ * // never pay more than $1 USD in gas fees to withdrawal
876
+ * if (Number(maximumGasFee) >= 1) {
877
+ * throw new Error('Too Much Gas cost to Withdraw! ${maximumGasFee} USD >= 1 USD!');
878
+ * }
879
+ *
880
+ * const withdrawal = await client.withdraw({
881
+ * nonce: uuidv1(),
882
+ * wallet: '0xA71C4aeeAabBBB8D2910F41C2ca3964b81F7310d',
883
+ * quantity: '100.00000000',
884
+ * maximumGasFee,
885
+ * bridgeTarget: BridgeTarget.STARGATE_ETHEREUM
886
+ * });
887
+ * ```
888
+ *
889
+ * <br />
890
+ *
891
+ * ---
892
+ *
893
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#withdraw)
894
+ * @see request {@link katanaperps.RestRequestWithdrawFunds RestRequestWithdrawFunds}
895
+ * @see response {@link katanaperps.RestResponseWithdrawFunds RestResponseWithdrawFunds}
896
+ * @see type {@link katanaperps.KatanaPerpsWithdrawal KatanaPerpsWithdrawal}
897
+ * @see related {@link calculateWithdrawalMaximumGasFee}
898
+ *
899
+ * @category Deposits & Withdrawals
900
+ */
901
+ withdraw($params: katanaPerps.RestRequestWithdrawFundsSDK | katanaPerps.RestRequestWithdrawFunds, signer?: undefined | katanaPerps.SignTypedData): Promise<katanaPerps.KatanaPerpsWithdrawal>;
902
+ /**
903
+ * Returns information about a single withdrawal matching the request.
904
+ *
905
+ * ---
906
+ * **Endpoint Parameters**
907
+ *
908
+ * > - **HTTP Request:** `GET /v1/withdrawals`
909
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
910
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
911
+ * > - **Pagination:** `None`
912
+ * ---
913
+ *
914
+ * @returns
915
+ * - Returns an {@link katanaperps.KatanaPerpsWithdrawal KatanaPerpsWithdrawal} object matching your request.
916
+ *
917
+ * ---
918
+ *
919
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getWithdrawal)
920
+ * @see request {@link katanaperps.RestRequestGetWithdrawal RestRequestGetWithdrawal}
921
+ * @see response {@link katanaperps.RestResponseGetWithdrawal RestResponseGetWithdrawal}
922
+ * @see type {@link katanaperps.KatanaPerpsWithdrawal KatanaPerpsWithdrawal}
923
+ * @see related {@link getWithdrawals client.getWithdrawals}
924
+ *
925
+ * @category Deposits & Withdrawals
926
+ */
927
+ getWithdrawal(params: katanaPerps.RestRequestGetWithdrawal): Promise<katanaPerps.KatanaPerpsWithdrawal>;
928
+ /**
929
+ * Returns information about withdrawals to a wallet.
930
+ *
931
+ * ---
932
+ * **Endpoint Parameters**
933
+ *
934
+ * > - **HTTP Request:** `GET /v1/withdrawals`
935
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
936
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
937
+ * > - **Pagination:**
938
+ * > {@link katanaperps.RestRequestPaginationWithFromId.start start},
939
+ * > {@link katanaperps.RestRequestPaginationWithFromId.end end},
940
+ * > {@link katanaperps.RestRequestPaginationWithFromId.limit limit},
941
+ * > {@link katanaperps.RestRequestPaginationWithFromId.fromId fromId}
942
+ * ---
943
+ *
944
+ * @returns
945
+ * - Returns an array of {@link katanaperps.KatanaPerpsWithdrawal KatanaPerpsWithdrawal} objects matching your request.
946
+ *
947
+ * ---
948
+ *
949
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getWithdrawals)
950
+ * @see request {@link katanaperps.RestRequestGetWithdrawals RestRequestGetWithdrawals}
951
+ * @see response {@link katanaperps.RestResponseGetWithdrawals RestResponseGetWithdrawals}
952
+ * @see type {@link katanaperps.KatanaPerpsWithdrawal KatanaPerpsWithdrawal}
953
+ * @see related {@link getWithdrawal client.getWithdrawal}
954
+ *
955
+ * @category Deposits & Withdrawals
956
+ */
957
+ getWithdrawals(params: katanaPerps.RestRequestGetWithdrawals): Promise<katanaPerps.RestResponseGetWithdrawals>;
958
+ /**
959
+ * Get Funding Payments for wallet matching {@link katanaperps.KatanaPerpsFundingPayment KatanaPerpsFundingPayment}
960
+ *
961
+ * ---
962
+ * **Endpoint Parameters**
963
+ *
964
+ * > - **HTTP Request:** `GET /v1/fundingPayments`
965
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
966
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
967
+ * > - **Pagination:**
968
+ * > {@link katanaperps.RestRequestPaginationWithFromId.start start},
969
+ * > {@link katanaperps.RestRequestPaginationWithFromId.end end},
970
+ * > {@link katanaperps.RestRequestPaginationWithFromId.limit limit}
971
+ * ---
972
+ *
973
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getFundingPayments)
974
+ * @see request {@link katanaperps.RestRequestGetFundingPayments RestRequestGetFundingPayments}
975
+ * @see response {@link katanaperps.RestResponseGetFundingPayments RestResponseGetFundingPayments}
976
+ * @see type {@link katanaperps.KatanaPerpsFundingPayment KatanaPerpsFundingPayment}
977
+ *
978
+ * @category Fills & Historical
979
+ */
980
+ getFundingPayments<R = katanaPerps.RestResponseGetFundingPayments>(params: katanaPerps.RestRequestGetFundingPayments): Promise<R>;
981
+ /**
982
+ * Override minimum Initial Margin Fraction for wallet for a market
983
+ *
984
+ * ---
985
+ * **Endpoint Parameters**
986
+ *
987
+ * > - **HTTP Request:** `POST /v1/initialMarginFractionOverride`
988
+ * > - **Endpoint Security:** [Trade](https://api-docs-v1-perps.katana.network/#endpointSecurityTrade)
989
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
990
+ * > - **Pagination:**
991
+ * ---
992
+ *
993
+ * @returns
994
+ * - Returns an {@link katanaperps.KatanaPerpsInitialMarginFractionOverride KatanaPerpsInitialMarginFractionOverride}
995
+ * object providing the details of the new setting.
996
+
997
+ *
998
+ * @category Wallets & Positions
999
+ */
1000
+ setInitialMarginFractionOverride<R = katanaPerps.RestResponseSetInitialMarginFractionOverride>(params: katanaPerps.RestRequestSetInitialMarginFractionOverride, signer?: katanaPerps.SignTypedData | undefined): Promise<R>;
1001
+ /**
1002
+ * Get Initial Margin Fraction overrides for wallet for a market or all markets
1003
+ *
1004
+ * ---
1005
+ * **Endpoint Parameters**
1006
+ *
1007
+ * > - **HTTP Request:** `GET /v1/initialMarginFractionOverride`
1008
+ * > - **Endpoint Security:** [Trade](https://api-docs-v1-perps.katana.network/#endpointSecurityTrade)
1009
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
1010
+ * > - **Pagination:**
1011
+ * ---
1012
+ *
1013
+ * @returns
1014
+ * - Returns an {@link katanaperps.KatanaPerpsInitialMarginFractionOverride KatanaPerpsInitialMarginFractionOverride}
1015
+ * object providing the details of the setting.
1016
+
1017
+ *
1018
+ * @category Wallets & Positions
1019
+ */
1020
+ getInitialMarginFractionOverride<R = katanaPerps.RestResponseGetInitialMarginFractionOverride>(params: katanaPerps.RestRequestGetInitialMarginFractionOverride): Promise<R>;
1021
+ /**
1022
+ * Get Historical PnL for the wallet / market matching {@link katanaperps.KatanaPerpsHistoricalProfitLoss KatanaPerpsHistoricalProfitLoss}
1023
+ *
1024
+ * ---
1025
+ * **Endpoint Parameters**
1026
+ *
1027
+ * > - **HTTP Request:** `GET /v1/historicalPnL`
1028
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
1029
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
1030
+ * > - **Pagination:**
1031
+ * > {@link katanaperps.RestRequestPaginationWithFromId.start start},
1032
+ * > {@link katanaperps.RestRequestPaginationWithFromId.end end},
1033
+ * > {@link katanaperps.RestRequestPaginationWithFromId.limit limit}
1034
+ * ---
1035
+ *
1036
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getHistoricalPnL)
1037
+ * @see request {@link katanaperps.RestRequestGetHistoricalPnL RestRequestGetHistoricalPnL}
1038
+ * @see response {@link katanaperps.RestResponseGetHistoricalPnL RestResponseGetHistoricalPnL}
1039
+ * @see type {@link katanaperps.KatanaPerpsHistoricalProfitLoss KatanaPerpsHistoricalProfitLoss}
1040
+ *
1041
+ * @category Fills & Historical
1042
+ */
1043
+ getHistoricalPnL(params: katanaPerps.RestRequestGetHistoricalPnL): Promise<katanaPerps.RestResponseGetHistoricalPnL>;
1044
+ /**
1045
+ * Returns a single-use authentication token as a string for access
1046
+ * to {@link katanaperps.SubscriptionNameAuthenticated authenticated subscriptions}
1047
+ * in the WebSocket API.
1048
+ *
1049
+ * ---
1050
+ * **Endpoint Parameters**
1051
+ *
1052
+ * > - **HTTP Request:** `GET /v1/wsToken`
1053
+ * > - **Endpoint Security:** [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
1054
+ * > - **API Key Scope:** [Read](https://api-docs-v1-perps.katana.network/#api-keys)
1055
+ * > - **Pagination:** `None`
1056
+ * ---
1057
+ *
1058
+ * @returns
1059
+ * - Returns the {@link katanaperps.KatanaPerpsWebSocketToken.token KatanaPerpsWebSocketToken.token} string
1060
+ * directly which you can use to authenticate with the WebSocket server.
1061
+ *
1062
+ * ---
1063
+ *
1064
+ * @see typedoc [Reference Documentation](https://sdk-js-docs-v1-perps.katana.network/classes/RestAuthenticatedClient.html#getWsToken)
1065
+ * @see request {@link katanaperps.RestRequestGetAuthenticationToken RestRequestGetAuthenticationToken}
1066
+ * @see response {@link katanaperps.RestResponseGetAuthenticationToken RestResponseGetAuthenticationToken}
1067
+ *
1068
+ * @category WebSocket
1069
+ */
1070
+ getWsToken(params: katanaPerps.RestRequestGetAuthenticationToken): Promise<string>;
1071
+ /**
1072
+ * - All requests within the internal symbol are undocumented internal methods which may change or be removed without notice.
1073
+ * - API handling of the parameters used within these methods is likely to change without notice without changes to the SDK to match.
1074
+ * - These methods or parameters may require additional permissions to use and result in errors or blocking of your request if used.
1075
+ * - If you need to use these methods for your use case, please contact support to discuss your requirements before using them.
1076
+ *
1077
+ * @internal
1078
+ */
1079
+ readonly [INTERNAL_SYMBOL]: Readonly<{
1080
+ /**
1081
+ * Requires the public IDs (`orderIds`) of the stop loss orders' parent
1082
+ * orders. Do not provide the public IDs of the stop loss orders themselves.
1083
+ */
1084
+ readonly cancelConditionalStopLossOrders: (params: katanaPerps.RestRequestCancelOrders, signer?: katanaPerps.SignTypedData | undefined) => Promise<katanaPerps.RestResponseCancelOrders>;
1085
+ /**
1086
+ * Requires the public IDs (`orderIds`) of the take profit orders' parent
1087
+ * orders. Do not provide the public IDs of the take profit orders themselves.
1088
+ */
1089
+ readonly cancelConditionalTakeProfitOrders: (params: katanaPerps.RestRequestCancelOrders, signer?: katanaPerps.SignTypedData | undefined) => Promise<katanaPerps.RestResponseCancelOrders>;
1090
+ readonly getFundingPayments: (params: katanaPerps.RestRequestGetFundingPayments) => Promise<katanaPerps.Paginated<katanaPerps.RestResponseGetFundingPayments>>;
1091
+ readonly getXChallenge: (params: katanaPerps.RestRequestGetVaultXConnectionChallenge) => Promise<katanaPerps.RestResponseGetVaultXConnectionChallenge>;
1092
+ readonly placeConditionalTpSlOrder: <T extends "stopLossMarket" | "takeProfitMarket">(takeProfitOrStopLossOrder: katanaPerps.RestRequestOrder & {
1093
+ type: T;
1094
+ }, conditionalParentOrderId: string, signer?: undefined | katanaPerps.SignTypedData) => Promise<katanaPerps.RestResponseGetOrder & {
1095
+ type: T;
1096
+ }>;
1097
+ readonly placeOrderWithConditionalTpSlOrders: <T_1 extends katanaPerps.OrderType>(params: {
1098
+ order: katanaPerps.RestRequestOrder & {
1099
+ type: T_1;
1100
+ };
1101
+ conditionalTakeProfitOrder?: (katanaPerps.RestRequestOrderTypeTakeProfitMarket & {
1102
+ type: typeof katanaPerps.OrderType.takeProfitMarket;
1103
+ }) | undefined;
1104
+ conditionalStopLossOrder?: (katanaPerps.RestRequestOrderTypeStopLossMarket & {
1105
+ type: typeof katanaPerps.OrderType.stopLossMarket;
1106
+ }) | undefined;
1107
+ }, signer?: undefined | katanaPerps.SignTypedData) => Promise<{
1108
+ order: katanaPerps.KatanaPerpsOrder & {
1109
+ conditionalTakeProfitOrder?: (katanaPerps.KatanaPerpsOrder & {
1110
+ type: "takeProfitMarket";
1111
+ }) | undefined;
1112
+ conditionalStopLossOrder?: (katanaPerps.KatanaPerpsOrder & {
1113
+ type: "stopLossMarket";
1114
+ }) | undefined;
1115
+ } & {
1116
+ type: T_1;
1117
+ };
1118
+ conditionalTakeProfitOrder?: (katanaPerps.KatanaPerpsOrder & {
1119
+ conditionalTakeProfitOrder?: (katanaPerps.KatanaPerpsOrder & {
1120
+ type: "takeProfitMarket";
1121
+ }) | undefined;
1122
+ conditionalStopLossOrder?: (katanaPerps.KatanaPerpsOrder & {
1123
+ type: "stopLossMarket";
1124
+ }) | undefined;
1125
+ } & {
1126
+ type: typeof katanaPerps.OrderType.takeProfitMarket;
1127
+ }) | undefined;
1128
+ conditionalStopLossOrder?: (katanaPerps.KatanaPerpsOrder & {
1129
+ conditionalTakeProfitOrder?: (katanaPerps.KatanaPerpsOrder & {
1130
+ type: "takeProfitMarket";
1131
+ }) | undefined;
1132
+ conditionalStopLossOrder?: (katanaPerps.KatanaPerpsOrder & {
1133
+ type: "stopLossMarket";
1134
+ }) | undefined;
1135
+ } & {
1136
+ type: typeof katanaPerps.OrderType.stopLossMarket;
1137
+ }) | undefined;
1138
+ }>;
1139
+ readonly setVaultDetails: (params: katanaPerps.RestRequestSetVaultDetails, signer?: undefined | katanaPerps.SignTypedData) => Promise<katanaPerps.RestResponseSetVaultDetails>;
1140
+ readonly removeVaultXConnection: (params: katanaPerps.RestRequestRemoveVaultXConnection, signer?: undefined | katanaPerps.SignTypedData) => Promise<void>;
1141
+ readonly setVaultXConnection: (params: katanaPerps.RestRequestSetVaultXConnection, signer?: undefined | katanaPerps.SignTypedData) => Promise<void>;
1142
+ readonly withdrawFromManagedAccountByQuantity: ($params: katanaPerps.RestRequestWithdrawFundsFromManagedAccountByQuantitySDK | katanaPerps.RestRequestWithdrawFundsFromManagedAccountByQuantity, signer?: undefined | katanaPerps.SignTypedData) => Promise<katanaPerps.KatanaPerpsWithdrawalFromManagedAccount>;
1143
+ readonly withdrawFromManagedAccountByShares: ($params: katanaPerps.RestRequestWithdrawFundsFromManagedAccountBySharesSDK | katanaPerps.RestRequestWithdrawFundsFromManagedAccountByShares, signer?: undefined | katanaPerps.SignTypedData) => Promise<katanaPerps.KatanaPerpsWithdrawalFromManagedAccount>;
1144
+ }>;
1145
+ protected getContractAndChainId(): Promise<{
1146
+ chainId: number;
1147
+ exchangeContractAddress: string;
1148
+ }>;
1149
+ /**
1150
+ * - Internal Use and may change or break without notice
1151
+ *
1152
+ * @internal
1153
+ * @hidden
1154
+ */
1155
+ protected get<R>(endpoint: string, params?: AnyObj | undefined, axiosConfig?: Omit<Partial<AxiosRequestConfig>, 'method' | 'url' | 'params'>): Promise<R>;
1156
+ /**
1157
+ * - Internal Use and may change or break without notice
1158
+ *
1159
+ * @internal
1160
+ * @hidden
1161
+ */
1162
+ protected post<R>(endpoint: string, data?: AnyObj, axiosConfig?: Omit<Partial<AxiosRequestConfig>, 'method' | 'url' | 'data'>): Promise<R>;
1163
+ /**
1164
+ * - Internal Use and may change or break without notice
1165
+ *
1166
+ * @internal
1167
+ * @hidden
1168
+ */
1169
+ protected delete<R>(endpoint: string, data?: AnyObj, axiosConfig?: Omit<Partial<AxiosRequestConfig>, 'method' | 'url' | 'data'>): Promise<R>;
1170
+ /**
1171
+ * - Internal Use and may change or break without notice
1172
+ *
1173
+ * @internal
1174
+ * @hidden
1175
+ */
1176
+ protected put<R>(endpoint: string, data?: AnyObj, axiosConfig?: Omit<Partial<AxiosRequestConfig>, 'method' | 'url' | 'data'>): Promise<R>;
1177
+ /**
1178
+ * - Internal Use and may change or break without notice
1179
+ *
1180
+ * @internal
1181
+ * @hidden
1182
+ */
1183
+ protected patch<R>(endpoint: string, data?: AnyObj, axiosConfig?: Omit<Partial<AxiosRequestConfig>, 'method' | 'url' | 'data'>): Promise<R>;
1184
+ /**
1185
+ * - Internal Use and may change or break without notice
1186
+ *
1187
+ * @internal
1188
+ * @hidden
1189
+ */
1190
+ protected request<R = any>(endpoint: string, config: Partial<AxiosRequestConfig> & ({
1191
+ method: 'GET';
1192
+ } | {
1193
+ method: Exclude<AxiosRequestConfig['method'], 'GET' | 'get'>;
1194
+ data: {
1195
+ [key: string]: unknown;
1196
+ };
1197
+ }), createHmacSignatureHeader?: boolean): Promise<Axios.AxiosResponse<R, any>>;
1198
+ }
1199
+ //# sourceMappingURL=authenticated.d.ts.map