@orderly.network/hooks 2.8.8-alpha.0 → 2.8.9-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +60 -6
- package/dist/index.d.ts +60 -6
- package/dist/index.js +3357 -3066
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3357 -3067
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -22,12 +22,13 @@ import { SolanaWalletProvider } from '@orderly.network/default-solana-adapter';
|
|
|
22
22
|
import * as swr_subscription from 'swr/subscription';
|
|
23
23
|
import * as _orderly_network_utils from '@orderly.network/utils';
|
|
24
24
|
import { Decimal } from '@orderly.network/utils';
|
|
25
|
+
import * as use_debounce from 'use-debounce';
|
|
26
|
+
export * from 'use-debounce';
|
|
25
27
|
import * as immer from 'immer';
|
|
26
28
|
import * as zustand from 'zustand';
|
|
27
29
|
import { StoreMutatorIdentifier, StateCreator } from 'zustand';
|
|
28
30
|
import * as zustand_middleware from 'zustand/middleware';
|
|
29
31
|
import { PersistOptions } from 'zustand/middleware';
|
|
30
|
-
export * from 'use-debounce';
|
|
31
32
|
|
|
32
33
|
declare global {
|
|
33
34
|
interface Window {
|
|
@@ -36,7 +37,7 @@ declare global {
|
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
|
-
declare const _default: "2.8.
|
|
40
|
+
declare const _default: "2.8.9-alpha.0";
|
|
40
41
|
|
|
41
42
|
declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
|
|
42
43
|
type useQueryOptions<T> = SWRConfiguration & {
|
|
@@ -1052,7 +1053,7 @@ declare const findPositionTPSLFromOrders: (orders: API.AlgoOrder[], symbol: stri
|
|
|
1052
1053
|
partialPositionOrders?: API.AlgoOrder[];
|
|
1053
1054
|
};
|
|
1054
1055
|
|
|
1055
|
-
type CombineOrderType = AlgoOrderRootType | "ALL";
|
|
1056
|
+
type CombineOrderType$1 = AlgoOrderRootType | "ALL";
|
|
1056
1057
|
declare const useOrderStream: (
|
|
1057
1058
|
/**
|
|
1058
1059
|
* Orders query params
|
|
@@ -1068,12 +1069,12 @@ params: {
|
|
|
1068
1069
|
* Include the order type
|
|
1069
1070
|
* @default ["ALL"]
|
|
1070
1071
|
*/
|
|
1071
|
-
includes?: CombineOrderType[];
|
|
1072
|
+
includes?: CombineOrderType$1[];
|
|
1072
1073
|
/**
|
|
1073
1074
|
* Exclude the order type
|
|
1074
1075
|
* @default []
|
|
1075
1076
|
*/
|
|
1076
|
-
excludes?: CombineOrderType[];
|
|
1077
|
+
excludes?: CombineOrderType$1[];
|
|
1077
1078
|
dateRange?: {
|
|
1078
1079
|
from?: Date;
|
|
1079
1080
|
to?: Date;
|
|
@@ -1118,6 +1119,58 @@ params: {
|
|
|
1118
1119
|
};
|
|
1119
1120
|
}];
|
|
1120
1121
|
|
|
1122
|
+
type CombineOrderType = AlgoOrderRootType | "ALL";
|
|
1123
|
+
/**
|
|
1124
|
+
* TODO: let useOrderStream support pass accountId, it will be better to use this hook
|
|
1125
|
+
*/
|
|
1126
|
+
declare const useSubAccountAlgoOrderStream: (
|
|
1127
|
+
/**
|
|
1128
|
+
* Orders query params
|
|
1129
|
+
*/
|
|
1130
|
+
params: {
|
|
1131
|
+
symbol?: string;
|
|
1132
|
+
status?: OrderStatus;
|
|
1133
|
+
page?: number;
|
|
1134
|
+
size?: number;
|
|
1135
|
+
side?: OrderSide;
|
|
1136
|
+
/**
|
|
1137
|
+
* Include the order type
|
|
1138
|
+
* @default ["ALL"]
|
|
1139
|
+
*/
|
|
1140
|
+
includes?: CombineOrderType[];
|
|
1141
|
+
/**
|
|
1142
|
+
* Exclude the order type
|
|
1143
|
+
* @default []
|
|
1144
|
+
*/
|
|
1145
|
+
excludes?: CombineOrderType[];
|
|
1146
|
+
dateRange?: {
|
|
1147
|
+
from?: Date;
|
|
1148
|
+
to?: Date;
|
|
1149
|
+
};
|
|
1150
|
+
}, options: {
|
|
1151
|
+
accountId: string;
|
|
1152
|
+
}) => readonly [any, {
|
|
1153
|
+
readonly isLoading: boolean;
|
|
1154
|
+
readonly refresh: use_debounce.DebouncedState<() => void>;
|
|
1155
|
+
readonly cancelAllOrders: () => Promise<[any, any]>;
|
|
1156
|
+
readonly cancelAllPendingOrders: (symbol?: string) => void;
|
|
1157
|
+
readonly cancelAllTPSLOrders: (symbol?: string) => Promise<any[]>;
|
|
1158
|
+
readonly cancelAlgoOrdersByTypes: (types: AlgoOrderRootType[], symbol?: string) => Promise<any[]>;
|
|
1159
|
+
readonly updateOrder: (orderId: string, order: OrderEntity) => Promise<any>;
|
|
1160
|
+
readonly cancelOrder: (orderId: number, symbol?: string) => Promise<any>;
|
|
1161
|
+
readonly updateAlgoOrder: (orderId: string, order: OrderEntity) => Promise<any>;
|
|
1162
|
+
readonly cancelAlgoOrder: (orderId: number, symbol?: string) => Promise<any>;
|
|
1163
|
+
readonly cancelTPSLChildOrder: (orderId: number, rootAlgoOrderId: number) => Promise<any>;
|
|
1164
|
+
readonly updateTPSLOrder: (orderId: number, childOrders: API.AlgoOrder["child_orders"]) => Promise<any>;
|
|
1165
|
+
readonly cancelPostionOrdersByTypes: (symbol: string, types: AlgoOrderRootType[]) => Promise<any>;
|
|
1166
|
+
readonly submitting: {
|
|
1167
|
+
readonly cancelOrder: boolean;
|
|
1168
|
+
readonly updateOrder: boolean;
|
|
1169
|
+
readonly cancelAlgoOrder: boolean;
|
|
1170
|
+
readonly updateAlglOrder: boolean;
|
|
1171
|
+
};
|
|
1172
|
+
}];
|
|
1173
|
+
|
|
1121
1174
|
interface MarketTradeStreamOptions {
|
|
1122
1175
|
limit?: number;
|
|
1123
1176
|
}
|
|
@@ -1282,6 +1335,7 @@ declare const useWithdraw: (options: UseWithdrawOptions) => {
|
|
|
1282
1335
|
token: string;
|
|
1283
1336
|
amount: string;
|
|
1284
1337
|
allowCrossChainWithdraw: boolean;
|
|
1338
|
+
receiver?: string;
|
|
1285
1339
|
}) => Promise<any>;
|
|
1286
1340
|
maxAmount: number;
|
|
1287
1341
|
unsettledPnL: number;
|
|
@@ -2866,4 +2920,4 @@ declare const ERROR_MSG_CODES: {
|
|
|
2866
2920
|
|
|
2867
2921
|
declare const useEstLiqPriceBySymbol: (symbol: string) => number | undefined;
|
|
2868
2922
|
|
|
2869
|
-
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, type Brokers, type Chain, type ChainFilter, type Chains, type CheckReferralCodeReturns, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, ERROR_MSG_CODES, type EpochInfoItem, type EpochInfoType, EpochStatus, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab, type FilteredChains, type FundingRates, MaintenanceStatus, type MarginRatioReturn, 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 UseChainsOptions, type UseChainsReturnObject, type UseOrderEntryMetaState, WalletConnectorContext, type WalletConnectorContextState, type WalletRewards, type WalletRewardsHistoryReturns, type WalletRewardsItem, type WalletState, WsNetworkStatus, checkNotional, cleanStringStyle, fetcher, findPositionTPSLFromOrders, findTPSLFromOrder, findTPSLOrderPriceFromOrder, getMinNotional, getPriceKey, indexedDBManager, initializeAppDatabase, isCurrentlyClosed, isCurrentlyTrading, noCacheConfig, parseJSON, persistIndexedDB, resetTimestampOffsetState, timestampWaitingMiddleware, useAccount, useAccountInfo, useAccountInstance, useAccountRewardsHistory, useAllBrokers, useApiKeyManager, useAppStore, useAssetsHistory, useAudioPlayer, useBalanceSubscription, useBalanceTopic, useBoolean, useChain, useChainInfo, useChains, useCheckReferralCode, useCollateral, useCommission, useComputedLTV, useConfig, useConvert, useCurEpochEstimate, useDaily, useDeposit, useDistribution, useDistributionHistory, useEpochInfo, useEstLiqPriceBySymbol, useEventEmitter, useFeeState, useFundingDetails, useFundingFeeHistory, useFundingRate, useFundingRateBySymbol, useFundingRateHistory, useFundingRates, useFundingRatesStore, useGetClaimed, useGetEnv, useGetReferralCode, useGetRwaSymbolCloseTimeInterval, useGetRwaSymbolInfo, useGetRwaSymbolOpenStatus, useGetRwaSymbolOpenTimeInterval, useHoldingStream, useIndexPrice, useIndexPricesStream, useInfiniteQuery, useInitRwaSymbolsRuntime, useInternalTransfer, useKeyStore, useLazyQuery, useLeverage, useLeverageBySymbol, useLocalStorage, useMainTokenStore, useMainnetChainsStore, useMaintenanceStatus, useMarginRatio, useMarkPrice, useMarkPriceBySymbol, useMarkPricesStream, useMarket, 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, usePoster, usePreLoadData, usePrivateDataObserver, usePrivateInfiniteQuery, usePrivateQuery, useQuery, type useQueryOptions, useRefereeHistory, useRefereeInfo, useRefereeRebateSummary, useReferralInfo, useReferralRebateSummary, useRestrictedInfo, useRwaSymbolsInfo, useRwaSymbolsInfoStore, useSessionStorage, useSettleSubscription, useSimpleDI, useStatisticsDaily, useStorageChain, useStorageLedgerAddress, useSubAccountDataObserver, useSubAccountMaxWithdrawal, useSubAccountMutation, useSubAccountQuery, useSubAccountWS, useSwapSupportStore, useSymbolInfo, useSymbolLeverage, useSymbolPriceRange, useSymbolsInfo, useSymbolsInfoStore, useTPSLOrder, useTestTokenStore, useTestnetChainsStore, useTickerStream, useTokenInfo, useTokensInfo, useTpslPriceChecker, useTrack, useTrackingInstance, useTradingRewardsStatus, useTransfer, useTransferHistory, useUpdatedRef, useVaultsHistory, useWS, useWalletConnector, useWalletRewardsHistory, useWalletSubscription, useWalletTopic, useWithdraw, useWsStatus, index as utils, _default as version };
|
|
2923
|
+
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, type Brokers, type Chain, type ChainFilter, type Chains, type CheckReferralCodeReturns, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, ERROR_MSG_CODES, type EpochInfoItem, type EpochInfoType, EpochStatus, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab, type FilteredChains, type FundingRates, MaintenanceStatus, type MarginRatioReturn, 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 UseChainsOptions, type UseChainsReturnObject, type UseOrderEntryMetaState, WalletConnectorContext, type WalletConnectorContextState, type WalletRewards, type WalletRewardsHistoryReturns, type WalletRewardsItem, type WalletState, WsNetworkStatus, checkNotional, cleanStringStyle, fetcher, findPositionTPSLFromOrders, findTPSLFromOrder, findTPSLOrderPriceFromOrder, getMinNotional, getPriceKey, indexedDBManager, initializeAppDatabase, isCurrentlyClosed, isCurrentlyTrading, noCacheConfig, parseJSON, persistIndexedDB, resetTimestampOffsetState, timestampWaitingMiddleware, useAccount, useAccountInfo, useAccountInstance, useAccountRewardsHistory, useAllBrokers, useApiKeyManager, useAppStore, useAssetsHistory, useAudioPlayer, useBalanceSubscription, useBalanceTopic, useBoolean, useChain, useChainInfo, useChains, useCheckReferralCode, useCollateral, useCommission, useComputedLTV, useConfig, useConvert, useCurEpochEstimate, useDaily, useDeposit, useDistribution, useDistributionHistory, useEpochInfo, useEstLiqPriceBySymbol, useEventEmitter, useFeeState, useFundingDetails, useFundingFeeHistory, useFundingRate, useFundingRateBySymbol, useFundingRateHistory, useFundingRates, useFundingRatesStore, useGetClaimed, useGetEnv, useGetReferralCode, useGetRwaSymbolCloseTimeInterval, useGetRwaSymbolInfo, useGetRwaSymbolOpenStatus, useGetRwaSymbolOpenTimeInterval, useHoldingStream, useIndexPrice, useIndexPricesStream, useInfiniteQuery, useInitRwaSymbolsRuntime, useInternalTransfer, useKeyStore, useLazyQuery, useLeverage, useLeverageBySymbol, useLocalStorage, useMainTokenStore, useMainnetChainsStore, useMaintenanceStatus, useMarginRatio, useMarkPrice, useMarkPriceBySymbol, useMarkPricesStream, useMarket, 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, 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, useSymbolPriceRange, useSymbolsInfo, useSymbolsInfoStore, useTPSLOrder, useTestTokenStore, useTestnetChainsStore, useTickerStream, useTokenInfo, useTokensInfo, useTpslPriceChecker, useTrack, useTrackingInstance, useTradingRewardsStatus, useTransfer, useTransferHistory, useUpdatedRef, useVaultsHistory, useWS, useWalletConnector, useWalletRewardsHistory, useWalletSubscription, useWalletTopic, useWithdraw, useWsStatus, index as utils, _default as version };
|
package/dist/index.d.ts
CHANGED
|
@@ -22,12 +22,13 @@ import { SolanaWalletProvider } from '@orderly.network/default-solana-adapter';
|
|
|
22
22
|
import * as swr_subscription from 'swr/subscription';
|
|
23
23
|
import * as _orderly_network_utils from '@orderly.network/utils';
|
|
24
24
|
import { Decimal } from '@orderly.network/utils';
|
|
25
|
+
import * as use_debounce from 'use-debounce';
|
|
26
|
+
export * from 'use-debounce';
|
|
25
27
|
import * as immer from 'immer';
|
|
26
28
|
import * as zustand from 'zustand';
|
|
27
29
|
import { StoreMutatorIdentifier, StateCreator } from 'zustand';
|
|
28
30
|
import * as zustand_middleware from 'zustand/middleware';
|
|
29
31
|
import { PersistOptions } from 'zustand/middleware';
|
|
30
|
-
export * from 'use-debounce';
|
|
31
32
|
|
|
32
33
|
declare global {
|
|
33
34
|
interface Window {
|
|
@@ -36,7 +37,7 @@ declare global {
|
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
|
-
declare const _default: "2.8.
|
|
40
|
+
declare const _default: "2.8.9-alpha.0";
|
|
40
41
|
|
|
41
42
|
declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
|
|
42
43
|
type useQueryOptions<T> = SWRConfiguration & {
|
|
@@ -1052,7 +1053,7 @@ declare const findPositionTPSLFromOrders: (orders: API.AlgoOrder[], symbol: stri
|
|
|
1052
1053
|
partialPositionOrders?: API.AlgoOrder[];
|
|
1053
1054
|
};
|
|
1054
1055
|
|
|
1055
|
-
type CombineOrderType = AlgoOrderRootType | "ALL";
|
|
1056
|
+
type CombineOrderType$1 = AlgoOrderRootType | "ALL";
|
|
1056
1057
|
declare const useOrderStream: (
|
|
1057
1058
|
/**
|
|
1058
1059
|
* Orders query params
|
|
@@ -1068,12 +1069,12 @@ params: {
|
|
|
1068
1069
|
* Include the order type
|
|
1069
1070
|
* @default ["ALL"]
|
|
1070
1071
|
*/
|
|
1071
|
-
includes?: CombineOrderType[];
|
|
1072
|
+
includes?: CombineOrderType$1[];
|
|
1072
1073
|
/**
|
|
1073
1074
|
* Exclude the order type
|
|
1074
1075
|
* @default []
|
|
1075
1076
|
*/
|
|
1076
|
-
excludes?: CombineOrderType[];
|
|
1077
|
+
excludes?: CombineOrderType$1[];
|
|
1077
1078
|
dateRange?: {
|
|
1078
1079
|
from?: Date;
|
|
1079
1080
|
to?: Date;
|
|
@@ -1118,6 +1119,58 @@ params: {
|
|
|
1118
1119
|
};
|
|
1119
1120
|
}];
|
|
1120
1121
|
|
|
1122
|
+
type CombineOrderType = AlgoOrderRootType | "ALL";
|
|
1123
|
+
/**
|
|
1124
|
+
* TODO: let useOrderStream support pass accountId, it will be better to use this hook
|
|
1125
|
+
*/
|
|
1126
|
+
declare const useSubAccountAlgoOrderStream: (
|
|
1127
|
+
/**
|
|
1128
|
+
* Orders query params
|
|
1129
|
+
*/
|
|
1130
|
+
params: {
|
|
1131
|
+
symbol?: string;
|
|
1132
|
+
status?: OrderStatus;
|
|
1133
|
+
page?: number;
|
|
1134
|
+
size?: number;
|
|
1135
|
+
side?: OrderSide;
|
|
1136
|
+
/**
|
|
1137
|
+
* Include the order type
|
|
1138
|
+
* @default ["ALL"]
|
|
1139
|
+
*/
|
|
1140
|
+
includes?: CombineOrderType[];
|
|
1141
|
+
/**
|
|
1142
|
+
* Exclude the order type
|
|
1143
|
+
* @default []
|
|
1144
|
+
*/
|
|
1145
|
+
excludes?: CombineOrderType[];
|
|
1146
|
+
dateRange?: {
|
|
1147
|
+
from?: Date;
|
|
1148
|
+
to?: Date;
|
|
1149
|
+
};
|
|
1150
|
+
}, options: {
|
|
1151
|
+
accountId: string;
|
|
1152
|
+
}) => readonly [any, {
|
|
1153
|
+
readonly isLoading: boolean;
|
|
1154
|
+
readonly refresh: use_debounce.DebouncedState<() => void>;
|
|
1155
|
+
readonly cancelAllOrders: () => Promise<[any, any]>;
|
|
1156
|
+
readonly cancelAllPendingOrders: (symbol?: string) => void;
|
|
1157
|
+
readonly cancelAllTPSLOrders: (symbol?: string) => Promise<any[]>;
|
|
1158
|
+
readonly cancelAlgoOrdersByTypes: (types: AlgoOrderRootType[], symbol?: string) => Promise<any[]>;
|
|
1159
|
+
readonly updateOrder: (orderId: string, order: OrderEntity) => Promise<any>;
|
|
1160
|
+
readonly cancelOrder: (orderId: number, symbol?: string) => Promise<any>;
|
|
1161
|
+
readonly updateAlgoOrder: (orderId: string, order: OrderEntity) => Promise<any>;
|
|
1162
|
+
readonly cancelAlgoOrder: (orderId: number, symbol?: string) => Promise<any>;
|
|
1163
|
+
readonly cancelTPSLChildOrder: (orderId: number, rootAlgoOrderId: number) => Promise<any>;
|
|
1164
|
+
readonly updateTPSLOrder: (orderId: number, childOrders: API.AlgoOrder["child_orders"]) => Promise<any>;
|
|
1165
|
+
readonly cancelPostionOrdersByTypes: (symbol: string, types: AlgoOrderRootType[]) => Promise<any>;
|
|
1166
|
+
readonly submitting: {
|
|
1167
|
+
readonly cancelOrder: boolean;
|
|
1168
|
+
readonly updateOrder: boolean;
|
|
1169
|
+
readonly cancelAlgoOrder: boolean;
|
|
1170
|
+
readonly updateAlglOrder: boolean;
|
|
1171
|
+
};
|
|
1172
|
+
}];
|
|
1173
|
+
|
|
1121
1174
|
interface MarketTradeStreamOptions {
|
|
1122
1175
|
limit?: number;
|
|
1123
1176
|
}
|
|
@@ -1282,6 +1335,7 @@ declare const useWithdraw: (options: UseWithdrawOptions) => {
|
|
|
1282
1335
|
token: string;
|
|
1283
1336
|
amount: string;
|
|
1284
1337
|
allowCrossChainWithdraw: boolean;
|
|
1338
|
+
receiver?: string;
|
|
1285
1339
|
}) => Promise<any>;
|
|
1286
1340
|
maxAmount: number;
|
|
1287
1341
|
unsettledPnL: number;
|
|
@@ -2866,4 +2920,4 @@ declare const ERROR_MSG_CODES: {
|
|
|
2866
2920
|
|
|
2867
2921
|
declare const useEstLiqPriceBySymbol: (symbol: string) => number | undefined;
|
|
2868
2922
|
|
|
2869
|
-
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, type Brokers, type Chain, type ChainFilter, type Chains, type CheckReferralCodeReturns, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, ERROR_MSG_CODES, type EpochInfoItem, type EpochInfoType, EpochStatus, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab, type FilteredChains, type FundingRates, MaintenanceStatus, type MarginRatioReturn, 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 UseChainsOptions, type UseChainsReturnObject, type UseOrderEntryMetaState, WalletConnectorContext, type WalletConnectorContextState, type WalletRewards, type WalletRewardsHistoryReturns, type WalletRewardsItem, type WalletState, WsNetworkStatus, checkNotional, cleanStringStyle, fetcher, findPositionTPSLFromOrders, findTPSLFromOrder, findTPSLOrderPriceFromOrder, getMinNotional, getPriceKey, indexedDBManager, initializeAppDatabase, isCurrentlyClosed, isCurrentlyTrading, noCacheConfig, parseJSON, persistIndexedDB, resetTimestampOffsetState, timestampWaitingMiddleware, useAccount, useAccountInfo, useAccountInstance, useAccountRewardsHistory, useAllBrokers, useApiKeyManager, useAppStore, useAssetsHistory, useAudioPlayer, useBalanceSubscription, useBalanceTopic, useBoolean, useChain, useChainInfo, useChains, useCheckReferralCode, useCollateral, useCommission, useComputedLTV, useConfig, useConvert, useCurEpochEstimate, useDaily, useDeposit, useDistribution, useDistributionHistory, useEpochInfo, useEstLiqPriceBySymbol, useEventEmitter, useFeeState, useFundingDetails, useFundingFeeHistory, useFundingRate, useFundingRateBySymbol, useFundingRateHistory, useFundingRates, useFundingRatesStore, useGetClaimed, useGetEnv, useGetReferralCode, useGetRwaSymbolCloseTimeInterval, useGetRwaSymbolInfo, useGetRwaSymbolOpenStatus, useGetRwaSymbolOpenTimeInterval, useHoldingStream, useIndexPrice, useIndexPricesStream, useInfiniteQuery, useInitRwaSymbolsRuntime, useInternalTransfer, useKeyStore, useLazyQuery, useLeverage, useLeverageBySymbol, useLocalStorage, useMainTokenStore, useMainnetChainsStore, useMaintenanceStatus, useMarginRatio, useMarkPrice, useMarkPriceBySymbol, useMarkPricesStream, useMarket, 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, usePoster, usePreLoadData, usePrivateDataObserver, usePrivateInfiniteQuery, usePrivateQuery, useQuery, type useQueryOptions, useRefereeHistory, useRefereeInfo, useRefereeRebateSummary, useReferralInfo, useReferralRebateSummary, useRestrictedInfo, useRwaSymbolsInfo, useRwaSymbolsInfoStore, useSessionStorage, useSettleSubscription, useSimpleDI, useStatisticsDaily, useStorageChain, useStorageLedgerAddress, useSubAccountDataObserver, useSubAccountMaxWithdrawal, useSubAccountMutation, useSubAccountQuery, useSubAccountWS, useSwapSupportStore, useSymbolInfo, useSymbolLeverage, useSymbolPriceRange, useSymbolsInfo, useSymbolsInfoStore, useTPSLOrder, useTestTokenStore, useTestnetChainsStore, useTickerStream, useTokenInfo, useTokensInfo, useTpslPriceChecker, useTrack, useTrackingInstance, useTradingRewardsStatus, useTransfer, useTransferHistory, useUpdatedRef, useVaultsHistory, useWS, useWalletConnector, useWalletRewardsHistory, useWalletSubscription, useWalletTopic, useWithdraw, useWsStatus, index as utils, _default as version };
|
|
2923
|
+
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, type Brokers, type Chain, type ChainFilter, type Chains, type CheckReferralCodeReturns, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, ERROR_MSG_CODES, type EpochInfoItem, type EpochInfoType, EpochStatus, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab, type FilteredChains, type FundingRates, MaintenanceStatus, type MarginRatioReturn, 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 UseChainsOptions, type UseChainsReturnObject, type UseOrderEntryMetaState, WalletConnectorContext, type WalletConnectorContextState, type WalletRewards, type WalletRewardsHistoryReturns, type WalletRewardsItem, type WalletState, WsNetworkStatus, checkNotional, cleanStringStyle, fetcher, findPositionTPSLFromOrders, findTPSLFromOrder, findTPSLOrderPriceFromOrder, getMinNotional, getPriceKey, indexedDBManager, initializeAppDatabase, isCurrentlyClosed, isCurrentlyTrading, noCacheConfig, parseJSON, persistIndexedDB, resetTimestampOffsetState, timestampWaitingMiddleware, useAccount, useAccountInfo, useAccountInstance, useAccountRewardsHistory, useAllBrokers, useApiKeyManager, useAppStore, useAssetsHistory, useAudioPlayer, useBalanceSubscription, useBalanceTopic, useBoolean, useChain, useChainInfo, useChains, useCheckReferralCode, useCollateral, useCommission, useComputedLTV, useConfig, useConvert, useCurEpochEstimate, useDaily, useDeposit, useDistribution, useDistributionHistory, useEpochInfo, useEstLiqPriceBySymbol, useEventEmitter, useFeeState, useFundingDetails, useFundingFeeHistory, useFundingRate, useFundingRateBySymbol, useFundingRateHistory, useFundingRates, useFundingRatesStore, useGetClaimed, useGetEnv, useGetReferralCode, useGetRwaSymbolCloseTimeInterval, useGetRwaSymbolInfo, useGetRwaSymbolOpenStatus, useGetRwaSymbolOpenTimeInterval, useHoldingStream, useIndexPrice, useIndexPricesStream, useInfiniteQuery, useInitRwaSymbolsRuntime, useInternalTransfer, useKeyStore, useLazyQuery, useLeverage, useLeverageBySymbol, useLocalStorage, useMainTokenStore, useMainnetChainsStore, useMaintenanceStatus, useMarginRatio, useMarkPrice, useMarkPriceBySymbol, useMarkPricesStream, useMarket, 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, 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, useSymbolPriceRange, useSymbolsInfo, useSymbolsInfoStore, useTPSLOrder, useTestTokenStore, useTestnetChainsStore, useTickerStream, useTokenInfo, useTokensInfo, useTpslPriceChecker, useTrack, useTrackingInstance, useTradingRewardsStatus, useTransfer, useTransferHistory, useUpdatedRef, useVaultsHistory, useWS, useWalletConnector, useWalletRewardsHistory, useWalletSubscription, useWalletTopic, useWithdraw, useWsStatus, index as utils, _default as version };
|