@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,39 @@
|
|
|
1
|
+
import type { RestRequestPagination, RestRequestByWallet } from '#index';
|
|
2
|
+
/**
|
|
3
|
+
* Get Historical PnL
|
|
4
|
+
*
|
|
5
|
+
* @see response {@link RestResponseGetHistoricalPnL}
|
|
6
|
+
* @see type {@link KatanaPerpsHistoricalProfitLoss}
|
|
7
|
+
*
|
|
8
|
+
* @category KatanaPerps - Get Historical PnL
|
|
9
|
+
*/
|
|
10
|
+
export interface RestRequestGetHistoricalPnL extends RestRequestByWallet, RestRequestPagination {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @category KatanaPerps - Get Historical PnL
|
|
14
|
+
* @category KatanaPerps Interfaces
|
|
15
|
+
*/
|
|
16
|
+
export interface KatanaPerpsHistoricalProfitLoss {
|
|
17
|
+
/** Total account value */
|
|
18
|
+
equity: string;
|
|
19
|
+
/**
|
|
20
|
+
* Total PnL for account since first deposit
|
|
21
|
+
*/
|
|
22
|
+
totalPnL: string;
|
|
23
|
+
/**
|
|
24
|
+
* Net quantity deposited and withdrawn since the last data point in quote terms
|
|
25
|
+
*/
|
|
26
|
+
netDepositsWithdrawals: string;
|
|
27
|
+
/**
|
|
28
|
+
* The timestamp indicating when the item was created.
|
|
29
|
+
*/
|
|
30
|
+
time: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @see type {@link KatanaPerpsHistoricalProfitLoss}
|
|
34
|
+
* @see request {@link RestRequestGetHistoricalPnL}
|
|
35
|
+
*
|
|
36
|
+
* @category KatanaPerps - Get Historical PnL
|
|
37
|
+
*/
|
|
38
|
+
export type RestResponseGetHistoricalPnL = KatanaPerpsHistoricalProfitLoss[];
|
|
39
|
+
//# sourceMappingURL=GetHistoricalPnL.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetHistoricalPnL.d.ts","sourceRoot":"","sources":["../../../../src/types/rest/endpoints/GetHistoricalPnL.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAEzE;;;;;;;GAOG;AACH,MAAM,WAAW,2BACf,SAAQ,mBAAmB,EACzB,qBAAqB;CAAG;AAE5B;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG,+BAA+B,EAAE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { RestRequestByMarketOptional, RestRequestByWallet } from '#index';
|
|
2
|
+
import type { KatanaPerpsInitialMarginFractionOverride } from './SetInitialMarginFractionOverride.js';
|
|
3
|
+
/**
|
|
4
|
+
* - Rest Request: `GET /v1/initialMarginFractionOverride`
|
|
5
|
+
* - Security: `User`
|
|
6
|
+
* - API Scope: `Read`
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @see response {@link RestResponseGetInitialMarginFractionOverride}
|
|
12
|
+
* @see type {@link KatanaPerpsInitialMarginFractionOverride}
|
|
13
|
+
*
|
|
14
|
+
* @category KatanaPerps - Get Initial Margin Fraction override
|
|
15
|
+
*/
|
|
16
|
+
export interface RestRequestGetInitialMarginFractionOverride extends Required<RestRequestByWallet>, RestRequestByMarketOptional {
|
|
17
|
+
/**
|
|
18
|
+
* - If provided, the response will include only the market in the resulting array.
|
|
19
|
+
*
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
market?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @see type {@link KatanaPerpsInitialMarginFractionOverride}
|
|
26
|
+
* @see request {@link RestRequestGetInitialMarginFractionOverride}
|
|
27
|
+
*
|
|
28
|
+
* @category KatanaPerps - Get Initial Margin Fraction override
|
|
29
|
+
*/
|
|
30
|
+
export type RestResponseGetInitialMarginFractionOverride = KatanaPerpsInitialMarginFractionOverride[];
|
|
31
|
+
//# sourceMappingURL=GetInitialMarginFractionOverride.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetInitialMarginFractionOverride.d.ts","sourceRoot":"","sources":["../../../../src/types/rest/endpoints/GetInitialMarginFractionOverride.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAC/E,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,uCAAuC,CAAC;AAEtG;;;;;;GAMG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,2CACf,SAAQ,QAAQ,CAAC,mBAAmB,CAAC,EACnC,2BAA2B;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,MAAM,MAAM,4CAA4C,GACtD,wCAAwC,EAAE,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { OrderSide, RestRequestByMarket, RestRequestPaginationWithFromId } from '#index';
|
|
2
|
+
/**
|
|
3
|
+
* Get Liquidations
|
|
4
|
+
*
|
|
5
|
+
* @see response {@link RestResponseGetLiquidations}
|
|
6
|
+
* @see type {@link KatanaPerpsLiquidation}
|
|
7
|
+
*
|
|
8
|
+
* @category KatanaPerps - Get Liquidations
|
|
9
|
+
*/
|
|
10
|
+
export interface RestRequestGetLiquidations extends RestRequestByMarket, RestRequestPaginationWithFromId {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @see request {@link RestRequestGetLiquidations}
|
|
14
|
+
* @see response {@link RestResponseGetLiquidations}
|
|
15
|
+
*
|
|
16
|
+
* @category KatanaPerps - Get Liquidations
|
|
17
|
+
* @category KatanaPerps Interfaces
|
|
18
|
+
*/
|
|
19
|
+
export interface KatanaPerpsLiquidation {
|
|
20
|
+
/**
|
|
21
|
+
* Liquidation identifier
|
|
22
|
+
*/
|
|
23
|
+
fillId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Price of the liquidation in quote terms
|
|
26
|
+
*/
|
|
27
|
+
price: string;
|
|
28
|
+
/**
|
|
29
|
+
* Quantity of the liquidation in base terms
|
|
30
|
+
*/
|
|
31
|
+
quantity: string;
|
|
32
|
+
/**
|
|
33
|
+
* Quantity of the liquidation in quote terms
|
|
34
|
+
*/
|
|
35
|
+
quoteQuantity: string;
|
|
36
|
+
/**
|
|
37
|
+
* Timestamp of the liquidation
|
|
38
|
+
*/
|
|
39
|
+
time: number;
|
|
40
|
+
/**
|
|
41
|
+
* Liquidation side of the settlement, `buy` or `sell`
|
|
42
|
+
*/
|
|
43
|
+
liquidationSide: OrderSide;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @see type {@link KatanaPerpsLiquidation}
|
|
47
|
+
* @see request {@link RestRequestGetLiquidations}
|
|
48
|
+
*
|
|
49
|
+
* @category KatanaPerps - Get Liquidations
|
|
50
|
+
*/
|
|
51
|
+
export type RestResponseGetLiquidations = KatanaPerpsLiquidation[];
|
|
52
|
+
//# sourceMappingURL=GetLiquidations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetLiquidations.d.ts","sourceRoot":"","sources":["../../../../src/types/rest/endpoints/GetLiquidations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAEhB;;;;;;;GAOG;AACH,MAAM,WAAW,0BACf,SAAQ,mBAAmB,EACzB,+BAA+B;CAAG;AAEtC;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,eAAe,EAAE,SAAS,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,534 @@
|
|
|
1
|
+
import type { RestRequestByWalletOptional } from '#index';
|
|
2
|
+
import type { Expand } from '#types/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @category Base Types
|
|
5
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
6
|
+
*/
|
|
7
|
+
interface RestRequestWithEpochId extends RestRequestByWalletOptional {
|
|
8
|
+
/**
|
|
9
|
+
* Epoch identifier to query.
|
|
10
|
+
*
|
|
11
|
+
* - If no `epochId` is provided, the API servers the currently active epoch when present.
|
|
12
|
+
*/
|
|
13
|
+
epochId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* By providing a wallet parameter, the `getEpoch` response
|
|
16
|
+
* will **include** wallet-specific details.
|
|
17
|
+
*
|
|
18
|
+
* - When {@link wallet} is **provided**: {@link MarketMakerRewardsEpochDetailedWithWallet}
|
|
19
|
+
* - When {@link wallet} is **excluded**: {@link MarketMakerRewardsEpochDetailedWithoutWallet}
|
|
20
|
+
*/
|
|
21
|
+
wallet?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* {@inheritDoc RestRequestGetMarketMakerRewardsEpoch}
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* > This interface represents a {@link RestRequestGetMarketMakerRewardsEpoch} request
|
|
28
|
+
* > which does not provide a {@link wallet} parameter.
|
|
29
|
+
*
|
|
30
|
+
* ---
|
|
31
|
+
* @see type {@link MarketMakerRewardsEpochDetailedWithoutWallet}
|
|
32
|
+
* @see response {@link RestResponseGetMarketMakerRewardsEpoch}
|
|
33
|
+
* @see related {@link RestRequestGetMarketMakerRewardsEpochs}
|
|
34
|
+
*
|
|
35
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
36
|
+
*/
|
|
37
|
+
export interface RestRequestGetMarketMakerRewardsEpochWithoutWallet extends RestRequestWithEpochId {
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
wallet?: undefined;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* {@inheritDoc RestRequestGetMarketMakerRewardsEpoch}
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* > This interface represents a {@link RestRequestGetMarketMakerRewardsEpoch} request
|
|
48
|
+
* > which does not provide a {@link wallet} parameter.
|
|
49
|
+
*
|
|
50
|
+
* ---
|
|
51
|
+
* @see type {@link MarketMakerRewardsEpochDetailedWithWallet}
|
|
52
|
+
* @see response {@link RestResponseGetMarketMakerRewardsEpoch}
|
|
53
|
+
* @see related {@link RestRequestGetMarketMakerRewardsEpochs}
|
|
54
|
+
*
|
|
55
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
56
|
+
*/
|
|
57
|
+
export interface RestRequestGetMarketMakerRewardsEpochWithWallet extends RestRequestWithEpochId {
|
|
58
|
+
/**
|
|
59
|
+
* @inheritDoc
|
|
60
|
+
*/
|
|
61
|
+
wallet: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The Get Epoch endpoint provides detailed information about
|
|
65
|
+
* epoch configuration as well as wallet epoch performance.
|
|
66
|
+
*
|
|
67
|
+
* - Providing a {@link RestRequestGetMarketMakerRewardsEpochWithWallet.wallet wallet} parameter
|
|
68
|
+
* will return {@link MarketMakerRewardsEpochDetailedWithWallet}
|
|
69
|
+
* which includes wallet-specific details in the response.
|
|
70
|
+
* - Otherwise the request will return {@link MarketMakerRewardsEpochDetailedWithoutWallet}
|
|
71
|
+
*
|
|
72
|
+
* ---
|
|
73
|
+
* **Endpoint Parameters**
|
|
74
|
+
*
|
|
75
|
+
* > - HTTP Request: `GET /v1/marketMakerRewardsV1/epoch`
|
|
76
|
+
* > - Endpoint Security: [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
|
|
77
|
+
* > - API Key Scope: [Read](https://api-docs-v1-perps.katana.network/#api-keys)
|
|
78
|
+
* ---
|
|
79
|
+
*
|
|
80
|
+
* @see type {@link KatanaPerpsMarketMakerRewardsEpoch}
|
|
81
|
+
* @see response {@link RestResponseGetMarketMakerRewardsEpoch}
|
|
82
|
+
* @see related {@link RestRequestGetMarketMakerRewardsEpochs}
|
|
83
|
+
*
|
|
84
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
85
|
+
*/
|
|
86
|
+
export type RestRequestGetMarketMakerRewardsEpoch = RestRequestGetMarketMakerRewardsEpochWithWallet | RestRequestGetMarketMakerRewardsEpochWithoutWallet;
|
|
87
|
+
/**
|
|
88
|
+
* The Get Epochs endpoint provides a list of the defined market
|
|
89
|
+
* maker rewards epochs.
|
|
90
|
+
*
|
|
91
|
+
* ---
|
|
92
|
+
* **Endpoint Parameters**
|
|
93
|
+
*
|
|
94
|
+
* > - HTTP Request: `GET /v1/marketMakerRewardsV1/epochs`
|
|
95
|
+
* > - Endpoint Security: [User Data](https://api-docs-v1-perps.katana.network/#endpointSecurityUserData)
|
|
96
|
+
* > - API Key Scope: [Read](https://api-docs-v1-perps.katana.network/#api-keys)
|
|
97
|
+
* ---
|
|
98
|
+
*
|
|
99
|
+
* @see type {@link KatanaPerpsMarketMakerRewardsEpochSummary}
|
|
100
|
+
* @see response {@link RestResponseGetMarketMakerRewardsEpochs}
|
|
101
|
+
* @see related {@link RestRequestGetMarketMakerRewardsEpoch}
|
|
102
|
+
*
|
|
103
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
104
|
+
*/
|
|
105
|
+
export interface RestRequestGetMarketMakerRewardsEpochs {
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @category Base Types
|
|
109
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
110
|
+
*/
|
|
111
|
+
interface MarketMakerRewardsEpochMarketBase {
|
|
112
|
+
/**
|
|
113
|
+
* Market symbol
|
|
114
|
+
*/
|
|
115
|
+
market: string;
|
|
116
|
+
/**
|
|
117
|
+
* Token reward quantity for the market
|
|
118
|
+
*/
|
|
119
|
+
rewardQuantity: string;
|
|
120
|
+
/**
|
|
121
|
+
* Maximum qualified order distance from the midpoint of the spread.
|
|
122
|
+
*
|
|
123
|
+
* - All percents are expressed as standard decimal value with pip resolution.
|
|
124
|
+
* E.g. `18.5%` is `"0.18500000"`
|
|
125
|
+
*/
|
|
126
|
+
maximumQualifiedOrderDistancePercent: string;
|
|
127
|
+
/**
|
|
128
|
+
* Minimum qualified order quantity
|
|
129
|
+
*/
|
|
130
|
+
minimumQualifiedOrderQuantity: string;
|
|
131
|
+
/**
|
|
132
|
+
* Epoch’s wallet depth score for the market.
|
|
133
|
+
*
|
|
134
|
+
* - For currently active epochs, this is the wallet’s estimated depth at last cache time.
|
|
135
|
+
* - Only provided if the request includes a wallet parameter.
|
|
136
|
+
*/
|
|
137
|
+
walletDepthScore?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Epoch’s wallet “uptime” score for the market as a percent.
|
|
140
|
+
*
|
|
141
|
+
* - For currently active epochs, this is the wallet’s estimated score at last cache time.
|
|
142
|
+
* - Only provided if the request includes a wallet parameter.
|
|
143
|
+
* - All percents are expressed as standard decimal value with pip resolution.
|
|
144
|
+
* E.g. `18.5%` is `"0.18500000"`
|
|
145
|
+
*/
|
|
146
|
+
walletUptimePercent?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Epoch’s wallet qualified maker volume for the market as a percent relative
|
|
149
|
+
* to eligible wallet qualified maker volume.
|
|
150
|
+
*
|
|
151
|
+
* - For currently active epochs, this is the wallet’s estimated score at last cache time.
|
|
152
|
+
* - Only provided if the request includes a wallet parameter.
|
|
153
|
+
* - All percents are expressed as standard decimal value with pip resolution.
|
|
154
|
+
* E.g. `18.5%` is `"0.18500000"`
|
|
155
|
+
*/
|
|
156
|
+
walletRewardVolumePercent?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Epoch’s wallet qualified maker volume for the market as a percent relative
|
|
159
|
+
* to total qualified maker volume.
|
|
160
|
+
*
|
|
161
|
+
* - For currently active epochs, this is the wallet’s estimated score at last cache time.
|
|
162
|
+
* - Only provided if the request includes a wallet parameter.
|
|
163
|
+
* - All percents are expressed as standard decimal value with pip resolution.
|
|
164
|
+
* E.g. `18.5%` is `"0.18500000"`
|
|
165
|
+
*/
|
|
166
|
+
walletEligibilityVolumePercent?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Epoch’s wallet score for the market as a percent.
|
|
169
|
+
*
|
|
170
|
+
* - For currently active epochs, this is the wallet’s estimated score at last cache time.
|
|
171
|
+
* - Only provided if the request includes a wallet parameter.
|
|
172
|
+
* - All percents are expressed as standard decimal value with pip resolution.
|
|
173
|
+
* E.g. `18.5%` is `"0.18500000"`
|
|
174
|
+
*/
|
|
175
|
+
walletScorePercent?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Epoch’s wallet token reward quantity for the market.
|
|
178
|
+
*
|
|
179
|
+
* - For currently active epochs, this is the wallet’s estimated token reward quantity at last cache time.
|
|
180
|
+
* - Only provided if the request includes a wallet parameter.
|
|
181
|
+
* - All percents are expressed as standard decimal value with pip resolution.
|
|
182
|
+
*/
|
|
183
|
+
walletRewardQuantity?: string;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* When **not** providing a {@link RestRequestGetMarketMakerRewardsEpochWithWallet.wallet wallet} parameter with
|
|
187
|
+
* the {@link RestRequestGetMarketMakerRewardsEpoch} request, the {@link MarketMakerRewardsEpochDetailedWithoutWallet.markets markets}
|
|
188
|
+
* array **will not** include wallet-specific details for each market.
|
|
189
|
+
*
|
|
190
|
+
* ---
|
|
191
|
+
*
|
|
192
|
+
* @see MarketMakerRewardsEpochMarketWithWallet
|
|
193
|
+
*
|
|
194
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
195
|
+
*/
|
|
196
|
+
export interface MarketMakerRewardsEpochMarketWithoutWallet extends MarketMakerRewardsEpochMarketBase {
|
|
197
|
+
walletDepthScore?: undefined;
|
|
198
|
+
walletUptimePercent?: undefined;
|
|
199
|
+
walletRewardVolumePercent?: undefined;
|
|
200
|
+
walletEligibilityVolumePercent?: undefined;
|
|
201
|
+
walletScorePercent?: undefined;
|
|
202
|
+
walletRewardQuantity?: undefined;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* When providing a {@link RestRequestGetMarketMakerRewardsEpochWithWallet.wallet wallet} parameter with the
|
|
206
|
+
* {@link RestRequestGetMarketMakerRewardsEpoch} request, the {@link MarketMakerRewardsEpochDetailedWithWallet.markets markets}
|
|
207
|
+
* array **will** include wallet-specific details for each market.
|
|
208
|
+
*
|
|
209
|
+
* ---
|
|
210
|
+
*
|
|
211
|
+
* @see related {@link MarketMakerRewardsEpochMarketWithoutWallet}
|
|
212
|
+
*
|
|
213
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
214
|
+
*/
|
|
215
|
+
export interface MarketMakerRewardsEpochMarketWithWallet extends MarketMakerRewardsEpochMarketBase {
|
|
216
|
+
/** @inheritDoc */
|
|
217
|
+
walletDepthScore: string;
|
|
218
|
+
/** @inheritDoc */
|
|
219
|
+
walletUptimePercent: string;
|
|
220
|
+
/** @inheritDoc */
|
|
221
|
+
walletRewardVolumePercent: string;
|
|
222
|
+
/** @inheritDoc */
|
|
223
|
+
walletEligibilityVolumePercent: string;
|
|
224
|
+
/** @inheritDoc */
|
|
225
|
+
walletScorePercent: string;
|
|
226
|
+
/** @inheritDoc */
|
|
227
|
+
walletRewardQuantity: string;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* The possible types representing the {@link RestRequestGetMarketMakerRewardsEpoch} response's
|
|
231
|
+
* {@link KatanaPerpsMarketMakerRewardsEpoch.markets} markets details.
|
|
232
|
+
*
|
|
233
|
+
* ---
|
|
234
|
+
*
|
|
235
|
+
* @see type {@link KatanaPerpsMarketMakerRewardsEpoch}
|
|
236
|
+
*
|
|
237
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
238
|
+
*/
|
|
239
|
+
export type MarketMakerRewardsEpochMarket = MarketMakerRewardsEpochMarketWithWallet | MarketMakerRewardsEpochMarketWithoutWallet;
|
|
240
|
+
/**
|
|
241
|
+
* When querying an epoch using the {@link RestRequestGetMarketMakerRewardsEpoch} endpoint
|
|
242
|
+
* and not providing the {@link RestRequestGetMarketMakerRewardsEpoch.wallet wallet} parameter,
|
|
243
|
+
* the response will exclude wallet-specific details from the response.
|
|
244
|
+
*
|
|
245
|
+
* Provide the wallet parameter to include the following details:
|
|
246
|
+
*
|
|
247
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletScorePercent walletScorePercent}
|
|
248
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletRewardQuantity walletRewardQuantity}
|
|
249
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletRewardVolumePercent walletRewardVolumePercent}
|
|
250
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletEligibilityVolumePercent walletEligibilityVolumePercent}
|
|
251
|
+
* - {@link MarketMakerRewardsEpochMarketWithWallet markets} - with wallet-specific details
|
|
252
|
+
*
|
|
253
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
254
|
+
* @category Base Types
|
|
255
|
+
*/
|
|
256
|
+
interface MarketMakerRewardsEpochBase {
|
|
257
|
+
/**
|
|
258
|
+
* Epoch identifier
|
|
259
|
+
*/
|
|
260
|
+
epochId: string;
|
|
261
|
+
/**
|
|
262
|
+
* Timestamp of the epoch start.
|
|
263
|
+
*/
|
|
264
|
+
startsAt: number;
|
|
265
|
+
/**
|
|
266
|
+
* Timestamp of the epoch end.
|
|
267
|
+
*/
|
|
268
|
+
endsAt: number;
|
|
269
|
+
/**
|
|
270
|
+
* Timestamp of the epoch review period completion.
|
|
271
|
+
*/
|
|
272
|
+
reviewEndsAt: number;
|
|
273
|
+
/**
|
|
274
|
+
* Timestamp of the previous epoch’s review period end.
|
|
275
|
+
*
|
|
276
|
+
* - Only present if the value is in the future
|
|
277
|
+
* (ie the system is currently awaiting the previous epoch end)
|
|
278
|
+
*/
|
|
279
|
+
previousEpochReviewEndsAt?: number;
|
|
280
|
+
/**
|
|
281
|
+
* Total token reward quantity
|
|
282
|
+
*/
|
|
283
|
+
totalRewardQuantity?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Qualified volume percent setting for the current epoch, if defined.
|
|
286
|
+
*
|
|
287
|
+
* - Wallet qualified maker volume for the prior epoch must meet or exceed
|
|
288
|
+
* this value as a percent of overall qualified maker volume to be eligible
|
|
289
|
+
* for the current epoch’s rewards
|
|
290
|
+
* - Not present if no eligibility percent is defined for the epoch
|
|
291
|
+
* - All percents are expressed as standard decimal value with pip resolution.
|
|
292
|
+
* E.g. `18.5%` is `"0.18500000"`
|
|
293
|
+
*/
|
|
294
|
+
eligibilityVolumeRequirementPercent?: string;
|
|
295
|
+
/**
|
|
296
|
+
* Qualified volume percent setting for the next epoch, if defined.
|
|
297
|
+
*
|
|
298
|
+
* - All percents are expressed as standard decimal value with pip resolution.
|
|
299
|
+
* E.g. `18.5%` is `"0.18500000"`
|
|
300
|
+
*/
|
|
301
|
+
nextEpochEligibilityVolumeRequirementPercent?: string;
|
|
302
|
+
/**
|
|
303
|
+
* Score parameter
|
|
304
|
+
*/
|
|
305
|
+
alpha?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Score parameter
|
|
308
|
+
*/
|
|
309
|
+
beta?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Indicates whether the wallet is eligible to earn market maker rewards in
|
|
312
|
+
* the requested epoch, based on the wallet's performance in the previous
|
|
313
|
+
* epoch.
|
|
314
|
+
* @see walletEligibilityVolumePercent
|
|
315
|
+
*
|
|
316
|
+
* - Only provided if the request includes a wallet parameter, and when
|
|
317
|
+
* requesting the current or past epochs
|
|
318
|
+
*/
|
|
319
|
+
isWalletEligibleInEpoch?: boolean;
|
|
320
|
+
/**
|
|
321
|
+
* Epoch’s wallet score as a percent.
|
|
322
|
+
*
|
|
323
|
+
* - For currently active epochs, this is the wallet’s
|
|
324
|
+
* estimated score at last cache time.
|
|
325
|
+
* - Only provided if the request includes a wallet parameter.
|
|
326
|
+
* - All percents are expressed as standard decimal value with pip resolution.
|
|
327
|
+
* E.g. `18.5%` is `"0.18500000"`
|
|
328
|
+
*/
|
|
329
|
+
walletScorePercent?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Epoch’s wallet token reward quantity.
|
|
332
|
+
*
|
|
333
|
+
* - For currently active epochs, this is the wallet’s estimated
|
|
334
|
+
* token reward quantity at last cache time.
|
|
335
|
+
* - Only provided if the request includes a wallet parameter.
|
|
336
|
+
*/
|
|
337
|
+
walletRewardQuantity?: string;
|
|
338
|
+
/**
|
|
339
|
+
* Epoch’s wallet qualified maker volume percent relative to eligible wallet
|
|
340
|
+
* qualified maker volume.
|
|
341
|
+
*
|
|
342
|
+
* - This value is used as part of the current epoch’s reward calculation.
|
|
343
|
+
* - All percents are expressed as standard decimal value with pip resolution.
|
|
344
|
+
* E.g. `18.5%` is `"0.18500000"`
|
|
345
|
+
*/
|
|
346
|
+
walletRewardVolumePercent?: string;
|
|
347
|
+
/**
|
|
348
|
+
* Current epoch’s wallet qualified maker volume percent relative to total
|
|
349
|
+
* qualified maker volume.
|
|
350
|
+
*
|
|
351
|
+
* - Wallet is eligible for the next epoch awards if this value
|
|
352
|
+
* exceeds {@link nextEpochEligibilityVolumeRequirementPercent}.
|
|
353
|
+
* - All percents are expressed as standard decimal value with pip resolution.
|
|
354
|
+
* E.g. `18.5%` is `"0.18500000"`
|
|
355
|
+
*/
|
|
356
|
+
walletEligibilityVolumePercent?: string;
|
|
357
|
+
/**
|
|
358
|
+
* - When wallet was in the request: {@link MarketMakerRewardsEpochMarketWithWallet KatanaPerpsEpochMarketWithWallet[]}
|
|
359
|
+
* - Otherwise: {@link MarketMakerRewardsEpochMarketWithoutWallet KatanaPerpsEpochMarketWithoutWallet[]}
|
|
360
|
+
*
|
|
361
|
+
* @see MarketMakerRewardsEpochMarket
|
|
362
|
+
*/
|
|
363
|
+
markets?: MarketMakerRewardsEpochMarket[];
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* When querying the list of epochs via the {@link RestRequestGetMarketMakerRewardsEpochs} endpoint
|
|
367
|
+
* the response will be a summary of each epoch.
|
|
368
|
+
*
|
|
369
|
+
* - The {@link MarketMakerRewardsEpochBase.epochId epochId} can be used to query the detailed
|
|
370
|
+
* epoch information via the {@link RestRequestGetMarketMakerRewardsEpoch} endpoint.
|
|
371
|
+
*
|
|
372
|
+
* ---
|
|
373
|
+
* @see request {@link RestRequestGetMarketMakerRewardsEpochs}
|
|
374
|
+
* @see response {@link RestResponseGetMarketMakerRewardsEpochs}
|
|
375
|
+
* @see related {@link KatanaPerpsMarketMakerRewardsEpoch}
|
|
376
|
+
*
|
|
377
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
378
|
+
*
|
|
379
|
+
* @interface
|
|
380
|
+
*/
|
|
381
|
+
export type KatanaPerpsMarketMakerRewardsEpochSummary = Expand<Pick<MarketMakerRewardsEpochBase, 'epochId' | 'startsAt' | 'endsAt' | 'reviewEndsAt'>>;
|
|
382
|
+
/**
|
|
383
|
+
* When querying an epoch using the {@link RestRequestGetMarketMakerRewardsEpoch} endpoint
|
|
384
|
+
* and not providing the {@link RestRequestGetMarketMakerRewardsEpoch.wallet wallet} parameter,
|
|
385
|
+
* the response will exclude wallet-specific details from the response.
|
|
386
|
+
*
|
|
387
|
+
* Provide the wallet parameter to include the following details:
|
|
388
|
+
*
|
|
389
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletScorePercent walletScorePercent}
|
|
390
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletRewardQuantity walletRewardQuantity}
|
|
391
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletRewardVolumePercent walletRewardVolumePercent}
|
|
392
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletEligibilityVolumePercent walletEligibilityVolumePercent}
|
|
393
|
+
* - {@link MarketMakerRewardsEpochMarketWithWallet markets} - with wallet-specific details
|
|
394
|
+
*
|
|
395
|
+
* ---
|
|
396
|
+
* @see type {@link KatanaPerpsMarketMakerRewardsEpoch}
|
|
397
|
+
* @see request {@link RestRequestGetMarketMakerRewardsEpoch}
|
|
398
|
+
* @see response {@link RestResponseGetMarketMakerRewardsEpoch}
|
|
399
|
+
* @see related {@link MarketMakerRewardsEpochDetailedWithWallet}
|
|
400
|
+
*
|
|
401
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
402
|
+
*/
|
|
403
|
+
export interface MarketMakerRewardsEpochDetailedWithoutWallet extends MarketMakerRewardsEpochBase {
|
|
404
|
+
/** @inheritDoc */
|
|
405
|
+
totalRewardQuantity: string;
|
|
406
|
+
/** @inheritDoc */
|
|
407
|
+
alpha: string;
|
|
408
|
+
/** @inheritDoc */
|
|
409
|
+
beta: string;
|
|
410
|
+
/** @inheritDoc */
|
|
411
|
+
markets: MarketMakerRewardsEpochMarketWithoutWallet[];
|
|
412
|
+
walletScorePercent?: undefined;
|
|
413
|
+
walletRewardQuantity?: undefined;
|
|
414
|
+
walletRewardVolumePercent?: undefined;
|
|
415
|
+
walletEligibilityVolumePercent?: undefined;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* When querying an epoch using the {@link RestRequestGetMarketMakerRewardsEpoch} endpoint
|
|
419
|
+
* and providing the {@link RestRequestGetMarketMakerRewardsEpochWithWallet.wallet wallet} parameter,
|
|
420
|
+
* the response will include the wallet-specific details from the response.
|
|
421
|
+
*
|
|
422
|
+
* Provide the wallet parameter to include the following details:
|
|
423
|
+
*
|
|
424
|
+
* - {@link walletScorePercent walletScorePercent}
|
|
425
|
+
* - {@link walletRewardQuantity walletRewardQuantity}
|
|
426
|
+
* - {@link walletRewardVolumePercent walletRewardVolumePercent}
|
|
427
|
+
* - {@link walletEligibilityVolumePercent walletEligibilityVolumePercent}
|
|
428
|
+
* - {@link MarketMakerRewardsEpochMarketWithWallet markets} (with wallet details)
|
|
429
|
+
*
|
|
430
|
+
* ---
|
|
431
|
+
*
|
|
432
|
+
* @see type {@link KatanaPerpsMarketMakerRewardsEpoch}
|
|
433
|
+
* @see request {@link RestRequestGetMarketMakerRewardsEpoch}
|
|
434
|
+
* @see response {@link RestResponseGetMarketMakerRewardsEpoch}
|
|
435
|
+
* @see related {@link MarketMakerRewardsEpochDetailedWithoutWallet}
|
|
436
|
+
*
|
|
437
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
438
|
+
*/
|
|
439
|
+
export interface MarketMakerRewardsEpochDetailedWithWallet extends MarketMakerRewardsEpochBase {
|
|
440
|
+
/** @inheritDoc */
|
|
441
|
+
totalRewardQuantity: string;
|
|
442
|
+
/** @inheritDoc */
|
|
443
|
+
alpha: string;
|
|
444
|
+
/** @inheritDoc */
|
|
445
|
+
beta: string;
|
|
446
|
+
/** @inheritDoc */
|
|
447
|
+
walletScorePercent: string;
|
|
448
|
+
/** @inheritDoc */
|
|
449
|
+
walletRewardQuantity: string;
|
|
450
|
+
/** @inheritDoc */
|
|
451
|
+
walletRewardVolumePercent: string;
|
|
452
|
+
/** @inheritDoc */
|
|
453
|
+
walletEligibilityVolumePercent: string;
|
|
454
|
+
/** @inheritDoc */
|
|
455
|
+
markets: MarketMakerRewardsEpochMarketWithWallet[];
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* When querying an epoch using the {@link RestRequestGetMarketMakerRewardsEpoch} endpoint
|
|
459
|
+
* and providing the {@link RestRequestGetMarketMakerRewardsEpochWithWallet.wallet wallet} parameter,
|
|
460
|
+
* the response will include the wallet-specific details from the response.
|
|
461
|
+
*
|
|
462
|
+
* Provide the `wallet` parameter to include the following details:
|
|
463
|
+
*
|
|
464
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletScorePercent walletScorePercent}
|
|
465
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletRewardQuantity walletRewardQuantity}
|
|
466
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletRewardVolumePercent walletRewardVolumePercent}
|
|
467
|
+
* - {@link MarketMakerRewardsEpochDetailedWithWallet.walletEligibilityVolumePercent walletEligibilityVolumePercent}
|
|
468
|
+
* - {@link MarketMakerRewardsEpochMarketWithWallet markets} - with wallet-specific details
|
|
469
|
+
*
|
|
470
|
+
* ---
|
|
471
|
+
* @see request {@link RestRequestGetMarketMakerRewardsEpoch}
|
|
472
|
+
* @see response {@link RestResponseGetMarketMakerRewardsEpoch}
|
|
473
|
+
*
|
|
474
|
+
* @see related {@link KatanaPerpsMarketMakerRewardsEpochSummary}
|
|
475
|
+
*
|
|
476
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
477
|
+
* @category KatanaPerps Interfaces
|
|
478
|
+
*/
|
|
479
|
+
export type KatanaPerpsMarketMakerRewardsEpoch = MarketMakerRewardsEpochDetailedWithoutWallet | MarketMakerRewardsEpochDetailedWithWallet;
|
|
480
|
+
/**
|
|
481
|
+
* Returns the detailed information about the requested epoch.
|
|
482
|
+
*
|
|
483
|
+
* ---
|
|
484
|
+
* @see type {@link KatanaPerpsMarketMakerRewardsEpoch}
|
|
485
|
+
* @see request {@link RestRequestGetMarketMakerRewardsEpoch}
|
|
486
|
+
*
|
|
487
|
+
* @see related {@link RestResponseGetMarketMakerRewardsEpochs}
|
|
488
|
+
* @see related {@link RestRequestGetMarketMakerRewardsEpochs}
|
|
489
|
+
*
|
|
490
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
491
|
+
*
|
|
492
|
+
* @typeParam RequestType - Optionally provide the request parameters
|
|
493
|
+
* used to return strong types based on if
|
|
494
|
+
* the wallet parameter was used.
|
|
495
|
+
* (this is automatic when calling the client methods)
|
|
496
|
+
*
|
|
497
|
+
* @example
|
|
498
|
+
* ```ts
|
|
499
|
+
* // KatanaPerpsMarketMakerRewardsEpochDetailedWithWallet | KatanaPerpsMarketMakerRewardsEpochDetailedWithoutWallet
|
|
500
|
+
* type Response = RestResponseGetEpoch;
|
|
501
|
+
*
|
|
502
|
+
* // KatanaPerpsMarketMakerRewardsEpochDetailedWithWallet
|
|
503
|
+
* const response = await client.getEpoch({ wallet: '0x...', nonce: '...', epochId: '...' });
|
|
504
|
+
* // KatanaPerpsEpochDetailedWithoutWallet
|
|
505
|
+
* const response = await client.getEpoch({ nonce: '...', epochId: '...' });
|
|
506
|
+
* // KatanaPerpsMarketMakerRewardsEpochDetailedWithoutWallet | KatanaPerpsMarketMakerRewardsEpochDetailedWithWallet
|
|
507
|
+
* const response = await client.getEpoch(someUntypedObj)
|
|
508
|
+
*
|
|
509
|
+
* // When the response is returned as either, you can easily narrow the type
|
|
510
|
+
* // by checking any of the wallet-specific properties:
|
|
511
|
+
* if (response.walletScorePercent) {
|
|
512
|
+
* // response satisfies KatanaPerpsMarketMakerRewardsEpochDetailedWithWallet
|
|
513
|
+
* } else {
|
|
514
|
+
* // response satisfies KatanaPerpsMarketMakerRewardsEpochDetailedWithoutWallet
|
|
515
|
+
* }
|
|
516
|
+
* ```
|
|
517
|
+
*/
|
|
518
|
+
export type RestResponseGetMarketMakerRewardsEpoch<RequestType extends RestRequestGetMarketMakerRewardsEpoch = RestRequestGetMarketMakerRewardsEpoch> = RequestType extends RestRequestGetMarketMakerRewardsEpochWithWallet ? MarketMakerRewardsEpochDetailedWithWallet : RequestType extends RestRequestGetMarketMakerRewardsEpochWithoutWallet ? MarketMakerRewardsEpochDetailedWithoutWallet : MarketMakerRewardsEpochDetailedWithoutWallet | MarketMakerRewardsEpochDetailedWithWallet;
|
|
519
|
+
/**
|
|
520
|
+
* Returns deposits according to the request parameters.
|
|
521
|
+
*
|
|
522
|
+
* ----
|
|
523
|
+
*
|
|
524
|
+
* @see type {@link KatanaPerpsMarketMakerRewardsEpochSummary}
|
|
525
|
+
* @see request {@link RestRequestGetMarketMakerRewardsEpochs}
|
|
526
|
+
*
|
|
527
|
+
* @see related {@link RestResponseGetMarketMakerRewardsEpoch}
|
|
528
|
+
* @see related {@link RestRequestGetMarketMakerRewardsEpoch}
|
|
529
|
+
*
|
|
530
|
+
* @category KatanaPerps - Get Market Maker Rewards Epochs
|
|
531
|
+
*/
|
|
532
|
+
export type RestResponseGetMarketMakerRewardsEpochs = KatanaPerpsMarketMakerRewardsEpochSummary[];
|
|
533
|
+
export {};
|
|
534
|
+
//# sourceMappingURL=GetMarketMakerRewardsEpochs.d.ts.map
|