@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.
- package/.nvmrc +1 -0
- package/LICENSE +21 -0
- package/README.md +90 -0
- package/dist/abis/ERC20.json +288 -0
- package/dist/abis/EarningsEscrow.json +468 -0
- package/dist/abis/Exchange_v1.json +3644 -0
- package/dist/abis/IOFT.json +447 -0
- package/dist/bridge/config.d.ts +262 -0
- package/dist/bridge/config.d.ts.map +1 -0
- package/dist/bridge/config.js +221 -0
- package/dist/bridge/deposit.d.ts +107 -0
- package/dist/bridge/deposit.d.ts.map +1 -0
- package/dist/bridge/deposit.js +284 -0
- package/dist/bridge/index.d.ts +5 -0
- package/dist/bridge/index.d.ts.map +1 -0
- package/dist/bridge/index.js +7 -0
- package/dist/bridge/utils.d.ts +140 -0
- package/dist/bridge/utils.d.ts.map +1 -0
- package/dist/bridge/utils.js +66 -0
- package/dist/bridge/withdraw.d.ts +42 -0
- package/dist/bridge/withdraw.d.ts.map +1 -0
- package/dist/bridge/withdraw.js +86 -0
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +6 -0
- package/dist/client/orderBook/index.d.ts +2 -0
- package/dist/client/orderBook/index.d.ts.map +1 -0
- package/dist/client/orderBook/index.js +4 -0
- package/dist/client/orderBook/realTime.d.ts +180 -0
- package/dist/client/orderBook/realTime.d.ts.map +1 -0
- package/dist/client/orderBook/realTime.js +344 -0
- package/dist/client/orderBook/utils.d.ts +15 -0
- package/dist/client/orderBook/utils.d.ts.map +1 -0
- package/dist/client/orderBook/utils.js +77 -0
- package/dist/client/rest/authenticated.d.ts +1199 -0
- package/dist/client/rest/authenticated.d.ts.map +1 -0
- package/dist/client/rest/authenticated.js +1311 -0
- package/dist/client/rest/index.d.ts +3 -0
- package/dist/client/rest/index.d.ts.map +1 -0
- package/dist/client/rest/index.js +5 -0
- package/dist/client/rest/public.d.ts +436 -0
- package/dist/client/rest/public.d.ts.map +1 -0
- package/dist/client/rest/public.js +502 -0
- package/dist/client/webSocket/guards.d.ts +15 -0
- package/dist/client/webSocket/guards.d.ts.map +1 -0
- package/dist/client/webSocket/guards.js +37 -0
- package/dist/client/webSocket/index.d.ts +632 -0
- package/dist/client/webSocket/index.d.ts.map +1 -0
- package/dist/client/webSocket/index.js +1048 -0
- package/dist/client/webSocket/transform.d.ts +3 -0
- package/dist/client/webSocket/transform.d.ts.map +1 -0
- package/dist/client/webSocket/transform.js +244 -0
- package/dist/constants.d.ts +34 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +38 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/orderbook/apiConversions.d.ts +8 -0
- package/dist/orderbook/apiConversions.d.ts.map +1 -0
- package/dist/orderbook/apiConversions.js +100 -0
- package/dist/orderbook/demo.d.ts +2 -0
- package/dist/orderbook/demo.d.ts.map +1 -0
- package/dist/orderbook/demo.js +68 -0
- package/dist/orderbook/index.d.ts +3 -0
- package/dist/orderbook/index.d.ts.map +1 -0
- package/dist/orderbook/index.js +5 -0
- package/dist/orderbook/quantities.d.ts +112 -0
- package/dist/orderbook/quantities.d.ts.map +1 -0
- package/dist/orderbook/quantities.js +257 -0
- package/dist/orderbook/utils.d.ts +8 -0
- package/dist/orderbook/utils.d.ts.map +1 -0
- package/dist/orderbook/utils.js +28 -0
- package/dist/pipmath.d.ts +21 -0
- package/dist/pipmath.d.ts.map +1 -0
- package/dist/pipmath.js +110 -0
- package/dist/signatures.d.ts +37 -0
- package/dist/signatures.d.ts.map +1 -0
- package/dist/signatures.js +450 -0
- package/dist/tests/orderbook/quantities/calculateInitialMarginFractionWithOverride.test.d.ts +2 -0
- package/dist/tests/orderbook/quantities/calculateInitialMarginFractionWithOverride.test.d.ts.map +1 -0
- package/dist/tests/orderbook/quantities/calculateInitialMarginFractionWithOverride.test.js +49 -0
- package/dist/tests/orderbook/quantities/calculateMaximumInitialMarginFractionOverride.test.d.ts +2 -0
- package/dist/tests/orderbook/quantities/calculateMaximumInitialMarginFractionOverride.test.d.ts.map +1 -0
- package/dist/tests/orderbook/quantities/calculateMaximumInitialMarginFractionOverride.test.js +122 -0
- package/dist/tests/orderbook/quantities/determineMaximumReduceOnlyQuantityAvailableAtPriceLevel.test.d.ts +2 -0
- package/dist/tests/orderbook/quantities/determineMaximumReduceOnlyQuantityAvailableAtPriceLevel.test.d.ts.map +1 -0
- package/dist/tests/orderbook/quantities/determineMaximumReduceOnlyQuantityAvailableAtPriceLevel.test.js +138 -0
- package/dist/tests/orderbook/quantities.test.d.ts +2 -0
- package/dist/tests/orderbook/quantities.test.d.ts.map +1 -0
- package/dist/tests/orderbook/quantities.test.js +310 -0
- package/dist/tests/testHelpers.d.ts +2 -0
- package/dist/tests/testHelpers.d.ts.map +1 -0
- package/dist/tests/testHelpers.js +16 -0
- package/dist/tests/utils/deriveBaseURL.test.d.ts +2 -0
- package/dist/tests/utils/deriveBaseURL.test.d.ts.map +1 -0
- package/dist/tests/utils/deriveBaseURL.test.js +46 -0
- package/dist/typechain-types/ERC20.d.ts +170 -0
- package/dist/typechain-types/ERC20.d.ts.map +1 -0
- package/dist/typechain-types/ERC20.js +2 -0
- package/dist/typechain-types/EarningsEscrow.d.ts +210 -0
- package/dist/typechain-types/EarningsEscrow.d.ts.map +1 -0
- package/dist/typechain-types/EarningsEscrow.js +2 -0
- package/dist/typechain-types/ExchangeLayerZeroAdapter.d.ts +253 -0
- package/dist/typechain-types/ExchangeLayerZeroAdapter.d.ts.map +1 -0
- package/dist/typechain-types/ExchangeLayerZeroAdapter.js +2 -0
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.d.ts +338 -0
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.d.ts.map +1 -0
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.js +2 -0
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v3.d.ts +413 -0
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v3.d.ts.map +1 -0
- package/dist/typechain-types/ExchangeLayerZeroAdapter_v3.js +2 -0
- package/dist/typechain-types/Exchange_v1.d.ts +2172 -0
- package/dist/typechain-types/Exchange_v1.d.ts.map +1 -0
- package/dist/typechain-types/Exchange_v1.js +2 -0
- package/dist/typechain-types/Exchange_v2.d.ts +2148 -0
- package/dist/typechain-types/Exchange_v2.d.ts.map +1 -0
- package/dist/typechain-types/Exchange_v2.js +2 -0
- package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts +148 -0
- package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts.map +1 -0
- package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.js +2 -0
- package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts +1204 -0
- package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts.map +1 -0
- package/dist/typechain-types/FixedIncomeVaultProvider_v1.js +2 -0
- package/dist/typechain-types/IOFT.d.ts +247 -0
- package/dist/typechain-types/IOFT.d.ts.map +1 -0
- package/dist/typechain-types/IOFT.js +2 -0
- package/dist/typechain-types/IRewardVault.d.ts +649 -0
- package/dist/typechain-types/IRewardVault.d.ts.map +1 -0
- package/dist/typechain-types/IRewardVault.js +2 -0
- package/dist/typechain-types/KumaOFTAdapterUSDC.d.ts +638 -0
- package/dist/typechain-types/KumaOFTAdapterUSDC.d.ts.map +1 -0
- package/dist/typechain-types/KumaOFTAdapterUSDC.js +2 -0
- package/dist/typechain-types/KumaOFTUSDC.d.ts +756 -0
- package/dist/typechain-types/KumaOFTUSDC.d.ts.map +1 -0
- package/dist/typechain-types/KumaOFTUSDC.js +2 -0
- package/dist/typechain-types/KumaStargateForwarder_v1.d.ts +252 -0
- package/dist/typechain-types/KumaStargateForwarder_v1.d.ts.map +1 -0
- package/dist/typechain-types/KumaStargateForwarder_v1.js +2 -0
- package/dist/typechain-types/KumaStargateForwarder_v2.d.ts +252 -0
- package/dist/typechain-types/KumaStargateForwarder_v2.d.ts.map +1 -0
- package/dist/typechain-types/KumaStargateForwarder_v2.js +2 -0
- package/dist/typechain-types/ProfitShareVaultProvider_v1.d.ts +1095 -0
- package/dist/typechain-types/ProfitShareVaultProvider_v1.d.ts.map +1 -0
- package/dist/typechain-types/ProfitShareVaultProvider_v1.js +2 -0
- package/dist/typechain-types/StargatePoolUSDC.d.ts +956 -0
- package/dist/typechain-types/StargatePoolUSDC.d.ts.map +1 -0
- package/dist/typechain-types/StargatePoolUSDC.js +2 -0
- package/dist/typechain-types/common.d.ts +51 -0
- package/dist/typechain-types/common.d.ts.map +1 -0
- package/dist/typechain-types/common.js +2 -0
- package/dist/typechain-types/factories/ERC20__factory.d.ts +226 -0
- package/dist/typechain-types/factories/ERC20__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/ERC20__factory.js +305 -0
- package/dist/typechain-types/factories/EarningsEscrow__factory.d.ts +370 -0
- package/dist/typechain-types/factories/EarningsEscrow__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/EarningsEscrow__factory.js +485 -0
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.d.ts +359 -0
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.js +471 -0
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.d.ts +419 -0
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.js +545 -0
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v3__factory.d.ts +546 -0
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v3__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v3__factory.js +710 -0
- package/dist/typechain-types/factories/Exchange_v1__factory.d.ts +2852 -0
- package/dist/typechain-types/factories/Exchange_v1__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/Exchange_v1__factory.js +3661 -0
- package/dist/typechain-types/factories/Exchange_v2__factory.d.ts +2832 -0
- package/dist/typechain-types/factories/Exchange_v2__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/Exchange_v2__factory.js +3636 -0
- package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.d.ts +180 -0
- package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.js +246 -0
- package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts +2092 -0
- package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.js +2702 -0
- package/dist/typechain-types/factories/IOFT__factory.d.ts +352 -0
- package/dist/typechain-types/factories/IOFT__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/IOFT__factory.js +464 -0
- package/dist/typechain-types/factories/IRewardVault__factory.d.ts +1019 -0
- package/dist/typechain-types/factories/IRewardVault__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/IRewardVault__factory.js +1311 -0
- package/dist/typechain-types/factories/KumaOFTAdapterUSDC__factory.d.ts +996 -0
- package/dist/typechain-types/factories/KumaOFTAdapterUSDC__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/KumaOFTAdapterUSDC__factory.js +1306 -0
- package/dist/typechain-types/factories/KumaOFTUSDC__factory.d.ts +1234 -0
- package/dist/typechain-types/factories/KumaOFTUSDC__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/KumaOFTUSDC__factory.js +1619 -0
- package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.d.ts +354 -0
- package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.js +464 -0
- package/dist/typechain-types/factories/KumaStargateForwarder_v2__factory.d.ts +370 -0
- package/dist/typechain-types/factories/KumaStargateForwarder_v2__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/KumaStargateForwarder_v2__factory.js +486 -0
- package/dist/typechain-types/factories/ProfitShareVaultProvider_v1__factory.d.ts +1914 -0
- package/dist/typechain-types/factories/ProfitShareVaultProvider_v1__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/ProfitShareVaultProvider_v1__factory.js +2475 -0
- package/dist/typechain-types/factories/StargatePoolUSDC__factory.d.ts +1557 -0
- package/dist/typechain-types/factories/StargatePoolUSDC__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/StargatePoolUSDC__factory.js +2019 -0
- package/dist/typechain-types/factories/index.d.ts +5 -0
- package/dist/typechain-types/factories/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/index.js +13 -0
- package/dist/typechain-types/index.d.ts +10 -0
- package/dist/typechain-types/index.d.ts.map +1 -0
- package/dist/typechain-types/index.js +15 -0
- package/dist/types/delegatedKeys.d.ts +44 -0
- package/dist/types/delegatedKeys.d.ts.map +1 -0
- package/dist/types/delegatedKeys.js +2 -0
- package/dist/types/enums/index.d.ts +4 -0
- package/dist/types/enums/index.d.ts.map +1 -0
- package/dist/types/enums/index.js +6 -0
- package/dist/types/enums/request.d.ts +980 -0
- package/dist/types/enums/request.d.ts.map +1 -0
- package/dist/types/enums/request.js +906 -0
- package/dist/types/enums/response.d.ts +329 -0
- package/dist/types/enums/response.d.ts.map +1 -0
- package/dist/types/enums/response.js +296 -0
- package/dist/types/enums/signature.d.ts +118 -0
- package/dist/types/enums/signature.d.ts.map +1 -0
- package/dist/types/enums/signature.js +131 -0
- package/dist/types/errors.d.ts +5 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/errors.js +2 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +10 -0
- package/dist/types/orderBook.d.ts +72 -0
- package/dist/types/orderBook.d.ts.map +1 -0
- package/dist/types/orderBook.js +2 -0
- package/dist/types/rest/common/common.d.ts +118 -0
- package/dist/types/rest/common/common.d.ts.map +1 -0
- package/dist/types/rest/common/common.js +2 -0
- package/dist/types/rest/common/guards.d.ts +8 -0
- package/dist/types/rest/common/guards.d.ts.map +1 -0
- package/dist/types/rest/common/guards.js +14 -0
- package/dist/types/rest/endpoints/AssociateWallet.d.ts +40 -0
- package/dist/types/rest/endpoints/AssociateWallet.d.ts.map +1 -0
- package/dist/types/rest/endpoints/AssociateWallet.js +2 -0
- package/dist/types/rest/endpoints/CancelOrders.d.ts +134 -0
- package/dist/types/rest/endpoints/CancelOrders.d.ts.map +1 -0
- package/dist/types/rest/endpoints/CancelOrders.js +2 -0
- package/dist/types/rest/endpoints/CreateOrder.d.ts +401 -0
- package/dist/types/rest/endpoints/CreateOrder.d.ts.map +1 -0
- package/dist/types/rest/endpoints/CreateOrder.js +2 -0
- package/dist/types/rest/endpoints/GetAuthenticationToken.d.ts +39 -0
- package/dist/types/rest/endpoints/GetAuthenticationToken.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetAuthenticationToken.js +2 -0
- package/dist/types/rest/endpoints/GetCandles.d.ts +115 -0
- package/dist/types/rest/endpoints/GetCandles.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetCandles.js +2 -0
- package/dist/types/rest/endpoints/GetDeposits.d.ts +109 -0
- package/dist/types/rest/endpoints/GetDeposits.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetDeposits.js +2 -0
- package/dist/types/rest/endpoints/GetExchange.d.ts +78 -0
- package/dist/types/rest/endpoints/GetExchange.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetExchange.js +9 -0
- package/dist/types/rest/endpoints/GetFills.d.ts +178 -0
- package/dist/types/rest/endpoints/GetFills.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetFills.js +2 -0
- package/dist/types/rest/endpoints/GetFundingPayments.d.ts +52 -0
- package/dist/types/rest/endpoints/GetFundingPayments.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetFundingPayments.js +2 -0
- package/dist/types/rest/endpoints/GetFundingRates.d.ts +34 -0
- package/dist/types/rest/endpoints/GetFundingRates.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetFundingRates.js +2 -0
- package/dist/types/rest/endpoints/GetGasFees.d.ts +23 -0
- package/dist/types/rest/endpoints/GetGasFees.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetGasFees.js +2 -0
- package/dist/types/rest/endpoints/GetHistoricalPnL.d.ts +39 -0
- package/dist/types/rest/endpoints/GetHistoricalPnL.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetHistoricalPnL.js +2 -0
- package/dist/types/rest/endpoints/GetInitialMarginFractionOverride.d.ts +31 -0
- package/dist/types/rest/endpoints/GetInitialMarginFractionOverride.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetInitialMarginFractionOverride.js +2 -0
- package/dist/types/rest/endpoints/GetLiquidations.d.ts +52 -0
- package/dist/types/rest/endpoints/GetLiquidations.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetLiquidations.js +2 -0
- package/dist/types/rest/endpoints/GetMarketMakerRewardsEpochs.d.ts +534 -0
- package/dist/types/rest/endpoints/GetMarketMakerRewardsEpochs.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetMarketMakerRewardsEpochs.js +2 -0
- package/dist/types/rest/endpoints/GetMarkets.d.ts +161 -0
- package/dist/types/rest/endpoints/GetMarkets.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetMarkets.js +2 -0
- package/dist/types/rest/endpoints/GetOrderBook.d.ts +176 -0
- package/dist/types/rest/endpoints/GetOrderBook.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetOrderBook.js +2 -0
- package/dist/types/rest/endpoints/GetOrders.d.ts +188 -0
- package/dist/types/rest/endpoints/GetOrders.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetOrders.js +2 -0
- package/dist/types/rest/endpoints/GetPing.d.ts +8 -0
- package/dist/types/rest/endpoints/GetPing.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetPing.js +2 -0
- package/dist/types/rest/endpoints/GetPositions.d.ts +104 -0
- package/dist/types/rest/endpoints/GetPositions.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetPositions.js +2 -0
- package/dist/types/rest/endpoints/GetTickers.d.ts +129 -0
- package/dist/types/rest/endpoints/GetTickers.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetTickers.js +2 -0
- package/dist/types/rest/endpoints/GetTime.d.ts +14 -0
- package/dist/types/rest/endpoints/GetTime.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetTime.js +2 -0
- package/dist/types/rest/endpoints/GetTrades.d.ts +62 -0
- package/dist/types/rest/endpoints/GetTrades.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetTrades.js +2 -0
- package/dist/types/rest/endpoints/GetWallets.d.ts +121 -0
- package/dist/types/rest/endpoints/GetWallets.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetWallets.js +2 -0
- package/dist/types/rest/endpoints/GetWithdrawals.d.ts +98 -0
- package/dist/types/rest/endpoints/GetWithdrawals.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetWithdrawals.js +2 -0
- package/dist/types/rest/endpoints/GetWithdrawalsFromManagedAccount.d.ts +98 -0
- package/dist/types/rest/endpoints/GetWithdrawalsFromManagedAccount.d.ts.map +1 -0
- package/dist/types/rest/endpoints/GetWithdrawalsFromManagedAccount.js +2 -0
- package/dist/types/rest/endpoints/Payouts.d.ts +199 -0
- package/dist/types/rest/endpoints/Payouts.d.ts.map +1 -0
- package/dist/types/rest/endpoints/Payouts.js +2 -0
- package/dist/types/rest/endpoints/SetInitialMarginFractionOverride.d.ts +83 -0
- package/dist/types/rest/endpoints/SetInitialMarginFractionOverride.d.ts.map +1 -0
- package/dist/types/rest/endpoints/SetInitialMarginFractionOverride.js +2 -0
- package/dist/types/rest/endpoints/WithdrawFunds.d.ts +144 -0
- package/dist/types/rest/endpoints/WithdrawFunds.d.ts.map +1 -0
- package/dist/types/rest/endpoints/WithdrawFunds.js +2 -0
- package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByQuantity.d.ts +161 -0
- package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByQuantity.d.ts.map +1 -0
- package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByQuantity.js +2 -0
- package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByShares.d.ts +160 -0
- package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByShares.d.ts.map +1 -0
- package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByShares.js +2 -0
- package/dist/types/rest/endpoints/index.d.ts +33 -0
- package/dist/types/rest/endpoints/index.d.ts.map +1 -0
- package/dist/types/rest/endpoints/index.js +35 -0
- package/dist/types/rest/endpoints/internal.d.ts +329 -0
- package/dist/types/rest/endpoints/internal.d.ts.map +1 -0
- package/dist/types/rest/endpoints/internal.js +14 -0
- package/dist/types/rest/index.d.ts +4 -0
- package/dist/types/rest/index.d.ts.map +1 -0
- package/dist/types/rest/index.js +6 -0
- package/dist/types/swaps.d.ts +11 -0
- package/dist/types/swaps.d.ts.map +1 -0
- package/dist/types/swaps.js +2 -0
- package/dist/types/utils.d.ts +67 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/dist/types/utils.js +3 -0
- package/dist/types/webSocket/base.d.ts +83 -0
- package/dist/types/webSocket/base.d.ts.map +1 -0
- package/dist/types/webSocket/base.js +2 -0
- package/dist/types/webSocket/constants.d.ts +41 -0
- package/dist/types/webSocket/constants.d.ts.map +1 -0
- package/dist/types/webSocket/constants.js +54 -0
- package/dist/types/webSocket/index.d.ts +6 -0
- package/dist/types/webSocket/index.d.ts.map +1 -0
- package/dist/types/webSocket/index.js +8 -0
- package/dist/types/webSocket/options.d.ts +276 -0
- package/dist/types/webSocket/options.d.ts.map +1 -0
- package/dist/types/webSocket/options.js +2 -0
- package/dist/types/webSocket/request/index.d.ts +3 -0
- package/dist/types/webSocket/request/index.d.ts.map +1 -0
- package/dist/types/webSocket/request/index.js +5 -0
- package/dist/types/webSocket/request/request.d.ts +137 -0
- package/dist/types/webSocket/request/request.d.ts.map +1 -0
- package/dist/types/webSocket/request/request.js +2 -0
- package/dist/types/webSocket/request/subscriptions.d.ts +498 -0
- package/dist/types/webSocket/request/subscriptions.d.ts.map +1 -0
- package/dist/types/webSocket/request/subscriptions.js +2 -0
- package/dist/types/webSocket/response/candles.d.ts +138 -0
- package/dist/types/webSocket/response/candles.d.ts.map +1 -0
- package/dist/types/webSocket/response/candles.js +2 -0
- package/dist/types/webSocket/response/deposits.d.ts +80 -0
- package/dist/types/webSocket/response/deposits.d.ts.map +1 -0
- package/dist/types/webSocket/response/deposits.js +2 -0
- package/dist/types/webSocket/response/fundingPayments.d.ts +78 -0
- package/dist/types/webSocket/response/fundingPayments.d.ts.map +1 -0
- package/dist/types/webSocket/response/fundingPayments.js +2 -0
- package/dist/types/webSocket/response/index.d.ts +13 -0
- package/dist/types/webSocket/response/index.d.ts.map +1 -0
- package/dist/types/webSocket/response/index.js +15 -0
- package/dist/types/webSocket/response/liquidations.d.ts +78 -0
- package/dist/types/webSocket/response/liquidations.d.ts.map +1 -0
- package/dist/types/webSocket/response/liquidations.js +2 -0
- package/dist/types/webSocket/response/orderbook.d.ts +214 -0
- package/dist/types/webSocket/response/orderbook.d.ts.map +1 -0
- package/dist/types/webSocket/response/orderbook.js +2 -0
- package/dist/types/webSocket/response/orders.d.ts +355 -0
- package/dist/types/webSocket/response/orders.d.ts.map +1 -0
- package/dist/types/webSocket/response/orders.js +2 -0
- package/dist/types/webSocket/response/ordersFill.d.ts +138 -0
- package/dist/types/webSocket/response/ordersFill.d.ts.map +1 -0
- package/dist/types/webSocket/response/ordersFill.js +2 -0
- package/dist/types/webSocket/response/positions.d.ts +120 -0
- package/dist/types/webSocket/response/positions.d.ts.map +1 -0
- package/dist/types/webSocket/response/positions.js +2 -0
- package/dist/types/webSocket/response/tickers.d.ts +131 -0
- package/dist/types/webSocket/response/tickers.d.ts.map +1 -0
- package/dist/types/webSocket/response/tickers.js +2 -0
- package/dist/types/webSocket/response/trades.d.ts +90 -0
- package/dist/types/webSocket/response/trades.d.ts.map +1 -0
- package/dist/types/webSocket/response/trades.js +2 -0
- package/dist/types/webSocket/response/webclient/base.d.ts +24 -0
- package/dist/types/webSocket/response/webclient/base.d.ts.map +1 -0
- package/dist/types/webSocket/response/webclient/base.js +2 -0
- package/dist/types/webSocket/response/webclient/events/exchangeStatus.d.ts +31 -0
- package/dist/types/webSocket/response/webclient/events/exchangeStatus.d.ts.map +1 -0
- package/dist/types/webSocket/response/webclient/events/exchangeStatus.js +2 -0
- package/dist/types/webSocket/response/webclient/events/index.d.ts +4 -0
- package/dist/types/webSocket/response/webclient/events/index.d.ts.map +1 -0
- package/dist/types/webSocket/response/webclient/events/index.js +6 -0
- package/dist/types/webSocket/response/webclient/events/reloadBanners.d.ts +17 -0
- package/dist/types/webSocket/response/webclient/events/reloadBanners.d.ts.map +1 -0
- package/dist/types/webSocket/response/webclient/events/reloadBanners.js +2 -0
- package/dist/types/webSocket/response/webclient/events/transactionSettled.d.ts +76 -0
- package/dist/types/webSocket/response/webclient/events/transactionSettled.d.ts.map +1 -0
- package/dist/types/webSocket/response/webclient/events/transactionSettled.js +2 -0
- package/dist/types/webSocket/response/webclient/index.d.ts +3 -0
- package/dist/types/webSocket/response/webclient/index.d.ts.map +1 -0
- package/dist/types/webSocket/response/webclient/index.js +5 -0
- package/dist/types/webSocket/response/webclient/webclient.d.ts +13 -0
- package/dist/types/webSocket/response/webclient/webclient.d.ts.map +1 -0
- package/dist/types/webSocket/response/webclient/webclient.js +2 -0
- package/dist/types/webSocket/response/withdrawals.d.ts +83 -0
- package/dist/types/webSocket/response/withdrawals.d.ts.map +1 -0
- package/dist/types/webSocket/response/withdrawals.js +2 -0
- package/dist/utils.d.ts +63 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +136 -0
- package/package.json +200 -0
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Using these objects we can construct appropriate enum with auto completion and information
|
|
3
|
+
* on each available option, if that makes sense.
|
|
4
|
+
*
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @category Enums - Response Properties
|
|
9
|
+
* @enum
|
|
10
|
+
*
|
|
11
|
+
* @see related {@link _types.KatanaPerpsPosition KatanaPerpsPosition Interface}
|
|
12
|
+
*/
|
|
13
|
+
export declare const PositionSide: Readonly<{
|
|
14
|
+
readonly long: "long";
|
|
15
|
+
readonly short: "short";
|
|
16
|
+
readonly none: "none";
|
|
17
|
+
}>;
|
|
18
|
+
export type PositionSide = (typeof PositionSide)[keyof typeof PositionSide];
|
|
19
|
+
/**
|
|
20
|
+
* Specialized fill types which do not include orders and may produce different
|
|
21
|
+
* messaging / types in various places within the code.
|
|
22
|
+
*/
|
|
23
|
+
export declare const FillTypeSystem: Readonly<{
|
|
24
|
+
/**
|
|
25
|
+
* Position closures resulting from forced liquidation or ADL.
|
|
26
|
+
*/
|
|
27
|
+
readonly liquidation: "liquidation";
|
|
28
|
+
/**
|
|
29
|
+
* Position closure as the counterparty to an ADL action.
|
|
30
|
+
*/
|
|
31
|
+
readonly deleverage: "deleverage";
|
|
32
|
+
/**
|
|
33
|
+
* Position closures resulting from forced dust liquidation.
|
|
34
|
+
*/
|
|
35
|
+
readonly closure: "closure";
|
|
36
|
+
}>;
|
|
37
|
+
export type FillTypeSystem = (typeof FillTypeSystem)[keyof typeof FillTypeSystem];
|
|
38
|
+
/**
|
|
39
|
+
* Fill types associated with an order.
|
|
40
|
+
*/
|
|
41
|
+
export declare const FillTypeOrder: Readonly<{
|
|
42
|
+
/**
|
|
43
|
+
* Fills resulting from any type of market order.
|
|
44
|
+
*/
|
|
45
|
+
readonly market: "market";
|
|
46
|
+
/**
|
|
47
|
+
* Fills resulting from any type of limit order.
|
|
48
|
+
*/
|
|
49
|
+
readonly limit: "limit";
|
|
50
|
+
}>;
|
|
51
|
+
export type FillTypeOrder = (typeof FillTypeOrder)[keyof typeof FillTypeOrder];
|
|
52
|
+
/**
|
|
53
|
+
* Whether the fill increases or decreases the notional value of the position.
|
|
54
|
+
*
|
|
55
|
+
* - Includes {@link FillTypeSysem} properties which may produce different
|
|
56
|
+
* message types in places like the WebSocket API.
|
|
57
|
+
*
|
|
58
|
+
* @category Enums - Response Properties
|
|
59
|
+
* @enum
|
|
60
|
+
*/
|
|
61
|
+
export declare const FillType: Readonly<{
|
|
62
|
+
liquidation: "liquidation";
|
|
63
|
+
deleverage: "deleverage";
|
|
64
|
+
closure: "closure";
|
|
65
|
+
market: "market";
|
|
66
|
+
limit: "limit";
|
|
67
|
+
}>;
|
|
68
|
+
export type FillType = (typeof FillType)[keyof typeof FillType];
|
|
69
|
+
/**
|
|
70
|
+
* @category Enums - Response Properties
|
|
71
|
+
* @enum
|
|
72
|
+
*/
|
|
73
|
+
export declare const FillAction: Readonly<{
|
|
74
|
+
readonly open: "open";
|
|
75
|
+
readonly close: "close";
|
|
76
|
+
readonly closeAndOpen: "closeAndOpen";
|
|
77
|
+
}>;
|
|
78
|
+
export type FillAction = (typeof FillAction)[keyof typeof FillAction];
|
|
79
|
+
/**
|
|
80
|
+
* Order state is included in all order endpoint responses. Orders are not guaranteed to enter the open state before
|
|
81
|
+
* reporting as another state. For example, a limit order that is completely filled on execution first reports in the
|
|
82
|
+
* filled state in endpoint responses.
|
|
83
|
+
*
|
|
84
|
+
* @category Enums - Response Properties
|
|
85
|
+
* @enum
|
|
86
|
+
*
|
|
87
|
+
* @see related {@link _types.KatanaPerpsOrder KatanaPerpsOrder Interface}
|
|
88
|
+
* @see docs [API Documentation - Order States & Lifecycle](https://api-docs-v1-perps.katana.network/#order-states-amp-lifecycle)
|
|
89
|
+
*/
|
|
90
|
+
export declare const OrderStatus: Readonly<{
|
|
91
|
+
/**
|
|
92
|
+
* Stop order exists on the order book
|
|
93
|
+
*/
|
|
94
|
+
readonly active: "active";
|
|
95
|
+
/**
|
|
96
|
+
* Limit order was canceled prior to execution completion but may be partially filled
|
|
97
|
+
*/
|
|
98
|
+
readonly canceled: "canceled";
|
|
99
|
+
/**
|
|
100
|
+
* Limit order is completely filled and is no longer on the book; market order was filled
|
|
101
|
+
*/
|
|
102
|
+
readonly filled: "filled";
|
|
103
|
+
/**
|
|
104
|
+
* Conditional and trailing stop orders that have not yet entered the active state
|
|
105
|
+
*/
|
|
106
|
+
readonly inactive: "inactive";
|
|
107
|
+
/**
|
|
108
|
+
* Order ID to cancel was not found
|
|
109
|
+
*/
|
|
110
|
+
readonly notFound: "notFound";
|
|
111
|
+
/**
|
|
112
|
+
* Limit order exists on the order book
|
|
113
|
+
*/
|
|
114
|
+
readonly open: "open";
|
|
115
|
+
/**
|
|
116
|
+
* Limit order has completed fills but has remaining open quantity
|
|
117
|
+
*/
|
|
118
|
+
readonly partiallyFilled: "partiallyFilled";
|
|
119
|
+
}>;
|
|
120
|
+
export type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus];
|
|
121
|
+
/**
|
|
122
|
+
* @category Enums - Response Properties
|
|
123
|
+
* @enum
|
|
124
|
+
*/
|
|
125
|
+
export declare const OrderStateChange: Readonly<{
|
|
126
|
+
/**
|
|
127
|
+
* An order without a stop has been accepted into the trading engine.
|
|
128
|
+
* Will not be sent as a discrete change event if the order matches on execution.
|
|
129
|
+
*/
|
|
130
|
+
readonly new: "new";
|
|
131
|
+
/**
|
|
132
|
+
* A stop order has been accepted into the trading engine. Once triggered, it
|
|
133
|
+
* will go through other normal events starting with "new".
|
|
134
|
+
*/
|
|
135
|
+
readonly activated: "activated";
|
|
136
|
+
/**
|
|
137
|
+
* A conditional or trailing stop order has been accepted into the trading
|
|
138
|
+
* engine, but has not yet entered the active state. Once activated, it
|
|
139
|
+
* will go through other stop order events starting with "activated".
|
|
140
|
+
*
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
readonly accepted: "accepted";
|
|
144
|
+
/**
|
|
145
|
+
* An order has generated a fill, both on maker and taker sides.
|
|
146
|
+
* Will be the first change event sent if an order matches on execution.
|
|
147
|
+
*/
|
|
148
|
+
readonly fill: "fill";
|
|
149
|
+
/**
|
|
150
|
+
* An order is canceled by the user.
|
|
151
|
+
*/
|
|
152
|
+
readonly canceled: "canceled";
|
|
153
|
+
/**
|
|
154
|
+
* LIMIT FOK orders with no fill, LIMIT IOC or MARKET orders that partially fill, GTT orders past time.
|
|
155
|
+
*/
|
|
156
|
+
readonly expired: "expired";
|
|
157
|
+
}>;
|
|
158
|
+
export type OrderStateChange = (typeof OrderStateChange)[keyof typeof OrderStateChange];
|
|
159
|
+
/**
|
|
160
|
+
* @category Enums - Response Properties
|
|
161
|
+
* @enum
|
|
162
|
+
*/
|
|
163
|
+
export declare const MarketStatus: Readonly<{
|
|
164
|
+
/**
|
|
165
|
+
* No orders or cancels accepted
|
|
166
|
+
*/
|
|
167
|
+
readonly inactive: "inactive";
|
|
168
|
+
/**
|
|
169
|
+
* Cancels accepted but not trades
|
|
170
|
+
*/
|
|
171
|
+
readonly cancelsOnly: "cancelsOnly";
|
|
172
|
+
/**
|
|
173
|
+
* Cancels and gtx orders only
|
|
174
|
+
*/
|
|
175
|
+
readonly limitMakerOnly: "limitMakerOnly";
|
|
176
|
+
/**
|
|
177
|
+
* Trades and cancels accepted
|
|
178
|
+
*/
|
|
179
|
+
readonly active: "active";
|
|
180
|
+
/**
|
|
181
|
+
* Hybrid trades and cancels accepted
|
|
182
|
+
*/
|
|
183
|
+
readonly activeHybrid: "activeHybrid";
|
|
184
|
+
}>;
|
|
185
|
+
export type MarketStatus = (typeof MarketStatus)[keyof typeof MarketStatus];
|
|
186
|
+
/**
|
|
187
|
+
* @category Enums - Response Properties
|
|
188
|
+
* @enum
|
|
189
|
+
*
|
|
190
|
+
* @see related {@link _types.KatanaPerpsOrder KatanaPerpsOrder}
|
|
191
|
+
*/
|
|
192
|
+
export declare const TriggerType: Readonly<{
|
|
193
|
+
readonly last: "last";
|
|
194
|
+
readonly index: "index";
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
readonly none: "none";
|
|
199
|
+
}>;
|
|
200
|
+
export type TriggerType = (typeof TriggerType)[keyof typeof TriggerType];
|
|
201
|
+
/**
|
|
202
|
+
* @category Enums - Response Properties
|
|
203
|
+
* @enum
|
|
204
|
+
*/
|
|
205
|
+
export declare const ChainTransactionStatus: Readonly<{
|
|
206
|
+
/** Either not yet submitted or not yet mined */
|
|
207
|
+
readonly pending: "pending";
|
|
208
|
+
/** Mined, no need for any block confirmation delay */
|
|
209
|
+
readonly mined: "mined";
|
|
210
|
+
/** Transaction reverted */
|
|
211
|
+
readonly failed: "failed";
|
|
212
|
+
}>;
|
|
213
|
+
export type ChainTransactionStatus = (typeof ChainTransactionStatus)[keyof typeof ChainTransactionStatus];
|
|
214
|
+
/**
|
|
215
|
+
* @category Enums - Response Properties
|
|
216
|
+
* @enum
|
|
217
|
+
*/
|
|
218
|
+
export declare const LiquidityProvider: Readonly<{
|
|
219
|
+
/**
|
|
220
|
+
* Maker provides liquidity
|
|
221
|
+
*/
|
|
222
|
+
readonly maker: "maker";
|
|
223
|
+
/**
|
|
224
|
+
* Taker removes liquidity
|
|
225
|
+
*/
|
|
226
|
+
readonly taker: "taker";
|
|
227
|
+
}>;
|
|
228
|
+
export type LiquidityProvider = (typeof LiquidityProvider)[keyof typeof LiquidityProvider];
|
|
229
|
+
/**
|
|
230
|
+
* @category Enums - Response Properties
|
|
231
|
+
* @enum
|
|
232
|
+
*/
|
|
233
|
+
export declare const OrderBookLevelType: Readonly<{
|
|
234
|
+
readonly limit: "limit";
|
|
235
|
+
}>;
|
|
236
|
+
export type OrderBookLevelType = (typeof OrderBookLevelType)[keyof typeof OrderBookLevelType];
|
|
237
|
+
/**
|
|
238
|
+
* Can be used as a convenience when specifying your orders for WebSocket
|
|
239
|
+
* to benefit from inline documentation and auto-complete.
|
|
240
|
+
*
|
|
241
|
+
* @category Enums - Response Properties
|
|
242
|
+
* @enum
|
|
243
|
+
*/
|
|
244
|
+
export declare const PositionEventStatus: Readonly<{
|
|
245
|
+
/**
|
|
246
|
+
* - Default when position is open.
|
|
247
|
+
*/
|
|
248
|
+
open: "open";
|
|
249
|
+
/**
|
|
250
|
+
* - Only {@link closed} on last update.
|
|
251
|
+
*/
|
|
252
|
+
closed: "closed";
|
|
253
|
+
}>;
|
|
254
|
+
export type PositionEventStatus = (typeof PositionEventStatus)[keyof typeof PositionEventStatus];
|
|
255
|
+
/**
|
|
256
|
+
* @category Enums - Response Properties
|
|
257
|
+
* @enum
|
|
258
|
+
*/
|
|
259
|
+
export declare const MessageEventType: Readonly<{
|
|
260
|
+
readonly tickers: "tickers";
|
|
261
|
+
readonly trades: "trades";
|
|
262
|
+
readonly liquidations: "liquidations";
|
|
263
|
+
readonly candles: "candles";
|
|
264
|
+
readonly l1orderbook: "l1orderbook";
|
|
265
|
+
readonly l2orderbook: "l2orderbook";
|
|
266
|
+
readonly webclient: "webclient";
|
|
267
|
+
readonly deposits: "deposits";
|
|
268
|
+
readonly fundingPayments: "fundingPayments";
|
|
269
|
+
readonly orders: "orders";
|
|
270
|
+
readonly positions: "positions";
|
|
271
|
+
readonly withdrawals: "withdrawals";
|
|
272
|
+
/**
|
|
273
|
+
* **Subscription Update Events:**
|
|
274
|
+
*
|
|
275
|
+
* - Receives a {@link _types.KatanaPerpsErrorEvent KatanaPerpsErrorEvent} WebSocket response via
|
|
276
|
+
* the {@link _types.WebSocketClient.onMessage WebSocketClient.onMessage} handler
|
|
277
|
+
* detailing an error that occured while processing your request on the server.
|
|
278
|
+
*/
|
|
279
|
+
readonly error: "error";
|
|
280
|
+
/**
|
|
281
|
+
* Recieving a list of all active subscriptions.
|
|
282
|
+
*
|
|
283
|
+
* **Subscription Update Events:**
|
|
284
|
+
*
|
|
285
|
+
* - Receives a {@link _types.KatanaPerpsSubscriptionsListEvent KatanaPerpsSubscriptionsListEvent} WebSocket response via
|
|
286
|
+
* the {@link _types.WebSocketClient.onMessage WebSocketClient.onMessage} handler listing all active
|
|
287
|
+
* subscriptions as an array on the {@link _types.KatanaPerpsSubscriptionsListEvent.subscriptions subscriptions} property
|
|
288
|
+
*/
|
|
289
|
+
readonly subscriptions: "subscriptions";
|
|
290
|
+
}>;
|
|
291
|
+
export type MessageEventType = (typeof MessageEventType)[keyof typeof MessageEventType];
|
|
292
|
+
/**
|
|
293
|
+
* @internal
|
|
294
|
+
*/
|
|
295
|
+
export declare const WebClientEvent: {
|
|
296
|
+
readonly reload_banners: "reload_banners";
|
|
297
|
+
readonly exchange_status_updated: "exchange_status_updated";
|
|
298
|
+
readonly transaction_settled: "transaction_settled";
|
|
299
|
+
/**
|
|
300
|
+
* At this time this event is not active.
|
|
301
|
+
*/
|
|
302
|
+
readonly buy_crypto_completed: "buy_crypto_completed";
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* @internal
|
|
306
|
+
*/
|
|
307
|
+
export type WebClientEvent = (typeof WebClientEvent)[keyof typeof WebClientEvent];
|
|
308
|
+
/**
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
export declare const WebClientEventExchangeStatusAction: {
|
|
312
|
+
readonly controls_wallet: "controls_wallet";
|
|
313
|
+
readonly controls_exchange: "controls_exchange";
|
|
314
|
+
readonly controls_market: "controls_market";
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* @internal
|
|
318
|
+
*/
|
|
319
|
+
export type WebClientEventExchangeStatusAction = (typeof WebClientEventExchangeStatusAction)[keyof typeof WebClientEventExchangeStatusAction];
|
|
320
|
+
/**
|
|
321
|
+
* @internal
|
|
322
|
+
*/
|
|
323
|
+
export declare const WebClientEventTxSettledAction: {
|
|
324
|
+
readonly payout: "payout";
|
|
325
|
+
readonly withdraw: "withdraw";
|
|
326
|
+
readonly executeTrade: "executeTrade";
|
|
327
|
+
};
|
|
328
|
+
export type WebClientEventTxSettledAction = (typeof WebClientEventTxSettledAction)[keyof typeof WebClientEventTxSettledAction];
|
|
329
|
+
//# sourceMappingURL=response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../src/types/enums/response.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebClientEventTxSettledAction = exports.WebClientEventExchangeStatusAction = exports.WebClientEvent = exports.MessageEventType = exports.PositionEventStatus = exports.OrderBookLevelType = exports.LiquidityProvider = exports.ChainTransactionStatus = exports.TriggerType = exports.MarketStatus = exports.OrderStateChange = exports.OrderStatus = exports.FillAction = exports.FillType = exports.FillTypeOrder = exports.FillTypeSystem = exports.PositionSide = void 0;
|
|
4
|
+
const request_1 = require("#types/enums/request");
|
|
5
|
+
/**
|
|
6
|
+
* Using these objects we can construct appropriate enum with auto completion and information
|
|
7
|
+
* on each available option, if that makes sense.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* @category Enums - Response Properties
|
|
13
|
+
* @enum
|
|
14
|
+
*
|
|
15
|
+
* @see related {@link _types.KatanaPerpsPosition KatanaPerpsPosition Interface}
|
|
16
|
+
*/
|
|
17
|
+
exports.PositionSide = Object.freeze({
|
|
18
|
+
long: 'long',
|
|
19
|
+
short: 'short',
|
|
20
|
+
none: 'none',
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* Specialized fill types which do not include orders and may produce different
|
|
24
|
+
* messaging / types in various places within the code.
|
|
25
|
+
*/
|
|
26
|
+
exports.FillTypeSystem = Object.freeze({
|
|
27
|
+
/**
|
|
28
|
+
* Position closures resulting from forced liquidation or ADL.
|
|
29
|
+
*/
|
|
30
|
+
liquidation: 'liquidation',
|
|
31
|
+
/**
|
|
32
|
+
* Position closure as the counterparty to an ADL action.
|
|
33
|
+
*/
|
|
34
|
+
deleverage: 'deleverage',
|
|
35
|
+
/**
|
|
36
|
+
* Position closures resulting from forced dust liquidation.
|
|
37
|
+
*/
|
|
38
|
+
closure: 'closure',
|
|
39
|
+
});
|
|
40
|
+
/**
|
|
41
|
+
* Fill types associated with an order.
|
|
42
|
+
*/
|
|
43
|
+
exports.FillTypeOrder = Object.freeze({
|
|
44
|
+
/**
|
|
45
|
+
* Fills resulting from any type of market order.
|
|
46
|
+
*/
|
|
47
|
+
market: 'market',
|
|
48
|
+
/**
|
|
49
|
+
* Fills resulting from any type of limit order.
|
|
50
|
+
*/
|
|
51
|
+
limit: 'limit',
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* Whether the fill increases or decreases the notional value of the position.
|
|
55
|
+
*
|
|
56
|
+
* - Includes {@link FillTypeSysem} properties which may produce different
|
|
57
|
+
* message types in places like the WebSocket API.
|
|
58
|
+
*
|
|
59
|
+
* @category Enums - Response Properties
|
|
60
|
+
* @enum
|
|
61
|
+
*/
|
|
62
|
+
exports.FillType = Object.freeze({
|
|
63
|
+
...exports.FillTypeOrder,
|
|
64
|
+
...exports.FillTypeSystem,
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* @category Enums - Response Properties
|
|
68
|
+
* @enum
|
|
69
|
+
*/
|
|
70
|
+
exports.FillAction = Object.freeze({
|
|
71
|
+
open: 'open',
|
|
72
|
+
close: 'close',
|
|
73
|
+
closeAndOpen: 'closeAndOpen',
|
|
74
|
+
});
|
|
75
|
+
/**
|
|
76
|
+
* Order state is included in all order endpoint responses. Orders are not guaranteed to enter the open state before
|
|
77
|
+
* reporting as another state. For example, a limit order that is completely filled on execution first reports in the
|
|
78
|
+
* filled state in endpoint responses.
|
|
79
|
+
*
|
|
80
|
+
* @category Enums - Response Properties
|
|
81
|
+
* @enum
|
|
82
|
+
*
|
|
83
|
+
* @see related {@link _types.KatanaPerpsOrder KatanaPerpsOrder Interface}
|
|
84
|
+
* @see docs [API Documentation - Order States & Lifecycle](https://api-docs-v1-perps.katana.network/#order-states-amp-lifecycle)
|
|
85
|
+
*/
|
|
86
|
+
exports.OrderStatus = Object.freeze({
|
|
87
|
+
/**
|
|
88
|
+
* Stop order exists on the order book
|
|
89
|
+
*/
|
|
90
|
+
active: 'active',
|
|
91
|
+
/**
|
|
92
|
+
* Limit order was canceled prior to execution completion but may be partially filled
|
|
93
|
+
*/
|
|
94
|
+
canceled: 'canceled',
|
|
95
|
+
/**
|
|
96
|
+
* Limit order is completely filled and is no longer on the book; market order was filled
|
|
97
|
+
*/
|
|
98
|
+
filled: 'filled',
|
|
99
|
+
/**
|
|
100
|
+
* Conditional and trailing stop orders that have not yet entered the active state
|
|
101
|
+
*/
|
|
102
|
+
inactive: 'inactive',
|
|
103
|
+
/**
|
|
104
|
+
* Order ID to cancel was not found
|
|
105
|
+
*/
|
|
106
|
+
notFound: 'notFound',
|
|
107
|
+
/**
|
|
108
|
+
* Limit order exists on the order book
|
|
109
|
+
*/
|
|
110
|
+
open: 'open',
|
|
111
|
+
/**
|
|
112
|
+
* Limit order has completed fills but has remaining open quantity
|
|
113
|
+
*/
|
|
114
|
+
partiallyFilled: 'partiallyFilled',
|
|
115
|
+
});
|
|
116
|
+
/**
|
|
117
|
+
* @category Enums - Response Properties
|
|
118
|
+
* @enum
|
|
119
|
+
*/
|
|
120
|
+
exports.OrderStateChange = Object.freeze({
|
|
121
|
+
/**
|
|
122
|
+
* An order without a stop has been accepted into the trading engine.
|
|
123
|
+
* Will not be sent as a discrete change event if the order matches on execution.
|
|
124
|
+
*/
|
|
125
|
+
new: 'new',
|
|
126
|
+
/**
|
|
127
|
+
* A stop order has been accepted into the trading engine. Once triggered, it
|
|
128
|
+
* will go through other normal events starting with "new".
|
|
129
|
+
*/
|
|
130
|
+
activated: 'activated',
|
|
131
|
+
/**
|
|
132
|
+
* A conditional or trailing stop order has been accepted into the trading
|
|
133
|
+
* engine, but has not yet entered the active state. Once activated, it
|
|
134
|
+
* will go through other stop order events starting with "activated".
|
|
135
|
+
*
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
accepted: 'accepted',
|
|
139
|
+
/**
|
|
140
|
+
* An order has generated a fill, both on maker and taker sides.
|
|
141
|
+
* Will be the first change event sent if an order matches on execution.
|
|
142
|
+
*/
|
|
143
|
+
fill: 'fill',
|
|
144
|
+
/**
|
|
145
|
+
* An order is canceled by the user.
|
|
146
|
+
*/
|
|
147
|
+
canceled: 'canceled',
|
|
148
|
+
/**
|
|
149
|
+
* LIMIT FOK orders with no fill, LIMIT IOC or MARKET orders that partially fill, GTT orders past time.
|
|
150
|
+
*/
|
|
151
|
+
expired: 'expired',
|
|
152
|
+
});
|
|
153
|
+
/**
|
|
154
|
+
* @category Enums - Response Properties
|
|
155
|
+
* @enum
|
|
156
|
+
*/
|
|
157
|
+
exports.MarketStatus = Object.freeze({
|
|
158
|
+
/**
|
|
159
|
+
* No orders or cancels accepted
|
|
160
|
+
*/
|
|
161
|
+
inactive: 'inactive',
|
|
162
|
+
/**
|
|
163
|
+
* Cancels accepted but not trades
|
|
164
|
+
*/
|
|
165
|
+
cancelsOnly: 'cancelsOnly',
|
|
166
|
+
/**
|
|
167
|
+
* Cancels and gtx orders only
|
|
168
|
+
*/
|
|
169
|
+
limitMakerOnly: 'limitMakerOnly',
|
|
170
|
+
/**
|
|
171
|
+
* Trades and cancels accepted
|
|
172
|
+
*/
|
|
173
|
+
active: 'active',
|
|
174
|
+
/**
|
|
175
|
+
* Hybrid trades and cancels accepted
|
|
176
|
+
*/
|
|
177
|
+
activeHybrid: 'activeHybrid',
|
|
178
|
+
});
|
|
179
|
+
/**
|
|
180
|
+
* @category Enums - Response Properties
|
|
181
|
+
* @enum
|
|
182
|
+
*
|
|
183
|
+
* @see related {@link _types.KatanaPerpsOrder KatanaPerpsOrder}
|
|
184
|
+
*/
|
|
185
|
+
exports.TriggerType = Object.freeze({
|
|
186
|
+
last: 'last',
|
|
187
|
+
index: 'index',
|
|
188
|
+
/**
|
|
189
|
+
* @internal
|
|
190
|
+
*/
|
|
191
|
+
none: 'none',
|
|
192
|
+
});
|
|
193
|
+
/**
|
|
194
|
+
* @category Enums - Response Properties
|
|
195
|
+
* @enum
|
|
196
|
+
*/
|
|
197
|
+
exports.ChainTransactionStatus = Object.freeze({
|
|
198
|
+
/** Either not yet submitted or not yet mined */
|
|
199
|
+
pending: 'pending',
|
|
200
|
+
/** Mined, no need for any block confirmation delay */
|
|
201
|
+
mined: 'mined',
|
|
202
|
+
/** Transaction reverted */
|
|
203
|
+
failed: 'failed',
|
|
204
|
+
});
|
|
205
|
+
/**
|
|
206
|
+
* @category Enums - Response Properties
|
|
207
|
+
* @enum
|
|
208
|
+
*/
|
|
209
|
+
exports.LiquidityProvider = Object.freeze({
|
|
210
|
+
/**
|
|
211
|
+
* Maker provides liquidity
|
|
212
|
+
*/
|
|
213
|
+
maker: 'maker',
|
|
214
|
+
/**
|
|
215
|
+
* Taker removes liquidity
|
|
216
|
+
*/
|
|
217
|
+
taker: 'taker',
|
|
218
|
+
});
|
|
219
|
+
/**
|
|
220
|
+
* @category Enums - Response Properties
|
|
221
|
+
* @enum
|
|
222
|
+
*/
|
|
223
|
+
exports.OrderBookLevelType = Object.freeze({
|
|
224
|
+
limit: 'limit',
|
|
225
|
+
});
|
|
226
|
+
/**
|
|
227
|
+
* Can be used as a convenience when specifying your orders for WebSocket
|
|
228
|
+
* to benefit from inline documentation and auto-complete.
|
|
229
|
+
*
|
|
230
|
+
* @category Enums - Response Properties
|
|
231
|
+
* @enum
|
|
232
|
+
*/
|
|
233
|
+
exports.PositionEventStatus = Object.freeze({
|
|
234
|
+
/**
|
|
235
|
+
* - Default when position is open.
|
|
236
|
+
*/
|
|
237
|
+
open: 'open',
|
|
238
|
+
/**
|
|
239
|
+
* - Only {@link closed} on last update.
|
|
240
|
+
*/
|
|
241
|
+
closed: 'closed',
|
|
242
|
+
});
|
|
243
|
+
/**
|
|
244
|
+
* @category Enums - Response Properties
|
|
245
|
+
* @enum
|
|
246
|
+
*/
|
|
247
|
+
exports.MessageEventType = Object.freeze({
|
|
248
|
+
/**
|
|
249
|
+
* **Subscription Update Events:**
|
|
250
|
+
*
|
|
251
|
+
* - Receives a {@link _types.KatanaPerpsErrorEvent KatanaPerpsErrorEvent} WebSocket response via
|
|
252
|
+
* the {@link _types.WebSocketClient.onMessage WebSocketClient.onMessage} handler
|
|
253
|
+
* detailing an error that occured while processing your request on the server.
|
|
254
|
+
*/
|
|
255
|
+
error: 'error',
|
|
256
|
+
/**
|
|
257
|
+
* Recieving a list of all active subscriptions.
|
|
258
|
+
*
|
|
259
|
+
* **Subscription Update Events:**
|
|
260
|
+
*
|
|
261
|
+
* - Receives a {@link _types.KatanaPerpsSubscriptionsListEvent KatanaPerpsSubscriptionsListEvent} WebSocket response via
|
|
262
|
+
* the {@link _types.WebSocketClient.onMessage WebSocketClient.onMessage} handler listing all active
|
|
263
|
+
* subscriptions as an array on the {@link _types.KatanaPerpsSubscriptionsListEvent.subscriptions subscriptions} property
|
|
264
|
+
*/
|
|
265
|
+
subscriptions: 'subscriptions',
|
|
266
|
+
...request_1.SubscriptionNameAuthenticated,
|
|
267
|
+
...request_1.SubscriptionNamePublic,
|
|
268
|
+
});
|
|
269
|
+
/**
|
|
270
|
+
* @internal
|
|
271
|
+
*/
|
|
272
|
+
exports.WebClientEvent = {
|
|
273
|
+
reload_banners: 'reload_banners',
|
|
274
|
+
exchange_status_updated: 'exchange_status_updated',
|
|
275
|
+
transaction_settled: 'transaction_settled',
|
|
276
|
+
/**
|
|
277
|
+
* At this time this event is not active.
|
|
278
|
+
*/
|
|
279
|
+
buy_crypto_completed: 'buy_crypto_completed',
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* @internal
|
|
283
|
+
*/
|
|
284
|
+
exports.WebClientEventExchangeStatusAction = {
|
|
285
|
+
controls_wallet: 'controls_wallet',
|
|
286
|
+
controls_exchange: 'controls_exchange',
|
|
287
|
+
controls_market: 'controls_market',
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* @internal
|
|
291
|
+
*/
|
|
292
|
+
exports.WebClientEventTxSettledAction = {
|
|
293
|
+
payout: 'payout',
|
|
294
|
+
withdraw: 'withdraw',
|
|
295
|
+
executeTrade: 'executeTrade',
|
|
296
|
+
};
|