@agg-build/hooks 2.1.2 → 2.1.3
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-7UDYSDKQ.mjs → chunk-56RISN73.mjs} +250 -16
- package/dist/{chunk-FBYQBFFR.mjs → chunk-NZEXGOFC.mjs} +1 -1
- package/dist/{chunk-5VDUIUJB.mjs → chunk-SN4AO5D7.mjs} +1 -1
- package/dist/deposit.d.mts +1 -1
- package/dist/deposit.d.ts +1 -1
- package/dist/deposit.js +88 -18
- package/dist/deposit.mjs +30 -9
- package/dist/index.d.mts +99 -37
- package/dist/index.d.ts +99 -37
- package/dist/index.js +479 -104
- package/dist/index.mjs +190 -48
- package/dist/withdraw.js +49 -2
- package/dist/withdraw.mjs +2 -2
- package/package.json +2 -2
package/dist/deposit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useRampQuotes,
|
|
3
3
|
useRampSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SN4AO5D7.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__async,
|
|
7
7
|
useAggAuthState,
|
|
@@ -9,8 +9,9 @@ import {
|
|
|
9
9
|
useAggClient,
|
|
10
10
|
useAggUiConfig,
|
|
11
11
|
useDepositAddresses,
|
|
12
|
+
useOptionalAggClient,
|
|
12
13
|
useSyncBalances
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-56RISN73.mjs";
|
|
14
15
|
|
|
15
16
|
// src/deposit/normalize-wallet-error.ts
|
|
16
17
|
function normalizeWalletError(error, supportedChains) {
|
|
@@ -35,17 +36,18 @@ function normalizeWalletError(error, supportedChains) {
|
|
|
35
36
|
|
|
36
37
|
// src/deposit/use-wallet-token-balance.ts
|
|
37
38
|
import { PublicKey } from "@solana/web3.js";
|
|
38
|
-
import { useQuery } from "@tanstack/react-query";
|
|
39
|
+
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
39
40
|
import { formatUnits } from "viem";
|
|
40
41
|
import { useAccount, useReadContract } from "wagmi";
|
|
41
42
|
|
|
42
43
|
// src/deposit/constants.ts
|
|
43
44
|
var DEFAULT_SOLANA_RPC_ENDPOINTS = [
|
|
45
|
+
"https://solana-mainnet.g.alchemy.com/v2",
|
|
44
46
|
"https://solana-rpc.publicnode.com",
|
|
45
47
|
"https://api.mainnet.solana.com",
|
|
46
48
|
"https://rpc.ankr.com/solana"
|
|
47
49
|
];
|
|
48
|
-
var DEFAULT_SOLANA_RPC_ENDPOINT =
|
|
50
|
+
var DEFAULT_SOLANA_RPC_ENDPOINT = "https://solana-rpc.publicnode.com";
|
|
49
51
|
var SVM_CHAIN_IDS = /* @__PURE__ */ new Set([792703809]);
|
|
50
52
|
var MULTI_CHAIN_SOLANA_WALLET_NAMES = /* @__PURE__ */ new Set(["Phantom"]);
|
|
51
53
|
|
|
@@ -80,6 +82,7 @@ function useSvmAddress() {
|
|
|
80
82
|
// src/deposit/svm-connections.ts
|
|
81
83
|
import { Connection } from "@solana/web3.js";
|
|
82
84
|
import { useMemo } from "react";
|
|
85
|
+
import { useQuery } from "@tanstack/react-query";
|
|
83
86
|
function resolveSvmRpcEndpoints(partnerUrl) {
|
|
84
87
|
const seen = /* @__PURE__ */ new Set();
|
|
85
88
|
const out = [];
|
|
@@ -94,10 +97,28 @@ function resolveSvmRpcEndpoints(partnerUrl) {
|
|
|
94
97
|
}
|
|
95
98
|
function useSvmConnections(commitment) {
|
|
96
99
|
const { solanaRpcUrl } = useAggUiConfig();
|
|
100
|
+
const client = useOptionalAggClient();
|
|
101
|
+
const { data: tokenData } = useQuery({
|
|
102
|
+
queryKey: ["alchemy-rpc-token"],
|
|
103
|
+
queryFn: () => client ? client.getRpcToken() : Promise.resolve({ token: "", expiresAt: 0 }),
|
|
104
|
+
enabled: !!client,
|
|
105
|
+
staleTime: 50 * 60 * 1e3
|
|
106
|
+
// 50 minutes cache (token is valid for 1h)
|
|
107
|
+
});
|
|
108
|
+
const token = tokenData == null ? void 0 : tokenData.token;
|
|
97
109
|
return useMemo(() => {
|
|
98
110
|
const endpoints = resolveSvmRpcEndpoints(solanaRpcUrl);
|
|
99
|
-
return endpoints.map((url) =>
|
|
100
|
-
|
|
111
|
+
return endpoints.map((url) => {
|
|
112
|
+
const headers = {};
|
|
113
|
+
if (url.includes("alchemy.com") && token) {
|
|
114
|
+
headers["Authorization"] = `Bearer ${token}`;
|
|
115
|
+
}
|
|
116
|
+
return new Connection(url, {
|
|
117
|
+
commitment,
|
|
118
|
+
httpHeaders: Object.keys(headers).length > 0 ? headers : void 0
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
}, [solanaRpcUrl, commitment, token]);
|
|
101
122
|
}
|
|
102
123
|
function withSvmFailover(connections, operation) {
|
|
103
124
|
return __async(this, null, function* () {
|
|
@@ -192,7 +213,7 @@ function useWalletTokenBalance({
|
|
|
192
213
|
const resolvedSvmAddress = detectedSvmAddress != null ? detectedSvmAddress : svmAddress;
|
|
193
214
|
const svmEnabled = isOpen && isSvm && !!resolvedSvmAddress && !!tokenAddress;
|
|
194
215
|
const svmConnections = useSvmConnections();
|
|
195
|
-
const svmQuery =
|
|
216
|
+
const svmQuery = useQuery2({
|
|
196
217
|
queryKey: ["svm-token-balance", resolvedSvmAddress != null ? resolvedSvmAddress : null, tokenAddress != null ? tokenAddress : null, isOpen],
|
|
197
218
|
enabled: svmEnabled,
|
|
198
219
|
staleTime: SVM_BALANCE_STALE_TIME_MS,
|
|
@@ -414,7 +435,7 @@ function useWalletSendToken() {
|
|
|
414
435
|
}
|
|
415
436
|
|
|
416
437
|
// src/deposit/use-wallet-transaction-status.ts
|
|
417
|
-
import { useQuery as
|
|
438
|
+
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
418
439
|
import { formatEther } from "viem";
|
|
419
440
|
import { useWaitForTransactionReceipt } from "wagmi";
|
|
420
441
|
function useWalletTransactionStatus({
|
|
@@ -433,7 +454,7 @@ function useWalletTransactionStatus({
|
|
|
433
454
|
}
|
|
434
455
|
});
|
|
435
456
|
const svmConnections = useSvmConnections("confirmed");
|
|
436
|
-
const svmQuery =
|
|
457
|
+
const svmQuery = useQuery3({
|
|
437
458
|
queryKey: ["wallet-transaction-status", chainId != null ? chainId : null, txId != null ? txId : null],
|
|
438
459
|
enabled: isSvm && !!txId,
|
|
439
460
|
refetchInterval: (query) => query.state.data === "settled" || query.state.data === "error" ? false : 2e3,
|
package/dist/index.d.mts
CHANGED
|
@@ -118,6 +118,7 @@ type UnifiedBalanceResponse = {
|
|
|
118
118
|
chains: {
|
|
119
119
|
chainId: number;
|
|
120
120
|
tokenAddress: string;
|
|
121
|
+
tokenSymbol?: string | undefined;
|
|
121
122
|
balanceRaw: string;
|
|
122
123
|
heldRaw?: string | undefined;
|
|
123
124
|
availableRaw?: string | undefined;
|
|
@@ -275,6 +276,10 @@ type VenueMarket = {
|
|
|
275
276
|
period?: string | null | undefined;
|
|
276
277
|
/** Normalized subject category for prop-tab grouping (e.g., game_lines, exact_score, etc.). */
|
|
277
278
|
marketCategory?: string | null | undefined;
|
|
279
|
+
/** Section/tab grouping key for sports markets (e.g. "player_props", "totals"). */
|
|
280
|
+
marketGroup?: string | null | undefined;
|
|
281
|
+
/** Fine-grained sub-classification within a marketGroup (e.g. "moneyline", "rushing_yards"). */
|
|
282
|
+
marketSubtype?: string | null | undefined;
|
|
278
283
|
/** Line value for spread/total markets (e.g., 2.5 for totals, 3 for spreads). */
|
|
279
284
|
lineValue?: number | null | undefined;
|
|
280
285
|
matchedVenueMarkets?: {
|
|
@@ -350,8 +355,12 @@ type VenueEvent = {
|
|
|
350
355
|
* enum values.
|
|
351
356
|
*/
|
|
352
357
|
recurrence?: string | null | undefined;
|
|
358
|
+
/** Deterministic game-level canonical key for cross-venue sports detail loading. */
|
|
359
|
+
aggKey?: string | null | undefined;
|
|
353
360
|
/** Type-aware structure classification used to sort markets under this event. */
|
|
354
361
|
structureType?: "candidate" | "sport" | "axis" | "dates" | null | undefined;
|
|
362
|
+
/** Canonical sport slug for sports events (e.g. "basketball", "soccer"); null for non-sports. */
|
|
363
|
+
sport?: string | null | undefined;
|
|
355
364
|
};
|
|
356
365
|
type Orderbook = {
|
|
357
366
|
bids: {
|
|
@@ -892,6 +901,8 @@ interface AggUiLabels {
|
|
|
892
901
|
showOutcomeAria: (label: string) => string;
|
|
893
902
|
viewResolved: string;
|
|
894
903
|
hideResolved: string;
|
|
904
|
+
resolvingTitle: string;
|
|
905
|
+
resolvingDescription: string;
|
|
895
906
|
volumeUnavailable: string;
|
|
896
907
|
tabs: {
|
|
897
908
|
orderBook: string;
|
|
@@ -1233,6 +1244,50 @@ interface AggUiLabels {
|
|
|
1233
1244
|
resolvedOutcome: (label: string) => string;
|
|
1234
1245
|
marketDetailsAriaByDate: (dateLabel: string) => string;
|
|
1235
1246
|
marketDetailsAriaByQuestion: (question: string) => string;
|
|
1247
|
+
sports: {
|
|
1248
|
+
summaryAria: string;
|
|
1249
|
+
sectionTabsAria: string;
|
|
1250
|
+
lineSelectorAria: (marketTitle: string) => string;
|
|
1251
|
+
previousLineAria: (marketTitle: string) => string;
|
|
1252
|
+
nextLineAria: (marketTitle: string) => string;
|
|
1253
|
+
comparisonToggleAria: (marketTitle: string, expanded: boolean) => string;
|
|
1254
|
+
comparisonTitle: string;
|
|
1255
|
+
compareVenues: (count: number) => string;
|
|
1256
|
+
marketCount: (count: number) => string;
|
|
1257
|
+
venueCount: (count: number) => string;
|
|
1258
|
+
volumeShort: string;
|
|
1259
|
+
totalVolumeShort: string;
|
|
1260
|
+
gameStarts: string;
|
|
1261
|
+
moreMarketsTitle: string;
|
|
1262
|
+
gameLinesTab: string;
|
|
1263
|
+
halvesTab: string;
|
|
1264
|
+
exactScoreTab: string;
|
|
1265
|
+
cornersTab: string;
|
|
1266
|
+
goalsTab: string;
|
|
1267
|
+
assistsTab: string;
|
|
1268
|
+
shotsTab: string;
|
|
1269
|
+
otherTab: string;
|
|
1270
|
+
moneylineTitle: string;
|
|
1271
|
+
spreadTitle: string;
|
|
1272
|
+
totalTitle: string;
|
|
1273
|
+
fullPeriod: string;
|
|
1274
|
+
firstHalfPeriod: string;
|
|
1275
|
+
secondHalfPeriod: string;
|
|
1276
|
+
quarterOnePeriod: string;
|
|
1277
|
+
quarterTwoPeriod: string;
|
|
1278
|
+
quarterThreePeriod: string;
|
|
1279
|
+
quarterFourPeriod: string;
|
|
1280
|
+
overtimePeriod: string;
|
|
1281
|
+
otherPeriod: string;
|
|
1282
|
+
loadingTitle: string;
|
|
1283
|
+
loadingDescription: string;
|
|
1284
|
+
emptyTitle: string;
|
|
1285
|
+
emptyDescription: (sectionLabel: string) => string;
|
|
1286
|
+
loadMore: string;
|
|
1287
|
+
loadingMore: string;
|
|
1288
|
+
bestPriceBadge: string;
|
|
1289
|
+
selectOutcomeAria: (marketTitle: string, outcomeLabel: string, priceLabel: string) => string;
|
|
1290
|
+
};
|
|
1236
1291
|
};
|
|
1237
1292
|
header: {
|
|
1238
1293
|
bannerAria: string;
|
|
@@ -1347,6 +1402,14 @@ interface AggUiFeatureFlagsConfig {
|
|
|
1347
1402
|
* for ad-hoc partner-fired toasts).
|
|
1348
1403
|
*/
|
|
1349
1404
|
enableNotifications: boolean;
|
|
1405
|
+
/**
|
|
1406
|
+
* Enable the experimental sports event-details view. When `true` and the
|
|
1407
|
+
* event's `structureType === "sport"`, the event page renders the sports
|
|
1408
|
+
* market browser; otherwise the default event-details page is used. Defaults
|
|
1409
|
+
* to `false` (feature-flagged). Driven by `NEXT_PUBLIC_AGG_SHOW_SPORT_MARKETS`
|
|
1410
|
+
* in the demo app / Storybook, threaded through this config.
|
|
1411
|
+
*/
|
|
1412
|
+
showSportsMarkets: boolean;
|
|
1350
1413
|
}
|
|
1351
1414
|
type AggUiFeatureFlagsConfigInput = Partial<AggUiFeatureFlagsConfig>;
|
|
1352
1415
|
interface AggUiMarketConfig {
|
|
@@ -2057,6 +2120,7 @@ interface ExecutionTerminalOrderEvent {
|
|
|
2057
2120
|
}
|
|
2058
2121
|
interface UseExecutionProgressOptions {
|
|
2059
2122
|
orderIds: string[] | null;
|
|
2123
|
+
quoteId?: string | null;
|
|
2060
2124
|
enabled: boolean;
|
|
2061
2125
|
mode?: "live" | "paper";
|
|
2062
2126
|
}
|
|
@@ -2067,7 +2131,7 @@ interface UseExecutionProgressResult {
|
|
|
2067
2131
|
dagProgress: DagStepProgress | null;
|
|
2068
2132
|
terminalOrderEvents: ExecutionTerminalOrderEvent[];
|
|
2069
2133
|
}
|
|
2070
|
-
declare function useExecutionProgress({ orderIds, enabled, mode, }: UseExecutionProgressOptions): UseExecutionProgressResult;
|
|
2134
|
+
declare function useExecutionProgress({ orderIds, quoteId, enabled, mode, }: UseExecutionProgressOptions): UseExecutionProgressResult;
|
|
2071
2135
|
|
|
2072
2136
|
interface ClosedPositionTotals {
|
|
2073
2137
|
totalTraded: number;
|
|
@@ -3530,41 +3594,6 @@ interface UseMidpointsResult {
|
|
|
3530
3594
|
*/
|
|
3531
3595
|
declare function useMidpoints(venueMarkets: VenueMarket[] | null | undefined, options?: UseMidpointsOptions): UseMidpointsResult;
|
|
3532
3596
|
|
|
3533
|
-
interface UseTradableVenuesResult {
|
|
3534
|
-
/**
|
|
3535
|
-
* Set of venue strings that have at least one outcome with a non-null
|
|
3536
|
-
* midpoint from the engine. When non-null, this is the authoritative
|
|
3537
|
-
* set of venues that have a live orderbook for the given cluster.
|
|
3538
|
-
*
|
|
3539
|
-
* `null` while midpoints are still loading — callers should treat this
|
|
3540
|
-
* as "unknown, don't filter yet" and show all venues optimistically.
|
|
3541
|
-
*/
|
|
3542
|
-
tradableVenues: ReadonlySet<string> | null;
|
|
3543
|
-
/** True while the underlying midpoints fetch is in flight. */
|
|
3544
|
-
isLoading: boolean;
|
|
3545
|
-
}
|
|
3546
|
-
/**
|
|
3547
|
-
* Dynamic venue-orderbook availability check.
|
|
3548
|
-
*
|
|
3549
|
-
* Walks the cluster's midpoints (already fetched via /midpoints by the
|
|
3550
|
-
* surrounding component, or fetched fresh here if not) and returns the
|
|
3551
|
-
* set of venues that have at least one outcome with a non-null midpoint.
|
|
3552
|
-
* A venue with NO non-null midpoints across all its outcomes is treated
|
|
3553
|
-
* as "no live orderbook" — it appeared in matching/discovery but the
|
|
3554
|
-
* engine isn't quoting it (e.g. opinion).
|
|
3555
|
-
*
|
|
3556
|
-
* The signal is purely runtime: no hardcoded venue allowlist. New
|
|
3557
|
-
* venues that join without orderbook support get filtered automatically;
|
|
3558
|
-
* venues whose orderbook stream temporarily drops also get filtered
|
|
3559
|
-
* until midpoints come back. This keeps the FE in lockstep with what the
|
|
3560
|
-
* engine is actually able to quote, without coordinating constants
|
|
3561
|
-
* across BE/FE on every venue addition.
|
|
3562
|
-
*
|
|
3563
|
-
* Use this in surfaces that need to show "X tradeable venues" or filter
|
|
3564
|
-
* a venue logo strip — see `getVenueSummary`'s `tradableVenues` option.
|
|
3565
|
-
*/
|
|
3566
|
-
declare function useTradableVenues(venueMarkets: VenueMarket[] | null | undefined): UseTradableVenuesResult;
|
|
3567
|
-
|
|
3568
3597
|
interface UseMarketChartOptions {
|
|
3569
3598
|
/** VenueMarketOutcome.id */
|
|
3570
3599
|
marketId: string | null;
|
|
@@ -4164,6 +4193,21 @@ interface UseSmartRouteOptions {
|
|
|
4164
4193
|
enabled?: boolean;
|
|
4165
4194
|
/** Cache freshness and polling interval in milliseconds. Defaults to SMART_ROUTE_STALE_TIME_MS. */
|
|
4166
4195
|
staleTimeMs?: number;
|
|
4196
|
+
/**
|
|
4197
|
+
* UI activity hints used by the centralized refresh policy. These do not
|
|
4198
|
+
* affect the fetched payload, only whether quote polling should stay active
|
|
4199
|
+
* and whether thin-liquidity quotes should refresh more aggressively.
|
|
4200
|
+
*/
|
|
4201
|
+
refreshContext?: {
|
|
4202
|
+
/** True when the quote panel is the visible/active surface. Defaults to true. */
|
|
4203
|
+
isPanelActive?: boolean;
|
|
4204
|
+
/** True while the user is actively editing the quote inputs. Defaults to false. */
|
|
4205
|
+
isEditing?: boolean;
|
|
4206
|
+
/** True when the market is open for trading. Defaults to true. */
|
|
4207
|
+
isMarketOpen?: boolean;
|
|
4208
|
+
/** True while the trade is being submitted or executed. Defaults to false. */
|
|
4209
|
+
isSubmitting?: boolean;
|
|
4210
|
+
};
|
|
4167
4211
|
}
|
|
4168
4212
|
/**
|
|
4169
4213
|
* Why the smart route query is currently loading.
|
|
@@ -4812,6 +4856,11 @@ interface UseVenueEventsOptions {
|
|
|
4812
4856
|
maxYesPrice?: number;
|
|
4813
4857
|
/** ISO-8601 timestamp. When set, hides events with endDate <= value; NULL-endDate events are kept. */
|
|
4814
4858
|
endDateFrom?: string;
|
|
4859
|
+
/**
|
|
4860
|
+
* When true, fold same-venue companion events into one tile per game
|
|
4861
|
+
* (`groupParentId IS NULL`). Default (omitted/false) = ungrouped.
|
|
4862
|
+
*/
|
|
4863
|
+
grouped?: boolean;
|
|
4815
4864
|
/**
|
|
4816
4865
|
* When restoring from a navigation snapshot, eagerly fetch this many pages
|
|
4817
4866
|
* on mount (pages are likely cached by React Query from the prior visit).
|
|
@@ -5060,6 +5109,16 @@ interface UseVenueMarketsOptions {
|
|
|
5060
5109
|
matchStatus?: MatchStatus;
|
|
5061
5110
|
/** Filter by category IDs. */
|
|
5062
5111
|
categoryIds?: string[];
|
|
5112
|
+
/** Canonical game or market key filter. */
|
|
5113
|
+
aggKey?: string[];
|
|
5114
|
+
/** Sports section filter: moneyline, spread, total, prop, ... */
|
|
5115
|
+
sportsMarketType?: string[];
|
|
5116
|
+
/** Sports period filter: full, 1h, 2h, q1, ... */
|
|
5117
|
+
period?: string[];
|
|
5118
|
+
/** Sports prop-category filter: corners, goals, assists, ... */
|
|
5119
|
+
marketCategory?: string[];
|
|
5120
|
+
/** Sports section/tab grouping filter: game_lines, spreads, totals, player_props, ... */
|
|
5121
|
+
marketGroup?: string[];
|
|
5063
5122
|
/** Page size when using cursor pagination. Default 20. */
|
|
5064
5123
|
limit?: number;
|
|
5065
5124
|
/** Enable/disable the query. Default true. */
|
|
@@ -5068,6 +5127,9 @@ interface UseVenueMarketsOptions {
|
|
|
5068
5127
|
sortBy?: "volume" | "volume24hr" | "createdAt" | "yesPrice" | "updatedAt";
|
|
5069
5128
|
/** Sort direction: "asc" or "desc". */
|
|
5070
5129
|
sortDir?: "asc" | "desc";
|
|
5130
|
+
/** Sort surface. "list" makes axis/dates events sort by volume (matches the
|
|
5131
|
+
* tile top-3); omit or "detail" on the detail page to keep structured order. */
|
|
5132
|
+
context?: "list" | "detail";
|
|
5071
5133
|
}
|
|
5072
5134
|
/**
|
|
5073
5135
|
* Fetch venue markets with cursor-based pagination.
|
|
@@ -5580,4 +5642,4 @@ declare function useAppConfig(): UseAppConfigResult;
|
|
|
5580
5642
|
*/
|
|
5581
5643
|
declare function useCachedAppConfig(): UseAppConfigResult;
|
|
5582
5644
|
|
|
5583
|
-
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 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
|
|
5645
|
+
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 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ type UnifiedBalanceResponse = {
|
|
|
118
118
|
chains: {
|
|
119
119
|
chainId: number;
|
|
120
120
|
tokenAddress: string;
|
|
121
|
+
tokenSymbol?: string | undefined;
|
|
121
122
|
balanceRaw: string;
|
|
122
123
|
heldRaw?: string | undefined;
|
|
123
124
|
availableRaw?: string | undefined;
|
|
@@ -275,6 +276,10 @@ type VenueMarket = {
|
|
|
275
276
|
period?: string | null | undefined;
|
|
276
277
|
/** Normalized subject category for prop-tab grouping (e.g., game_lines, exact_score, etc.). */
|
|
277
278
|
marketCategory?: string | null | undefined;
|
|
279
|
+
/** Section/tab grouping key for sports markets (e.g. "player_props", "totals"). */
|
|
280
|
+
marketGroup?: string | null | undefined;
|
|
281
|
+
/** Fine-grained sub-classification within a marketGroup (e.g. "moneyline", "rushing_yards"). */
|
|
282
|
+
marketSubtype?: string | null | undefined;
|
|
278
283
|
/** Line value for spread/total markets (e.g., 2.5 for totals, 3 for spreads). */
|
|
279
284
|
lineValue?: number | null | undefined;
|
|
280
285
|
matchedVenueMarkets?: {
|
|
@@ -350,8 +355,12 @@ type VenueEvent = {
|
|
|
350
355
|
* enum values.
|
|
351
356
|
*/
|
|
352
357
|
recurrence?: string | null | undefined;
|
|
358
|
+
/** Deterministic game-level canonical key for cross-venue sports detail loading. */
|
|
359
|
+
aggKey?: string | null | undefined;
|
|
353
360
|
/** Type-aware structure classification used to sort markets under this event. */
|
|
354
361
|
structureType?: "candidate" | "sport" | "axis" | "dates" | null | undefined;
|
|
362
|
+
/** Canonical sport slug for sports events (e.g. "basketball", "soccer"); null for non-sports. */
|
|
363
|
+
sport?: string | null | undefined;
|
|
355
364
|
};
|
|
356
365
|
type Orderbook = {
|
|
357
366
|
bids: {
|
|
@@ -892,6 +901,8 @@ interface AggUiLabels {
|
|
|
892
901
|
showOutcomeAria: (label: string) => string;
|
|
893
902
|
viewResolved: string;
|
|
894
903
|
hideResolved: string;
|
|
904
|
+
resolvingTitle: string;
|
|
905
|
+
resolvingDescription: string;
|
|
895
906
|
volumeUnavailable: string;
|
|
896
907
|
tabs: {
|
|
897
908
|
orderBook: string;
|
|
@@ -1233,6 +1244,50 @@ interface AggUiLabels {
|
|
|
1233
1244
|
resolvedOutcome: (label: string) => string;
|
|
1234
1245
|
marketDetailsAriaByDate: (dateLabel: string) => string;
|
|
1235
1246
|
marketDetailsAriaByQuestion: (question: string) => string;
|
|
1247
|
+
sports: {
|
|
1248
|
+
summaryAria: string;
|
|
1249
|
+
sectionTabsAria: string;
|
|
1250
|
+
lineSelectorAria: (marketTitle: string) => string;
|
|
1251
|
+
previousLineAria: (marketTitle: string) => string;
|
|
1252
|
+
nextLineAria: (marketTitle: string) => string;
|
|
1253
|
+
comparisonToggleAria: (marketTitle: string, expanded: boolean) => string;
|
|
1254
|
+
comparisonTitle: string;
|
|
1255
|
+
compareVenues: (count: number) => string;
|
|
1256
|
+
marketCount: (count: number) => string;
|
|
1257
|
+
venueCount: (count: number) => string;
|
|
1258
|
+
volumeShort: string;
|
|
1259
|
+
totalVolumeShort: string;
|
|
1260
|
+
gameStarts: string;
|
|
1261
|
+
moreMarketsTitle: string;
|
|
1262
|
+
gameLinesTab: string;
|
|
1263
|
+
halvesTab: string;
|
|
1264
|
+
exactScoreTab: string;
|
|
1265
|
+
cornersTab: string;
|
|
1266
|
+
goalsTab: string;
|
|
1267
|
+
assistsTab: string;
|
|
1268
|
+
shotsTab: string;
|
|
1269
|
+
otherTab: string;
|
|
1270
|
+
moneylineTitle: string;
|
|
1271
|
+
spreadTitle: string;
|
|
1272
|
+
totalTitle: string;
|
|
1273
|
+
fullPeriod: string;
|
|
1274
|
+
firstHalfPeriod: string;
|
|
1275
|
+
secondHalfPeriod: string;
|
|
1276
|
+
quarterOnePeriod: string;
|
|
1277
|
+
quarterTwoPeriod: string;
|
|
1278
|
+
quarterThreePeriod: string;
|
|
1279
|
+
quarterFourPeriod: string;
|
|
1280
|
+
overtimePeriod: string;
|
|
1281
|
+
otherPeriod: string;
|
|
1282
|
+
loadingTitle: string;
|
|
1283
|
+
loadingDescription: string;
|
|
1284
|
+
emptyTitle: string;
|
|
1285
|
+
emptyDescription: (sectionLabel: string) => string;
|
|
1286
|
+
loadMore: string;
|
|
1287
|
+
loadingMore: string;
|
|
1288
|
+
bestPriceBadge: string;
|
|
1289
|
+
selectOutcomeAria: (marketTitle: string, outcomeLabel: string, priceLabel: string) => string;
|
|
1290
|
+
};
|
|
1236
1291
|
};
|
|
1237
1292
|
header: {
|
|
1238
1293
|
bannerAria: string;
|
|
@@ -1347,6 +1402,14 @@ interface AggUiFeatureFlagsConfig {
|
|
|
1347
1402
|
* for ad-hoc partner-fired toasts).
|
|
1348
1403
|
*/
|
|
1349
1404
|
enableNotifications: boolean;
|
|
1405
|
+
/**
|
|
1406
|
+
* Enable the experimental sports event-details view. When `true` and the
|
|
1407
|
+
* event's `structureType === "sport"`, the event page renders the sports
|
|
1408
|
+
* market browser; otherwise the default event-details page is used. Defaults
|
|
1409
|
+
* to `false` (feature-flagged). Driven by `NEXT_PUBLIC_AGG_SHOW_SPORT_MARKETS`
|
|
1410
|
+
* in the demo app / Storybook, threaded through this config.
|
|
1411
|
+
*/
|
|
1412
|
+
showSportsMarkets: boolean;
|
|
1350
1413
|
}
|
|
1351
1414
|
type AggUiFeatureFlagsConfigInput = Partial<AggUiFeatureFlagsConfig>;
|
|
1352
1415
|
interface AggUiMarketConfig {
|
|
@@ -2057,6 +2120,7 @@ interface ExecutionTerminalOrderEvent {
|
|
|
2057
2120
|
}
|
|
2058
2121
|
interface UseExecutionProgressOptions {
|
|
2059
2122
|
orderIds: string[] | null;
|
|
2123
|
+
quoteId?: string | null;
|
|
2060
2124
|
enabled: boolean;
|
|
2061
2125
|
mode?: "live" | "paper";
|
|
2062
2126
|
}
|
|
@@ -2067,7 +2131,7 @@ interface UseExecutionProgressResult {
|
|
|
2067
2131
|
dagProgress: DagStepProgress | null;
|
|
2068
2132
|
terminalOrderEvents: ExecutionTerminalOrderEvent[];
|
|
2069
2133
|
}
|
|
2070
|
-
declare function useExecutionProgress({ orderIds, enabled, mode, }: UseExecutionProgressOptions): UseExecutionProgressResult;
|
|
2134
|
+
declare function useExecutionProgress({ orderIds, quoteId, enabled, mode, }: UseExecutionProgressOptions): UseExecutionProgressResult;
|
|
2071
2135
|
|
|
2072
2136
|
interface ClosedPositionTotals {
|
|
2073
2137
|
totalTraded: number;
|
|
@@ -3530,41 +3594,6 @@ interface UseMidpointsResult {
|
|
|
3530
3594
|
*/
|
|
3531
3595
|
declare function useMidpoints(venueMarkets: VenueMarket[] | null | undefined, options?: UseMidpointsOptions): UseMidpointsResult;
|
|
3532
3596
|
|
|
3533
|
-
interface UseTradableVenuesResult {
|
|
3534
|
-
/**
|
|
3535
|
-
* Set of venue strings that have at least one outcome with a non-null
|
|
3536
|
-
* midpoint from the engine. When non-null, this is the authoritative
|
|
3537
|
-
* set of venues that have a live orderbook for the given cluster.
|
|
3538
|
-
*
|
|
3539
|
-
* `null` while midpoints are still loading — callers should treat this
|
|
3540
|
-
* as "unknown, don't filter yet" and show all venues optimistically.
|
|
3541
|
-
*/
|
|
3542
|
-
tradableVenues: ReadonlySet<string> | null;
|
|
3543
|
-
/** True while the underlying midpoints fetch is in flight. */
|
|
3544
|
-
isLoading: boolean;
|
|
3545
|
-
}
|
|
3546
|
-
/**
|
|
3547
|
-
* Dynamic venue-orderbook availability check.
|
|
3548
|
-
*
|
|
3549
|
-
* Walks the cluster's midpoints (already fetched via /midpoints by the
|
|
3550
|
-
* surrounding component, or fetched fresh here if not) and returns the
|
|
3551
|
-
* set of venues that have at least one outcome with a non-null midpoint.
|
|
3552
|
-
* A venue with NO non-null midpoints across all its outcomes is treated
|
|
3553
|
-
* as "no live orderbook" — it appeared in matching/discovery but the
|
|
3554
|
-
* engine isn't quoting it (e.g. opinion).
|
|
3555
|
-
*
|
|
3556
|
-
* The signal is purely runtime: no hardcoded venue allowlist. New
|
|
3557
|
-
* venues that join without orderbook support get filtered automatically;
|
|
3558
|
-
* venues whose orderbook stream temporarily drops also get filtered
|
|
3559
|
-
* until midpoints come back. This keeps the FE in lockstep with what the
|
|
3560
|
-
* engine is actually able to quote, without coordinating constants
|
|
3561
|
-
* across BE/FE on every venue addition.
|
|
3562
|
-
*
|
|
3563
|
-
* Use this in surfaces that need to show "X tradeable venues" or filter
|
|
3564
|
-
* a venue logo strip — see `getVenueSummary`'s `tradableVenues` option.
|
|
3565
|
-
*/
|
|
3566
|
-
declare function useTradableVenues(venueMarkets: VenueMarket[] | null | undefined): UseTradableVenuesResult;
|
|
3567
|
-
|
|
3568
3597
|
interface UseMarketChartOptions {
|
|
3569
3598
|
/** VenueMarketOutcome.id */
|
|
3570
3599
|
marketId: string | null;
|
|
@@ -4164,6 +4193,21 @@ interface UseSmartRouteOptions {
|
|
|
4164
4193
|
enabled?: boolean;
|
|
4165
4194
|
/** Cache freshness and polling interval in milliseconds. Defaults to SMART_ROUTE_STALE_TIME_MS. */
|
|
4166
4195
|
staleTimeMs?: number;
|
|
4196
|
+
/**
|
|
4197
|
+
* UI activity hints used by the centralized refresh policy. These do not
|
|
4198
|
+
* affect the fetched payload, only whether quote polling should stay active
|
|
4199
|
+
* and whether thin-liquidity quotes should refresh more aggressively.
|
|
4200
|
+
*/
|
|
4201
|
+
refreshContext?: {
|
|
4202
|
+
/** True when the quote panel is the visible/active surface. Defaults to true. */
|
|
4203
|
+
isPanelActive?: boolean;
|
|
4204
|
+
/** True while the user is actively editing the quote inputs. Defaults to false. */
|
|
4205
|
+
isEditing?: boolean;
|
|
4206
|
+
/** True when the market is open for trading. Defaults to true. */
|
|
4207
|
+
isMarketOpen?: boolean;
|
|
4208
|
+
/** True while the trade is being submitted or executed. Defaults to false. */
|
|
4209
|
+
isSubmitting?: boolean;
|
|
4210
|
+
};
|
|
4167
4211
|
}
|
|
4168
4212
|
/**
|
|
4169
4213
|
* Why the smart route query is currently loading.
|
|
@@ -4812,6 +4856,11 @@ interface UseVenueEventsOptions {
|
|
|
4812
4856
|
maxYesPrice?: number;
|
|
4813
4857
|
/** ISO-8601 timestamp. When set, hides events with endDate <= value; NULL-endDate events are kept. */
|
|
4814
4858
|
endDateFrom?: string;
|
|
4859
|
+
/**
|
|
4860
|
+
* When true, fold same-venue companion events into one tile per game
|
|
4861
|
+
* (`groupParentId IS NULL`). Default (omitted/false) = ungrouped.
|
|
4862
|
+
*/
|
|
4863
|
+
grouped?: boolean;
|
|
4815
4864
|
/**
|
|
4816
4865
|
* When restoring from a navigation snapshot, eagerly fetch this many pages
|
|
4817
4866
|
* on mount (pages are likely cached by React Query from the prior visit).
|
|
@@ -5060,6 +5109,16 @@ interface UseVenueMarketsOptions {
|
|
|
5060
5109
|
matchStatus?: MatchStatus;
|
|
5061
5110
|
/** Filter by category IDs. */
|
|
5062
5111
|
categoryIds?: string[];
|
|
5112
|
+
/** Canonical game or market key filter. */
|
|
5113
|
+
aggKey?: string[];
|
|
5114
|
+
/** Sports section filter: moneyline, spread, total, prop, ... */
|
|
5115
|
+
sportsMarketType?: string[];
|
|
5116
|
+
/** Sports period filter: full, 1h, 2h, q1, ... */
|
|
5117
|
+
period?: string[];
|
|
5118
|
+
/** Sports prop-category filter: corners, goals, assists, ... */
|
|
5119
|
+
marketCategory?: string[];
|
|
5120
|
+
/** Sports section/tab grouping filter: game_lines, spreads, totals, player_props, ... */
|
|
5121
|
+
marketGroup?: string[];
|
|
5063
5122
|
/** Page size when using cursor pagination. Default 20. */
|
|
5064
5123
|
limit?: number;
|
|
5065
5124
|
/** Enable/disable the query. Default true. */
|
|
@@ -5068,6 +5127,9 @@ interface UseVenueMarketsOptions {
|
|
|
5068
5127
|
sortBy?: "volume" | "volume24hr" | "createdAt" | "yesPrice" | "updatedAt";
|
|
5069
5128
|
/** Sort direction: "asc" or "desc". */
|
|
5070
5129
|
sortDir?: "asc" | "desc";
|
|
5130
|
+
/** Sort surface. "list" makes axis/dates events sort by volume (matches the
|
|
5131
|
+
* tile top-3); omit or "detail" on the detail page to keep structured order. */
|
|
5132
|
+
context?: "list" | "detail";
|
|
5071
5133
|
}
|
|
5072
5134
|
/**
|
|
5073
5135
|
* Fetch venue markets with cursor-based pagination.
|
|
@@ -5580,4 +5642,4 @@ declare function useAppConfig(): UseAppConfigResult;
|
|
|
5580
5642
|
*/
|
|
5581
5643
|
declare function useCachedAppConfig(): UseAppConfigResult;
|
|
5582
5644
|
|
|
5583
|
-
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 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
|
|
5645
|
+
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 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 };
|