@kodiak-finance/orderly-hooks 2.9.3 → 2.9.5
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/dist/index.d.mts +58 -50
- package/dist/index.d.ts +58 -50
- package/dist/index.js +225 -153
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +220 -155
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -126,14 +126,45 @@ declare const useGetRwaSymbolOpenTimeInterval: (symbol: string, thresholdMinutes
|
|
|
126
126
|
nextOpen?: number;
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Type alias for the return type of useSymbolsInfo hook
|
|
131
|
+
*/
|
|
132
|
+
type SymbolsInfo = ReturnType<typeof useSymbolsInfo>;
|
|
133
|
+
/**
|
|
134
|
+
* A hook that provides access to symbol information.
|
|
135
|
+
*
|
|
136
|
+
* @returns A getter object that provides access to symbol information.
|
|
137
|
+
* The getter allows accessing symbol data either by symbol name directly,
|
|
138
|
+
* or through a two-level access pattern (symbol and property).
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```typescript
|
|
142
|
+
* const symbolsInfo = useSymbolsInfo();
|
|
143
|
+
*
|
|
144
|
+
* // Get all info for a symbol
|
|
145
|
+
* const ethInfo = symbolsInfo["PERP_ETH_USDC"]();
|
|
146
|
+
*
|
|
147
|
+
* // Get specific property for a symbol
|
|
148
|
+
* const baseDP = symbolsInfo["PERP_ETH_USDC"]('base_dp');
|
|
149
|
+
*
|
|
150
|
+
* // Get specific property for a symbol with default value
|
|
151
|
+
* const quoteDP = symbolsInfo["PERP_ETH_USDC"]('quote_dp', 2);
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
declare const useSymbolsInfo: () => Record<string, <Key extends keyof _kodiak_finance_orderly_types.API.SymbolExt>(key: Key, defaultValue?: _kodiak_finance_orderly_types.API.SymbolExt[Key] | undefined) => _kodiak_finance_orderly_types.API.SymbolExt[Key]> & Record<string, () => _kodiak_finance_orderly_types.API.SymbolExt> & {
|
|
155
|
+
isNil: boolean;
|
|
156
|
+
};
|
|
157
|
+
declare const useSymbolsInfoStore: () => Record<string, _kodiak_finance_orderly_types.API.SymbolExt> | undefined;
|
|
158
|
+
|
|
129
159
|
type MarketCategoryComponentKey = "marketsSheet" | "expandMarkets" | "dropDownMarkets" | "subMenuMarkets" | "marketsDataList" | "horizontalMarkets";
|
|
130
|
-
type MarketBuiltInTabType = "favorites" | "community" | "all" | "rwa" | "newListing" | "recent";
|
|
160
|
+
type MarketBuiltInTabType = "favorites" | "community" | "all" | "crypto" | "rwa" | "preTge" | "newListing" | "recent";
|
|
131
161
|
type MarketTabBase = {
|
|
132
162
|
name?: string;
|
|
133
163
|
icon?: ReactNode | string;
|
|
134
164
|
suffix?: ReactNode | string;
|
|
135
165
|
isVisible?: (symbolList: API.MarketInfoExt[], ctx: {
|
|
136
166
|
rwaSymbolsInfo?: RwaSymbolsInfo;
|
|
167
|
+
symbolsInfo?: SymbolsInfo;
|
|
137
168
|
}) => boolean;
|
|
138
169
|
};
|
|
139
170
|
type BuiltInMarketTab = MarketTabBase & {
|
|
@@ -484,6 +515,11 @@ declare const useReferralInfo: () => {
|
|
|
484
515
|
getFirstRefCode: () => RefferalAPI.ReferralCode | undefined;
|
|
485
516
|
};
|
|
486
517
|
|
|
518
|
+
declare const REFERRAL_CODE_MIN_LENGTH = 4;
|
|
519
|
+
declare const REFERRAL_CODE_MAX_LENGTH = 15;
|
|
520
|
+
declare function formatReferralCodeInput(raw: string): string;
|
|
521
|
+
declare function isReferralCodeLengthValid(code: string): boolean;
|
|
522
|
+
|
|
487
523
|
declare const useAccount: () => {
|
|
488
524
|
account: _kodiak_finance_orderly_core.Account;
|
|
489
525
|
state: AccountState;
|
|
@@ -582,6 +618,9 @@ declare const useSimpleDI: <T>() => {
|
|
|
582
618
|
register: typeof SimpleDI.register;
|
|
583
619
|
};
|
|
584
620
|
|
|
621
|
+
declare const TESTNET_WHITE_CHAINS: {
|
|
622
|
+
id: number;
|
|
623
|
+
}[];
|
|
585
624
|
type Chain = API.Chain & {
|
|
586
625
|
nativeToken?: API.TokenInfo;
|
|
587
626
|
isTestnet?: boolean;
|
|
@@ -831,36 +870,6 @@ declare const useOrderbookStream: (symbol: string, initial?: OrderbookData, opti
|
|
|
831
870
|
middlePrice?: undefined;
|
|
832
871
|
})[];
|
|
833
872
|
|
|
834
|
-
/**
|
|
835
|
-
* Type alias for the return type of useSymbolsInfo hook
|
|
836
|
-
*/
|
|
837
|
-
type SymbolsInfo = ReturnType<typeof useSymbolsInfo>;
|
|
838
|
-
/**
|
|
839
|
-
* A hook that provides access to symbol information.
|
|
840
|
-
*
|
|
841
|
-
* @returns A getter object that provides access to symbol information.
|
|
842
|
-
* The getter allows accessing symbol data either by symbol name directly,
|
|
843
|
-
* or through a two-level access pattern (symbol and property).
|
|
844
|
-
*
|
|
845
|
-
* @example
|
|
846
|
-
* ```typescript
|
|
847
|
-
* const symbolsInfo = useSymbolsInfo();
|
|
848
|
-
*
|
|
849
|
-
* // Get all info for a symbol
|
|
850
|
-
* const ethInfo = symbolsInfo["PERP_ETH_USDC"]();
|
|
851
|
-
*
|
|
852
|
-
* // Get specific property for a symbol
|
|
853
|
-
* const baseDP = symbolsInfo["PERP_ETH_USDC"]('base_dp');
|
|
854
|
-
*
|
|
855
|
-
* // Get specific property for a symbol with default value
|
|
856
|
-
* const quoteDP = symbolsInfo["PERP_ETH_USDC"]('quote_dp', 2);
|
|
857
|
-
* ```
|
|
858
|
-
*/
|
|
859
|
-
declare const useSymbolsInfo: () => Record<string, <Key extends keyof _kodiak_finance_orderly_types.API.SymbolExt>(key: Key, defaultValue?: _kodiak_finance_orderly_types.API.SymbolExt[Key] | undefined) => _kodiak_finance_orderly_types.API.SymbolExt[Key]> & Record<string, () => _kodiak_finance_orderly_types.API.SymbolExt> & {
|
|
860
|
-
isNil: boolean;
|
|
861
|
-
};
|
|
862
|
-
declare const useSymbolsInfoStore: () => Record<string, _kodiak_finance_orderly_types.API.SymbolExt> | undefined;
|
|
863
|
-
|
|
864
873
|
declare const useSymbolInfo: (symbol?: string) => ((<Key extends keyof _kodiak_finance_orderly_types.API.SymbolExt>(key: Key, defaultValue?: _kodiak_finance_orderly_types.API.SymbolExt[Key] | undefined) => _kodiak_finance_orderly_types.API.SymbolExt[Key]) & (() => _kodiak_finance_orderly_types.API.SymbolExt)) | null;
|
|
865
874
|
|
|
866
875
|
declare const useAccountInfo: () => swr.SWRResponse<API.AccountInfo, any, any>;
|
|
@@ -869,13 +878,17 @@ declare const useMarketsStream: () => {
|
|
|
869
878
|
data: WSMessage.Ticker[];
|
|
870
879
|
};
|
|
871
880
|
|
|
872
|
-
declare enum MarketsType
|
|
881
|
+
declare enum MarketsType {
|
|
873
882
|
FAVORITES = 0,
|
|
874
883
|
RECENT = 1,
|
|
875
884
|
ALL = 2,
|
|
876
|
-
|
|
877
|
-
|
|
885
|
+
CRYPTO = 3,
|
|
886
|
+
RWA = 4,
|
|
887
|
+
NEW_LISTING = 5,
|
|
888
|
+
COMMUNITY = 6,
|
|
889
|
+
PRE_TGE = 7
|
|
878
890
|
}
|
|
891
|
+
|
|
879
892
|
interface FavoriteTab$1 {
|
|
880
893
|
name: string;
|
|
881
894
|
id: number;
|
|
@@ -892,7 +905,7 @@ interface TabSort$1 {
|
|
|
892
905
|
sortOrder: string;
|
|
893
906
|
}
|
|
894
907
|
/** @deprecated use useMarkets instead */
|
|
895
|
-
declare const useMarket: (type: MarketsType
|
|
908
|
+
declare const useMarket: (type: MarketsType) => readonly [any[], {
|
|
896
909
|
readonly favoriteTabs: {
|
|
897
910
|
name: string;
|
|
898
911
|
id: number;
|
|
@@ -914,14 +927,6 @@ declare const useMarket: (type: MarketsType$1) => readonly [any[], {
|
|
|
914
927
|
readonly updateTabsSortState: (tabId: string, sortKey: string, sortOrder: "desc" | "asc") => void;
|
|
915
928
|
}];
|
|
916
929
|
|
|
917
|
-
declare enum MarketsType {
|
|
918
|
-
FAVORITES = 0,
|
|
919
|
-
RECENT = 1,
|
|
920
|
-
ALL = 2,
|
|
921
|
-
RWA = 3,
|
|
922
|
-
NEW_LISTING = 4,
|
|
923
|
-
COMMUNITY = 5
|
|
924
|
-
}
|
|
925
930
|
interface FavoriteTab {
|
|
926
931
|
name: string;
|
|
927
932
|
id: number;
|
|
@@ -942,7 +947,6 @@ type TabSort = Record<string, {
|
|
|
942
947
|
}>;
|
|
943
948
|
type MarketsItem = {
|
|
944
949
|
symbol: string;
|
|
945
|
-
displayName?: string;
|
|
946
950
|
/** Permissionless listing: display name without broker_id suffix */
|
|
947
951
|
display_symbol_name?: string;
|
|
948
952
|
/** Permissionless listing: broker id; null for non-community-listed symbols */
|
|
@@ -969,6 +973,8 @@ type MarketsItem = {
|
|
|
969
973
|
isFavorite: boolean;
|
|
970
974
|
leverage?: number;
|
|
971
975
|
isRwa: boolean;
|
|
976
|
+
isPreTge: boolean;
|
|
977
|
+
market_session?: API.RwaSymbol["market_session"];
|
|
972
978
|
rwaNextOpen?: number;
|
|
973
979
|
rwaNextClose?: number;
|
|
974
980
|
rwaStatus?: "open" | "close";
|
|
@@ -2074,11 +2080,11 @@ declare const useStorageLedgerAddress: () => {
|
|
|
2074
2080
|
/**
|
|
2075
2081
|
* return all tokens info
|
|
2076
2082
|
*/
|
|
2077
|
-
declare const useTokensInfo: () => _kodiak_finance_orderly_types.API.Token[] | undefined;
|
|
2083
|
+
declare const useTokensInfo: (networkId?: NetworkId) => _kodiak_finance_orderly_types.API.Token[] | null | undefined;
|
|
2078
2084
|
/**
|
|
2079
2085
|
* return token info by specify token
|
|
2080
2086
|
*/
|
|
2081
|
-
declare const useTokenInfo: (token: string) => _kodiak_finance_orderly_types.API.Token | undefined;
|
|
2087
|
+
declare const useTokenInfo: (token: string, networkId?: NetworkId) => _kodiak_finance_orderly_types.API.Token | undefined;
|
|
2082
2088
|
|
|
2083
2089
|
type AppStatus = {
|
|
2084
2090
|
positionsLoading: boolean;
|
|
@@ -2301,9 +2307,11 @@ declare function useOrderEntry$1(symbol: string, side: OrderSide, reduceOnly: bo
|
|
|
2301
2307
|
|
|
2302
2308
|
declare function useMediaQuery(query: string): boolean;
|
|
2303
2309
|
|
|
2310
|
+
declare function getSymbolBase(symbol: string | undefined): string;
|
|
2311
|
+
declare function getSymbolDisplayName(symbol: string | undefined, displaySymbolName?: string | null): string;
|
|
2304
2312
|
interface UseBadgeBySymbolReturn {
|
|
2305
2313
|
/** Display name of the symbol. API.display_symbol_name */
|
|
2306
|
-
|
|
2314
|
+
displaySymbolName: string;
|
|
2307
2315
|
/** Broker ID of the symbol. */
|
|
2308
2316
|
brokerId: string | undefined;
|
|
2309
2317
|
/** Badge label: first segment of raw name, truncated to 7 chars with "...". */
|
|
@@ -2312,8 +2320,8 @@ interface UseBadgeBySymbolReturn {
|
|
|
2312
2320
|
brokerNameRaw: string | undefined;
|
|
2313
2321
|
}
|
|
2314
2322
|
/**
|
|
2315
|
-
* Match the given `symbol` in `symbolsInfo` and return `
|
|
2316
|
-
* and the mapped `brokerName`.
|
|
2323
|
+
* Match the given `symbol` in `symbolsInfo` and return `displaySymbolName`,
|
|
2324
|
+
* `brokerId`, and the mapped `brokerName`.
|
|
2317
2325
|
*
|
|
2318
2326
|
* `brokerName` comes from the `/v1/public/broker/name` broker list
|
|
2319
2327
|
* (SWR shared cache).
|
|
@@ -3215,4 +3223,4 @@ interface UseFeatureFlagReturn {
|
|
|
3215
3223
|
*/
|
|
3216
3224
|
declare const useFeatureFlag: (key: FlagKeys) => UseFeatureFlagReturn;
|
|
3217
3225
|
|
|
3218
|
-
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, type Brokers, type BuiltInMarketTab, type Chain, type ChainFilter, type Chains, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, type CustomMarketTab, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, ERROR_MSG_CODES, type EpochInfoItem, type EpochInfoType, EpochStatus, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab, type FeatureFlagItem, type FilteredChains, FlagKeys, type FundingRates, MaintenanceStatus, type MarginRatioReturn, type MarketBuiltInTabType, MarketCategoriesConfigProvider, type MarketCategoriesConfigProviderProps, type MarketCategoryComponentKey, type MarketCategoryConfig, type MarketCategoryContext, type MarketTabConfig, type MarketsItem, MarketsStorageKey, type MarketsStore, MarketsType, type NewListing, ORDERLY_ORDERBOOK_DEPTH_KEY, type OrderBookItem, type OrderEntryReturn, type OrderMetadata, type OrderMetadataConfig, type OrderParams, type OrderValidationItem, type OrderValidationResult, type OrderbookData, type OrderbookOptions, type OrderlyConfigContextState, OrderlyConfigProvider, OrderlyContext, OrderlyProvider, type PosterLayoutConfig, type PriceMode, type Recent, RefferalAPI, type RestrictedInfoOptions, type RestrictedInfoReturns, type RwaSymbolResult, type RwaSymbolsInfo, ScopeType, type StatusInfo, StatusProvider, type SymbolsInfo, TWType, type UseBadgeBySymbolReturn, type UseChainsOptions, type UseChainsReturnObject, type UseDepositReturn, type UseFeatureFlagReturn, type UseOrderEntryMetaState, WalletConnectorContext, type WalletConnectorContextState, type WalletRewards, type WalletRewardsHistoryReturns, type WalletRewardsItem, type WalletState, WsNetworkStatus, checkNotional, cleanStringStyle, fetcher, findPositionTPSLFromOrders, findTPSLFromOrder, findTPSLOrderPriceFromOrder, formatSymbolWithBroker, getMinNotional, getPriceKey, indexedDBManager, initializeAppDatabase, isCurrentlyClosed, isCurrentlyTrading, noCacheConfig, parseJSON, persistIndexedDB, resetTimestampOffsetState, timestampWaitingMiddleware, useAccount, useAccountInfo, useAccountInstance, useAccountRewardsHistory, useAllBrokers, useApiKeyManager, useAppStore, useAssetsHistory, useAudioPlayer, useBadgeBySymbol, useBalanceSubscription, useBalanceTopic, useBoolean, useChain, useChainInfo, useChains, useCheckReferralCode, useCollateral, useCommission, useComputedLTV, useConfig, useConvert, useCurEpochEstimate, useDaily, useDeposit, useDistribution, useDistributionHistory, useEpochInfo, useEstLiqPriceBySymbol, useEventEmitter, useFeatureFlag, useFeeState, useFundingDetails, useFundingFeeHistory, useFundingRate, useFundingRateBySymbol, useFundingRateHistory, useFundingRates, useFundingRatesStore, useGetClaimed, useGetEnv, useGetEstLiqPrice, useGetReferralCode, useGetRwaSymbolCloseTimeInterval, useGetRwaSymbolInfo, useGetRwaSymbolOpenStatus, useGetRwaSymbolOpenTimeInterval, useHoldingStream, useIndexPrice, useIndexPricesStream, useInfiniteQuery, useInitRwaSymbolsRuntime, useInternalTransfer, useKeyStore, useLazyQuery, useLeverage, useLeverageBySymbol, useLocalStorage, useMainTokenStore, useMainnetChainsStore, useMaintenanceStatus, useMarginModeBySymbol, useMarginModes, useMarginRatio, useMarkPrice, useMarkPriceBySymbol, useMarkPricesStream, useMarket, useMarketCategoriesConfig, useMarketList, useMarketMap, useMarketTradeStream, useMarkets, useMarketsStore, useMarketsStream, useMaxLeverage, useMaxQty, useMaxWithdrawal, useMediaQuery, useMemoizedFn, useMutation, useNetworkInfo, useOdosQuote, useOrderEntity, useOrderEntry, useOrderEntry$1 as useOrderEntry_deprecated, useOrderStore, useOrderStream, useOrderbookStream, useOrderlyContext, usePortfolio, usePositionActions, usePositionClose, usePositionStream, usePositions, usePoster, usePreLoadData, usePrivateDataObserver, usePrivateInfiniteQuery, usePrivateQuery, useQuery, type useQueryOptions, useRefereeHistory, useRefereeInfo, useRefereeRebateSummary, useReferralInfo, useReferralRebateSummary, useRestrictedInfo, useRwaSymbolsInfo, useRwaSymbolsInfoStore, useSessionStorage, useSettleSubscription, useSimpleDI, useStatisticsDaily, useStorageChain, useStorageLedgerAddress, useSubAccountAlgoOrderStream, useSubAccountDataObserver, useSubAccountMaxWithdrawal, useSubAccountMutation, useSubAccountQuery, useSubAccountWS, useSwapSupportStore, useSymbolInfo, useSymbolLeverage, useSymbolLeverageMap, useSymbolPriceRange, useSymbolWithBroker, useSymbolsInfo, useSymbolsInfoStore, useTPSLOrder, useTestTokenStore, useTestnetChainsStore, useTickerStream, useTokenInfo, useTokensInfo, useTpslPriceChecker, useTrack, useTrackingInstance, useTradingRewardsStatus, useTransfer, useTransferHistory, useUpdatedRef, useUserStatistics, useVaultsHistory, useWS, useWalletConnector, useWalletRewardsHistory, useWalletSubscription, useWalletTopic, useWithdraw, useWsStatus, index as utils, _default as version };
|
|
3226
|
+
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, type Brokers, type BuiltInMarketTab, type Chain, type ChainFilter, type Chains, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, type CustomMarketTab, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, ERROR_MSG_CODES, type EpochInfoItem, type EpochInfoType, EpochStatus, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab, type FeatureFlagItem, type FilteredChains, FlagKeys, type FundingRates, MaintenanceStatus, type MarginRatioReturn, type MarketBuiltInTabType, MarketCategoriesConfigProvider, type MarketCategoriesConfigProviderProps, type MarketCategoryComponentKey, type MarketCategoryConfig, type MarketCategoryContext, type MarketTabConfig, type MarketsItem, MarketsStorageKey, type MarketsStore, MarketsType, type NewListing, ORDERLY_ORDERBOOK_DEPTH_KEY, type OrderBookItem, type OrderEntryReturn, type OrderMetadata, type OrderMetadataConfig, type OrderParams, type OrderValidationItem, type OrderValidationResult, type OrderbookData, type OrderbookOptions, type OrderlyConfigContextState, OrderlyConfigProvider, OrderlyContext, OrderlyProvider, type PosterLayoutConfig, type PriceMode, REFERRAL_CODE_MAX_LENGTH, REFERRAL_CODE_MIN_LENGTH, type Recent, RefferalAPI, type RestrictedInfoOptions, type RestrictedInfoReturns, type RwaSymbolResult, type RwaSymbolsInfo, ScopeType, type StatusInfo, StatusProvider, type SymbolsInfo, TESTNET_WHITE_CHAINS, TWType, type UseBadgeBySymbolReturn, type UseChainsOptions, type UseChainsReturnObject, type UseDepositReturn, type UseFeatureFlagReturn, type UseOrderEntryMetaState, WalletConnectorContext, type WalletConnectorContextState, type WalletRewards, type WalletRewardsHistoryReturns, type WalletRewardsItem, type WalletState, WsNetworkStatus, checkNotional, cleanStringStyle, fetcher, findPositionTPSLFromOrders, findTPSLFromOrder, findTPSLOrderPriceFromOrder, formatReferralCodeInput, formatSymbolWithBroker, getMinNotional, getPriceKey, getSymbolBase, getSymbolDisplayName, indexedDBManager, initializeAppDatabase, isCurrentlyClosed, isCurrentlyTrading, isReferralCodeLengthValid, noCacheConfig, parseJSON, persistIndexedDB, resetTimestampOffsetState, timestampWaitingMiddleware, useAccount, useAccountInfo, useAccountInstance, useAccountRewardsHistory, useAllBrokers, useApiKeyManager, useAppStore, useAssetsHistory, useAudioPlayer, useBadgeBySymbol, useBalanceSubscription, useBalanceTopic, useBoolean, useChain, useChainInfo, useChains, useCheckReferralCode, useCollateral, useCommission, useComputedLTV, useConfig, useConvert, useCurEpochEstimate, useDaily, useDeposit, useDistribution, useDistributionHistory, useEpochInfo, useEstLiqPriceBySymbol, useEventEmitter, useFeatureFlag, useFeeState, useFundingDetails, useFundingFeeHistory, useFundingRate, useFundingRateBySymbol, useFundingRateHistory, useFundingRates, useFundingRatesStore, useGetClaimed, useGetEnv, useGetEstLiqPrice, useGetReferralCode, useGetRwaSymbolCloseTimeInterval, useGetRwaSymbolInfo, useGetRwaSymbolOpenStatus, useGetRwaSymbolOpenTimeInterval, useHoldingStream, useIndexPrice, useIndexPricesStream, useInfiniteQuery, useInitRwaSymbolsRuntime, useInternalTransfer, useKeyStore, useLazyQuery, useLeverage, useLeverageBySymbol, useLocalStorage, useMainTokenStore, useMainnetChainsStore, useMaintenanceStatus, useMarginModeBySymbol, useMarginModes, useMarginRatio, useMarkPrice, useMarkPriceBySymbol, useMarkPricesStream, useMarket, useMarketCategoriesConfig, useMarketList, useMarketMap, useMarketTradeStream, useMarkets, useMarketsStore, useMarketsStream, useMaxLeverage, useMaxQty, useMaxWithdrawal, useMediaQuery, useMemoizedFn, useMutation, useNetworkInfo, useOdosQuote, useOrderEntity, useOrderEntry, useOrderEntry$1 as useOrderEntry_deprecated, useOrderStore, useOrderStream, useOrderbookStream, useOrderlyContext, usePortfolio, usePositionActions, usePositionClose, usePositionStream, usePositions, usePoster, usePreLoadData, usePrivateDataObserver, usePrivateInfiniteQuery, usePrivateQuery, useQuery, type useQueryOptions, useRefereeHistory, useRefereeInfo, useRefereeRebateSummary, useReferralInfo, useReferralRebateSummary, useRestrictedInfo, useRwaSymbolsInfo, useRwaSymbolsInfoStore, useSessionStorage, useSettleSubscription, useSimpleDI, useStatisticsDaily, useStorageChain, useStorageLedgerAddress, useSubAccountAlgoOrderStream, useSubAccountDataObserver, useSubAccountMaxWithdrawal, useSubAccountMutation, useSubAccountQuery, useSubAccountWS, useSwapSupportStore, useSymbolInfo, useSymbolLeverage, useSymbolLeverageMap, useSymbolPriceRange, useSymbolWithBroker, useSymbolsInfo, useSymbolsInfoStore, useTPSLOrder, useTestTokenStore, useTestnetChainsStore, useTickerStream, useTokenInfo, useTokensInfo, useTpslPriceChecker, useTrack, useTrackingInstance, useTradingRewardsStatus, useTransfer, useTransferHistory, useUpdatedRef, useUserStatistics, useVaultsHistory, useWS, useWalletConnector, useWalletRewardsHistory, useWalletSubscription, useWalletTopic, useWithdraw, useWsStatus, index as utils, _default as version };
|
package/dist/index.d.ts
CHANGED
|
@@ -126,14 +126,45 @@ declare const useGetRwaSymbolOpenTimeInterval: (symbol: string, thresholdMinutes
|
|
|
126
126
|
nextOpen?: number;
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Type alias for the return type of useSymbolsInfo hook
|
|
131
|
+
*/
|
|
132
|
+
type SymbolsInfo = ReturnType<typeof useSymbolsInfo>;
|
|
133
|
+
/**
|
|
134
|
+
* A hook that provides access to symbol information.
|
|
135
|
+
*
|
|
136
|
+
* @returns A getter object that provides access to symbol information.
|
|
137
|
+
* The getter allows accessing symbol data either by symbol name directly,
|
|
138
|
+
* or through a two-level access pattern (symbol and property).
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```typescript
|
|
142
|
+
* const symbolsInfo = useSymbolsInfo();
|
|
143
|
+
*
|
|
144
|
+
* // Get all info for a symbol
|
|
145
|
+
* const ethInfo = symbolsInfo["PERP_ETH_USDC"]();
|
|
146
|
+
*
|
|
147
|
+
* // Get specific property for a symbol
|
|
148
|
+
* const baseDP = symbolsInfo["PERP_ETH_USDC"]('base_dp');
|
|
149
|
+
*
|
|
150
|
+
* // Get specific property for a symbol with default value
|
|
151
|
+
* const quoteDP = symbolsInfo["PERP_ETH_USDC"]('quote_dp', 2);
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
declare const useSymbolsInfo: () => Record<string, <Key extends keyof _kodiak_finance_orderly_types.API.SymbolExt>(key: Key, defaultValue?: _kodiak_finance_orderly_types.API.SymbolExt[Key] | undefined) => _kodiak_finance_orderly_types.API.SymbolExt[Key]> & Record<string, () => _kodiak_finance_orderly_types.API.SymbolExt> & {
|
|
155
|
+
isNil: boolean;
|
|
156
|
+
};
|
|
157
|
+
declare const useSymbolsInfoStore: () => Record<string, _kodiak_finance_orderly_types.API.SymbolExt> | undefined;
|
|
158
|
+
|
|
129
159
|
type MarketCategoryComponentKey = "marketsSheet" | "expandMarkets" | "dropDownMarkets" | "subMenuMarkets" | "marketsDataList" | "horizontalMarkets";
|
|
130
|
-
type MarketBuiltInTabType = "favorites" | "community" | "all" | "rwa" | "newListing" | "recent";
|
|
160
|
+
type MarketBuiltInTabType = "favorites" | "community" | "all" | "crypto" | "rwa" | "preTge" | "newListing" | "recent";
|
|
131
161
|
type MarketTabBase = {
|
|
132
162
|
name?: string;
|
|
133
163
|
icon?: ReactNode | string;
|
|
134
164
|
suffix?: ReactNode | string;
|
|
135
165
|
isVisible?: (symbolList: API.MarketInfoExt[], ctx: {
|
|
136
166
|
rwaSymbolsInfo?: RwaSymbolsInfo;
|
|
167
|
+
symbolsInfo?: SymbolsInfo;
|
|
137
168
|
}) => boolean;
|
|
138
169
|
};
|
|
139
170
|
type BuiltInMarketTab = MarketTabBase & {
|
|
@@ -484,6 +515,11 @@ declare const useReferralInfo: () => {
|
|
|
484
515
|
getFirstRefCode: () => RefferalAPI.ReferralCode | undefined;
|
|
485
516
|
};
|
|
486
517
|
|
|
518
|
+
declare const REFERRAL_CODE_MIN_LENGTH = 4;
|
|
519
|
+
declare const REFERRAL_CODE_MAX_LENGTH = 15;
|
|
520
|
+
declare function formatReferralCodeInput(raw: string): string;
|
|
521
|
+
declare function isReferralCodeLengthValid(code: string): boolean;
|
|
522
|
+
|
|
487
523
|
declare const useAccount: () => {
|
|
488
524
|
account: _kodiak_finance_orderly_core.Account;
|
|
489
525
|
state: AccountState;
|
|
@@ -582,6 +618,9 @@ declare const useSimpleDI: <T>() => {
|
|
|
582
618
|
register: typeof SimpleDI.register;
|
|
583
619
|
};
|
|
584
620
|
|
|
621
|
+
declare const TESTNET_WHITE_CHAINS: {
|
|
622
|
+
id: number;
|
|
623
|
+
}[];
|
|
585
624
|
type Chain = API.Chain & {
|
|
586
625
|
nativeToken?: API.TokenInfo;
|
|
587
626
|
isTestnet?: boolean;
|
|
@@ -831,36 +870,6 @@ declare const useOrderbookStream: (symbol: string, initial?: OrderbookData, opti
|
|
|
831
870
|
middlePrice?: undefined;
|
|
832
871
|
})[];
|
|
833
872
|
|
|
834
|
-
/**
|
|
835
|
-
* Type alias for the return type of useSymbolsInfo hook
|
|
836
|
-
*/
|
|
837
|
-
type SymbolsInfo = ReturnType<typeof useSymbolsInfo>;
|
|
838
|
-
/**
|
|
839
|
-
* A hook that provides access to symbol information.
|
|
840
|
-
*
|
|
841
|
-
* @returns A getter object that provides access to symbol information.
|
|
842
|
-
* The getter allows accessing symbol data either by symbol name directly,
|
|
843
|
-
* or through a two-level access pattern (symbol and property).
|
|
844
|
-
*
|
|
845
|
-
* @example
|
|
846
|
-
* ```typescript
|
|
847
|
-
* const symbolsInfo = useSymbolsInfo();
|
|
848
|
-
*
|
|
849
|
-
* // Get all info for a symbol
|
|
850
|
-
* const ethInfo = symbolsInfo["PERP_ETH_USDC"]();
|
|
851
|
-
*
|
|
852
|
-
* // Get specific property for a symbol
|
|
853
|
-
* const baseDP = symbolsInfo["PERP_ETH_USDC"]('base_dp');
|
|
854
|
-
*
|
|
855
|
-
* // Get specific property for a symbol with default value
|
|
856
|
-
* const quoteDP = symbolsInfo["PERP_ETH_USDC"]('quote_dp', 2);
|
|
857
|
-
* ```
|
|
858
|
-
*/
|
|
859
|
-
declare const useSymbolsInfo: () => Record<string, <Key extends keyof _kodiak_finance_orderly_types.API.SymbolExt>(key: Key, defaultValue?: _kodiak_finance_orderly_types.API.SymbolExt[Key] | undefined) => _kodiak_finance_orderly_types.API.SymbolExt[Key]> & Record<string, () => _kodiak_finance_orderly_types.API.SymbolExt> & {
|
|
860
|
-
isNil: boolean;
|
|
861
|
-
};
|
|
862
|
-
declare const useSymbolsInfoStore: () => Record<string, _kodiak_finance_orderly_types.API.SymbolExt> | undefined;
|
|
863
|
-
|
|
864
873
|
declare const useSymbolInfo: (symbol?: string) => ((<Key extends keyof _kodiak_finance_orderly_types.API.SymbolExt>(key: Key, defaultValue?: _kodiak_finance_orderly_types.API.SymbolExt[Key] | undefined) => _kodiak_finance_orderly_types.API.SymbolExt[Key]) & (() => _kodiak_finance_orderly_types.API.SymbolExt)) | null;
|
|
865
874
|
|
|
866
875
|
declare const useAccountInfo: () => swr.SWRResponse<API.AccountInfo, any, any>;
|
|
@@ -869,13 +878,17 @@ declare const useMarketsStream: () => {
|
|
|
869
878
|
data: WSMessage.Ticker[];
|
|
870
879
|
};
|
|
871
880
|
|
|
872
|
-
declare enum MarketsType
|
|
881
|
+
declare enum MarketsType {
|
|
873
882
|
FAVORITES = 0,
|
|
874
883
|
RECENT = 1,
|
|
875
884
|
ALL = 2,
|
|
876
|
-
|
|
877
|
-
|
|
885
|
+
CRYPTO = 3,
|
|
886
|
+
RWA = 4,
|
|
887
|
+
NEW_LISTING = 5,
|
|
888
|
+
COMMUNITY = 6,
|
|
889
|
+
PRE_TGE = 7
|
|
878
890
|
}
|
|
891
|
+
|
|
879
892
|
interface FavoriteTab$1 {
|
|
880
893
|
name: string;
|
|
881
894
|
id: number;
|
|
@@ -892,7 +905,7 @@ interface TabSort$1 {
|
|
|
892
905
|
sortOrder: string;
|
|
893
906
|
}
|
|
894
907
|
/** @deprecated use useMarkets instead */
|
|
895
|
-
declare const useMarket: (type: MarketsType
|
|
908
|
+
declare const useMarket: (type: MarketsType) => readonly [any[], {
|
|
896
909
|
readonly favoriteTabs: {
|
|
897
910
|
name: string;
|
|
898
911
|
id: number;
|
|
@@ -914,14 +927,6 @@ declare const useMarket: (type: MarketsType$1) => readonly [any[], {
|
|
|
914
927
|
readonly updateTabsSortState: (tabId: string, sortKey: string, sortOrder: "desc" | "asc") => void;
|
|
915
928
|
}];
|
|
916
929
|
|
|
917
|
-
declare enum MarketsType {
|
|
918
|
-
FAVORITES = 0,
|
|
919
|
-
RECENT = 1,
|
|
920
|
-
ALL = 2,
|
|
921
|
-
RWA = 3,
|
|
922
|
-
NEW_LISTING = 4,
|
|
923
|
-
COMMUNITY = 5
|
|
924
|
-
}
|
|
925
930
|
interface FavoriteTab {
|
|
926
931
|
name: string;
|
|
927
932
|
id: number;
|
|
@@ -942,7 +947,6 @@ type TabSort = Record<string, {
|
|
|
942
947
|
}>;
|
|
943
948
|
type MarketsItem = {
|
|
944
949
|
symbol: string;
|
|
945
|
-
displayName?: string;
|
|
946
950
|
/** Permissionless listing: display name without broker_id suffix */
|
|
947
951
|
display_symbol_name?: string;
|
|
948
952
|
/** Permissionless listing: broker id; null for non-community-listed symbols */
|
|
@@ -969,6 +973,8 @@ type MarketsItem = {
|
|
|
969
973
|
isFavorite: boolean;
|
|
970
974
|
leverage?: number;
|
|
971
975
|
isRwa: boolean;
|
|
976
|
+
isPreTge: boolean;
|
|
977
|
+
market_session?: API.RwaSymbol["market_session"];
|
|
972
978
|
rwaNextOpen?: number;
|
|
973
979
|
rwaNextClose?: number;
|
|
974
980
|
rwaStatus?: "open" | "close";
|
|
@@ -2074,11 +2080,11 @@ declare const useStorageLedgerAddress: () => {
|
|
|
2074
2080
|
/**
|
|
2075
2081
|
* return all tokens info
|
|
2076
2082
|
*/
|
|
2077
|
-
declare const useTokensInfo: () => _kodiak_finance_orderly_types.API.Token[] | undefined;
|
|
2083
|
+
declare const useTokensInfo: (networkId?: NetworkId) => _kodiak_finance_orderly_types.API.Token[] | null | undefined;
|
|
2078
2084
|
/**
|
|
2079
2085
|
* return token info by specify token
|
|
2080
2086
|
*/
|
|
2081
|
-
declare const useTokenInfo: (token: string) => _kodiak_finance_orderly_types.API.Token | undefined;
|
|
2087
|
+
declare const useTokenInfo: (token: string, networkId?: NetworkId) => _kodiak_finance_orderly_types.API.Token | undefined;
|
|
2082
2088
|
|
|
2083
2089
|
type AppStatus = {
|
|
2084
2090
|
positionsLoading: boolean;
|
|
@@ -2301,9 +2307,11 @@ declare function useOrderEntry$1(symbol: string, side: OrderSide, reduceOnly: bo
|
|
|
2301
2307
|
|
|
2302
2308
|
declare function useMediaQuery(query: string): boolean;
|
|
2303
2309
|
|
|
2310
|
+
declare function getSymbolBase(symbol: string | undefined): string;
|
|
2311
|
+
declare function getSymbolDisplayName(symbol: string | undefined, displaySymbolName?: string | null): string;
|
|
2304
2312
|
interface UseBadgeBySymbolReturn {
|
|
2305
2313
|
/** Display name of the symbol. API.display_symbol_name */
|
|
2306
|
-
|
|
2314
|
+
displaySymbolName: string;
|
|
2307
2315
|
/** Broker ID of the symbol. */
|
|
2308
2316
|
brokerId: string | undefined;
|
|
2309
2317
|
/** Badge label: first segment of raw name, truncated to 7 chars with "...". */
|
|
@@ -2312,8 +2320,8 @@ interface UseBadgeBySymbolReturn {
|
|
|
2312
2320
|
brokerNameRaw: string | undefined;
|
|
2313
2321
|
}
|
|
2314
2322
|
/**
|
|
2315
|
-
* Match the given `symbol` in `symbolsInfo` and return `
|
|
2316
|
-
* and the mapped `brokerName`.
|
|
2323
|
+
* Match the given `symbol` in `symbolsInfo` and return `displaySymbolName`,
|
|
2324
|
+
* `brokerId`, and the mapped `brokerName`.
|
|
2317
2325
|
*
|
|
2318
2326
|
* `brokerName` comes from the `/v1/public/broker/name` broker list
|
|
2319
2327
|
* (SWR shared cache).
|
|
@@ -3215,4 +3223,4 @@ interface UseFeatureFlagReturn {
|
|
|
3215
3223
|
*/
|
|
3216
3224
|
declare const useFeatureFlag: (key: FlagKeys) => UseFeatureFlagReturn;
|
|
3217
3225
|
|
|
3218
|
-
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, type Brokers, type BuiltInMarketTab, type Chain, type ChainFilter, type Chains, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, type CustomMarketTab, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, ERROR_MSG_CODES, type EpochInfoItem, type EpochInfoType, EpochStatus, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab, type FeatureFlagItem, type FilteredChains, FlagKeys, type FundingRates, MaintenanceStatus, type MarginRatioReturn, type MarketBuiltInTabType, MarketCategoriesConfigProvider, type MarketCategoriesConfigProviderProps, type MarketCategoryComponentKey, type MarketCategoryConfig, type MarketCategoryContext, type MarketTabConfig, type MarketsItem, MarketsStorageKey, type MarketsStore, MarketsType, type NewListing, ORDERLY_ORDERBOOK_DEPTH_KEY, type OrderBookItem, type OrderEntryReturn, type OrderMetadata, type OrderMetadataConfig, type OrderParams, type OrderValidationItem, type OrderValidationResult, type OrderbookData, type OrderbookOptions, type OrderlyConfigContextState, OrderlyConfigProvider, OrderlyContext, OrderlyProvider, type PosterLayoutConfig, type PriceMode, type Recent, RefferalAPI, type RestrictedInfoOptions, type RestrictedInfoReturns, type RwaSymbolResult, type RwaSymbolsInfo, ScopeType, type StatusInfo, StatusProvider, type SymbolsInfo, TWType, type UseBadgeBySymbolReturn, type UseChainsOptions, type UseChainsReturnObject, type UseDepositReturn, type UseFeatureFlagReturn, type UseOrderEntryMetaState, WalletConnectorContext, type WalletConnectorContextState, type WalletRewards, type WalletRewardsHistoryReturns, type WalletRewardsItem, type WalletState, WsNetworkStatus, checkNotional, cleanStringStyle, fetcher, findPositionTPSLFromOrders, findTPSLFromOrder, findTPSLOrderPriceFromOrder, formatSymbolWithBroker, getMinNotional, getPriceKey, indexedDBManager, initializeAppDatabase, isCurrentlyClosed, isCurrentlyTrading, noCacheConfig, parseJSON, persistIndexedDB, resetTimestampOffsetState, timestampWaitingMiddleware, useAccount, useAccountInfo, useAccountInstance, useAccountRewardsHistory, useAllBrokers, useApiKeyManager, useAppStore, useAssetsHistory, useAudioPlayer, useBadgeBySymbol, useBalanceSubscription, useBalanceTopic, useBoolean, useChain, useChainInfo, useChains, useCheckReferralCode, useCollateral, useCommission, useComputedLTV, useConfig, useConvert, useCurEpochEstimate, useDaily, useDeposit, useDistribution, useDistributionHistory, useEpochInfo, useEstLiqPriceBySymbol, useEventEmitter, useFeatureFlag, useFeeState, useFundingDetails, useFundingFeeHistory, useFundingRate, useFundingRateBySymbol, useFundingRateHistory, useFundingRates, useFundingRatesStore, useGetClaimed, useGetEnv, useGetEstLiqPrice, useGetReferralCode, useGetRwaSymbolCloseTimeInterval, useGetRwaSymbolInfo, useGetRwaSymbolOpenStatus, useGetRwaSymbolOpenTimeInterval, useHoldingStream, useIndexPrice, useIndexPricesStream, useInfiniteQuery, useInitRwaSymbolsRuntime, useInternalTransfer, useKeyStore, useLazyQuery, useLeverage, useLeverageBySymbol, useLocalStorage, useMainTokenStore, useMainnetChainsStore, useMaintenanceStatus, useMarginModeBySymbol, useMarginModes, useMarginRatio, useMarkPrice, useMarkPriceBySymbol, useMarkPricesStream, useMarket, useMarketCategoriesConfig, useMarketList, useMarketMap, useMarketTradeStream, useMarkets, useMarketsStore, useMarketsStream, useMaxLeverage, useMaxQty, useMaxWithdrawal, useMediaQuery, useMemoizedFn, useMutation, useNetworkInfo, useOdosQuote, useOrderEntity, useOrderEntry, useOrderEntry$1 as useOrderEntry_deprecated, useOrderStore, useOrderStream, useOrderbookStream, useOrderlyContext, usePortfolio, usePositionActions, usePositionClose, usePositionStream, usePositions, usePoster, usePreLoadData, usePrivateDataObserver, usePrivateInfiniteQuery, usePrivateQuery, useQuery, type useQueryOptions, useRefereeHistory, useRefereeInfo, useRefereeRebateSummary, useReferralInfo, useReferralRebateSummary, useRestrictedInfo, useRwaSymbolsInfo, useRwaSymbolsInfoStore, useSessionStorage, useSettleSubscription, useSimpleDI, useStatisticsDaily, useStorageChain, useStorageLedgerAddress, useSubAccountAlgoOrderStream, useSubAccountDataObserver, useSubAccountMaxWithdrawal, useSubAccountMutation, useSubAccountQuery, useSubAccountWS, useSwapSupportStore, useSymbolInfo, useSymbolLeverage, useSymbolLeverageMap, useSymbolPriceRange, useSymbolWithBroker, useSymbolsInfo, useSymbolsInfoStore, useTPSLOrder, useTestTokenStore, useTestnetChainsStore, useTickerStream, useTokenInfo, useTokensInfo, useTpslPriceChecker, useTrack, useTrackingInstance, useTradingRewardsStatus, useTransfer, useTransferHistory, useUpdatedRef, useUserStatistics, useVaultsHistory, useWS, useWalletConnector, useWalletRewardsHistory, useWalletSubscription, useWalletTopic, useWithdraw, useWsStatus, index as utils, _default as version };
|
|
3226
|
+
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, type Brokers, type BuiltInMarketTab, type Chain, type ChainFilter, type Chains, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, type CustomMarketTab, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, ERROR_MSG_CODES, type EpochInfoItem, type EpochInfoType, EpochStatus, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab, type FeatureFlagItem, type FilteredChains, FlagKeys, type FundingRates, MaintenanceStatus, type MarginRatioReturn, type MarketBuiltInTabType, MarketCategoriesConfigProvider, type MarketCategoriesConfigProviderProps, type MarketCategoryComponentKey, type MarketCategoryConfig, type MarketCategoryContext, type MarketTabConfig, type MarketsItem, MarketsStorageKey, type MarketsStore, MarketsType, type NewListing, ORDERLY_ORDERBOOK_DEPTH_KEY, type OrderBookItem, type OrderEntryReturn, type OrderMetadata, type OrderMetadataConfig, type OrderParams, type OrderValidationItem, type OrderValidationResult, type OrderbookData, type OrderbookOptions, type OrderlyConfigContextState, OrderlyConfigProvider, OrderlyContext, OrderlyProvider, type PosterLayoutConfig, type PriceMode, REFERRAL_CODE_MAX_LENGTH, REFERRAL_CODE_MIN_LENGTH, type Recent, RefferalAPI, type RestrictedInfoOptions, type RestrictedInfoReturns, type RwaSymbolResult, type RwaSymbolsInfo, ScopeType, type StatusInfo, StatusProvider, type SymbolsInfo, TESTNET_WHITE_CHAINS, TWType, type UseBadgeBySymbolReturn, type UseChainsOptions, type UseChainsReturnObject, type UseDepositReturn, type UseFeatureFlagReturn, type UseOrderEntryMetaState, WalletConnectorContext, type WalletConnectorContextState, type WalletRewards, type WalletRewardsHistoryReturns, type WalletRewardsItem, type WalletState, WsNetworkStatus, checkNotional, cleanStringStyle, fetcher, findPositionTPSLFromOrders, findTPSLFromOrder, findTPSLOrderPriceFromOrder, formatReferralCodeInput, formatSymbolWithBroker, getMinNotional, getPriceKey, getSymbolBase, getSymbolDisplayName, indexedDBManager, initializeAppDatabase, isCurrentlyClosed, isCurrentlyTrading, isReferralCodeLengthValid, noCacheConfig, parseJSON, persistIndexedDB, resetTimestampOffsetState, timestampWaitingMiddleware, useAccount, useAccountInfo, useAccountInstance, useAccountRewardsHistory, useAllBrokers, useApiKeyManager, useAppStore, useAssetsHistory, useAudioPlayer, useBadgeBySymbol, useBalanceSubscription, useBalanceTopic, useBoolean, useChain, useChainInfo, useChains, useCheckReferralCode, useCollateral, useCommission, useComputedLTV, useConfig, useConvert, useCurEpochEstimate, useDaily, useDeposit, useDistribution, useDistributionHistory, useEpochInfo, useEstLiqPriceBySymbol, useEventEmitter, useFeatureFlag, useFeeState, useFundingDetails, useFundingFeeHistory, useFundingRate, useFundingRateBySymbol, useFundingRateHistory, useFundingRates, useFundingRatesStore, useGetClaimed, useGetEnv, useGetEstLiqPrice, useGetReferralCode, useGetRwaSymbolCloseTimeInterval, useGetRwaSymbolInfo, useGetRwaSymbolOpenStatus, useGetRwaSymbolOpenTimeInterval, useHoldingStream, useIndexPrice, useIndexPricesStream, useInfiniteQuery, useInitRwaSymbolsRuntime, useInternalTransfer, useKeyStore, useLazyQuery, useLeverage, useLeverageBySymbol, useLocalStorage, useMainTokenStore, useMainnetChainsStore, useMaintenanceStatus, useMarginModeBySymbol, useMarginModes, useMarginRatio, useMarkPrice, useMarkPriceBySymbol, useMarkPricesStream, useMarket, useMarketCategoriesConfig, useMarketList, useMarketMap, useMarketTradeStream, useMarkets, useMarketsStore, useMarketsStream, useMaxLeverage, useMaxQty, useMaxWithdrawal, useMediaQuery, useMemoizedFn, useMutation, useNetworkInfo, useOdosQuote, useOrderEntity, useOrderEntry, useOrderEntry$1 as useOrderEntry_deprecated, useOrderStore, useOrderStream, useOrderbookStream, useOrderlyContext, usePortfolio, usePositionActions, usePositionClose, usePositionStream, usePositions, usePoster, usePreLoadData, usePrivateDataObserver, usePrivateInfiniteQuery, usePrivateQuery, useQuery, type useQueryOptions, useRefereeHistory, useRefereeInfo, useRefereeRebateSummary, useReferralInfo, useReferralRebateSummary, useRestrictedInfo, useRwaSymbolsInfo, useRwaSymbolsInfoStore, useSessionStorage, useSettleSubscription, useSimpleDI, useStatisticsDaily, useStorageChain, useStorageLedgerAddress, useSubAccountAlgoOrderStream, useSubAccountDataObserver, useSubAccountMaxWithdrawal, useSubAccountMutation, useSubAccountQuery, useSubAccountWS, useSwapSupportStore, useSymbolInfo, useSymbolLeverage, useSymbolLeverageMap, useSymbolPriceRange, useSymbolWithBroker, useSymbolsInfo, useSymbolsInfoStore, useTPSLOrder, useTestTokenStore, useTestnetChainsStore, useTickerStream, useTokenInfo, useTokensInfo, useTpslPriceChecker, useTrack, useTrackingInstance, useTradingRewardsStatus, useTransfer, useTransferHistory, useUpdatedRef, useUserStatistics, useVaultsHistory, useWS, useWalletConnector, useWalletRewardsHistory, useWalletSubscription, useWalletTopic, useWithdraw, useWsStatus, index as utils, _default as version };
|