@agg-build/hooks 2.4.4 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  export { QueryClient, QueryClientProvider, useQueryClient } from '@tanstack/react-query';
4
4
  import * as _agg_build_sdk from '@agg-build/sdk';
5
- import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, QuoteManagedResponse, QuoteManagedParams, ExecuteManagedResponse, ExecuteManagedParams, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurrenceFilter, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } from '@agg-build/sdk';
5
+ import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, QuoteManagedResponse, QuoteManagedParams, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurrenceFilter, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } from '@agg-build/sdk';
6
6
  export { TurnstileChallengeError } from '@agg-build/sdk';
7
7
  import React, { ReactNode } from 'react';
8
8
  export { UseManagedBalancesOptions, UseWithdrawEstimateParams, UseWithdrawFlowOptions, UseWithdrawFlowResult, UseWithdrawManagedOptions, UseWithdrawPreviewParams, UseWithdrawalLifecycleResult, WithdrawFeeEstimate, WithdrawalLifecycleState, useManagedBalances, useWithdrawEstimate, useWithdrawFlow, useWithdrawManaged, useWithdrawPreview, useWithdrawalLifecycle } from './withdraw.mjs';
@@ -78,6 +78,14 @@ declare enum OrderStatus {
78
78
  expired = "expired",
79
79
  cancelled = "cancelled"
80
80
  }
81
+ declare enum TimeInForce {
82
+ GTC = "GTC",
83
+ GTD = "GTD",
84
+ FOK = "FOK",
85
+ FAK = "FAK",
86
+ IOC = "IOC",
87
+ ALO = "ALO"
88
+ }
81
89
 
82
90
  /**
83
91
  * Standalone type definitions — no Zod dependency.
@@ -108,6 +116,17 @@ type UserProfile = {
108
116
  }[] | null;
109
117
  };
110
118
  type PriceSource = "orderbook" | "cached" | "entry" | "settled";
119
+ /**
120
+ * Health of the orderbook a position was marked against — passthrough of
121
+ * the engine's `BookQuality` verdict. `priceSource` says where a mark came
122
+ * from; this says whether that source was trustworthy. Anything other than
123
+ * `healthy` is a low-confidence mark.
124
+ *
125
+ * Read `priceSource` first — this only qualifies book-derived marks. A
126
+ * `settled` position is exact (1/0) and consults no book, so it reports
127
+ * `empty`; that is not a confidence signal.
128
+ */
129
+ type BookQuality = "healthy" | "wide_spread" | "bid_only" | "ask_only" | "endpoint_stub" | "crossed" | "empty";
111
130
  type UnifiedBalanceResponse = {
112
131
  cash: {
113
132
  tokenSymbol: string;
@@ -161,6 +180,20 @@ type OrderListItem = {
161
180
  venue: Venue;
162
181
  side: string;
163
182
  amountRaw: string;
183
+ orderType?: "market" | "limit" | undefined;
184
+ limitPriceRaw: string | null;
185
+ limitSizeRaw?: string | null | undefined;
186
+ timeInForce: TimeInForce | null;
187
+ postOnly?: boolean | undefined;
188
+ expiresAt: Date | string | null;
189
+ reservedCostRaw?: string | null | undefined;
190
+ filledSizeRaw?: string | null | undefined;
191
+ filledCostRaw?: string | null | undefined;
192
+ remainingSizeRaw?: string | null | undefined;
193
+ averageFillPriceRaw?: string | null | undefined;
194
+ venueOrderId?: string | null | undefined;
195
+ cancelRequestedAt?: Date | string | null | undefined;
196
+ cancelledAt?: Date | string | null | undefined;
164
197
  slippageBps: number | null;
165
198
  quotedPriceRaw: string | null;
166
199
  quotedCostRaw: string | null;
@@ -223,6 +256,7 @@ type PositionGroup = {
223
256
  totalValue: number;
224
257
  unrealizedPnlPercent: number;
225
258
  priceSource: PriceSource;
259
+ bookQuality: BookQuality;
226
260
  }[];
227
261
  };
228
262
  targetMarketId: string;
@@ -290,6 +324,9 @@ type VenueMarket = {
290
324
  externalIdentifier: string;
291
325
  status?: MarketStatus | undefined;
292
326
  conditionId?: string | null | undefined;
327
+ description?: string | null | undefined;
328
+ rulesPrimary?: string | null | undefined;
329
+ rulesSecondary?: string | null | undefined;
293
330
  venueMarketOutcomes?: {
294
331
  id: string;
295
332
  /** REMOVED — no longer returned; use GET /midpoints for live prices. */
@@ -718,8 +755,14 @@ interface AggUiLabels {
718
755
  categoryTabsAria: string;
719
756
  };
720
757
  userProfile: {
758
+ tabs: {
759
+ positions: string;
760
+ openOrders: string;
761
+ activity: string;
762
+ };
721
763
  balance: {
722
764
  availableBalance: string;
765
+ reservedForOpenOrders: (amount: string) => string;
723
766
  balanceByNetwork: string;
724
767
  paperModeNetwork: string;
725
768
  paperModeWarning: string;
@@ -806,6 +849,25 @@ interface AggUiLabels {
806
849
  nowPrefix: string;
807
850
  finalPrefix: string;
808
851
  };
852
+ openOrders: {
853
+ marketHeader: string;
854
+ limitPriceHeader: string;
855
+ filledHeader: string;
856
+ totalHeader: string;
857
+ filledShort: string;
858
+ totalShort: string;
859
+ expirationHeader: string;
860
+ goodTilCanceled: string;
861
+ expired: string;
862
+ cancel: string;
863
+ cancelOrderAria: (orderId: string) => string;
864
+ loading: string;
865
+ loadingMore: string;
866
+ errorTitle: string;
867
+ errorDescription: string;
868
+ emptyTitle: string;
869
+ emptyDescription: string;
870
+ };
809
871
  };
810
872
  eventList: {
811
873
  matchedTab: string;
@@ -946,6 +1008,7 @@ interface AggUiLabels {
946
1008
  trading: {
947
1009
  settlementSection: string;
948
1010
  settlementDifferencesTitle: string;
1011
+ settlementFullRulesTitle: string;
949
1012
  settlementCriticalDifferenceLabel: string;
950
1013
  settlementValueUnavailable: string;
951
1014
  settlementLoading: string;
@@ -996,6 +1059,7 @@ interface AggUiLabels {
996
1059
  orderDisabledNoOutcome: string;
997
1060
  orderDisabledNoEvent: string;
998
1061
  insufficientBalance: string;
1062
+ lowLiquidityWarning: string;
999
1063
  refreshQuote: string;
1000
1064
  confirmOrder: string;
1001
1065
  withdrawSubmitted: string;
@@ -1084,6 +1148,29 @@ interface AggUiLabels {
1084
1148
  kycSuccessDone: string;
1085
1149
  outcome: (label: string) => string;
1086
1150
  smartRouting: string;
1151
+ orderTypeMarket: string;
1152
+ orderTypeLimit: string;
1153
+ orderTypeAria: string;
1154
+ limitPrice: string;
1155
+ limitPriceInputAria: string;
1156
+ limitPriceInvalid: string;
1157
+ limitPriceDecreaseAria: string;
1158
+ limitPriceIncreaseAria: string;
1159
+ expiration: string;
1160
+ expirationGoodTilCanceled: string;
1161
+ expirationFiveMinutes: string;
1162
+ expirationOneHour: string;
1163
+ expirationEndOfDay: string;
1164
+ expirationCustom: string;
1165
+ expirationMenuAria: string;
1166
+ expirationOptions: string;
1167
+ expirationDateAria: string;
1168
+ expirationStartTime: string;
1169
+ expirationStartTimeHint: string;
1170
+ expirationCancel: string;
1171
+ expirationApply: string;
1172
+ limitOrderPlacedTitle: string;
1173
+ limitOrderPlacedDescription: string;
1087
1174
  orderSplitting: string;
1088
1175
  splitOrderDescription: string;
1089
1176
  viewAllRoutes: (count: number) => string;
@@ -1339,6 +1426,12 @@ interface AggUiLabels {
1339
1426
  amountLabel?: string;
1340
1427
  priceLabel?: string;
1341
1428
  }) => string;
1429
+ cancelledTitle: string;
1430
+ cancelledMessage: string;
1431
+ cancelPendingTitle: string;
1432
+ cancelPendingMessage: string;
1433
+ cancelFailedTitle: string;
1434
+ cancelFailedMessage: (errorReason?: string) => string;
1342
1435
  failedTitle: string;
1343
1436
  failedMessage: (errorReason?: string) => string;
1344
1437
  };
@@ -1426,6 +1519,8 @@ interface AggUiFeatureFlagsConfig {
1426
1519
  * for ad-hoc partner-fired toasts).
1427
1520
  */
1428
1521
  enableNotifications: boolean;
1522
+ /** Enable creating limit orders in trading surfaces. Defaults to `false`. */
1523
+ showLimitOrders: boolean;
1429
1524
  /**
1430
1525
  * Enable the experimental sports event-details view. When `true` and the
1431
1526
  * event's `structureType === "sport"`, the event page renders the sports
@@ -1630,9 +1725,16 @@ interface AggAuthContextValue {
1630
1725
  }
1631
1726
  interface AggBalanceContextValue {
1632
1727
  balanceBreakdown: AggBalanceBreakdownItem[];
1728
+ /** Per-chain spendable cash after active execution reservations. */
1729
+ availableBalanceBreakdown: AggBalanceBreakdownItem[];
1633
1730
  /** Raw response from GET /execution/balances for direct consumer use. */
1634
1731
  managedBalances: UnifiedBalanceResponse;
1732
+ /** Total cash, including funds reserved for open orders. */
1635
1733
  totalBalance: number;
1734
+ /** Cash immediately available for a new trade or withdrawal. */
1735
+ availableBalance: number;
1736
+ /** Cash currently reserved for pending and open orders. */
1737
+ reservedBalance: number;
1636
1738
  positionsBalanceTotal: number;
1637
1739
  connectedVenues: Venue[];
1638
1740
  isLoading: boolean;
@@ -1920,6 +2022,18 @@ interface UseExecuteManagedOptions {
1920
2022
  */
1921
2023
  declare function useExecuteManaged(options?: UseExecuteManagedOptions): _tanstack_react_query.UseMutationResult<ExecuteManagedResponse, Error, ExecuteManagedParams, unknown>;
1922
2024
 
2025
+ interface UsePlaceLimitOrderOptions {
2026
+ onSuccess?: (data: PlaceLimitOrderResponse) => void;
2027
+ onError?: (error: Error) => void;
2028
+ }
2029
+ declare function usePlaceLimitOrder(options?: UsePlaceLimitOrderOptions): _tanstack_react_query.UseMutationResult<PlaceLimitOrderResponse, Error, PlaceLimitOrderParams, unknown>;
2030
+
2031
+ interface UseCancelManagedOrderOptions {
2032
+ onSuccess?: (data: CancelManagedExecutionResponse, orderId: string) => void;
2033
+ onError?: (error: Error, orderId: string) => void;
2034
+ }
2035
+ declare function useCancelManagedOrder(options?: UseCancelManagedOrderOptions): _tanstack_react_query.UseMutationResult<CancelManagedExecutionResponse, Error, string, unknown>;
2036
+
1923
2037
  interface UsePositionsOptions extends GetPositionsParams {
1924
2038
  enabled?: boolean;
1925
2039
  }
@@ -2647,7 +2761,9 @@ declare function useCategoryChildren(options?: UseCategoryChildrenOptions): {
2647
2761
 
2648
2762
  declare function useDebouncedValue<T>(value: T, delay: number): T;
2649
2763
 
2650
- interface UseExecutionOrdersOptions extends Omit<GetOrdersQuery, "cursor"> {
2764
+ type ExecutionOrderStatusInput = NonNullable<GetOrdersQuery["status"]> | `${NonNullable<GetOrdersQuery["status"]>}`;
2765
+ interface UseExecutionOrdersOptions extends Omit<GetOrdersQuery, "cursor" | "status"> {
2766
+ status?: ExecutionOrderStatusInput;
2651
2767
  enabled?: boolean;
2652
2768
  mode?: "live" | "paper";
2653
2769
  refetchIntervalMs?: number | false;
@@ -5723,4 +5839,4 @@ declare function useAppConfig(): UseAppConfigResult;
5723
5839
  */
5724
5840
  declare function useCachedAppConfig(): UseAppConfigResult;
5725
5841
 
5726
- export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
5842
+ export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCancelManagedOrderOptions, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePlaceLimitOrderOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type 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, useCancelManagedOrder, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePlaceLimitOrder, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
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, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurrenceFilter, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } from '@agg-build/sdk';
5
+ import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, QuoteManagedResponse, QuoteManagedParams, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, 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';
@@ -78,6 +78,14 @@ declare enum OrderStatus {
78
78
  expired = "expired",
79
79
  cancelled = "cancelled"
80
80
  }
81
+ declare enum TimeInForce {
82
+ GTC = "GTC",
83
+ GTD = "GTD",
84
+ FOK = "FOK",
85
+ FAK = "FAK",
86
+ IOC = "IOC",
87
+ ALO = "ALO"
88
+ }
81
89
 
82
90
  /**
83
91
  * Standalone type definitions — no Zod dependency.
@@ -108,6 +116,17 @@ type UserProfile = {
108
116
  }[] | null;
109
117
  };
110
118
  type PriceSource = "orderbook" | "cached" | "entry" | "settled";
119
+ /**
120
+ * Health of the orderbook a position was marked against — passthrough of
121
+ * the engine's `BookQuality` verdict. `priceSource` says where a mark came
122
+ * from; this says whether that source was trustworthy. Anything other than
123
+ * `healthy` is a low-confidence mark.
124
+ *
125
+ * Read `priceSource` first — this only qualifies book-derived marks. A
126
+ * `settled` position is exact (1/0) and consults no book, so it reports
127
+ * `empty`; that is not a confidence signal.
128
+ */
129
+ type BookQuality = "healthy" | "wide_spread" | "bid_only" | "ask_only" | "endpoint_stub" | "crossed" | "empty";
111
130
  type UnifiedBalanceResponse = {
112
131
  cash: {
113
132
  tokenSymbol: string;
@@ -161,6 +180,20 @@ type OrderListItem = {
161
180
  venue: Venue;
162
181
  side: string;
163
182
  amountRaw: string;
183
+ orderType?: "market" | "limit" | undefined;
184
+ limitPriceRaw: string | null;
185
+ limitSizeRaw?: string | null | undefined;
186
+ timeInForce: TimeInForce | null;
187
+ postOnly?: boolean | undefined;
188
+ expiresAt: Date | string | null;
189
+ reservedCostRaw?: string | null | undefined;
190
+ filledSizeRaw?: string | null | undefined;
191
+ filledCostRaw?: string | null | undefined;
192
+ remainingSizeRaw?: string | null | undefined;
193
+ averageFillPriceRaw?: string | null | undefined;
194
+ venueOrderId?: string | null | undefined;
195
+ cancelRequestedAt?: Date | string | null | undefined;
196
+ cancelledAt?: Date | string | null | undefined;
164
197
  slippageBps: number | null;
165
198
  quotedPriceRaw: string | null;
166
199
  quotedCostRaw: string | null;
@@ -223,6 +256,7 @@ type PositionGroup = {
223
256
  totalValue: number;
224
257
  unrealizedPnlPercent: number;
225
258
  priceSource: PriceSource;
259
+ bookQuality: BookQuality;
226
260
  }[];
227
261
  };
228
262
  targetMarketId: string;
@@ -290,6 +324,9 @@ type VenueMarket = {
290
324
  externalIdentifier: string;
291
325
  status?: MarketStatus | undefined;
292
326
  conditionId?: string | null | undefined;
327
+ description?: string | null | undefined;
328
+ rulesPrimary?: string | null | undefined;
329
+ rulesSecondary?: string | null | undefined;
293
330
  venueMarketOutcomes?: {
294
331
  id: string;
295
332
  /** REMOVED — no longer returned; use GET /midpoints for live prices. */
@@ -718,8 +755,14 @@ interface AggUiLabels {
718
755
  categoryTabsAria: string;
719
756
  };
720
757
  userProfile: {
758
+ tabs: {
759
+ positions: string;
760
+ openOrders: string;
761
+ activity: string;
762
+ };
721
763
  balance: {
722
764
  availableBalance: string;
765
+ reservedForOpenOrders: (amount: string) => string;
723
766
  balanceByNetwork: string;
724
767
  paperModeNetwork: string;
725
768
  paperModeWarning: string;
@@ -806,6 +849,25 @@ interface AggUiLabels {
806
849
  nowPrefix: string;
807
850
  finalPrefix: string;
808
851
  };
852
+ openOrders: {
853
+ marketHeader: string;
854
+ limitPriceHeader: string;
855
+ filledHeader: string;
856
+ totalHeader: string;
857
+ filledShort: string;
858
+ totalShort: string;
859
+ expirationHeader: string;
860
+ goodTilCanceled: string;
861
+ expired: string;
862
+ cancel: string;
863
+ cancelOrderAria: (orderId: string) => string;
864
+ loading: string;
865
+ loadingMore: string;
866
+ errorTitle: string;
867
+ errorDescription: string;
868
+ emptyTitle: string;
869
+ emptyDescription: string;
870
+ };
809
871
  };
810
872
  eventList: {
811
873
  matchedTab: string;
@@ -946,6 +1008,7 @@ interface AggUiLabels {
946
1008
  trading: {
947
1009
  settlementSection: string;
948
1010
  settlementDifferencesTitle: string;
1011
+ settlementFullRulesTitle: string;
949
1012
  settlementCriticalDifferenceLabel: string;
950
1013
  settlementValueUnavailable: string;
951
1014
  settlementLoading: string;
@@ -996,6 +1059,7 @@ interface AggUiLabels {
996
1059
  orderDisabledNoOutcome: string;
997
1060
  orderDisabledNoEvent: string;
998
1061
  insufficientBalance: string;
1062
+ lowLiquidityWarning: string;
999
1063
  refreshQuote: string;
1000
1064
  confirmOrder: string;
1001
1065
  withdrawSubmitted: string;
@@ -1084,6 +1148,29 @@ interface AggUiLabels {
1084
1148
  kycSuccessDone: string;
1085
1149
  outcome: (label: string) => string;
1086
1150
  smartRouting: string;
1151
+ orderTypeMarket: string;
1152
+ orderTypeLimit: string;
1153
+ orderTypeAria: string;
1154
+ limitPrice: string;
1155
+ limitPriceInputAria: string;
1156
+ limitPriceInvalid: string;
1157
+ limitPriceDecreaseAria: string;
1158
+ limitPriceIncreaseAria: string;
1159
+ expiration: string;
1160
+ expirationGoodTilCanceled: string;
1161
+ expirationFiveMinutes: string;
1162
+ expirationOneHour: string;
1163
+ expirationEndOfDay: string;
1164
+ expirationCustom: string;
1165
+ expirationMenuAria: string;
1166
+ expirationOptions: string;
1167
+ expirationDateAria: string;
1168
+ expirationStartTime: string;
1169
+ expirationStartTimeHint: string;
1170
+ expirationCancel: string;
1171
+ expirationApply: string;
1172
+ limitOrderPlacedTitle: string;
1173
+ limitOrderPlacedDescription: string;
1087
1174
  orderSplitting: string;
1088
1175
  splitOrderDescription: string;
1089
1176
  viewAllRoutes: (count: number) => string;
@@ -1339,6 +1426,12 @@ interface AggUiLabels {
1339
1426
  amountLabel?: string;
1340
1427
  priceLabel?: string;
1341
1428
  }) => string;
1429
+ cancelledTitle: string;
1430
+ cancelledMessage: string;
1431
+ cancelPendingTitle: string;
1432
+ cancelPendingMessage: string;
1433
+ cancelFailedTitle: string;
1434
+ cancelFailedMessage: (errorReason?: string) => string;
1342
1435
  failedTitle: string;
1343
1436
  failedMessage: (errorReason?: string) => string;
1344
1437
  };
@@ -1426,6 +1519,8 @@ interface AggUiFeatureFlagsConfig {
1426
1519
  * for ad-hoc partner-fired toasts).
1427
1520
  */
1428
1521
  enableNotifications: boolean;
1522
+ /** Enable creating limit orders in trading surfaces. Defaults to `false`. */
1523
+ showLimitOrders: boolean;
1429
1524
  /**
1430
1525
  * Enable the experimental sports event-details view. When `true` and the
1431
1526
  * event's `structureType === "sport"`, the event page renders the sports
@@ -1630,9 +1725,16 @@ interface AggAuthContextValue {
1630
1725
  }
1631
1726
  interface AggBalanceContextValue {
1632
1727
  balanceBreakdown: AggBalanceBreakdownItem[];
1728
+ /** Per-chain spendable cash after active execution reservations. */
1729
+ availableBalanceBreakdown: AggBalanceBreakdownItem[];
1633
1730
  /** Raw response from GET /execution/balances for direct consumer use. */
1634
1731
  managedBalances: UnifiedBalanceResponse;
1732
+ /** Total cash, including funds reserved for open orders. */
1635
1733
  totalBalance: number;
1734
+ /** Cash immediately available for a new trade or withdrawal. */
1735
+ availableBalance: number;
1736
+ /** Cash currently reserved for pending and open orders. */
1737
+ reservedBalance: number;
1636
1738
  positionsBalanceTotal: number;
1637
1739
  connectedVenues: Venue[];
1638
1740
  isLoading: boolean;
@@ -1920,6 +2022,18 @@ interface UseExecuteManagedOptions {
1920
2022
  */
1921
2023
  declare function useExecuteManaged(options?: UseExecuteManagedOptions): _tanstack_react_query.UseMutationResult<ExecuteManagedResponse, Error, ExecuteManagedParams, unknown>;
1922
2024
 
2025
+ interface UsePlaceLimitOrderOptions {
2026
+ onSuccess?: (data: PlaceLimitOrderResponse) => void;
2027
+ onError?: (error: Error) => void;
2028
+ }
2029
+ declare function usePlaceLimitOrder(options?: UsePlaceLimitOrderOptions): _tanstack_react_query.UseMutationResult<PlaceLimitOrderResponse, Error, PlaceLimitOrderParams, unknown>;
2030
+
2031
+ interface UseCancelManagedOrderOptions {
2032
+ onSuccess?: (data: CancelManagedExecutionResponse, orderId: string) => void;
2033
+ onError?: (error: Error, orderId: string) => void;
2034
+ }
2035
+ declare function useCancelManagedOrder(options?: UseCancelManagedOrderOptions): _tanstack_react_query.UseMutationResult<CancelManagedExecutionResponse, Error, string, unknown>;
2036
+
1923
2037
  interface UsePositionsOptions extends GetPositionsParams {
1924
2038
  enabled?: boolean;
1925
2039
  }
@@ -2647,7 +2761,9 @@ declare function useCategoryChildren(options?: UseCategoryChildrenOptions): {
2647
2761
 
2648
2762
  declare function useDebouncedValue<T>(value: T, delay: number): T;
2649
2763
 
2650
- interface UseExecutionOrdersOptions extends Omit<GetOrdersQuery, "cursor"> {
2764
+ type ExecutionOrderStatusInput = NonNullable<GetOrdersQuery["status"]> | `${NonNullable<GetOrdersQuery["status"]>}`;
2765
+ interface UseExecutionOrdersOptions extends Omit<GetOrdersQuery, "cursor" | "status"> {
2766
+ status?: ExecutionOrderStatusInput;
2651
2767
  enabled?: boolean;
2652
2768
  mode?: "live" | "paper";
2653
2769
  refetchIntervalMs?: number | false;
@@ -5723,4 +5839,4 @@ declare function useAppConfig(): UseAppConfigResult;
5723
5839
  */
5724
5840
  declare function useCachedAppConfig(): UseAppConfigResult;
5725
5841
 
5726
- export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
5842
+ export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCancelManagedOrderOptions, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePlaceLimitOrderOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type 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, useCancelManagedOrder, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePlaceLimitOrder, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };