@agg-build/hooks 2.4.6 → 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;
@@ -721,8 +755,14 @@ interface AggUiLabels {
721
755
  categoryTabsAria: string;
722
756
  };
723
757
  userProfile: {
758
+ tabs: {
759
+ positions: string;
760
+ openOrders: string;
761
+ activity: string;
762
+ };
724
763
  balance: {
725
764
  availableBalance: string;
765
+ reservedForOpenOrders: (amount: string) => string;
726
766
  balanceByNetwork: string;
727
767
  paperModeNetwork: string;
728
768
  paperModeWarning: string;
@@ -809,6 +849,25 @@ interface AggUiLabels {
809
849
  nowPrefix: string;
810
850
  finalPrefix: string;
811
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
+ };
812
871
  };
813
872
  eventList: {
814
873
  matchedTab: string;
@@ -1089,6 +1148,29 @@ interface AggUiLabels {
1089
1148
  kycSuccessDone: string;
1090
1149
  outcome: (label: string) => string;
1091
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;
1092
1174
  orderSplitting: string;
1093
1175
  splitOrderDescription: string;
1094
1176
  viewAllRoutes: (count: number) => string;
@@ -1344,6 +1426,12 @@ interface AggUiLabels {
1344
1426
  amountLabel?: string;
1345
1427
  priceLabel?: string;
1346
1428
  }) => string;
1429
+ cancelledTitle: string;
1430
+ cancelledMessage: string;
1431
+ cancelPendingTitle: string;
1432
+ cancelPendingMessage: string;
1433
+ cancelFailedTitle: string;
1434
+ cancelFailedMessage: (errorReason?: string) => string;
1347
1435
  failedTitle: string;
1348
1436
  failedMessage: (errorReason?: string) => string;
1349
1437
  };
@@ -1431,6 +1519,8 @@ interface AggUiFeatureFlagsConfig {
1431
1519
  * for ad-hoc partner-fired toasts).
1432
1520
  */
1433
1521
  enableNotifications: boolean;
1522
+ /** Enable creating limit orders in trading surfaces. Defaults to `false`. */
1523
+ showLimitOrders: boolean;
1434
1524
  /**
1435
1525
  * Enable the experimental sports event-details view. When `true` and the
1436
1526
  * event's `structureType === "sport"`, the event page renders the sports
@@ -1635,9 +1725,16 @@ interface AggAuthContextValue {
1635
1725
  }
1636
1726
  interface AggBalanceContextValue {
1637
1727
  balanceBreakdown: AggBalanceBreakdownItem[];
1728
+ /** Per-chain spendable cash after active execution reservations. */
1729
+ availableBalanceBreakdown: AggBalanceBreakdownItem[];
1638
1730
  /** Raw response from GET /execution/balances for direct consumer use. */
1639
1731
  managedBalances: UnifiedBalanceResponse;
1732
+ /** Total cash, including funds reserved for open orders. */
1640
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;
1641
1738
  positionsBalanceTotal: number;
1642
1739
  connectedVenues: Venue[];
1643
1740
  isLoading: boolean;
@@ -1925,6 +2022,18 @@ interface UseExecuteManagedOptions {
1925
2022
  */
1926
2023
  declare function useExecuteManaged(options?: UseExecuteManagedOptions): _tanstack_react_query.UseMutationResult<ExecuteManagedResponse, Error, ExecuteManagedParams, unknown>;
1927
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
+
1928
2037
  interface UsePositionsOptions extends GetPositionsParams {
1929
2038
  enabled?: boolean;
1930
2039
  }
@@ -2652,7 +2761,9 @@ declare function useCategoryChildren(options?: UseCategoryChildrenOptions): {
2652
2761
 
2653
2762
  declare function useDebouncedValue<T>(value: T, delay: number): T;
2654
2763
 
2655
- 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;
2656
2767
  enabled?: boolean;
2657
2768
  mode?: "live" | "paper";
2658
2769
  refetchIntervalMs?: number | false;
@@ -5728,4 +5839,4 @@ declare function useAppConfig(): UseAppConfigResult;
5728
5839
  */
5729
5840
  declare function useCachedAppConfig(): UseAppConfigResult;
5730
5841
 
5731
- export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
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;
@@ -721,8 +755,14 @@ interface AggUiLabels {
721
755
  categoryTabsAria: string;
722
756
  };
723
757
  userProfile: {
758
+ tabs: {
759
+ positions: string;
760
+ openOrders: string;
761
+ activity: string;
762
+ };
724
763
  balance: {
725
764
  availableBalance: string;
765
+ reservedForOpenOrders: (amount: string) => string;
726
766
  balanceByNetwork: string;
727
767
  paperModeNetwork: string;
728
768
  paperModeWarning: string;
@@ -809,6 +849,25 @@ interface AggUiLabels {
809
849
  nowPrefix: string;
810
850
  finalPrefix: string;
811
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
+ };
812
871
  };
813
872
  eventList: {
814
873
  matchedTab: string;
@@ -1089,6 +1148,29 @@ interface AggUiLabels {
1089
1148
  kycSuccessDone: string;
1090
1149
  outcome: (label: string) => string;
1091
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;
1092
1174
  orderSplitting: string;
1093
1175
  splitOrderDescription: string;
1094
1176
  viewAllRoutes: (count: number) => string;
@@ -1344,6 +1426,12 @@ interface AggUiLabels {
1344
1426
  amountLabel?: string;
1345
1427
  priceLabel?: string;
1346
1428
  }) => string;
1429
+ cancelledTitle: string;
1430
+ cancelledMessage: string;
1431
+ cancelPendingTitle: string;
1432
+ cancelPendingMessage: string;
1433
+ cancelFailedTitle: string;
1434
+ cancelFailedMessage: (errorReason?: string) => string;
1347
1435
  failedTitle: string;
1348
1436
  failedMessage: (errorReason?: string) => string;
1349
1437
  };
@@ -1431,6 +1519,8 @@ interface AggUiFeatureFlagsConfig {
1431
1519
  * for ad-hoc partner-fired toasts).
1432
1520
  */
1433
1521
  enableNotifications: boolean;
1522
+ /** Enable creating limit orders in trading surfaces. Defaults to `false`. */
1523
+ showLimitOrders: boolean;
1434
1524
  /**
1435
1525
  * Enable the experimental sports event-details view. When `true` and the
1436
1526
  * event's `structureType === "sport"`, the event page renders the sports
@@ -1635,9 +1725,16 @@ interface AggAuthContextValue {
1635
1725
  }
1636
1726
  interface AggBalanceContextValue {
1637
1727
  balanceBreakdown: AggBalanceBreakdownItem[];
1728
+ /** Per-chain spendable cash after active execution reservations. */
1729
+ availableBalanceBreakdown: AggBalanceBreakdownItem[];
1638
1730
  /** Raw response from GET /execution/balances for direct consumer use. */
1639
1731
  managedBalances: UnifiedBalanceResponse;
1732
+ /** Total cash, including funds reserved for open orders. */
1640
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;
1641
1738
  positionsBalanceTotal: number;
1642
1739
  connectedVenues: Venue[];
1643
1740
  isLoading: boolean;
@@ -1925,6 +2022,18 @@ interface UseExecuteManagedOptions {
1925
2022
  */
1926
2023
  declare function useExecuteManaged(options?: UseExecuteManagedOptions): _tanstack_react_query.UseMutationResult<ExecuteManagedResponse, Error, ExecuteManagedParams, unknown>;
1927
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
+
1928
2037
  interface UsePositionsOptions extends GetPositionsParams {
1929
2038
  enabled?: boolean;
1930
2039
  }
@@ -2652,7 +2761,9 @@ declare function useCategoryChildren(options?: UseCategoryChildrenOptions): {
2652
2761
 
2653
2762
  declare function useDebouncedValue<T>(value: T, delay: number): T;
2654
2763
 
2655
- 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;
2656
2767
  enabled?: boolean;
2657
2768
  mode?: "live" | "paper";
2658
2769
  refetchIntervalMs?: number | false;
@@ -5728,4 +5839,4 @@ declare function useAppConfig(): UseAppConfigResult;
5728
5839
  */
5729
5840
  declare function useCachedAppConfig(): UseAppConfigResult;
5730
5841
 
5731
- export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
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 };