@agg-build/hooks 2.4.6 → 2.6.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/{chunk-X32MRBHC.mjs → chunk-DP6VYGAX.mjs} +1 -1
- package/dist/{chunk-4IRZFXAC.mjs → chunk-Q4FRCMP6.mjs} +1 -1
- package/dist/{chunk-CAG2RCHR.mjs → chunk-TJRQ55UC.mjs} +239 -46
- package/dist/deposit.js +87 -0
- package/dist/deposit.mjs +2 -2
- package/dist/index.d.mts +209 -4
- package/dist/index.d.ts +209 -4
- package/dist/index.js +467 -132
- package/dist/index.mjs +172 -31
- package/dist/withdraw.js +87 -0
- package/dist/withdraw.mjs +2 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
|
|
|
2
2
|
import { QueryClient } from '@tanstack/react-query';
|
|
3
3
|
export { QueryClient, QueryClientProvider, useQueryClient } from '@tanstack/react-query';
|
|
4
4
|
import * as _agg_build_sdk from '@agg-build/sdk';
|
|
5
|
-
import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, QuoteManagedResponse, QuoteManagedParams, ExecuteManagedResponse, ExecuteManagedParams, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurrenceFilter, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } from '@agg-build/sdk';
|
|
5
|
+
import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, QuoteManagedResponse, QuoteManagedParams, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, Venue as Venue$1, VenueKeyStatus, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurrenceFilter, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } from '@agg-build/sdk';
|
|
6
6
|
export { TurnstileChallengeError } from '@agg-build/sdk';
|
|
7
7
|
import React, { ReactNode } from 'react';
|
|
8
8
|
export { UseManagedBalancesOptions, UseWithdrawEstimateParams, UseWithdrawFlowOptions, UseWithdrawFlowResult, UseWithdrawManagedOptions, UseWithdrawPreviewParams, UseWithdrawalLifecycleResult, WithdrawFeeEstimate, WithdrawalLifecycleState, useManagedBalances, useWithdrawEstimate, useWithdrawFlow, useWithdrawManaged, useWithdrawPreview, useWithdrawalLifecycle } from './withdraw.mjs';
|
|
@@ -78,6 +78,14 @@ declare enum OrderStatus {
|
|
|
78
78
|
expired = "expired",
|
|
79
79
|
cancelled = "cancelled"
|
|
80
80
|
}
|
|
81
|
+
declare enum TimeInForce {
|
|
82
|
+
GTC = "GTC",
|
|
83
|
+
GTD = "GTD",
|
|
84
|
+
FOK = "FOK",
|
|
85
|
+
FAK = "FAK",
|
|
86
|
+
IOC = "IOC",
|
|
87
|
+
ALO = "ALO"
|
|
88
|
+
}
|
|
81
89
|
|
|
82
90
|
/**
|
|
83
91
|
* Standalone type definitions — no Zod dependency.
|
|
@@ -108,6 +116,17 @@ type UserProfile = {
|
|
|
108
116
|
}[] | null;
|
|
109
117
|
};
|
|
110
118
|
type PriceSource = "orderbook" | "cached" | "entry" | "settled";
|
|
119
|
+
/**
|
|
120
|
+
* Health of the orderbook a position was marked against — passthrough of
|
|
121
|
+
* the engine's `BookQuality` verdict. `priceSource` says where a mark came
|
|
122
|
+
* from; this says whether that source was trustworthy. Anything other than
|
|
123
|
+
* `healthy` is a low-confidence mark.
|
|
124
|
+
*
|
|
125
|
+
* Read `priceSource` first — this only qualifies book-derived marks. A
|
|
126
|
+
* `settled` position is exact (1/0) and consults no book, so it reports
|
|
127
|
+
* `empty`; that is not a confidence signal.
|
|
128
|
+
*/
|
|
129
|
+
type BookQuality = "healthy" | "wide_spread" | "bid_only" | "ask_only" | "endpoint_stub" | "crossed" | "empty";
|
|
111
130
|
type UnifiedBalanceResponse = {
|
|
112
131
|
cash: {
|
|
113
132
|
tokenSymbol: string;
|
|
@@ -133,6 +152,12 @@ type UnifiedBalanceResponse = {
|
|
|
133
152
|
unrealizedPnl: number;
|
|
134
153
|
realizedPnl: number;
|
|
135
154
|
}[];
|
|
155
|
+
venueCash?: {
|
|
156
|
+
venue: Venue;
|
|
157
|
+
balanceCents: number;
|
|
158
|
+
portfolioValueCents?: number | undefined;
|
|
159
|
+
updatedAt: string;
|
|
160
|
+
}[];
|
|
136
161
|
};
|
|
137
162
|
type GetOrdersQuery = {
|
|
138
163
|
status?: OrderStatus | undefined;
|
|
@@ -161,6 +186,20 @@ type OrderListItem = {
|
|
|
161
186
|
venue: Venue;
|
|
162
187
|
side: string;
|
|
163
188
|
amountRaw: string;
|
|
189
|
+
orderType?: "market" | "limit" | undefined;
|
|
190
|
+
limitPriceRaw: string | null;
|
|
191
|
+
limitSizeRaw?: string | null | undefined;
|
|
192
|
+
timeInForce: TimeInForce | null;
|
|
193
|
+
postOnly?: boolean | undefined;
|
|
194
|
+
expiresAt: Date | string | null;
|
|
195
|
+
reservedCostRaw?: string | null | undefined;
|
|
196
|
+
filledSizeRaw?: string | null | undefined;
|
|
197
|
+
filledCostRaw?: string | null | undefined;
|
|
198
|
+
remainingSizeRaw?: string | null | undefined;
|
|
199
|
+
averageFillPriceRaw?: string | null | undefined;
|
|
200
|
+
venueOrderId?: string | null | undefined;
|
|
201
|
+
cancelRequestedAt?: Date | string | null | undefined;
|
|
202
|
+
cancelledAt?: Date | string | null | undefined;
|
|
164
203
|
slippageBps: number | null;
|
|
165
204
|
quotedPriceRaw: string | null;
|
|
166
205
|
quotedCostRaw: string | null;
|
|
@@ -223,6 +262,7 @@ type PositionGroup = {
|
|
|
223
262
|
totalValue: number;
|
|
224
263
|
unrealizedPnlPercent: number;
|
|
225
264
|
priceSource: PriceSource;
|
|
265
|
+
bookQuality: BookQuality;
|
|
226
266
|
}[];
|
|
227
267
|
};
|
|
228
268
|
targetMarketId: string;
|
|
@@ -721,8 +761,16 @@ interface AggUiLabels {
|
|
|
721
761
|
categoryTabsAria: string;
|
|
722
762
|
};
|
|
723
763
|
userProfile: {
|
|
764
|
+
tabs: {
|
|
765
|
+
positions: string;
|
|
766
|
+
openOrders: string;
|
|
767
|
+
activity: string;
|
|
768
|
+
};
|
|
724
769
|
balance: {
|
|
725
770
|
availableBalance: string;
|
|
771
|
+
reservedForOpenOrders: (amount: string) => string;
|
|
772
|
+
positionsValue: string;
|
|
773
|
+
kalshiBalance: string;
|
|
726
774
|
balanceByNetwork: string;
|
|
727
775
|
paperModeNetwork: string;
|
|
728
776
|
paperModeWarning: string;
|
|
@@ -809,6 +857,25 @@ interface AggUiLabels {
|
|
|
809
857
|
nowPrefix: string;
|
|
810
858
|
finalPrefix: string;
|
|
811
859
|
};
|
|
860
|
+
openOrders: {
|
|
861
|
+
marketHeader: string;
|
|
862
|
+
limitPriceHeader: string;
|
|
863
|
+
filledHeader: string;
|
|
864
|
+
totalHeader: string;
|
|
865
|
+
filledShort: string;
|
|
866
|
+
totalShort: string;
|
|
867
|
+
expirationHeader: string;
|
|
868
|
+
goodTilCanceled: string;
|
|
869
|
+
expired: string;
|
|
870
|
+
cancel: string;
|
|
871
|
+
cancelOrderAria: (orderId: string) => string;
|
|
872
|
+
loading: string;
|
|
873
|
+
loadingMore: string;
|
|
874
|
+
errorTitle: string;
|
|
875
|
+
errorDescription: string;
|
|
876
|
+
emptyTitle: string;
|
|
877
|
+
emptyDescription: string;
|
|
878
|
+
};
|
|
812
879
|
};
|
|
813
880
|
eventList: {
|
|
814
881
|
matchedTab: string;
|
|
@@ -1077,6 +1144,20 @@ interface AggUiLabels {
|
|
|
1077
1144
|
noBidsAboveMinPrice: string;
|
|
1078
1145
|
signInToTrade: string;
|
|
1079
1146
|
deposit: string;
|
|
1147
|
+
addFundsToKalshi: string;
|
|
1148
|
+
fundKalshiModal: {
|
|
1149
|
+
ariaLabel: string;
|
|
1150
|
+
title: string;
|
|
1151
|
+
description: string;
|
|
1152
|
+
howItWorks: string;
|
|
1153
|
+
kalshiLinkLabel: string;
|
|
1154
|
+
kalshiUrl: string;
|
|
1155
|
+
firstStepPrefix: string;
|
|
1156
|
+
firstStepSuffix: string;
|
|
1157
|
+
remainingSteps: [string, string, string];
|
|
1158
|
+
doItLater: string;
|
|
1159
|
+
done: string;
|
|
1160
|
+
};
|
|
1080
1161
|
kycRequired: string;
|
|
1081
1162
|
kycNotVerifiedTooltip: string;
|
|
1082
1163
|
kycVerify: string;
|
|
@@ -1087,8 +1168,35 @@ interface AggUiLabels {
|
|
|
1087
1168
|
kycSuccessTitle: string;
|
|
1088
1169
|
kycSuccessDescription: string;
|
|
1089
1170
|
kycSuccessDone: string;
|
|
1171
|
+
connectKalshi: string;
|
|
1172
|
+
tradingAccessVenues: string;
|
|
1173
|
+
tradingAccessAvailable: string;
|
|
1174
|
+
tradingAccessAddKalshiAccount: string;
|
|
1090
1175
|
outcome: (label: string) => string;
|
|
1091
1176
|
smartRouting: string;
|
|
1177
|
+
orderTypeMarket: string;
|
|
1178
|
+
orderTypeLimit: string;
|
|
1179
|
+
orderTypeAria: string;
|
|
1180
|
+
limitPrice: string;
|
|
1181
|
+
limitPriceInputAria: string;
|
|
1182
|
+
limitPriceInvalid: string;
|
|
1183
|
+
limitPriceDecreaseAria: string;
|
|
1184
|
+
limitPriceIncreaseAria: string;
|
|
1185
|
+
expiration: string;
|
|
1186
|
+
expirationGoodTilCanceled: string;
|
|
1187
|
+
expirationFiveMinutes: string;
|
|
1188
|
+
expirationOneHour: string;
|
|
1189
|
+
expirationEndOfDay: string;
|
|
1190
|
+
expirationCustom: string;
|
|
1191
|
+
expirationMenuAria: string;
|
|
1192
|
+
expirationOptions: string;
|
|
1193
|
+
expirationDateAria: string;
|
|
1194
|
+
expirationStartTime: string;
|
|
1195
|
+
expirationStartTimeHint: string;
|
|
1196
|
+
expirationCancel: string;
|
|
1197
|
+
expirationApply: string;
|
|
1198
|
+
limitOrderPlacedTitle: string;
|
|
1199
|
+
limitOrderPlacedDescription: string;
|
|
1092
1200
|
orderSplitting: string;
|
|
1093
1201
|
splitOrderDescription: string;
|
|
1094
1202
|
viewAllRoutes: (count: number) => string;
|
|
@@ -1241,6 +1349,11 @@ interface AggUiLabels {
|
|
|
1241
1349
|
cancel: string;
|
|
1242
1350
|
verifyConnection: string;
|
|
1243
1351
|
};
|
|
1352
|
+
success: {
|
|
1353
|
+
title: string;
|
|
1354
|
+
description: string;
|
|
1355
|
+
done: string;
|
|
1356
|
+
};
|
|
1244
1357
|
fallbackError: string;
|
|
1245
1358
|
};
|
|
1246
1359
|
};
|
|
@@ -1290,6 +1403,9 @@ interface AggUiLabels {
|
|
|
1290
1403
|
moreMarketsTitle: string;
|
|
1291
1404
|
gameLinesTab: string;
|
|
1292
1405
|
halvesTab: string;
|
|
1406
|
+
quartersTab: string;
|
|
1407
|
+
setsTab: string;
|
|
1408
|
+
playerPropsTab: string;
|
|
1293
1409
|
exactScoreTab: string;
|
|
1294
1410
|
cornersTab: string;
|
|
1295
1411
|
goalsTab: string;
|
|
@@ -1344,6 +1460,12 @@ interface AggUiLabels {
|
|
|
1344
1460
|
amountLabel?: string;
|
|
1345
1461
|
priceLabel?: string;
|
|
1346
1462
|
}) => string;
|
|
1463
|
+
cancelledTitle: string;
|
|
1464
|
+
cancelledMessage: string;
|
|
1465
|
+
cancelPendingTitle: string;
|
|
1466
|
+
cancelPendingMessage: string;
|
|
1467
|
+
cancelFailedTitle: string;
|
|
1468
|
+
cancelFailedMessage: (errorReason?: string) => string;
|
|
1347
1469
|
failedTitle: string;
|
|
1348
1470
|
failedMessage: (errorReason?: string) => string;
|
|
1349
1471
|
};
|
|
@@ -1431,6 +1553,8 @@ interface AggUiFeatureFlagsConfig {
|
|
|
1431
1553
|
* for ad-hoc partner-fired toasts).
|
|
1432
1554
|
*/
|
|
1433
1555
|
enableNotifications: boolean;
|
|
1556
|
+
/** Enable creating limit orders in trading surfaces. Defaults to `false`. */
|
|
1557
|
+
showLimitOrders: boolean;
|
|
1434
1558
|
/**
|
|
1435
1559
|
* Enable the experimental sports event-details view. When `true` and the
|
|
1436
1560
|
* event's `structureType === "sport"`, the event page renders the sports
|
|
@@ -1635,10 +1759,19 @@ interface AggAuthContextValue {
|
|
|
1635
1759
|
}
|
|
1636
1760
|
interface AggBalanceContextValue {
|
|
1637
1761
|
balanceBreakdown: AggBalanceBreakdownItem[];
|
|
1762
|
+
/** Per-chain spendable cash after active execution reservations. */
|
|
1763
|
+
availableBalanceBreakdown: AggBalanceBreakdownItem[];
|
|
1638
1764
|
/** Raw response from GET /execution/balances for direct consumer use. */
|
|
1639
1765
|
managedBalances: UnifiedBalanceResponse;
|
|
1766
|
+
/** Total cash, including funds reserved for open orders. */
|
|
1640
1767
|
totalBalance: number;
|
|
1768
|
+
/** Cash immediately available for a new trade or withdrawal. */
|
|
1769
|
+
availableBalance: number;
|
|
1770
|
+
/** Cash currently reserved for pending and open orders. */
|
|
1771
|
+
reservedBalance: number;
|
|
1641
1772
|
positionsBalanceTotal: number;
|
|
1773
|
+
kalshiBalance: number | null;
|
|
1774
|
+
kalshiPortfolioValue: number | null;
|
|
1642
1775
|
connectedVenues: Venue[];
|
|
1643
1776
|
isLoading: boolean;
|
|
1644
1777
|
error: Error | null;
|
|
@@ -1925,6 +2058,18 @@ interface UseExecuteManagedOptions {
|
|
|
1925
2058
|
*/
|
|
1926
2059
|
declare function useExecuteManaged(options?: UseExecuteManagedOptions): _tanstack_react_query.UseMutationResult<ExecuteManagedResponse, Error, ExecuteManagedParams, unknown>;
|
|
1927
2060
|
|
|
2061
|
+
interface UsePlaceLimitOrderOptions {
|
|
2062
|
+
onSuccess?: (data: PlaceLimitOrderResponse) => void;
|
|
2063
|
+
onError?: (error: Error) => void;
|
|
2064
|
+
}
|
|
2065
|
+
declare function usePlaceLimitOrder(options?: UsePlaceLimitOrderOptions): _tanstack_react_query.UseMutationResult<PlaceLimitOrderResponse, Error, PlaceLimitOrderParams, unknown>;
|
|
2066
|
+
|
|
2067
|
+
interface UseCancelManagedOrderOptions {
|
|
2068
|
+
onSuccess?: (data: CancelManagedExecutionResponse, orderId: string) => void;
|
|
2069
|
+
onError?: (error: Error, orderId: string) => void;
|
|
2070
|
+
}
|
|
2071
|
+
declare function useCancelManagedOrder(options?: UseCancelManagedOrderOptions): _tanstack_react_query.UseMutationResult<CancelManagedExecutionResponse, Error, string, unknown>;
|
|
2072
|
+
|
|
1928
2073
|
interface UsePositionsOptions extends GetPositionsParams {
|
|
1929
2074
|
enabled?: boolean;
|
|
1930
2075
|
}
|
|
@@ -2358,12 +2503,23 @@ declare const getVisibleVenuesByConfig: <TVenue extends {
|
|
|
2358
2503
|
id: string;
|
|
2359
2504
|
}>(venues: readonly TVenue[], disabledVenues?: readonly string[]) => TVenue[];
|
|
2360
2505
|
declare const getVisibleVenueIdsByConfig: <TVenueId extends string>(venueIds: readonly TVenueId[], disabledVenues?: readonly string[]) => TVenueId[];
|
|
2361
|
-
declare const getVenueAvailabilityState: ({ venueId, disabledVenues, isLocationBlocked, }: {
|
|
2506
|
+
declare const getVenueAvailabilityState: ({ venueId, disabledVenues, isConfigLoading, isLocationBlocked, }: {
|
|
2362
2507
|
venueId: string;
|
|
2363
2508
|
disabledVenues?: readonly string[];
|
|
2509
|
+
/**
|
|
2510
|
+
* Treat unresolved app configuration as hidden so venue-specific UI does not
|
|
2511
|
+
* flash before `/app/config` resolves.
|
|
2512
|
+
*/
|
|
2513
|
+
isConfigLoading?: boolean;
|
|
2364
2514
|
isLocationBlocked?: boolean;
|
|
2365
2515
|
}) => VenueAvailabilityState;
|
|
2366
2516
|
|
|
2517
|
+
declare const venueKeyQueryKeys: {
|
|
2518
|
+
all: readonly ["agg", "venue-keys"];
|
|
2519
|
+
status: (venue: Venue$1) => readonly ["agg", "venue-keys", Venue$1, "status"];
|
|
2520
|
+
};
|
|
2521
|
+
declare const useVenueKeyStatus: (venue: Venue$1, enabled?: boolean) => _tanstack_react_query.UseQueryResult<VenueKeyStatus, Error>;
|
|
2522
|
+
|
|
2367
2523
|
interface UseAggAuthOptions {
|
|
2368
2524
|
signMessage?: (message: string) => Promise<string>;
|
|
2369
2525
|
address?: string;
|
|
@@ -2652,7 +2808,9 @@ declare function useCategoryChildren(options?: UseCategoryChildrenOptions): {
|
|
|
2652
2808
|
|
|
2653
2809
|
declare function useDebouncedValue<T>(value: T, delay: number): T;
|
|
2654
2810
|
|
|
2655
|
-
|
|
2811
|
+
type ExecutionOrderStatusInput = NonNullable<GetOrdersQuery["status"]> | `${NonNullable<GetOrdersQuery["status"]>}`;
|
|
2812
|
+
interface UseExecutionOrdersOptions extends Omit<GetOrdersQuery, "cursor" | "status"> {
|
|
2813
|
+
status?: ExecutionOrderStatusInput;
|
|
2656
2814
|
enabled?: boolean;
|
|
2657
2815
|
mode?: "live" | "paper";
|
|
2658
2816
|
refetchIntervalMs?: number | false;
|
|
@@ -4219,6 +4377,14 @@ interface UseSmartRouteOptions {
|
|
|
4219
4377
|
slipCapBps?: number;
|
|
4220
4378
|
/** Include venue-by-venue comparison quotes. */
|
|
4221
4379
|
compareVenues?: boolean;
|
|
4380
|
+
/**
|
|
4381
|
+
* Sell-only cache scope. Position freshness and account identity affect the
|
|
4382
|
+
* server-side sellable inventory even when the requested amount is unchanged.
|
|
4383
|
+
*/
|
|
4384
|
+
sellCacheScope?: {
|
|
4385
|
+
accountId?: string | null;
|
|
4386
|
+
positionVersion?: number | null;
|
|
4387
|
+
};
|
|
4222
4388
|
/**
|
|
4223
4389
|
* Opt in to the deep cost-estimate surface — response `feeBreakdown`
|
|
4224
4390
|
* gains `setupCosts` (chain approvals + Kalshi ATAs) with `alreadyPaid`
|
|
@@ -4272,6 +4438,45 @@ interface UseSmartRouteResult {
|
|
|
4272
4438
|
*/
|
|
4273
4439
|
declare function useSmartRoute(options: UseSmartRouteOptions): UseSmartRouteResult;
|
|
4274
4440
|
|
|
4441
|
+
interface VenueSellQuoteRequest {
|
|
4442
|
+
venue: Venue$1;
|
|
4443
|
+
requestedSellShares: number;
|
|
4444
|
+
sellShares: number;
|
|
4445
|
+
availableShares: number;
|
|
4446
|
+
}
|
|
4447
|
+
interface UseVenueSellQuotesOptions {
|
|
4448
|
+
venueMarketOutcomeId?: string | null;
|
|
4449
|
+
accountId?: string | null;
|
|
4450
|
+
positionVersion?: number | null;
|
|
4451
|
+
requests: VenueSellQuoteRequest[];
|
|
4452
|
+
mode?: ExecutionMode | null;
|
|
4453
|
+
slipCapBps?: number;
|
|
4454
|
+
enabled?: boolean;
|
|
4455
|
+
staleTimeMs?: number;
|
|
4456
|
+
refreshContext?: UseSmartRouteOptions["refreshContext"];
|
|
4457
|
+
}
|
|
4458
|
+
interface VenueSellQuoteResult {
|
|
4459
|
+
request: VenueSellQuoteRequest;
|
|
4460
|
+
data: SmartRouteResponse | null;
|
|
4461
|
+
isLoading: boolean;
|
|
4462
|
+
isFetching: boolean;
|
|
4463
|
+
error: Error | null;
|
|
4464
|
+
refetch: () => Promise<unknown>;
|
|
4465
|
+
}
|
|
4466
|
+
interface UseVenueSellQuotesResult {
|
|
4467
|
+
quotes: VenueSellQuoteResult[];
|
|
4468
|
+
isLoading: boolean;
|
|
4469
|
+
isFetching: boolean;
|
|
4470
|
+
error: Error | null;
|
|
4471
|
+
refetch: () => Promise<unknown>;
|
|
4472
|
+
}
|
|
4473
|
+
/**
|
|
4474
|
+
* Fetches one independently executable SELL quote for every eligible venue.
|
|
4475
|
+
* Each query owns its quoteId and is cache-scoped to the exact account,
|
|
4476
|
+
* position snapshot, venue, requested amount, and clamped venue amount.
|
|
4477
|
+
*/
|
|
4478
|
+
declare const useVenueSellQuotes: (options: UseVenueSellQuotesOptions) => UseVenueSellQuotesResult;
|
|
4479
|
+
|
|
4275
4480
|
interface UseUserHoldingsOptions {
|
|
4276
4481
|
venue: Venue;
|
|
4277
4482
|
venueMarketId?: string;
|
|
@@ -5728,4 +5933,4 @@ declare function useAppConfig(): UseAppConfigResult;
|
|
|
5728
5933
|
*/
|
|
5729
5934
|
declare function useCachedAppConfig(): UseAppConfigResult;
|
|
5730
5935
|
|
|
5731
|
-
export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
|
|
5936
|
+
export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCancelManagedOrderOptions, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePlaceLimitOrderOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseVenueSellQuotesOptions, type UseVenueSellQuotesResult, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type VenueSellQuoteRequest, type VenueSellQuoteResult, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCancelManagedOrder, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePlaceLimitOrder, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueKeyStatus, useVenueMarketMidpoints, useVenueMarkets, useVenueSellQuotes, useViewportMidpoints, useVisibleIds, userActivityQueryKeys, venueKeyQueryKeys };
|