@agg-build/hooks 4.17.2 → 4.18.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-IVUHIMRY.mjs → chunk-5B2F3GMC.mjs} +1 -1
- package/dist/{chunk-KQ5TOPNY.mjs → chunk-ESDA4NZI.mjs} +687 -604
- package/dist/{chunk-BBAKQDOH.mjs → chunk-SBGLJDPJ.mjs} +1 -1
- package/dist/deposit.js +128 -2
- package/dist/deposit.mjs +2 -2
- package/dist/index.d.mts +983 -26
- package/dist/index.d.ts +983 -26
- package/dist/index.js +2453 -1281
- package/dist/index.mjs +1462 -385
- package/dist/withdraw.d.mts +5 -0
- package/dist/withdraw.d.ts +5 -0
- package/dist/withdraw.js +132 -5
- 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, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, ExecutionStatusStep, WsOrderSubmitted, WsBalanceUpdate, ExecutionStatusOrder, CreateBalanceRefillPolicyParams, UpdateBalanceRefillPolicyParams, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, Venue as Venue$1, VenueKeyStatus, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountWalletConfirmBody, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurringCryptoDuration, RecurringCryptoVenueMarket, RecurringCryptoWindowMarket, RecurrenceFilter, SportsLiveResponse, SportsLiveState, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse, AppTradingMode } from '@agg-build/sdk';
|
|
5
|
+
import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, ExecutionStatusStep, WsOrderSubmitted, WsBalanceUpdate, ExecutionStatusOrder, CreateBalanceRefillPolicyParams, UpdateBalanceRefillPolicyParams, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, ChartBarsMeta, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, Venue as Venue$1, VenueKeyStatus, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountWalletConfirmBody, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurringCryptoDuration, RecurringCryptoVenueMarket, RecurringCryptoWindowMarket, RecurrenceFilter, SportsLiveResponse, SportsLiveState, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse, AppTradingMode, VenueMarket as VenueMarket$1, HostedVenueWithdrawalRequest } from '@agg-build/sdk';
|
|
6
6
|
export { SportsGameStatus, SportsLiveParticipant, SportsLiveResponse, SportsLiveState, 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';
|
|
@@ -17,11 +17,13 @@ declare enum Venue {
|
|
|
17
17
|
opinion = "opinion",
|
|
18
18
|
predict = "predict",
|
|
19
19
|
pred = "pred",
|
|
20
|
+
tiprun = "tiprun",
|
|
20
21
|
probable = "probable",
|
|
21
22
|
myriad = "myriad",
|
|
22
23
|
hyperliquid = "hyperliquid",
|
|
23
24
|
novig = "novig",
|
|
24
|
-
prophetx = "prophetx"
|
|
25
|
+
prophetx = "prophetx",
|
|
26
|
+
betdex = "betdex"
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
declare enum AccountType {
|
|
@@ -118,6 +120,7 @@ type UserProfile = {
|
|
|
118
120
|
kycStatus: string;
|
|
119
121
|
}[] | null;
|
|
120
122
|
};
|
|
123
|
+
type ProphetxExecutionMode = "clearinghouse" | "direct";
|
|
121
124
|
type PriceSource = "orderbook" | "cached" | "entry" | "settled";
|
|
122
125
|
/**
|
|
123
126
|
* Health of the orderbook a position was marked against — passthrough of
|
|
@@ -146,6 +149,20 @@ type UnifiedBalanceResponse = {
|
|
|
146
149
|
availableRaw?: string | undefined;
|
|
147
150
|
decimals: number;
|
|
148
151
|
lastSyncedAt: string;
|
|
152
|
+
/** Chain wallet address; native venue collateral uses account IDs instead. */
|
|
153
|
+
address?: string | undefined;
|
|
154
|
+
custodyKind?: "EOA" | "DEPOSIT_WALLET" | "POLYMARKET_LEGACY" | "VENUE_ACCOUNT" | undefined;
|
|
155
|
+
/** Native cash is venue-scoped, not fungible EOA inventory. */
|
|
156
|
+
venue?: Venue | undefined;
|
|
157
|
+
venueAccountId?: string | undefined;
|
|
158
|
+
externalAccountId?: string | undefined;
|
|
159
|
+
isFresh?: boolean | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* A `proxy` balance is spendable on Polymarket only, yet is still part
|
|
162
|
+
* of the parent token's `totalRaw`/`availableRaw`; subtract these rows
|
|
163
|
+
* for fungible-only spending power.
|
|
164
|
+
*/
|
|
165
|
+
legacyKind?: "safe" | "proxy" | undefined;
|
|
149
166
|
}[];
|
|
150
167
|
}[];
|
|
151
168
|
positions: {
|
|
@@ -156,8 +173,16 @@ type UnifiedBalanceResponse = {
|
|
|
156
173
|
realizedPnl: number;
|
|
157
174
|
}[];
|
|
158
175
|
venueCash?: {
|
|
176
|
+
transferable?: boolean;
|
|
177
|
+
executionBackend?: ProphetxExecutionMode;
|
|
159
178
|
venue: Venue;
|
|
160
179
|
balanceCents: number;
|
|
180
|
+
accountModel?: "platform-hosted";
|
|
181
|
+
asset?: "USDC";
|
|
182
|
+
decimals?: 6;
|
|
183
|
+
balanceRaw?: string;
|
|
184
|
+
availableRaw?: string;
|
|
185
|
+
unmatchedExposureRaw?: string;
|
|
161
186
|
portfolioValueCents?: number | undefined;
|
|
162
187
|
updatedAt: string;
|
|
163
188
|
}[];
|
|
@@ -185,6 +210,8 @@ type GetOrdersQuery = {
|
|
|
185
210
|
quoteId?: string | undefined;
|
|
186
211
|
/** Filter to the order(s) carrying this partner trade id. */
|
|
187
212
|
externalId?: string | undefined;
|
|
213
|
+
/** Filter to orders on any of these venue markets. */
|
|
214
|
+
venueMarketIds?: string[] | undefined;
|
|
188
215
|
cursor?: string | undefined;
|
|
189
216
|
limit?: number | undefined;
|
|
190
217
|
};
|
|
@@ -321,13 +348,25 @@ type PositionGroup = {
|
|
|
321
348
|
title: string | null;
|
|
322
349
|
winner: boolean | null;
|
|
323
350
|
venueBreakdown: {
|
|
351
|
+
executionBackend?: ProphetxExecutionMode;
|
|
324
352
|
venue: Venue;
|
|
325
353
|
size: number;
|
|
326
354
|
venueMarketId: string;
|
|
327
355
|
venueMarketOutcomeId: string;
|
|
356
|
+
custodyKind?: "EOA" | "DEPOSIT_WALLET" | "VENUE_OMNIBUS" | "VENUE_ACCOUNT";
|
|
357
|
+
venueAccountId?: string;
|
|
358
|
+
externalAccountId?: string;
|
|
328
359
|
}[];
|
|
329
360
|
totalSize: number;
|
|
361
|
+
/** Weighted over legs with a known entry price — see `costBasisUnknown`. */
|
|
330
362
|
avgEntryPrice: number;
|
|
363
|
+
/**
|
|
364
|
+
* At least one leg was imported from an externally-acquired self-custody
|
|
365
|
+
* balance with no acquisition price we could reconcile. `totalValue`
|
|
366
|
+
* covers every leg; `avgEntryPrice` and `unrealizedPnl` cover only the
|
|
367
|
+
* legs with a known entry, and are 0 when none of them do.
|
|
368
|
+
*/
|
|
369
|
+
costBasisUnknown?: boolean;
|
|
331
370
|
currentPrice: number;
|
|
332
371
|
totalValue: number;
|
|
333
372
|
unrealizedPnlPercent: number;
|
|
@@ -594,6 +633,16 @@ declare function parseEmailStrict(raw: string): {
|
|
|
594
633
|
* Pass the **largest** responsive breakpoint size (e.g. 60 for `size-10 md:size-[60px]`).
|
|
595
634
|
*/
|
|
596
635
|
declare function optimizedImageUrl(url: string | null | undefined, maxPx: number): string | undefined;
|
|
636
|
+
/**
|
|
637
|
+
* Rewrite a CDN image URL to the retina variant covering `maxPx` at 2x density,
|
|
638
|
+
* for use as the `2x` candidate beside {@link optimizedImageUrl}.
|
|
639
|
+
*
|
|
640
|
+
* Returns `undefined` for external URLs, falsy inputs, or when `maxPx * 2`
|
|
641
|
+
* exceeds the largest retina variant (the 1x URL is then the only candidate).
|
|
642
|
+
* Assets processed before 2026-07-31 may not have retina variants yet, so
|
|
643
|
+
* callers must fall back to the 1x URL when this one fails to load.
|
|
644
|
+
*/
|
|
645
|
+
declare function retinaImageUrl(url: string | null | undefined, maxPx: number): string | undefined;
|
|
597
646
|
|
|
598
647
|
declare const sortVenues: <T extends string>(venues: readonly T[]) => T[];
|
|
599
648
|
|
|
@@ -625,6 +674,10 @@ interface AggUiLabels {
|
|
|
625
674
|
chartTypeSwitchAria: string;
|
|
626
675
|
lineChartType: string;
|
|
627
676
|
candlestickChartType: string;
|
|
677
|
+
chartSources: (historyVenue: string, liquidityVenue?: string) => string;
|
|
678
|
+
chartBidLiquidity: (amount: string) => string;
|
|
679
|
+
chartAskLiquidity: (amount: string) => string;
|
|
680
|
+
chartEmpty: string;
|
|
628
681
|
};
|
|
629
682
|
venues: Record<AggVenueLabelKey, string>;
|
|
630
683
|
auth: {
|
|
@@ -918,10 +971,51 @@ interface AggUiLabels {
|
|
|
918
971
|
positionsValue: string;
|
|
919
972
|
kalshiBalance: string;
|
|
920
973
|
balanceByNetwork: string;
|
|
974
|
+
venueAccount: string;
|
|
975
|
+
balanceUnavailable: string;
|
|
921
976
|
paperModeNetwork: string;
|
|
922
977
|
paperModeWarning: string;
|
|
923
978
|
networkTooltipDescription: string;
|
|
924
979
|
};
|
|
980
|
+
hostedBetdex: {
|
|
981
|
+
deposit: string;
|
|
982
|
+
depositInstructions: Record<"production" | "sandbox", string>;
|
|
983
|
+
depositAddress: string;
|
|
984
|
+
transferUnavailable: string;
|
|
985
|
+
withdraw: string;
|
|
986
|
+
withdrawalAmount: string;
|
|
987
|
+
withdrawalDestination: string;
|
|
988
|
+
withdrawalSubmit: string;
|
|
989
|
+
withdrawalCheck: string;
|
|
990
|
+
withdrawalRetry: string;
|
|
991
|
+
withdrawalNew: string;
|
|
992
|
+
withdrawalUnknown: string;
|
|
993
|
+
withdrawalStatuses: Record<"processing" | "confirmed" | "failed" | "flagged" | "review_required", string>;
|
|
994
|
+
title: string;
|
|
995
|
+
description: string;
|
|
996
|
+
sandbox: string;
|
|
997
|
+
createAccount: string;
|
|
998
|
+
checkSetup: string;
|
|
999
|
+
provisioning: string;
|
|
1000
|
+
suspended: string;
|
|
1001
|
+
unavailable: string;
|
|
1002
|
+
provisioningUnavailable: string;
|
|
1003
|
+
total: string;
|
|
1004
|
+
available: string;
|
|
1005
|
+
reserved: string;
|
|
1006
|
+
refresh: string;
|
|
1007
|
+
creationFailed: string;
|
|
1008
|
+
showActivity: string;
|
|
1009
|
+
hideActivity: string;
|
|
1010
|
+
activityTitle: string;
|
|
1011
|
+
activityDescription: string;
|
|
1012
|
+
activityEmpty: string;
|
|
1013
|
+
activityUnavailable: string;
|
|
1014
|
+
activityPrevious: string;
|
|
1015
|
+
activityNext: string;
|
|
1016
|
+
activityRefresh: string;
|
|
1017
|
+
activityCodes: Record<"Deposit" | "Withdrawal" | "TradeCreation" | "TradeVoid" | "TradeWin" | "WalletToWallet" | "Commission" | "MarketPositionVoid" | "MarketPositionPayout" | "MarketPositionRefund" | "ManualDebit" | "ManualCredit" | "SettlementResidual", string>;
|
|
1018
|
+
};
|
|
925
1019
|
activity: {
|
|
926
1020
|
depositType: string;
|
|
927
1021
|
redeemType: string;
|
|
@@ -1078,6 +1172,17 @@ interface AggUiLabels {
|
|
|
1078
1172
|
priceGap: string;
|
|
1079
1173
|
};
|
|
1080
1174
|
eventItemDetails: {
|
|
1175
|
+
chartLegend: string;
|
|
1176
|
+
selectChartMarkets: string;
|
|
1177
|
+
marketHistoryUnavailable: string;
|
|
1178
|
+
comparisonSource: (venue: string) => string;
|
|
1179
|
+
comparisonSeriesCount: (shown: number, total: number) => string;
|
|
1180
|
+
comparisonSeriesPage: (page: number, total: number) => string;
|
|
1181
|
+
comparisonSeriesBudget: (limit: number) => string;
|
|
1182
|
+
comparisonPreviousSeries: string;
|
|
1183
|
+
comparisonNextSeries: string;
|
|
1184
|
+
comparisonSelectedSeries: string;
|
|
1185
|
+
comparisonHiddenSeries: string;
|
|
1081
1186
|
loading: string;
|
|
1082
1187
|
unavailableAria: string;
|
|
1083
1188
|
unavailableTitle: string;
|
|
@@ -1183,6 +1288,7 @@ interface AggUiLabels {
|
|
|
1183
1288
|
settlementCriticalDifferenceLabel: string;
|
|
1184
1289
|
settlementValueUnavailable: string;
|
|
1185
1290
|
settlementLoading: string;
|
|
1291
|
+
settlementDetailsLoadError: string;
|
|
1186
1292
|
settlementDetailsAria: (venueLabel: string) => string;
|
|
1187
1293
|
settlementShowMoreAria: (ctaLabel: string, venueLabel: string) => string;
|
|
1188
1294
|
settlementDescriptionLabel: string;
|
|
@@ -1201,6 +1307,9 @@ interface AggUiLabels {
|
|
|
1201
1307
|
geoBlockModalConfirm: string;
|
|
1202
1308
|
averagePrice: (value: number) => string;
|
|
1203
1309
|
balance: (value: string) => string;
|
|
1310
|
+
betdexBalance: (value: string) => string;
|
|
1311
|
+
betdexBalanceUnavailable: string;
|
|
1312
|
+
manageBetdexAccount: string;
|
|
1204
1313
|
shares: (value: number) => string;
|
|
1205
1314
|
maxShares: string;
|
|
1206
1315
|
slippage: (value: number) => string;
|
|
@@ -1353,6 +1462,10 @@ interface AggUiLabels {
|
|
|
1353
1462
|
};
|
|
1354
1463
|
};
|
|
1355
1464
|
connectKalshi: string;
|
|
1465
|
+
connectProphetx: string;
|
|
1466
|
+
manageProphetx: string;
|
|
1467
|
+
prophetxFundingNotice: string;
|
|
1468
|
+
prophetxSettlementNotice: string;
|
|
1356
1469
|
/** Route card hint when Kalshi is quoted but the user has no Kalshi account connected. */
|
|
1357
1470
|
requiresKalshiAccount: string;
|
|
1358
1471
|
tradingAccessVenues: string;
|
|
@@ -1397,6 +1510,7 @@ interface AggUiLabels {
|
|
|
1397
1510
|
verified: string;
|
|
1398
1511
|
platformFee: string;
|
|
1399
1512
|
estimatedFees: string;
|
|
1513
|
+
betdexSettlementFeeNotice: string;
|
|
1400
1514
|
executionReserve: string;
|
|
1401
1515
|
executionReserveTooltipAria: string;
|
|
1402
1516
|
executionReserveDescription: string;
|
|
@@ -1460,6 +1574,11 @@ interface AggUiLabels {
|
|
|
1460
1574
|
orderFullyFilled: string;
|
|
1461
1575
|
orderPartiallyFilled: string;
|
|
1462
1576
|
orderAveragePrice: (priceLabel: string) => string;
|
|
1577
|
+
orderAmount: string;
|
|
1578
|
+
orderLimitPrice: (priceLabel: string) => string;
|
|
1579
|
+
limitVenueOrder: (venueLabel: string) => string;
|
|
1580
|
+
limitOrderSubmitting: string;
|
|
1581
|
+
limitOrderSubmitted: string;
|
|
1463
1582
|
orderComplete: string;
|
|
1464
1583
|
orderFilledAtPrice: (venueLabel: string, priceLabel: string) => string;
|
|
1465
1584
|
orderFilledAtPriceWithAmount: (venueLabel: string, priceLabel: string, amountLabel: string) => string;
|
|
@@ -1528,6 +1647,22 @@ interface AggUiLabels {
|
|
|
1528
1647
|
cancel: string;
|
|
1529
1648
|
fallbackError: string;
|
|
1530
1649
|
};
|
|
1650
|
+
connectProphetxModal: {
|
|
1651
|
+
disconnect: string;
|
|
1652
|
+
disconnecting: string;
|
|
1653
|
+
disconnectError: string;
|
|
1654
|
+
title: string;
|
|
1655
|
+
description: string;
|
|
1656
|
+
fundingNotice: string;
|
|
1657
|
+
instructions: string;
|
|
1658
|
+
accessKey: string;
|
|
1659
|
+
secretKey: string;
|
|
1660
|
+
verify: string;
|
|
1661
|
+
verifying: string;
|
|
1662
|
+
error: string;
|
|
1663
|
+
connected: string;
|
|
1664
|
+
done: string;
|
|
1665
|
+
};
|
|
1531
1666
|
connectKalshiModal: {
|
|
1532
1667
|
ariaLabel: string;
|
|
1533
1668
|
title: string;
|
|
@@ -1574,6 +1709,19 @@ interface AggUiLabels {
|
|
|
1574
1709
|
};
|
|
1575
1710
|
};
|
|
1576
1711
|
eventMarketPage: {
|
|
1712
|
+
loadMoreMarkets: string;
|
|
1713
|
+
loadingMoreMarkets: string;
|
|
1714
|
+
openOrders: {
|
|
1715
|
+
title: string;
|
|
1716
|
+
limitPriceHeader: string;
|
|
1717
|
+
filledHeader: string;
|
|
1718
|
+
totalHeader: string;
|
|
1719
|
+
expirationHeader: string;
|
|
1720
|
+
limitShort: string;
|
|
1721
|
+
filledShort: string;
|
|
1722
|
+
totalShort: string;
|
|
1723
|
+
expirationShort: string;
|
|
1724
|
+
};
|
|
1577
1725
|
unavailableAria: string;
|
|
1578
1726
|
unavailableTitle: string;
|
|
1579
1727
|
unavailableDescription: string;
|
|
@@ -2063,7 +2211,12 @@ interface AggBalanceContextValue {
|
|
|
2063
2211
|
/** Marked position value plus reserved cash presented as open-order exposure. */
|
|
2064
2212
|
positionsBalanceTotal: number;
|
|
2065
2213
|
kalshiBalance: number | null;
|
|
2214
|
+
/** Cash held at external venues; never added to transferable wallet funds. */
|
|
2215
|
+
venueCashBalances?: Partial<Record<string, number>>;
|
|
2066
2216
|
kalshiPortfolioValue: number | null;
|
|
2217
|
+
/** Hosted BETDEX cash cannot fund other venues through a chain balance. */
|
|
2218
|
+
betdexBalance?: number | null;
|
|
2219
|
+
betdexAvailableBalance?: number | null;
|
|
2067
2220
|
connectedVenues: Venue[];
|
|
2068
2221
|
isLoading: boolean;
|
|
2069
2222
|
error: Error | null;
|
|
@@ -2075,6 +2228,11 @@ interface AggBalanceBreakdownItem {
|
|
|
2075
2228
|
label: string;
|
|
2076
2229
|
balance: number;
|
|
2077
2230
|
accountCount: number;
|
|
2231
|
+
/** Native venue collateral remains separate from cash on its settlement chain. */
|
|
2232
|
+
venue?: Venue;
|
|
2233
|
+
venueAccountId?: string;
|
|
2234
|
+
externalAccountId?: string;
|
|
2235
|
+
isFresh?: boolean;
|
|
2078
2236
|
/**
|
|
2079
2237
|
* Venues currently connected for the user. This is optional so consumers can
|
|
2080
2238
|
* safely omit logos when unavailable.
|
|
@@ -2314,7 +2472,7 @@ declare function useRampSession(): _tanstack_react_query.UseMutationResult<RampW
|
|
|
2314
2472
|
|
|
2315
2473
|
declare const executionKeys: {
|
|
2316
2474
|
all: () => readonly ["execution"];
|
|
2317
|
-
balances: (mode?: string | null) => readonly ["execution", "balances", string] | readonly ["execution", "balances"];
|
|
2475
|
+
balances: (mode?: string | null, custody?: string | null) => readonly ["execution", "balances", string, string] | readonly ["execution", "balances", string] | readonly ["execution", "balances"];
|
|
2318
2476
|
positions: (cursor?: string | null, limit?: number | null, status?: "active" | "closed" | null, mode?: string | null) => readonly ["execution", "positions", string | null, number | null, "closed" | "active" | null, string] | readonly ["execution", "positions", string | null, number | null, "closed" | "active" | null];
|
|
2319
2477
|
positionsPrefix: () => readonly ["execution", "positions"];
|
|
2320
2478
|
claimablePositionsCount: () => readonly ["execution", "positions", "claimable-count"];
|
|
@@ -2920,6 +3078,7 @@ interface MarketChartCandle {
|
|
|
2920
3078
|
high: number;
|
|
2921
3079
|
low: number;
|
|
2922
3080
|
close: number;
|
|
3081
|
+
mean?: number;
|
|
2923
3082
|
volume: number | null;
|
|
2924
3083
|
source: "rest" | "ws" | "trade" | "midpoint";
|
|
2925
3084
|
}
|
|
@@ -2940,6 +3099,8 @@ interface MarketChartVenueData {
|
|
|
2940
3099
|
lastUpdateTs: number | null;
|
|
2941
3100
|
}
|
|
2942
3101
|
interface MarketChartData {
|
|
3102
|
+
/** Delivery availability/freshness from the history source, unaffected by stream ticks. */
|
|
3103
|
+
delivery?: ChartBarsMeta;
|
|
2943
3104
|
marketId: string;
|
|
2944
3105
|
/** All venue-scoped outcome IDs that were requested for this chart selection. */
|
|
2945
3106
|
outcomeIds: string[];
|
|
@@ -3011,6 +3172,216 @@ declare const venueKeyQueryKeys: {
|
|
|
3011
3172
|
};
|
|
3012
3173
|
declare const useVenueKeyStatus: (venue: Venue$1, enabled?: boolean) => _tanstack_react_query.UseQueryResult<VenueKeyStatus, Error>;
|
|
3013
3174
|
|
|
3175
|
+
declare const hostedVenueAccountQueryKeys: {
|
|
3176
|
+
all: readonly ["agg", "hosted-venue-account"];
|
|
3177
|
+
account: (venue: "betdex", userId: string | null, mode: string) => readonly ["agg", "hosted-venue-account", "betdex", string | null, string];
|
|
3178
|
+
};
|
|
3179
|
+
declare function useHostedVenueAccount(venue: "betdex", enabled?: boolean): {
|
|
3180
|
+
account: _tanstack_react_query.UseQueryResult<{
|
|
3181
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
3182
|
+
status: "active" | "not_created" | "provisioning" | "suspended" | "unavailable" | "disabled";
|
|
3183
|
+
accountModel: "platform-hosted";
|
|
3184
|
+
accountId: string | null;
|
|
3185
|
+
environment: "sandbox" | "production" | null;
|
|
3186
|
+
provisioningEnabled: boolean;
|
|
3187
|
+
fundingNetwork: "solana";
|
|
3188
|
+
balanceStatus: "unavailable" | "available" | "not_applicable";
|
|
3189
|
+
balance: {
|
|
3190
|
+
asset: "USDC";
|
|
3191
|
+
decimals: 6;
|
|
3192
|
+
totalRaw: string;
|
|
3193
|
+
availableRaw: string;
|
|
3194
|
+
unmatchedExposureRaw: string;
|
|
3195
|
+
updatedAt: string;
|
|
3196
|
+
} | null;
|
|
3197
|
+
}, Error>;
|
|
3198
|
+
provision: {
|
|
3199
|
+
mutate: () => void;
|
|
3200
|
+
mutateAsync: () => Promise<{
|
|
3201
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
3202
|
+
status: "active" | "not_created" | "provisioning" | "suspended" | "unavailable" | "disabled";
|
|
3203
|
+
accountModel: "platform-hosted";
|
|
3204
|
+
accountId: string | null;
|
|
3205
|
+
environment: "sandbox" | "production" | null;
|
|
3206
|
+
provisioningEnabled: boolean;
|
|
3207
|
+
fundingNetwork: "solana";
|
|
3208
|
+
balanceStatus: "unavailable" | "available" | "not_applicable";
|
|
3209
|
+
balance: {
|
|
3210
|
+
asset: "USDC";
|
|
3211
|
+
decimals: 6;
|
|
3212
|
+
totalRaw: string;
|
|
3213
|
+
availableRaw: string;
|
|
3214
|
+
unmatchedExposureRaw: string;
|
|
3215
|
+
updatedAt: string;
|
|
3216
|
+
} | null;
|
|
3217
|
+
}>;
|
|
3218
|
+
data: undefined;
|
|
3219
|
+
variables: undefined;
|
|
3220
|
+
error: null;
|
|
3221
|
+
isError: false;
|
|
3222
|
+
isIdle: true;
|
|
3223
|
+
isPending: false;
|
|
3224
|
+
isSuccess: false;
|
|
3225
|
+
status: "idle";
|
|
3226
|
+
reset: () => void;
|
|
3227
|
+
context: unknown;
|
|
3228
|
+
failureCount: number;
|
|
3229
|
+
failureReason: Error | null;
|
|
3230
|
+
isPaused: boolean;
|
|
3231
|
+
submittedAt: number;
|
|
3232
|
+
} | {
|
|
3233
|
+
mutate: () => void;
|
|
3234
|
+
mutateAsync: () => Promise<{
|
|
3235
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
3236
|
+
status: "active" | "not_created" | "provisioning" | "suspended" | "unavailable" | "disabled";
|
|
3237
|
+
accountModel: "platform-hosted";
|
|
3238
|
+
accountId: string | null;
|
|
3239
|
+
environment: "sandbox" | "production" | null;
|
|
3240
|
+
provisioningEnabled: boolean;
|
|
3241
|
+
fundingNetwork: "solana";
|
|
3242
|
+
balanceStatus: "unavailable" | "available" | "not_applicable";
|
|
3243
|
+
balance: {
|
|
3244
|
+
asset: "USDC";
|
|
3245
|
+
decimals: 6;
|
|
3246
|
+
totalRaw: string;
|
|
3247
|
+
availableRaw: string;
|
|
3248
|
+
unmatchedExposureRaw: string;
|
|
3249
|
+
updatedAt: string;
|
|
3250
|
+
} | null;
|
|
3251
|
+
}>;
|
|
3252
|
+
data: undefined;
|
|
3253
|
+
variables: {
|
|
3254
|
+
run: () => ReturnType<(venue: "betdex", body: _agg_build_sdk.ProvisionHostedVenueAccountBody) => Promise<_agg_build_sdk.HostedVenueAccount>>;
|
|
3255
|
+
queryKey: readonly ["agg", "hosted-venue-account", "betdex", string | null, string];
|
|
3256
|
+
};
|
|
3257
|
+
error: null;
|
|
3258
|
+
isError: false;
|
|
3259
|
+
isIdle: false;
|
|
3260
|
+
isPending: true;
|
|
3261
|
+
isSuccess: false;
|
|
3262
|
+
status: "pending";
|
|
3263
|
+
reset: () => void;
|
|
3264
|
+
context: unknown;
|
|
3265
|
+
failureCount: number;
|
|
3266
|
+
failureReason: Error | null;
|
|
3267
|
+
isPaused: boolean;
|
|
3268
|
+
submittedAt: number;
|
|
3269
|
+
} | {
|
|
3270
|
+
mutate: () => void;
|
|
3271
|
+
mutateAsync: () => Promise<{
|
|
3272
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
3273
|
+
status: "active" | "not_created" | "provisioning" | "suspended" | "unavailable" | "disabled";
|
|
3274
|
+
accountModel: "platform-hosted";
|
|
3275
|
+
accountId: string | null;
|
|
3276
|
+
environment: "sandbox" | "production" | null;
|
|
3277
|
+
provisioningEnabled: boolean;
|
|
3278
|
+
fundingNetwork: "solana";
|
|
3279
|
+
balanceStatus: "unavailable" | "available" | "not_applicable";
|
|
3280
|
+
balance: {
|
|
3281
|
+
asset: "USDC";
|
|
3282
|
+
decimals: 6;
|
|
3283
|
+
totalRaw: string;
|
|
3284
|
+
availableRaw: string;
|
|
3285
|
+
unmatchedExposureRaw: string;
|
|
3286
|
+
updatedAt: string;
|
|
3287
|
+
} | null;
|
|
3288
|
+
}>;
|
|
3289
|
+
data: undefined;
|
|
3290
|
+
error: Error;
|
|
3291
|
+
variables: {
|
|
3292
|
+
run: () => ReturnType<(venue: "betdex", body: _agg_build_sdk.ProvisionHostedVenueAccountBody) => Promise<_agg_build_sdk.HostedVenueAccount>>;
|
|
3293
|
+
queryKey: readonly ["agg", "hosted-venue-account", "betdex", string | null, string];
|
|
3294
|
+
};
|
|
3295
|
+
isError: true;
|
|
3296
|
+
isIdle: false;
|
|
3297
|
+
isPending: false;
|
|
3298
|
+
isSuccess: false;
|
|
3299
|
+
status: "error";
|
|
3300
|
+
reset: () => void;
|
|
3301
|
+
context: unknown;
|
|
3302
|
+
failureCount: number;
|
|
3303
|
+
failureReason: Error | null;
|
|
3304
|
+
isPaused: boolean;
|
|
3305
|
+
submittedAt: number;
|
|
3306
|
+
} | {
|
|
3307
|
+
mutate: () => void;
|
|
3308
|
+
mutateAsync: () => Promise<{
|
|
3309
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
3310
|
+
status: "active" | "not_created" | "provisioning" | "suspended" | "unavailable" | "disabled";
|
|
3311
|
+
accountModel: "platform-hosted";
|
|
3312
|
+
accountId: string | null;
|
|
3313
|
+
environment: "sandbox" | "production" | null;
|
|
3314
|
+
provisioningEnabled: boolean;
|
|
3315
|
+
fundingNetwork: "solana";
|
|
3316
|
+
balanceStatus: "unavailable" | "available" | "not_applicable";
|
|
3317
|
+
balance: {
|
|
3318
|
+
asset: "USDC";
|
|
3319
|
+
decimals: 6;
|
|
3320
|
+
totalRaw: string;
|
|
3321
|
+
availableRaw: string;
|
|
3322
|
+
unmatchedExposureRaw: string;
|
|
3323
|
+
updatedAt: string;
|
|
3324
|
+
} | null;
|
|
3325
|
+
}>;
|
|
3326
|
+
data: {
|
|
3327
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
3328
|
+
status: "active" | "not_created" | "provisioning" | "suspended" | "unavailable" | "disabled";
|
|
3329
|
+
accountModel: "platform-hosted";
|
|
3330
|
+
accountId: string | null;
|
|
3331
|
+
environment: "sandbox" | "production" | null;
|
|
3332
|
+
provisioningEnabled: boolean;
|
|
3333
|
+
fundingNetwork: "solana";
|
|
3334
|
+
balanceStatus: "unavailable" | "available" | "not_applicable";
|
|
3335
|
+
balance: {
|
|
3336
|
+
asset: "USDC";
|
|
3337
|
+
decimals: 6;
|
|
3338
|
+
totalRaw: string;
|
|
3339
|
+
availableRaw: string;
|
|
3340
|
+
unmatchedExposureRaw: string;
|
|
3341
|
+
updatedAt: string;
|
|
3342
|
+
} | null;
|
|
3343
|
+
};
|
|
3344
|
+
error: null;
|
|
3345
|
+
variables: {
|
|
3346
|
+
run: () => ReturnType<(venue: "betdex", body: _agg_build_sdk.ProvisionHostedVenueAccountBody) => Promise<_agg_build_sdk.HostedVenueAccount>>;
|
|
3347
|
+
queryKey: readonly ["agg", "hosted-venue-account", "betdex", string | null, string];
|
|
3348
|
+
};
|
|
3349
|
+
isError: false;
|
|
3350
|
+
isIdle: false;
|
|
3351
|
+
isPending: false;
|
|
3352
|
+
isSuccess: true;
|
|
3353
|
+
status: "success";
|
|
3354
|
+
reset: () => void;
|
|
3355
|
+
context: unknown;
|
|
3356
|
+
failureCount: number;
|
|
3357
|
+
failureReason: Error | null;
|
|
3358
|
+
isPaused: boolean;
|
|
3359
|
+
submittedAt: number;
|
|
3360
|
+
};
|
|
3361
|
+
isAvailable: boolean;
|
|
3362
|
+
};
|
|
3363
|
+
|
|
3364
|
+
/** Display-only, explicitly requested pages. No automatic background polling. */
|
|
3365
|
+
declare function useHostedVenueActivity(venue: "betdex", page?: number, enabled?: boolean): {
|
|
3366
|
+
activity: _tanstack_react_query.UseQueryResult<{
|
|
3367
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
3368
|
+
asset: "USDC";
|
|
3369
|
+
decimals: 18;
|
|
3370
|
+
accountId: string;
|
|
3371
|
+
environment: "sandbox" | "production";
|
|
3372
|
+
page: number;
|
|
3373
|
+
nextPage: number | null;
|
|
3374
|
+
observedAt: string;
|
|
3375
|
+
items: {
|
|
3376
|
+
id: string;
|
|
3377
|
+
createdAt: string;
|
|
3378
|
+
code: "Deposit" | "Withdrawal" | "TradeCreation" | "TradeVoid" | "TradeWin" | "WalletToWallet" | "Commission" | "MarketPositionVoid" | "MarketPositionPayout" | "MarketPositionRefund" | "ManualDebit" | "ManualCredit" | "SettlementResidual";
|
|
3379
|
+
amountRaw: string;
|
|
3380
|
+
}[];
|
|
3381
|
+
}, Error>;
|
|
3382
|
+
isAvailable: boolean;
|
|
3383
|
+
};
|
|
3384
|
+
|
|
3014
3385
|
declare const sharedKycQueryKeys: {
|
|
3015
3386
|
status: (userId: string | null) => readonly ["agg", "shared-kyc", string | null];
|
|
3016
3387
|
};
|
|
@@ -3544,6 +3915,44 @@ declare function useExecutionOrders(options?: UseExecutionOrdersOptions): {
|
|
|
3544
3915
|
promise: Promise<_tanstack_react_query.InfiniteData<_agg_build_sdk.PaginatedResponse<_agg_build_sdk.OrderListItem>, unknown>>;
|
|
3545
3916
|
};
|
|
3546
3917
|
|
|
3918
|
+
/**
|
|
3919
|
+
* Market ids sent per `GET /execution/orders` request. The API has no cap; this
|
|
3920
|
+
* keeps the repeated-param URL under common CDN limits — the same batch size
|
|
3921
|
+
* `getMidpoints` uses.
|
|
3922
|
+
*/
|
|
3923
|
+
declare const MAX_ORDER_VENUE_MARKET_IDS_PER_REQUEST = 75;
|
|
3924
|
+
interface UseExecutionOrdersForMarketsOptions {
|
|
3925
|
+
/** Any number of venue markets — split into batches of 75, one request each. */
|
|
3926
|
+
venueMarketIds: ReadonlyArray<string>;
|
|
3927
|
+
status?: GetOrdersQuery["status"] | `${NonNullable<GetOrdersQuery["status"]>}`;
|
|
3928
|
+
orderType?: "market" | "limit";
|
|
3929
|
+
mode?: "live" | "paper";
|
|
3930
|
+
/** Page size per request, max 100. */
|
|
3931
|
+
limit?: number;
|
|
3932
|
+
/**
|
|
3933
|
+
* Pages read per batch before giving up. Orders come newest first across
|
|
3934
|
+
* every status, so a long history on these markets can outrun one page.
|
|
3935
|
+
*/
|
|
3936
|
+
maxPagesPerBatch?: number;
|
|
3937
|
+
enabled?: boolean;
|
|
3938
|
+
}
|
|
3939
|
+
interface UseExecutionOrdersForMarketsResult {
|
|
3940
|
+
orders: OrderListItem[];
|
|
3941
|
+
isLoading: boolean;
|
|
3942
|
+
error: Error | null;
|
|
3943
|
+
/** A batch still had pages left at `maxPagesPerBatch` — the list may be incomplete. */
|
|
3944
|
+
isTruncated: boolean;
|
|
3945
|
+
}
|
|
3946
|
+
/**
|
|
3947
|
+
* The user's orders on a set of venue markets, however many there are. Long
|
|
3948
|
+
* lists are split into batches of 75 to keep each URL short; the batches run
|
|
3949
|
+
* in parallel, each reading its own pages, and the results are merged.
|
|
3950
|
+
*
|
|
3951
|
+
* Query keys start with `"execution-orders"`, so placing or cancelling an
|
|
3952
|
+
* order invalidates these along with `useExecutionOrders`.
|
|
3953
|
+
*/
|
|
3954
|
+
declare function useExecutionOrdersForMarkets({ venueMarketIds, status, orderType, mode, limit, maxPagesPerBatch, enabled, }: UseExecutionOrdersForMarketsOptions): UseExecutionOrdersForMarketsResult;
|
|
3955
|
+
|
|
3547
3956
|
interface UseUserActivityOptions extends Omit<UserActivityQuery, "cursor"> {
|
|
3548
3957
|
enabled?: boolean;
|
|
3549
3958
|
/**
|
|
@@ -4083,10 +4492,10 @@ declare function useLiveCandles(options: UseLiveCandlesOptions): UseLiveCandlesR
|
|
|
4083
4492
|
* including the outcomes of any cross-venue matched twins — so the live cache
|
|
4084
4493
|
* fills for every venue the user is actively looking at.
|
|
4085
4494
|
*
|
|
4086
|
-
*
|
|
4087
|
-
*
|
|
4088
|
-
*
|
|
4089
|
-
*
|
|
4495
|
+
* Each caller owns only this selected group. The event hero owns its selection;
|
|
4496
|
+
* the market list enables separate callers for its bounded visible cards and
|
|
4497
|
+
* retained selection. Other groups use the surrounding components' REST
|
|
4498
|
+
* midpoint fallback until a view owns their live stream.
|
|
4090
4499
|
*
|
|
4091
4500
|
* Honors the `enableLiveUpdates` feature flag.
|
|
4092
4501
|
*/
|
|
@@ -4098,6 +4507,7 @@ interface UseLiveMarketResult {
|
|
|
4098
4507
|
isConnected: boolean;
|
|
4099
4508
|
integrity: "ok" | "resyncing";
|
|
4100
4509
|
}
|
|
4510
|
+
|
|
4101
4511
|
declare function useLiveMarket(canonicalMarketId: string | null): UseLiveMarketResult;
|
|
4102
4512
|
|
|
4103
4513
|
/**
|
|
@@ -4296,6 +4706,10 @@ interface UseMarketChartOptions {
|
|
|
4296
4706
|
marketId: string | null;
|
|
4297
4707
|
/** Additional venue market outcome IDs to subscribe for WS updates. */
|
|
4298
4708
|
venueMarketIds?: string[];
|
|
4709
|
+
/** Scope readiness to the visible venue while retaining other requested histories. */
|
|
4710
|
+
visibleVenue?: string | null;
|
|
4711
|
+
/** Optional live subset; settled outcomes can keep cached history without stream subscriptions. */
|
|
4712
|
+
liveOutcomeIds?: string[];
|
|
4299
4713
|
interval?: WsCandleInterval;
|
|
4300
4714
|
startTs?: number | null;
|
|
4301
4715
|
endTs?: number | null;
|
|
@@ -4310,26 +4724,44 @@ interface UseMarketChartOptions {
|
|
|
4310
4724
|
* the WebSocket missed are backfilled. `null`/omitted disables auto-refetch.
|
|
4311
4725
|
*/
|
|
4312
4726
|
refetchIntervalMs?: number | null;
|
|
4727
|
+
/** Optional history freshness duration; live stream writes do not extend it. */
|
|
4728
|
+
staleTimeMs?: number;
|
|
4313
4729
|
/**
|
|
4314
4730
|
* Stable identifier for the user-selected range (e.g. `"1H"`, `"6H"`).
|
|
4315
4731
|
* Used as the React Query cache key so the entry survives bucket rollovers
|
|
4316
4732
|
* and tab/page revisits. The concrete `startTs`/`endTs` advance under the
|
|
4317
4733
|
* same key and are passed to the fetch via closure.
|
|
4318
4734
|
*
|
|
4319
|
-
* If omitted,
|
|
4320
|
-
*
|
|
4735
|
+
* If omitted, includes the requested start/end timestamps so different fixed
|
|
4736
|
+
* historical windows never share data. Note that 6H and 1D both use a 5m
|
|
4321
4737
|
* interval, so callers using rolling windows should pass an explicit
|
|
4322
4738
|
* `rangeKey` to keep their cache entries separate.
|
|
4323
4739
|
*/
|
|
4324
4740
|
rangeKey?: string;
|
|
4325
4741
|
}
|
|
4742
|
+
type MarketChartAvailability = Partial<ChartBarsMeta> & {
|
|
4743
|
+
state: NonNullable<ChartBarsMeta["state"]>;
|
|
4744
|
+
complete: boolean;
|
|
4745
|
+
};
|
|
4326
4746
|
interface UseMarketChartResult {
|
|
4747
|
+
/** Per-outcome delivery state remains available when another venue can already render. */
|
|
4748
|
+
availability?: Record<string, MarketChartAvailability>;
|
|
4327
4749
|
data: MarketChartData | null;
|
|
4328
4750
|
isLoading: boolean;
|
|
4329
4751
|
error: Error | null;
|
|
4330
4752
|
isLive: boolean;
|
|
4331
4753
|
refetch: () => Promise<unknown>;
|
|
4332
4754
|
}
|
|
4755
|
+
/** Independent outcome histories, including multiple markets on the same venue. */
|
|
4756
|
+
interface UseMarketChartsResult {
|
|
4757
|
+
availability?: Record<string, MarketChartAvailability>;
|
|
4758
|
+
charts: Record<string, MarketChartData>;
|
|
4759
|
+
errors: Record<string, Error>;
|
|
4760
|
+
isLoading: boolean;
|
|
4761
|
+
isLive: boolean;
|
|
4762
|
+
refetch: () => Promise<unknown>;
|
|
4763
|
+
}
|
|
4764
|
+
declare function useMarketCharts(options: UseMarketChartOptions): UseMarketChartsResult;
|
|
4333
4765
|
declare function useMarketChart(options: UseMarketChartOptions): UseMarketChartResult;
|
|
4334
4766
|
|
|
4335
4767
|
interface UseRollingChartWindowOptions {
|
|
@@ -4741,6 +5173,8 @@ interface UseSearchOptions {
|
|
|
4741
5173
|
* and light variants of the same query never share results. Default false.
|
|
4742
5174
|
*/
|
|
4743
5175
|
deep?: boolean;
|
|
5176
|
+
/** Indexed title/question suggestions; full remains the compatibility default. */
|
|
5177
|
+
mode?: "instant" | "full";
|
|
4744
5178
|
}
|
|
4745
5179
|
/**
|
|
4746
5180
|
* Search events or markets via the /search endpoint with cursor-based pagination.
|
|
@@ -4760,12 +5194,7 @@ declare function useSearch<T = VenueEvent>(options: UseSearchOptions): {
|
|
|
4760
5194
|
isError: boolean;
|
|
4761
5195
|
error: Error | null;
|
|
4762
5196
|
hasNextPage: boolean;
|
|
4763
|
-
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<
|
|
4764
|
-
type: "markets" | "events";
|
|
4765
|
-
data: T[];
|
|
4766
|
-
nextCursor: string | null;
|
|
4767
|
-
hasMore: boolean;
|
|
4768
|
-
}, unknown>, Error>>;
|
|
5197
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_agg_build_sdk.SearchResponse<T>, unknown>, Error>>;
|
|
4769
5198
|
isFetchingNextPage: boolean;
|
|
4770
5199
|
isPlaceholderData: boolean;
|
|
4771
5200
|
};
|
|
@@ -4856,12 +5285,7 @@ declare function useMarketSearch<T = VenueEvent>(options: UseMarketSearchOptions
|
|
|
4856
5285
|
isError: boolean;
|
|
4857
5286
|
error: Error | null;
|
|
4858
5287
|
hasNextPage: boolean;
|
|
4859
|
-
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<
|
|
4860
|
-
type: "markets" | "events";
|
|
4861
|
-
data: T[];
|
|
4862
|
-
nextCursor: string | null;
|
|
4863
|
-
hasMore: boolean;
|
|
4864
|
-
}, unknown>, Error>>;
|
|
5288
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_agg_build_sdk.SearchResponse<T>, unknown>, Error>>;
|
|
4865
5289
|
isFetchingNextPage: boolean;
|
|
4866
5290
|
};
|
|
4867
5291
|
};
|
|
@@ -4901,6 +5325,9 @@ interface UseSmartRouteOptions {
|
|
|
4901
5325
|
balanceCacheScope?: {
|
|
4902
5326
|
accountId?: string | null;
|
|
4903
5327
|
balanceVersion?: number | null;
|
|
5328
|
+
/** Semantic funds/holds identity. When provided, unchanged polling timestamps
|
|
5329
|
+
* must not cancel an in-flight quote; this takes precedence over balanceVersion. */
|
|
5330
|
+
balanceKey?: string;
|
|
4904
5331
|
};
|
|
4905
5332
|
/**
|
|
4906
5333
|
* Opt in to the deep cost-estimate surface — response `feeBreakdown`
|
|
@@ -5448,7 +5875,9 @@ declare function useVenueEvent(options: UseVenueEventOptions): {
|
|
|
5448
5875
|
promise: Promise<_agg_build_sdk.VenueEvent>;
|
|
5449
5876
|
};
|
|
5450
5877
|
|
|
5451
|
-
type UseEnrichedVenueEventOptions = UseVenueEventOptions
|
|
5878
|
+
type UseEnrichedVenueEventOptions = UseVenueEventOptions & {
|
|
5879
|
+
progressive?: boolean;
|
|
5880
|
+
};
|
|
5452
5881
|
/**
|
|
5453
5882
|
* Fetches a venue event and enriches its venueMarkets with full data
|
|
5454
5883
|
* (description, rulesPrimary, rulesSecondary, etc.) from the /venue-markets endpoint.
|
|
@@ -5460,6 +5889,9 @@ declare function useEnrichedVenueEvent(options: UseEnrichedVenueEventOptions): {
|
|
|
5460
5889
|
event: VenueEventWithMarkets | undefined;
|
|
5461
5890
|
isLoading: boolean;
|
|
5462
5891
|
isEnriching: boolean;
|
|
5892
|
+
hasMoreMarkets: boolean;
|
|
5893
|
+
loadMoreMarkets: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_agg_build_sdk.PaginatedResponse<_agg_build_sdk.VenueMarket>, unknown>, Error>>;
|
|
5894
|
+
isLoadingMoreMarkets: boolean;
|
|
5463
5895
|
error: Error | null;
|
|
5464
5896
|
data: _agg_build_sdk.VenueEvent;
|
|
5465
5897
|
isError: true;
|
|
@@ -5489,6 +5921,9 @@ declare function useEnrichedVenueEvent(options: UseEnrichedVenueEventOptions): {
|
|
|
5489
5921
|
event: VenueEventWithMarkets | undefined;
|
|
5490
5922
|
isLoading: boolean;
|
|
5491
5923
|
isEnriching: boolean;
|
|
5924
|
+
hasMoreMarkets: boolean;
|
|
5925
|
+
loadMoreMarkets: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_agg_build_sdk.PaginatedResponse<_agg_build_sdk.VenueMarket>, unknown>, Error>>;
|
|
5926
|
+
isLoadingMoreMarkets: boolean;
|
|
5492
5927
|
error: Error | null;
|
|
5493
5928
|
data: _agg_build_sdk.VenueEvent;
|
|
5494
5929
|
isError: false;
|
|
@@ -5518,6 +5953,9 @@ declare function useEnrichedVenueEvent(options: UseEnrichedVenueEventOptions): {
|
|
|
5518
5953
|
event: VenueEventWithMarkets | undefined;
|
|
5519
5954
|
isLoading: boolean;
|
|
5520
5955
|
isEnriching: boolean;
|
|
5956
|
+
hasMoreMarkets: boolean;
|
|
5957
|
+
loadMoreMarkets: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_agg_build_sdk.PaginatedResponse<_agg_build_sdk.VenueMarket>, unknown>, Error>>;
|
|
5958
|
+
isLoadingMoreMarkets: boolean;
|
|
5521
5959
|
error: Error | null;
|
|
5522
5960
|
data: undefined;
|
|
5523
5961
|
isError: true;
|
|
@@ -5547,6 +5985,9 @@ declare function useEnrichedVenueEvent(options: UseEnrichedVenueEventOptions): {
|
|
|
5547
5985
|
event: VenueEventWithMarkets | undefined;
|
|
5548
5986
|
isLoading: boolean;
|
|
5549
5987
|
isEnriching: boolean;
|
|
5988
|
+
hasMoreMarkets: boolean;
|
|
5989
|
+
loadMoreMarkets: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_agg_build_sdk.PaginatedResponse<_agg_build_sdk.VenueMarket>, unknown>, Error>>;
|
|
5990
|
+
isLoadingMoreMarkets: boolean;
|
|
5550
5991
|
error: Error | null;
|
|
5551
5992
|
data: undefined;
|
|
5552
5993
|
isError: false;
|
|
@@ -5576,6 +6017,9 @@ declare function useEnrichedVenueEvent(options: UseEnrichedVenueEventOptions): {
|
|
|
5576
6017
|
event: VenueEventWithMarkets | undefined;
|
|
5577
6018
|
isLoading: boolean;
|
|
5578
6019
|
isEnriching: boolean;
|
|
6020
|
+
hasMoreMarkets: boolean;
|
|
6021
|
+
loadMoreMarkets: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_agg_build_sdk.PaginatedResponse<_agg_build_sdk.VenueMarket>, unknown>, Error>>;
|
|
6022
|
+
isLoadingMoreMarkets: boolean;
|
|
5579
6023
|
error: Error | null;
|
|
5580
6024
|
data: undefined;
|
|
5581
6025
|
isError: false;
|
|
@@ -5605,6 +6049,9 @@ declare function useEnrichedVenueEvent(options: UseEnrichedVenueEventOptions): {
|
|
|
5605
6049
|
event: VenueEventWithMarkets | undefined;
|
|
5606
6050
|
isLoading: boolean;
|
|
5607
6051
|
isEnriching: boolean;
|
|
6052
|
+
hasMoreMarkets: boolean;
|
|
6053
|
+
loadMoreMarkets: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<_agg_build_sdk.PaginatedResponse<_agg_build_sdk.VenueMarket>, unknown>, Error>>;
|
|
6054
|
+
isLoadingMoreMarkets: boolean;
|
|
5608
6055
|
error: Error | null;
|
|
5609
6056
|
data: _agg_build_sdk.VenueEvent;
|
|
5610
6057
|
isError: false;
|
|
@@ -6884,6 +7331,7 @@ declare function useVisibleIds(options?: UseVisibleIdsOptions): UseVisibleIdsRes
|
|
|
6884
7331
|
*/
|
|
6885
7332
|
declare const appConfigQueryKey: (appId: string | undefined) => readonly ["agg", "app-config", string];
|
|
6886
7333
|
interface UseAppConfigResult {
|
|
7334
|
+
prophetxExecutionMode?: "clearinghouse" | "direct";
|
|
6887
7335
|
disabledVenues: AppClientConfigResponse["disabledVenues"];
|
|
6888
7336
|
disabledCategoryPresets: AppClientConfigResponse["disabledCategoryPresets"];
|
|
6889
7337
|
earlyAccessEnabled: AppClientConfigResponse["earlyAccessEnabled"];
|
|
@@ -6904,9 +7352,9 @@ interface UseAppConfigResult {
|
|
|
6904
7352
|
* Fetch the current App's UI config (disabled venues, category presets, and
|
|
6905
7353
|
* the server-owned paper/live mode).
|
|
6906
7354
|
*
|
|
6907
|
-
* Cadence is deliberately the 5 minutes this hook has always used.
|
|
6908
|
-
*
|
|
6909
|
-
*
|
|
7355
|
+
* Cadence is deliberately the 5 minutes this hook has always used. Execution
|
|
7356
|
+
* settings can change at runtime; stale cached settings affect presentation,
|
|
7357
|
+
* while the server remains authoritative: the API resolves mode from the App on every request
|
|
6910
7358
|
* (`resolveTradingMode`), so a client that still believes the old value
|
|
6911
7359
|
* renders the wrong chrome but cannot execute in the wrong mode or spend real
|
|
6912
7360
|
* funds. That does not justify polling a partner's app every minute.
|
|
@@ -6985,4 +7433,513 @@ declare function useResolvedExecutionMode(
|
|
|
6985
7433
|
*/
|
|
6986
7434
|
override?: AppTradingMode): UseResolvedExecutionModeResult;
|
|
6987
7435
|
|
|
6988
|
-
|
|
7436
|
+
interface UseSettlementDetailsDataOptions {
|
|
7437
|
+
eventId: string;
|
|
7438
|
+
market: Pick<VenueMarket$1, "id" | "venue" | "externalIdentifier">;
|
|
7439
|
+
enabled: boolean;
|
|
7440
|
+
needsEvent: boolean;
|
|
7441
|
+
needsMarket: boolean;
|
|
7442
|
+
}
|
|
7443
|
+
/** Demand-load full settlement text for only the visible selected market and its permitted siblings. */
|
|
7444
|
+
declare function useSettlementDetailsData(options: UseSettlementDetailsDataOptions): {
|
|
7445
|
+
eventQuery: _tanstack_react_query.UseQueryResult<_agg_build_sdk.VenueEvent, Error>;
|
|
7446
|
+
marketQuery: _tanstack_react_query.UseQueryResult<{
|
|
7447
|
+
selected: VenueMarket$1;
|
|
7448
|
+
markets: VenueMarket$1[];
|
|
7449
|
+
}, Error>;
|
|
7450
|
+
};
|
|
7451
|
+
|
|
7452
|
+
type Journal = {
|
|
7453
|
+
request: HostedVenueWithdrawalRequest;
|
|
7454
|
+
withdrawalId?: string;
|
|
7455
|
+
};
|
|
7456
|
+
type Environment = "production" | "sandbox";
|
|
7457
|
+
/** Explicit hosted transfers, bound to the current user and persisted before dispatch.
|
|
7458
|
+
* Reloads may read status; they never automatically submit or retry a withdrawal.
|
|
7459
|
+
*/
|
|
7460
|
+
declare function useHostedVenueTransfers(accountId: string, environment: Environment): {
|
|
7461
|
+
isAvailable: boolean;
|
|
7462
|
+
ready: boolean;
|
|
7463
|
+
storageError: boolean;
|
|
7464
|
+
deposit: {
|
|
7465
|
+
data: {
|
|
7466
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7467
|
+
asset: "USDC";
|
|
7468
|
+
accountId: string;
|
|
7469
|
+
environment: "sandbox" | "production";
|
|
7470
|
+
observedAt: string;
|
|
7471
|
+
network: "solana";
|
|
7472
|
+
address: string;
|
|
7473
|
+
} | undefined;
|
|
7474
|
+
variables: undefined;
|
|
7475
|
+
error: null;
|
|
7476
|
+
isError: false;
|
|
7477
|
+
isIdle: true;
|
|
7478
|
+
isPending: false;
|
|
7479
|
+
isSuccess: false;
|
|
7480
|
+
status: "idle";
|
|
7481
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
7482
|
+
scope: string;
|
|
7483
|
+
result: {
|
|
7484
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7485
|
+
asset: "USDC";
|
|
7486
|
+
accountId: string;
|
|
7487
|
+
environment: "sandbox" | "production";
|
|
7488
|
+
observedAt: string;
|
|
7489
|
+
network: "solana";
|
|
7490
|
+
address: string;
|
|
7491
|
+
};
|
|
7492
|
+
}, Error, void, unknown>;
|
|
7493
|
+
reset: () => void;
|
|
7494
|
+
context: unknown;
|
|
7495
|
+
failureCount: number;
|
|
7496
|
+
failureReason: Error | null;
|
|
7497
|
+
isPaused: boolean;
|
|
7498
|
+
submittedAt: number;
|
|
7499
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
7500
|
+
scope: string;
|
|
7501
|
+
result: {
|
|
7502
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7503
|
+
asset: "USDC";
|
|
7504
|
+
accountId: string;
|
|
7505
|
+
environment: "sandbox" | "production";
|
|
7506
|
+
observedAt: string;
|
|
7507
|
+
network: "solana";
|
|
7508
|
+
address: string;
|
|
7509
|
+
};
|
|
7510
|
+
}, Error, void, unknown>;
|
|
7511
|
+
} | {
|
|
7512
|
+
data: {
|
|
7513
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7514
|
+
asset: "USDC";
|
|
7515
|
+
accountId: string;
|
|
7516
|
+
environment: "sandbox" | "production";
|
|
7517
|
+
observedAt: string;
|
|
7518
|
+
network: "solana";
|
|
7519
|
+
address: string;
|
|
7520
|
+
} | undefined;
|
|
7521
|
+
variables: void;
|
|
7522
|
+
error: null;
|
|
7523
|
+
isError: false;
|
|
7524
|
+
isIdle: false;
|
|
7525
|
+
isPending: true;
|
|
7526
|
+
isSuccess: false;
|
|
7527
|
+
status: "pending";
|
|
7528
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
7529
|
+
scope: string;
|
|
7530
|
+
result: {
|
|
7531
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7532
|
+
asset: "USDC";
|
|
7533
|
+
accountId: string;
|
|
7534
|
+
environment: "sandbox" | "production";
|
|
7535
|
+
observedAt: string;
|
|
7536
|
+
network: "solana";
|
|
7537
|
+
address: string;
|
|
7538
|
+
};
|
|
7539
|
+
}, Error, void, unknown>;
|
|
7540
|
+
reset: () => void;
|
|
7541
|
+
context: unknown;
|
|
7542
|
+
failureCount: number;
|
|
7543
|
+
failureReason: Error | null;
|
|
7544
|
+
isPaused: boolean;
|
|
7545
|
+
submittedAt: number;
|
|
7546
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
7547
|
+
scope: string;
|
|
7548
|
+
result: {
|
|
7549
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7550
|
+
asset: "USDC";
|
|
7551
|
+
accountId: string;
|
|
7552
|
+
environment: "sandbox" | "production";
|
|
7553
|
+
observedAt: string;
|
|
7554
|
+
network: "solana";
|
|
7555
|
+
address: string;
|
|
7556
|
+
};
|
|
7557
|
+
}, Error, void, unknown>;
|
|
7558
|
+
} | {
|
|
7559
|
+
data: {
|
|
7560
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7561
|
+
asset: "USDC";
|
|
7562
|
+
accountId: string;
|
|
7563
|
+
environment: "sandbox" | "production";
|
|
7564
|
+
observedAt: string;
|
|
7565
|
+
network: "solana";
|
|
7566
|
+
address: string;
|
|
7567
|
+
} | undefined;
|
|
7568
|
+
error: Error;
|
|
7569
|
+
variables: void;
|
|
7570
|
+
isError: true;
|
|
7571
|
+
isIdle: false;
|
|
7572
|
+
isPending: false;
|
|
7573
|
+
isSuccess: false;
|
|
7574
|
+
status: "error";
|
|
7575
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
7576
|
+
scope: string;
|
|
7577
|
+
result: {
|
|
7578
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7579
|
+
asset: "USDC";
|
|
7580
|
+
accountId: string;
|
|
7581
|
+
environment: "sandbox" | "production";
|
|
7582
|
+
observedAt: string;
|
|
7583
|
+
network: "solana";
|
|
7584
|
+
address: string;
|
|
7585
|
+
};
|
|
7586
|
+
}, Error, void, unknown>;
|
|
7587
|
+
reset: () => void;
|
|
7588
|
+
context: unknown;
|
|
7589
|
+
failureCount: number;
|
|
7590
|
+
failureReason: Error | null;
|
|
7591
|
+
isPaused: boolean;
|
|
7592
|
+
submittedAt: number;
|
|
7593
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
7594
|
+
scope: string;
|
|
7595
|
+
result: {
|
|
7596
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7597
|
+
asset: "USDC";
|
|
7598
|
+
accountId: string;
|
|
7599
|
+
environment: "sandbox" | "production";
|
|
7600
|
+
observedAt: string;
|
|
7601
|
+
network: "solana";
|
|
7602
|
+
address: string;
|
|
7603
|
+
};
|
|
7604
|
+
}, Error, void, unknown>;
|
|
7605
|
+
} | {
|
|
7606
|
+
data: {
|
|
7607
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7608
|
+
asset: "USDC";
|
|
7609
|
+
accountId: string;
|
|
7610
|
+
environment: "sandbox" | "production";
|
|
7611
|
+
observedAt: string;
|
|
7612
|
+
network: "solana";
|
|
7613
|
+
address: string;
|
|
7614
|
+
} | undefined;
|
|
7615
|
+
error: null;
|
|
7616
|
+
variables: void;
|
|
7617
|
+
isError: false;
|
|
7618
|
+
isIdle: false;
|
|
7619
|
+
isPending: false;
|
|
7620
|
+
isSuccess: true;
|
|
7621
|
+
status: "success";
|
|
7622
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
7623
|
+
scope: string;
|
|
7624
|
+
result: {
|
|
7625
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7626
|
+
asset: "USDC";
|
|
7627
|
+
accountId: string;
|
|
7628
|
+
environment: "sandbox" | "production";
|
|
7629
|
+
observedAt: string;
|
|
7630
|
+
network: "solana";
|
|
7631
|
+
address: string;
|
|
7632
|
+
};
|
|
7633
|
+
}, Error, void, unknown>;
|
|
7634
|
+
reset: () => void;
|
|
7635
|
+
context: unknown;
|
|
7636
|
+
failureCount: number;
|
|
7637
|
+
failureReason: Error | null;
|
|
7638
|
+
isPaused: boolean;
|
|
7639
|
+
submittedAt: number;
|
|
7640
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
7641
|
+
scope: string;
|
|
7642
|
+
result: {
|
|
7643
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7644
|
+
asset: "USDC";
|
|
7645
|
+
accountId: string;
|
|
7646
|
+
environment: "sandbox" | "production";
|
|
7647
|
+
observedAt: string;
|
|
7648
|
+
network: "solana";
|
|
7649
|
+
address: string;
|
|
7650
|
+
};
|
|
7651
|
+
}, Error, void, unknown>;
|
|
7652
|
+
};
|
|
7653
|
+
withdrawal: {
|
|
7654
|
+
data: {
|
|
7655
|
+
id: string;
|
|
7656
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7657
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7658
|
+
createdAt: string;
|
|
7659
|
+
asset: "USDC";
|
|
7660
|
+
decimals: 6;
|
|
7661
|
+
updatedAt: string;
|
|
7662
|
+
accountId: string;
|
|
7663
|
+
environment: "sandbox" | "production";
|
|
7664
|
+
amountRaw: string;
|
|
7665
|
+
network: "solana";
|
|
7666
|
+
destinationAddress: string;
|
|
7667
|
+
} | undefined;
|
|
7668
|
+
isError: boolean;
|
|
7669
|
+
variables: undefined;
|
|
7670
|
+
error: null;
|
|
7671
|
+
isIdle: true;
|
|
7672
|
+
isPending: false;
|
|
7673
|
+
isSuccess: false;
|
|
7674
|
+
status: "idle";
|
|
7675
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
7676
|
+
scope: string;
|
|
7677
|
+
result: {
|
|
7678
|
+
id: string;
|
|
7679
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7680
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7681
|
+
createdAt: string;
|
|
7682
|
+
asset: "USDC";
|
|
7683
|
+
decimals: 6;
|
|
7684
|
+
updatedAt: string;
|
|
7685
|
+
accountId: string;
|
|
7686
|
+
environment: "sandbox" | "production";
|
|
7687
|
+
amountRaw: string;
|
|
7688
|
+
network: "solana";
|
|
7689
|
+
destinationAddress: string;
|
|
7690
|
+
};
|
|
7691
|
+
}, Error, Journal, unknown>;
|
|
7692
|
+
reset: () => void;
|
|
7693
|
+
context: unknown;
|
|
7694
|
+
failureCount: number;
|
|
7695
|
+
failureReason: Error | null;
|
|
7696
|
+
isPaused: boolean;
|
|
7697
|
+
submittedAt: number;
|
|
7698
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
7699
|
+
scope: string;
|
|
7700
|
+
result: {
|
|
7701
|
+
id: string;
|
|
7702
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7703
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7704
|
+
createdAt: string;
|
|
7705
|
+
asset: "USDC";
|
|
7706
|
+
decimals: 6;
|
|
7707
|
+
updatedAt: string;
|
|
7708
|
+
accountId: string;
|
|
7709
|
+
environment: "sandbox" | "production";
|
|
7710
|
+
amountRaw: string;
|
|
7711
|
+
network: "solana";
|
|
7712
|
+
destinationAddress: string;
|
|
7713
|
+
};
|
|
7714
|
+
}, Error, Journal, unknown>;
|
|
7715
|
+
} | {
|
|
7716
|
+
data: {
|
|
7717
|
+
id: string;
|
|
7718
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7719
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7720
|
+
createdAt: string;
|
|
7721
|
+
asset: "USDC";
|
|
7722
|
+
decimals: 6;
|
|
7723
|
+
updatedAt: string;
|
|
7724
|
+
accountId: string;
|
|
7725
|
+
environment: "sandbox" | "production";
|
|
7726
|
+
amountRaw: string;
|
|
7727
|
+
network: "solana";
|
|
7728
|
+
destinationAddress: string;
|
|
7729
|
+
} | undefined;
|
|
7730
|
+
isError: boolean;
|
|
7731
|
+
variables: Journal;
|
|
7732
|
+
error: null;
|
|
7733
|
+
isIdle: false;
|
|
7734
|
+
isPending: true;
|
|
7735
|
+
isSuccess: false;
|
|
7736
|
+
status: "pending";
|
|
7737
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
7738
|
+
scope: string;
|
|
7739
|
+
result: {
|
|
7740
|
+
id: string;
|
|
7741
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7742
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7743
|
+
createdAt: string;
|
|
7744
|
+
asset: "USDC";
|
|
7745
|
+
decimals: 6;
|
|
7746
|
+
updatedAt: string;
|
|
7747
|
+
accountId: string;
|
|
7748
|
+
environment: "sandbox" | "production";
|
|
7749
|
+
amountRaw: string;
|
|
7750
|
+
network: "solana";
|
|
7751
|
+
destinationAddress: string;
|
|
7752
|
+
};
|
|
7753
|
+
}, Error, Journal, unknown>;
|
|
7754
|
+
reset: () => void;
|
|
7755
|
+
context: unknown;
|
|
7756
|
+
failureCount: number;
|
|
7757
|
+
failureReason: Error | null;
|
|
7758
|
+
isPaused: boolean;
|
|
7759
|
+
submittedAt: number;
|
|
7760
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
7761
|
+
scope: string;
|
|
7762
|
+
result: {
|
|
7763
|
+
id: string;
|
|
7764
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7765
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7766
|
+
createdAt: string;
|
|
7767
|
+
asset: "USDC";
|
|
7768
|
+
decimals: 6;
|
|
7769
|
+
updatedAt: string;
|
|
7770
|
+
accountId: string;
|
|
7771
|
+
environment: "sandbox" | "production";
|
|
7772
|
+
amountRaw: string;
|
|
7773
|
+
network: "solana";
|
|
7774
|
+
destinationAddress: string;
|
|
7775
|
+
};
|
|
7776
|
+
}, Error, Journal, unknown>;
|
|
7777
|
+
} | {
|
|
7778
|
+
data: {
|
|
7779
|
+
id: string;
|
|
7780
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7781
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7782
|
+
createdAt: string;
|
|
7783
|
+
asset: "USDC";
|
|
7784
|
+
decimals: 6;
|
|
7785
|
+
updatedAt: string;
|
|
7786
|
+
accountId: string;
|
|
7787
|
+
environment: "sandbox" | "production";
|
|
7788
|
+
amountRaw: string;
|
|
7789
|
+
network: "solana";
|
|
7790
|
+
destinationAddress: string;
|
|
7791
|
+
} | undefined;
|
|
7792
|
+
isError: boolean;
|
|
7793
|
+
error: Error;
|
|
7794
|
+
variables: Journal;
|
|
7795
|
+
isIdle: false;
|
|
7796
|
+
isPending: false;
|
|
7797
|
+
isSuccess: false;
|
|
7798
|
+
status: "error";
|
|
7799
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
7800
|
+
scope: string;
|
|
7801
|
+
result: {
|
|
7802
|
+
id: string;
|
|
7803
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7804
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7805
|
+
createdAt: string;
|
|
7806
|
+
asset: "USDC";
|
|
7807
|
+
decimals: 6;
|
|
7808
|
+
updatedAt: string;
|
|
7809
|
+
accountId: string;
|
|
7810
|
+
environment: "sandbox" | "production";
|
|
7811
|
+
amountRaw: string;
|
|
7812
|
+
network: "solana";
|
|
7813
|
+
destinationAddress: string;
|
|
7814
|
+
};
|
|
7815
|
+
}, Error, Journal, unknown>;
|
|
7816
|
+
reset: () => void;
|
|
7817
|
+
context: unknown;
|
|
7818
|
+
failureCount: number;
|
|
7819
|
+
failureReason: Error | null;
|
|
7820
|
+
isPaused: boolean;
|
|
7821
|
+
submittedAt: number;
|
|
7822
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
7823
|
+
scope: string;
|
|
7824
|
+
result: {
|
|
7825
|
+
id: string;
|
|
7826
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7827
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7828
|
+
createdAt: string;
|
|
7829
|
+
asset: "USDC";
|
|
7830
|
+
decimals: 6;
|
|
7831
|
+
updatedAt: string;
|
|
7832
|
+
accountId: string;
|
|
7833
|
+
environment: "sandbox" | "production";
|
|
7834
|
+
amountRaw: string;
|
|
7835
|
+
network: "solana";
|
|
7836
|
+
destinationAddress: string;
|
|
7837
|
+
};
|
|
7838
|
+
}, Error, Journal, unknown>;
|
|
7839
|
+
} | {
|
|
7840
|
+
data: {
|
|
7841
|
+
id: string;
|
|
7842
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7843
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7844
|
+
createdAt: string;
|
|
7845
|
+
asset: "USDC";
|
|
7846
|
+
decimals: 6;
|
|
7847
|
+
updatedAt: string;
|
|
7848
|
+
accountId: string;
|
|
7849
|
+
environment: "sandbox" | "production";
|
|
7850
|
+
amountRaw: string;
|
|
7851
|
+
network: "solana";
|
|
7852
|
+
destinationAddress: string;
|
|
7853
|
+
} | undefined;
|
|
7854
|
+
isError: boolean;
|
|
7855
|
+
error: null;
|
|
7856
|
+
variables: Journal;
|
|
7857
|
+
isIdle: false;
|
|
7858
|
+
isPending: false;
|
|
7859
|
+
isSuccess: true;
|
|
7860
|
+
status: "success";
|
|
7861
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
7862
|
+
scope: string;
|
|
7863
|
+
result: {
|
|
7864
|
+
id: string;
|
|
7865
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7866
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7867
|
+
createdAt: string;
|
|
7868
|
+
asset: "USDC";
|
|
7869
|
+
decimals: 6;
|
|
7870
|
+
updatedAt: string;
|
|
7871
|
+
accountId: string;
|
|
7872
|
+
environment: "sandbox" | "production";
|
|
7873
|
+
amountRaw: string;
|
|
7874
|
+
network: "solana";
|
|
7875
|
+
destinationAddress: string;
|
|
7876
|
+
};
|
|
7877
|
+
}, Error, Journal, unknown>;
|
|
7878
|
+
reset: () => void;
|
|
7879
|
+
context: unknown;
|
|
7880
|
+
failureCount: number;
|
|
7881
|
+
failureReason: Error | null;
|
|
7882
|
+
isPaused: boolean;
|
|
7883
|
+
submittedAt: number;
|
|
7884
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
7885
|
+
scope: string;
|
|
7886
|
+
result: {
|
|
7887
|
+
id: string;
|
|
7888
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7889
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7890
|
+
createdAt: string;
|
|
7891
|
+
asset: "USDC";
|
|
7892
|
+
decimals: 6;
|
|
7893
|
+
updatedAt: string;
|
|
7894
|
+
accountId: string;
|
|
7895
|
+
environment: "sandbox" | "production";
|
|
7896
|
+
amountRaw: string;
|
|
7897
|
+
network: "solana";
|
|
7898
|
+
destinationAddress: string;
|
|
7899
|
+
};
|
|
7900
|
+
}, Error, Journal, unknown>;
|
|
7901
|
+
};
|
|
7902
|
+
request: {
|
|
7903
|
+
amountRaw: string;
|
|
7904
|
+
mode: "live";
|
|
7905
|
+
requestId: string;
|
|
7906
|
+
destinationAddress: string;
|
|
7907
|
+
} | undefined;
|
|
7908
|
+
submit: (amountRaw: string, destinationAddress: string) => Promise<{
|
|
7909
|
+
scope: string;
|
|
7910
|
+
result: {
|
|
7911
|
+
id: string;
|
|
7912
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7913
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7914
|
+
createdAt: string;
|
|
7915
|
+
asset: "USDC";
|
|
7916
|
+
decimals: 6;
|
|
7917
|
+
updatedAt: string;
|
|
7918
|
+
accountId: string;
|
|
7919
|
+
environment: "sandbox" | "production";
|
|
7920
|
+
amountRaw: string;
|
|
7921
|
+
network: "solana";
|
|
7922
|
+
destinationAddress: string;
|
|
7923
|
+
};
|
|
7924
|
+
}>;
|
|
7925
|
+
check: () => Promise<{
|
|
7926
|
+
scope: string;
|
|
7927
|
+
result: {
|
|
7928
|
+
id: string;
|
|
7929
|
+
venue: _agg_build_sdk.Venue.betdex;
|
|
7930
|
+
status: "failed" | "confirmed" | "processing" | "flagged" | "review_required";
|
|
7931
|
+
createdAt: string;
|
|
7932
|
+
asset: "USDC";
|
|
7933
|
+
decimals: 6;
|
|
7934
|
+
updatedAt: string;
|
|
7935
|
+
accountId: string;
|
|
7936
|
+
environment: "sandbox" | "production";
|
|
7937
|
+
amountRaw: string;
|
|
7938
|
+
network: "solana";
|
|
7939
|
+
destinationAddress: string;
|
|
7940
|
+
};
|
|
7941
|
+
}>;
|
|
7942
|
+
clear: () => void;
|
|
7943
|
+
};
|
|
7944
|
+
|
|
7945
|
+
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 ExecutionRawStepProgress, type ExecutionStepProgress, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LimitOrderVenueQuoteRequest, type LimitOrderVenueQuoteResult, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_ORDER_VENUE_MARKET_IDS_PER_REQUEST, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartAvailability, 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 RecurringCryptoIdentity, type RecurringCryptoMarketInstance, type RecurringCryptoTimeline, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, SPORTS_LIVE_POLL_INTERVAL_MS, SPORTS_SCHEDULED_POLL_INTERVAL_MS, 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 UseExecutionOrdersForMarketsOptions, type UseExecutionOrdersForMarketsResult, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLimitOrderVenueQuotesOptions, type UseLimitOrderVenueQuotesResult, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketChartsResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePaperOnboardingResult, type UsePlaceLimitOrderOptions, type UsePositionsOptions, type UseRecurringCryptoMarketsOptions, type UseRedeemLifecycleInput, type UseResolvedExecutionModeResult, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSettlementDetailsDataOptions, 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, appConfigQueryKey, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, fetchRecurringCryptoMarkets, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, hostedVenueAccountQueryKeys, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, mergeRecurringCryptoWindows, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, recurringCryptoTransitionPollInterval, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRecurringCryptoIdentity, resolveRecurringCryptoTimeline, resolveRollingWindow, resolveTradingStateKind, retinaImageUrl, sharedKycQueryKeys, sortVenues, sportsLiveQueryKey, sportsLiveRefetchInterval, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useBalanceRefillPolicies, useCachedAppConfig, useCancelManagedOrder, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionOrdersForMarkets, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useHostedVenueAccount, useHostedVenueActivity, useHostedVenueTransfers, useLabels, useLimitOrderVenueQuotes, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketCharts, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePaperOnboarding, usePlaceLimitOrder, usePositions, useRampQuotes, useRampSession, useRecurringCryptoMarkets, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useResolvedExecutionMode, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSettlementDetailsData, useSharedKyc, useSmartRoute, useSportsLive, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueKeyStatus, useVenueMarketMidpoints, useVenueMarkets, useVenueSellQuotes, useViewportMidpoints, useVisibleIds, userActivityQueryKeys, venueKeyQueryKeys };
|