@agg-build/hooks 2.8.0 → 4.0.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.
@@ -11,7 +11,7 @@ import {
11
11
  useOnWithdrawalLifecycle,
12
12
  useSyncBalances,
13
13
  useWithdrawManaged
14
- } from "./chunk-3UEZQTMJ.mjs";
14
+ } from "./chunk-SC6X5TL4.mjs";
15
15
 
16
16
  // src/withdraw/use-withdraw-flow.ts
17
17
  import { useCallback, useEffect, useMemo, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __async,
3
3
  useAggClient
4
- } from "./chunk-3UEZQTMJ.mjs";
4
+ } from "./chunk-SC6X5TL4.mjs";
5
5
 
6
6
  // src/use-ramp-quotes.ts
7
7
  import { useMutation } from "@tanstack/react-query";
@@ -299,6 +299,28 @@ var enUsLabels = {
299
299
  saved: "Refill settings saved.",
300
300
  consent: "By enabling, you authorize AGG to move USDC between your managed wallets within these limits.",
301
301
  lastRefill: "Latest refill",
302
+ manageTitle: "Manage balances",
303
+ manageDescription: "Set a minimum balance and refill target for each venue. When a venue falls below your minimum, funds are automatically transferred from your balances on other venues to restore it to your refill target.",
304
+ noAutoRefill: "No auto-refill",
305
+ autoRefill: "Auto-refill",
306
+ minimumShortLabel: "Min",
307
+ refillToLabel: "Refill to",
308
+ unitLabel: "USDC",
309
+ resetAction: "Reset",
310
+ cancelAction: "Cancel",
311
+ saveChangesAction: "Save changes",
312
+ modalLoading: "Loading balances...",
313
+ modalEmptyTitle: "No supported networks",
314
+ modalEmptyDescription: "There are no supported networks to manage yet.",
315
+ modalLoadError: "Balances could not be loaded.",
316
+ requiredError: "Enter an amount.",
317
+ positiveError: "Enter an amount greater than 0.",
318
+ precisionError: "Use no more than 6 decimal places.",
319
+ relationshipError: "Refill to must be greater than or equal to Min.",
320
+ maximumError: (maximum) => `Enter an amount no greater than ${maximum} USDC.`,
321
+ createUnavailableError: "Auto-refill cannot be enabled for this network until refill limits are supported by the API.",
322
+ expandNetwork: (network) => `Expand ${network} balance settings`,
323
+ collapseNetwork: (network) => `Collapse ${network} balance settings`,
302
324
  statuses: {
303
325
  reserved: "Funds reserved",
304
326
  executing: "Refill in progress",
@@ -509,7 +531,8 @@ var enUsLabels = {
509
531
  activity: "Activity"
510
532
  },
511
533
  balance: {
512
- availableBalance: "Available Balance",
534
+ availableBalance: "Withdrawable Balance",
535
+ manage: "Manage",
513
536
  reservedForOpenOrders: (amount) => `${amount} reserved for open orders`,
514
537
  positionsValue: "Positions Value",
515
538
  kalshiBalance: "Kalshi Balance",
@@ -907,6 +930,10 @@ var enUsLabels = {
907
930
  limitOrderPlacedDescription: "Your limit order has been submitted.",
908
931
  orderSplitting: "Order Splitting",
909
932
  splitOrderDescription: "We split your order for the best price:",
933
+ maximizePayout: "Maximize payout",
934
+ maximizePayoutDescription: "We\u2019ll route your shares for the highest payout:",
935
+ venueInventory: (sharesLabel, priceLabel) => `${sharesLabel} \xB7 ${priceLabel}`,
936
+ insufficientVenueInventory: (sharesLabel, priceLabel) => `Only ${sharesLabel} \xB7 ${priceLabel}`,
910
937
  viewAllRoutes: (count) => `View all (${count})`,
911
938
  venueUnavailableInRegion: "Unavailable in your region",
912
939
  verified: "Verified",
@@ -1586,7 +1613,7 @@ function AggBalanceProvider({ children }) {
1586
1613
  (a, b) => a.localeCompare(b)
1587
1614
  );
1588
1615
  }, [managedBalances.positions]);
1589
- const balancesError = balancesQuery.error;
1616
+ const balancesError = managedBalancesData === void 0 ? balancesQuery.error : null;
1590
1617
  const isBalancesLoading = balancesQuery.isLoading;
1591
1618
  const refetchBalances = balancesQuery.refetch;
1592
1619
  const totalBalance = useMemo(() => {
@@ -1672,11 +1699,12 @@ function AggBalanceProvider({ children }) {
1672
1699
  }, [buildBalanceBreakdown]);
1673
1700
  const positionsBalanceTotal = useMemo(() => {
1674
1701
  const positions = managedBalances.positions;
1675
- return positions.reduce(
1702
+ const actualPositionsBalance = positions.reduce(
1676
1703
  (sum, position) => sum + (Number.isFinite(position.balance) ? position.balance : 0),
1677
1704
  0
1678
1705
  );
1679
- }, [managedBalances]);
1706
+ return actualPositionsBalance + reservedBalance;
1707
+ }, [managedBalances.positions, reservedBalance]);
1680
1708
  const kalshiVenueCash = (_a = managedBalances.venueCash) == null ? void 0 : _a.find((item) => item.venue === "kalshi");
1681
1709
  const kalshiBalance = kalshiVenueCash ? kalshiVenueCash.balanceCents / 100 : null;
1682
1710
  const kalshiPortfolioValue = (kalshiVenueCash == null ? void 0 : kalshiVenueCash.portfolioValueCents) == null ? null : kalshiVenueCash.portfolioValueCents / 100;
@@ -3964,23 +3992,12 @@ var AggProvider = ({ client, config, children }) => {
3964
3992
  return /* @__PURE__ */ jsx8(AggClientProvider, { client, children: /* @__PURE__ */ jsx8(AggUiProvider, { config, children: /* @__PURE__ */ jsx8(EventListStateProvider, { children: /* @__PURE__ */ jsx8(AggWebSocketProvider, { children: /* @__PURE__ */ jsx8(AggAuthProvider, { children: /* @__PURE__ */ jsx8(AggBalanceProvider, { children }) }) }) }) }) });
3965
3993
  };
3966
3994
 
3967
- // src/execution/use-quote-managed.ts
3968
- import { useMutation } from "@tanstack/react-query";
3969
- function useQuoteManaged(options) {
3970
- const client = useAggClient();
3971
- return useMutation({
3972
- mutationFn: (params) => client.quoteManaged(params),
3973
- onSuccess: options == null ? void 0 : options.onSuccess,
3974
- onError: options == null ? void 0 : options.onError
3975
- });
3976
- }
3977
-
3978
3995
  // src/execution/use-execute-managed.ts
3979
- import { useMutation as useMutation2, useQueryClient as useQueryClient3 } from "@tanstack/react-query";
3996
+ import { useMutation, useQueryClient as useQueryClient3 } from "@tanstack/react-query";
3980
3997
  function useExecuteManaged(options) {
3981
3998
  const client = useAggClient();
3982
3999
  const queryClient = useQueryClient3();
3983
- return useMutation2({
4000
+ return useMutation({
3984
4001
  mutationFn: (params) => client.executeManaged(params),
3985
4002
  onSuccess: (data) => {
3986
4003
  var _a;
@@ -3994,11 +4011,11 @@ function useExecuteManaged(options) {
3994
4011
  }
3995
4012
 
3996
4013
  // src/execution/use-place-limit-order.ts
3997
- import { useMutation as useMutation3, useQueryClient as useQueryClient4 } from "@tanstack/react-query";
4014
+ import { useMutation as useMutation2, useQueryClient as useQueryClient4 } from "@tanstack/react-query";
3998
4015
  function usePlaceLimitOrder(options) {
3999
4016
  const client = useAggClient();
4000
4017
  const queryClient = useQueryClient4();
4001
- return useMutation3({
4018
+ return useMutation2({
4002
4019
  mutationFn: (params) => client.placeLimitOrder(params),
4003
4020
  onSuccess: (data) => {
4004
4021
  var _a;
@@ -4013,11 +4030,11 @@ function usePlaceLimitOrder(options) {
4013
4030
  }
4014
4031
 
4015
4032
  // src/execution/use-cancel-managed-order.ts
4016
- import { useMutation as useMutation4, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
4033
+ import { useMutation as useMutation3, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
4017
4034
  function useCancelManagedOrder(options) {
4018
4035
  const client = useAggClient();
4019
4036
  const queryClient = useQueryClient5();
4020
- return useMutation4({
4037
+ return useMutation3({
4021
4038
  mutationFn: (orderId) => client.cancelManagedOrder(orderId),
4022
4039
  onSuccess: (data, orderId) => {
4023
4040
  var _a;
@@ -4036,11 +4053,11 @@ function useCancelManagedOrder(options) {
4036
4053
  }
4037
4054
 
4038
4055
  // src/execution/use-withdraw-managed.ts
4039
- import { useMutation as useMutation5, useQueryClient as useQueryClient6 } from "@tanstack/react-query";
4056
+ import { useMutation as useMutation4, useQueryClient as useQueryClient6 } from "@tanstack/react-query";
4040
4057
  function useWithdrawManaged(options) {
4041
4058
  const client = useAggClient();
4042
4059
  const queryClient = useQueryClient6();
4043
- return useMutation5({
4060
+ return useMutation4({
4044
4061
  mutationFn: (params) => client.withdrawManaged(params),
4045
4062
  onSuccess: (data) => {
4046
4063
  var _a;
@@ -4148,11 +4165,11 @@ function useDepositAddresses(options) {
4148
4165
  }
4149
4166
 
4150
4167
  // src/execution/use-sync-balances.ts
4151
- import { useMutation as useMutation6, useQueryClient as useQueryClient7 } from "@tanstack/react-query";
4168
+ import { useMutation as useMutation5, useQueryClient as useQueryClient7 } from "@tanstack/react-query";
4152
4169
  function useSyncBalances(options) {
4153
4170
  const client = useAggClient();
4154
4171
  const queryClient = useQueryClient7();
4155
- return useMutation6({
4172
+ return useMutation5({
4156
4173
  mutationFn: () => client.syncManagedBalances(),
4157
4174
  onSuccess: () => {
4158
4175
  var _a;
@@ -4645,7 +4662,7 @@ function useExecutionProgress({
4645
4662
  }
4646
4663
 
4647
4664
  // src/execution/use-balance-refill-policies.ts
4648
- import { useMutation as useMutation7, useQuery as useQuery5, useQueryClient as useQueryClient8 } from "@tanstack/react-query";
4665
+ import { useMutation as useMutation6, useQuery as useQuery5, useQueryClient as useQueryClient8 } from "@tanstack/react-query";
4649
4666
  function useBalanceRefillPolicies(options) {
4650
4667
  var _a, _b;
4651
4668
  const client = useAggClient();
@@ -4666,13 +4683,13 @@ function useBalanceRefillPolicies(options) {
4666
4683
  )) ? 5e3 : false;
4667
4684
  }
4668
4685
  });
4669
- const createPolicy = useMutation7({
4686
+ const createPolicy = useMutation6({
4670
4687
  mutationFn: (params) => client.createBalanceRefillPolicy(params),
4671
4688
  onSuccess: (policy) => {
4672
4689
  queryClient.setQueryData(queryKey, [policy]);
4673
4690
  }
4674
4691
  });
4675
- const updatePolicy = useMutation7({
4692
+ const updatePolicy = useMutation6({
4676
4693
  mutationFn: ({
4677
4694
  policyId,
4678
4695
  params
@@ -4730,7 +4747,7 @@ var computeClosedPositionTotals = (group) => {
4730
4747
  };
4731
4748
 
4732
4749
  // src/execution/use-redeem.ts
4733
- import { useMutation as useMutation8, useQueryClient as useQueryClient9 } from "@tanstack/react-query";
4750
+ import { useMutation as useMutation7, useQueryClient as useQueryClient9 } from "@tanstack/react-query";
4734
4751
  var RedeemRejectedError = class extends Error {
4735
4752
  constructor(message, response) {
4736
4753
  super(message);
@@ -4742,7 +4759,7 @@ var isLegRejected = (status) => status === "ineligible" || status === "rejected"
4742
4759
  var useRedeem = () => {
4743
4760
  const client = useAggClient();
4744
4761
  const queryClient = useQueryClient9();
4745
- return useMutation8({
4762
+ return useMutation7({
4746
4763
  mutationFn: (body) => __async(null, null, function* () {
4747
4764
  const response = yield client.redeem(body);
4748
4765
  if (response.results.length > 0 && response.results.every((r) => isLegRejected(r.status))) {
@@ -5007,7 +5024,6 @@ export {
5007
5024
  useEventTradingContext,
5008
5025
  AggUiProvider,
5009
5026
  AggProvider,
5010
- useQuoteManaged,
5011
5027
  useExecuteManaged,
5012
5028
  usePlaceLimitOrder,
5013
5029
  useCancelManagedOrder,
package/dist/deposit.js CHANGED
@@ -224,6 +224,28 @@ var enUsLabels = {
224
224
  saved: "Refill settings saved.",
225
225
  consent: "By enabling, you authorize AGG to move USDC between your managed wallets within these limits.",
226
226
  lastRefill: "Latest refill",
227
+ manageTitle: "Manage balances",
228
+ manageDescription: "Set a minimum balance and refill target for each venue. When a venue falls below your minimum, funds are automatically transferred from your balances on other venues to restore it to your refill target.",
229
+ noAutoRefill: "No auto-refill",
230
+ autoRefill: "Auto-refill",
231
+ minimumShortLabel: "Min",
232
+ refillToLabel: "Refill to",
233
+ unitLabel: "USDC",
234
+ resetAction: "Reset",
235
+ cancelAction: "Cancel",
236
+ saveChangesAction: "Save changes",
237
+ modalLoading: "Loading balances...",
238
+ modalEmptyTitle: "No supported networks",
239
+ modalEmptyDescription: "There are no supported networks to manage yet.",
240
+ modalLoadError: "Balances could not be loaded.",
241
+ requiredError: "Enter an amount.",
242
+ positiveError: "Enter an amount greater than 0.",
243
+ precisionError: "Use no more than 6 decimal places.",
244
+ relationshipError: "Refill to must be greater than or equal to Min.",
245
+ maximumError: (maximum) => `Enter an amount no greater than ${maximum} USDC.`,
246
+ createUnavailableError: "Auto-refill cannot be enabled for this network until refill limits are supported by the API.",
247
+ expandNetwork: (network) => `Expand ${network} balance settings`,
248
+ collapseNetwork: (network) => `Collapse ${network} balance settings`,
227
249
  statuses: {
228
250
  reserved: "Funds reserved",
229
251
  executing: "Refill in progress",
@@ -434,7 +456,8 @@ var enUsLabels = {
434
456
  activity: "Activity"
435
457
  },
436
458
  balance: {
437
- availableBalance: "Available Balance",
459
+ availableBalance: "Withdrawable Balance",
460
+ manage: "Manage",
438
461
  reservedForOpenOrders: (amount) => `${amount} reserved for open orders`,
439
462
  positionsValue: "Positions Value",
440
463
  kalshiBalance: "Kalshi Balance",
@@ -832,6 +855,10 @@ var enUsLabels = {
832
855
  limitOrderPlacedDescription: "Your limit order has been submitted.",
833
856
  orderSplitting: "Order Splitting",
834
857
  splitOrderDescription: "We split your order for the best price:",
858
+ maximizePayout: "Maximize payout",
859
+ maximizePayoutDescription: "We\u2019ll route your shares for the highest payout:",
860
+ venueInventory: (sharesLabel, priceLabel) => `${sharesLabel} \xB7 ${priceLabel}`,
861
+ insufficientVenueInventory: (sharesLabel, priceLabel) => `Only ${sharesLabel} \xB7 ${priceLabel}`,
835
862
  viewAllRoutes: (count) => `View all (${count})`,
836
863
  venueUnavailableInRegion: "Unavailable in your region",
837
864
  verified: "Verified",
package/dist/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-LOFGAX6T.mjs";
4
+ } from "./chunk-BR6NZSXN.mjs";
5
5
  import {
6
6
  __async,
7
7
  useAggAuthState,
@@ -11,7 +11,7 @@ import {
11
11
  useDepositAddresses,
12
12
  useOptionalAggClient,
13
13
  useSyncBalances
14
- } from "./chunk-3UEZQTMJ.mjs";
14
+ } from "./chunk-SC6X5TL4.mjs";
15
15
 
16
16
  // src/deposit/normalize-wallet-error.ts
17
17
  function normalizeWalletError(error, supportedChains) {
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  export { QueryClient, QueryClientProvider, useQueryClient } from '@tanstack/react-query';
4
4
  import * as _agg_build_sdk from '@agg-build/sdk';
5
- import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, QuoteManagedResponse, QuoteManagedParams, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, CreateBalanceRefillPolicyParams, UpdateBalanceRefillPolicyParams, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, Venue as Venue$1, VenueKeyStatus, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurrenceFilter, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } from '@agg-build/sdk';
5
+ import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, CreateBalanceRefillPolicyParams, UpdateBalanceRefillPolicyParams, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, Venue as Venue$1, VenueKeyStatus, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurrenceFilter, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } from '@agg-build/sdk';
6
6
  export { TurnstileChallengeError } from '@agg-build/sdk';
7
7
  import React, { ReactNode } from 'react';
8
8
  export { UseManagedBalancesOptions, UseWithdrawEstimateParams, UseWithdrawFlowOptions, UseWithdrawFlowResult, UseWithdrawManagedOptions, UseWithdrawPreviewParams, UseWithdrawalLifecycleResult, WithdrawFeeEstimate, WithdrawalLifecycleState, useManagedBalances, useWithdrawEstimate, useWithdrawFlow, useWithdrawManaged, useWithdrawPreview, useWithdrawalLifecycle } from './withdraw.mjs';
@@ -583,6 +583,28 @@ interface AggUiLabels {
583
583
  saved: string;
584
584
  consent: string;
585
585
  lastRefill: string;
586
+ manageTitle: string;
587
+ manageDescription: string;
588
+ noAutoRefill: string;
589
+ autoRefill: string;
590
+ minimumShortLabel: string;
591
+ refillToLabel: string;
592
+ unitLabel: string;
593
+ resetAction: string;
594
+ cancelAction: string;
595
+ saveChangesAction: string;
596
+ modalLoading: string;
597
+ modalEmptyTitle: string;
598
+ modalEmptyDescription: string;
599
+ modalLoadError: string;
600
+ requiredError: string;
601
+ positiveError: string;
602
+ precisionError: string;
603
+ relationshipError: string;
604
+ maximumError: (maximum: string) => string;
605
+ createUnavailableError: string;
606
+ expandNetwork: (network: string) => string;
607
+ collapseNetwork: (network: string) => string;
586
608
  statuses: {
587
609
  reserved: string;
588
610
  executing: string;
@@ -796,6 +818,7 @@ interface AggUiLabels {
796
818
  };
797
819
  balance: {
798
820
  availableBalance: string;
821
+ manage: string;
799
822
  reservedForOpenOrders: (amount: string) => string;
800
823
  positionsValue: string;
801
824
  kalshiBalance: string;
@@ -1228,6 +1251,10 @@ interface AggUiLabels {
1228
1251
  limitOrderPlacedDescription: string;
1229
1252
  orderSplitting: string;
1230
1253
  splitOrderDescription: string;
1254
+ maximizePayout: string;
1255
+ maximizePayoutDescription: string;
1256
+ venueInventory: (sharesLabel: string, priceLabel: string) => string;
1257
+ insufficientVenueInventory: (sharesLabel: string, priceLabel: string) => string;
1231
1258
  viewAllRoutes: (count: number) => string;
1232
1259
  venueUnavailableInRegion: string;
1233
1260
  verified: string;
@@ -1804,12 +1831,13 @@ interface AggBalanceContextValue {
1804
1831
  availableBalanceBreakdown: AggBalanceBreakdownItem[];
1805
1832
  /** Raw response from GET /execution/balances for direct consumer use. */
1806
1833
  managedBalances: UnifiedBalanceResponse;
1807
- /** Total cash, including funds reserved for open orders. */
1834
+ /** Total cash, including reserved or otherwise held funds. */
1808
1835
  totalBalance: number;
1809
1836
  /** Cash immediately available for a new trade or withdrawal. */
1810
1837
  availableBalance: number;
1811
- /** Cash currently reserved for pending and open orders. */
1838
+ /** Cash currently held by active execution reservations. */
1812
1839
  reservedBalance: number;
1840
+ /** Marked position value plus reserved cash presented as open-order exposure. */
1813
1841
  positionsBalanceTotal: number;
1814
1842
  kalshiBalance: number | null;
1815
1843
  kalshiPortfolioValue: number | null;
@@ -2080,16 +2108,6 @@ declare const executionKeys: {
2080
2108
  balanceRefillPolicies: () => readonly ["execution", "balance-refill-policies"];
2081
2109
  };
2082
2110
 
2083
- interface UseQuoteManagedOptions {
2084
- onSuccess?: (data: QuoteManagedResponse) => void;
2085
- onError?: (error: Error) => void;
2086
- }
2087
- /**
2088
- * Mutation hook for requesting a managed execution quote.
2089
- * Returns a quote with execution steps, splits, and a 2-minute TTL.
2090
- */
2091
- declare function useQuoteManaged(options?: UseQuoteManagedOptions): _tanstack_react_query.UseMutationResult<QuoteManagedResponse, Error, QuoteManagedParams, unknown>;
2092
-
2093
2111
  interface UseExecuteManagedOptions {
2094
2112
  onSuccess?: (data: ExecuteManagedResponse) => void;
2095
2113
  onError?: (error: Error) => void;
@@ -5654,7 +5672,7 @@ interface UseVenueMarketsOptions {
5654
5672
  /** Enable/disable the query. Default true. */
5655
5673
  enabled?: boolean;
5656
5674
  /** Sort by this field. */
5657
- sortBy?: "volume" | "volume24hr" | "createdAt" | "yesPrice" | "updatedAt";
5675
+ sortBy?: "volume" | "volume24hr" | "createdAt" | "updatedAt";
5658
5676
  /** Sort direction: "asc" or "desc". */
5659
5677
  sortDir?: "asc" | "desc";
5660
5678
  /** Sort surface. "list" makes axis/dates events sort by volume (matches the
@@ -6220,4 +6238,4 @@ declare function useAppConfig(): UseAppConfigResult;
6220
6238
  */
6221
6239
  declare function useCachedAppConfig(): UseAppConfigResult;
6222
6240
 
6223
- 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 LimitOrderVenueQuoteRequest, type LimitOrderVenueQuoteResult, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCancelManagedOrderOptions, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLimitOrderVenueQuotesOptions, type UseLimitOrderVenueQuotesResult, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePlaceLimitOrderOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseVenueSellQuotesOptions, type UseVenueSellQuotesResult, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type VenueSellQuoteRequest, type VenueSellQuoteResult, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useBalanceRefillPolicies, useCachedAppConfig, useCancelManagedOrder, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLimitOrderVenueQuotes, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePlaceLimitOrder, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueKeyStatus, useVenueMarketMidpoints, useVenueMarkets, useVenueSellQuotes, useViewportMidpoints, useVisibleIds, userActivityQueryKeys, venueKeyQueryKeys };
6241
+ 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 LimitOrderVenueQuoteRequest, type LimitOrderVenueQuoteResult, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCancelManagedOrderOptions, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLimitOrderVenueQuotesOptions, type UseLimitOrderVenueQuotesResult, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePlaceLimitOrderOptions, type UsePositionsOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseVenueSellQuotesOptions, type UseVenueSellQuotesResult, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type VenueSellQuoteRequest, type VenueSellQuoteResult, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useBalanceRefillPolicies, useCachedAppConfig, useCancelManagedOrder, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLimitOrderVenueQuotes, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePlaceLimitOrder, usePositions, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueKeyStatus, useVenueMarketMidpoints, useVenueMarkets, useVenueSellQuotes, useViewportMidpoints, useVisibleIds, userActivityQueryKeys, venueKeyQueryKeys };
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  export { QueryClient, QueryClientProvider, useQueryClient } from '@tanstack/react-query';
4
4
  import * as _agg_build_sdk from '@agg-build/sdk';
5
- import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, QuoteManagedResponse, QuoteManagedParams, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, CreateBalanceRefillPolicyParams, UpdateBalanceRefillPolicyParams, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, Venue as Venue$1, VenueKeyStatus, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurrenceFilter, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } from '@agg-build/sdk';
5
+ import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, CreateBalanceRefillPolicyParams, UpdateBalanceRefillPolicyParams, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, Venue as Venue$1, VenueKeyStatus, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurrenceFilter, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } from '@agg-build/sdk';
6
6
  export { TurnstileChallengeError } from '@agg-build/sdk';
7
7
  import React, { ReactNode } from 'react';
8
8
  export { UseManagedBalancesOptions, UseWithdrawEstimateParams, UseWithdrawFlowOptions, UseWithdrawFlowResult, UseWithdrawManagedOptions, UseWithdrawPreviewParams, UseWithdrawalLifecycleResult, WithdrawFeeEstimate, WithdrawalLifecycleState, useManagedBalances, useWithdrawEstimate, useWithdrawFlow, useWithdrawManaged, useWithdrawPreview, useWithdrawalLifecycle } from './withdraw.js';
@@ -583,6 +583,28 @@ interface AggUiLabels {
583
583
  saved: string;
584
584
  consent: string;
585
585
  lastRefill: string;
586
+ manageTitle: string;
587
+ manageDescription: string;
588
+ noAutoRefill: string;
589
+ autoRefill: string;
590
+ minimumShortLabel: string;
591
+ refillToLabel: string;
592
+ unitLabel: string;
593
+ resetAction: string;
594
+ cancelAction: string;
595
+ saveChangesAction: string;
596
+ modalLoading: string;
597
+ modalEmptyTitle: string;
598
+ modalEmptyDescription: string;
599
+ modalLoadError: string;
600
+ requiredError: string;
601
+ positiveError: string;
602
+ precisionError: string;
603
+ relationshipError: string;
604
+ maximumError: (maximum: string) => string;
605
+ createUnavailableError: string;
606
+ expandNetwork: (network: string) => string;
607
+ collapseNetwork: (network: string) => string;
586
608
  statuses: {
587
609
  reserved: string;
588
610
  executing: string;
@@ -796,6 +818,7 @@ interface AggUiLabels {
796
818
  };
797
819
  balance: {
798
820
  availableBalance: string;
821
+ manage: string;
799
822
  reservedForOpenOrders: (amount: string) => string;
800
823
  positionsValue: string;
801
824
  kalshiBalance: string;
@@ -1228,6 +1251,10 @@ interface AggUiLabels {
1228
1251
  limitOrderPlacedDescription: string;
1229
1252
  orderSplitting: string;
1230
1253
  splitOrderDescription: string;
1254
+ maximizePayout: string;
1255
+ maximizePayoutDescription: string;
1256
+ venueInventory: (sharesLabel: string, priceLabel: string) => string;
1257
+ insufficientVenueInventory: (sharesLabel: string, priceLabel: string) => string;
1231
1258
  viewAllRoutes: (count: number) => string;
1232
1259
  venueUnavailableInRegion: string;
1233
1260
  verified: string;
@@ -1804,12 +1831,13 @@ interface AggBalanceContextValue {
1804
1831
  availableBalanceBreakdown: AggBalanceBreakdownItem[];
1805
1832
  /** Raw response from GET /execution/balances for direct consumer use. */
1806
1833
  managedBalances: UnifiedBalanceResponse;
1807
- /** Total cash, including funds reserved for open orders. */
1834
+ /** Total cash, including reserved or otherwise held funds. */
1808
1835
  totalBalance: number;
1809
1836
  /** Cash immediately available for a new trade or withdrawal. */
1810
1837
  availableBalance: number;
1811
- /** Cash currently reserved for pending and open orders. */
1838
+ /** Cash currently held by active execution reservations. */
1812
1839
  reservedBalance: number;
1840
+ /** Marked position value plus reserved cash presented as open-order exposure. */
1813
1841
  positionsBalanceTotal: number;
1814
1842
  kalshiBalance: number | null;
1815
1843
  kalshiPortfolioValue: number | null;
@@ -2080,16 +2108,6 @@ declare const executionKeys: {
2080
2108
  balanceRefillPolicies: () => readonly ["execution", "balance-refill-policies"];
2081
2109
  };
2082
2110
 
2083
- interface UseQuoteManagedOptions {
2084
- onSuccess?: (data: QuoteManagedResponse) => void;
2085
- onError?: (error: Error) => void;
2086
- }
2087
- /**
2088
- * Mutation hook for requesting a managed execution quote.
2089
- * Returns a quote with execution steps, splits, and a 2-minute TTL.
2090
- */
2091
- declare function useQuoteManaged(options?: UseQuoteManagedOptions): _tanstack_react_query.UseMutationResult<QuoteManagedResponse, Error, QuoteManagedParams, unknown>;
2092
-
2093
2111
  interface UseExecuteManagedOptions {
2094
2112
  onSuccess?: (data: ExecuteManagedResponse) => void;
2095
2113
  onError?: (error: Error) => void;
@@ -5654,7 +5672,7 @@ interface UseVenueMarketsOptions {
5654
5672
  /** Enable/disable the query. Default true. */
5655
5673
  enabled?: boolean;
5656
5674
  /** Sort by this field. */
5657
- sortBy?: "volume" | "volume24hr" | "createdAt" | "yesPrice" | "updatedAt";
5675
+ sortBy?: "volume" | "volume24hr" | "createdAt" | "updatedAt";
5658
5676
  /** Sort direction: "asc" or "desc". */
5659
5677
  sortDir?: "asc" | "desc";
5660
5678
  /** Sort surface. "list" makes axis/dates events sort by volume (matches the
@@ -6220,4 +6238,4 @@ declare function useAppConfig(): UseAppConfigResult;
6220
6238
  */
6221
6239
  declare function useCachedAppConfig(): UseAppConfigResult;
6222
6240
 
6223
- 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 LimitOrderVenueQuoteRequest, type LimitOrderVenueQuoteResult, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCancelManagedOrderOptions, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLimitOrderVenueQuotesOptions, type UseLimitOrderVenueQuotesResult, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePlaceLimitOrderOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseVenueSellQuotesOptions, type UseVenueSellQuotesResult, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type VenueSellQuoteRequest, type VenueSellQuoteResult, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useBalanceRefillPolicies, useCachedAppConfig, useCancelManagedOrder, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLimitOrderVenueQuotes, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePlaceLimitOrder, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueKeyStatus, useVenueMarketMidpoints, useVenueMarkets, useVenueSellQuotes, useViewportMidpoints, useVisibleIds, userActivityQueryKeys, venueKeyQueryKeys };
6241
+ 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 LimitOrderVenueQuoteRequest, type LimitOrderVenueQuoteResult, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCancelManagedOrderOptions, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLimitOrderVenueQuotesOptions, type UseLimitOrderVenueQuotesResult, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePlaceLimitOrderOptions, type UsePositionsOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseVenueSellQuotesOptions, type UseVenueSellQuotesResult, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type VenueSellQuoteRequest, type VenueSellQuoteResult, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useBalanceRefillPolicies, useCachedAppConfig, useCancelManagedOrder, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLimitOrderVenueQuotes, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePlaceLimitOrder, usePositions, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueKeyStatus, useVenueMarketMidpoints, useVenueMarkets, useVenueSellQuotes, useViewportMidpoints, useVisibleIds, userActivityQueryKeys, venueKeyQueryKeys };