@agg-build/hooks 1.2.11 → 1.2.12

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.
@@ -537,6 +537,15 @@ var enUsLabels = {
537
537
  eventList: {
538
538
  matchedTab: "Matched",
539
539
  allTab: "All",
540
+ sortByLabel: "Sort by",
541
+ sortBy24hVolume: "24h volume",
542
+ sortByTopArbitrage: "Top arbitrage",
543
+ sortByTotalVolume: "Total volume",
544
+ sortByEndingSoon: "Ending soon",
545
+ subcategoriesLabel: "Subcategories",
546
+ subcategoriesAll: "All",
547
+ subcategoriesOpenAria: "Open subcategories",
548
+ subcategoriesCloseAria: "Close subcategories",
540
549
  loading: (title) => `Loading ${title}`,
541
550
  tabsAria: (title) => `${title} tabs`,
542
551
  emptyAria: "No events found",
@@ -724,6 +733,18 @@ var enUsLabels = {
724
733
  noOrderbooks: "No live orderbooks are available for this market right now.",
725
734
  quoteUnavailable: "Quote temporarily unavailable. Please try again.",
726
735
  quoteBalanceMismatch: "Quote balance mismatch. Try a different amount.",
736
+ serviceTemporarilyUnavailable: "Service temporarily unavailable. Please try again in a moment.",
737
+ orderDeadlineExpiredBeforeSubmission: "Order deadline expired before submission. Please try again.",
738
+ sellNoOnchainPosition: "You don't currently hold any on-chain shares of this outcome. If you just sold or redeemed elsewhere, your position display will refresh shortly \u2014 try again after that.",
739
+ venueQuoteUnfillable: "The venue couldn't fill this order at the quoted price right now. Try a smaller size, a higher slippage tolerance, or wait a moment and re-quote.",
740
+ venueMinOrderSize: "Order size is below the venue minimum. Try a larger amount.",
741
+ sourceBalanceChanged: "Your balance changed since the quote. Refresh and try again, or pick a smaller amount.",
742
+ venueMarketResolved: "This market just resolved. Pick a different market or wait for the next round.",
743
+ dflowWalletUnverified: "Your Solana wallet needs to be verified with dFlow before you can trade Kalshi markets. Verify at https://dflow.net/proof, then try again.",
744
+ venueNoQuotePath: "No active quote path for this market right now. Try a different size, or wait a moment and re-quote.",
745
+ solanaBlockhashExpired: "Solana transaction expired before submission. Please re-quote and try again.",
746
+ venueRateLimited: "The venue is rate-limiting requests right now. Please wait a moment and try again.",
747
+ serviceBlockedOrder: "Something on our side blocked this order. Please contact support if it keeps happening \u2014 retrying with the same quote will hit the same issue.",
727
748
  selectedVenueUnavailable: "The venue you selected is no longer available on this route. Review the updated options and try again.",
728
749
  engineUnavailable: "The routing engine is temporarily unavailable. Please try again in a moment.",
729
750
  insufficientInputAmount: "Trade amount is too small to cover bridging and execution costs. Increase your spend or deposit funds on the destination chain.",
@@ -737,6 +758,7 @@ var enUsLabels = {
737
758
  deposit: "Deposit",
738
759
  kycRequired: "Verify to trade Kalshi",
739
760
  kycNotVerifiedTooltip: "You have not been verified yet",
761
+ kycVerify: "Verify Identity",
740
762
  kycVerifyModalTitle: "Verify Your Identity",
741
763
  kycVerifyModalDescription: "To start trading on Kalshi, you'll need to complete identity verification through dFlow. It only takes a few minutes and helps us stay compliant with regulations.",
742
764
  kycStartVerification: "Start Verification",
@@ -750,6 +772,7 @@ var enUsLabels = {
750
772
  splitOrderDescription: "We split your order for the best price:",
751
773
  viewAllRoutes: (count) => `View all (${count})`,
752
774
  venueUnavailableInRegion: "Unavailable in your region",
775
+ verified: "Verified",
753
776
  platformFee: "0% platform fees",
754
777
  estimatedFees: "Estimated fees",
755
778
  estimatedFeesTooltipAria: "Estimated fees breakdown",
@@ -941,6 +964,57 @@ var enUsLabels = {
941
964
  header: {
942
965
  bannerAria: "Site header",
943
966
  logoAria: "Home"
967
+ },
968
+ notifications: {
969
+ order: {
970
+ filledTitle: "Order filled",
971
+ filledMessage: ({ venueLabel, sideLabel, amountLabel, priceLabel }) => {
972
+ const action = sideLabel ? `${sideLabel} filled` : "Filled";
973
+ const amount = amountLabel ? ` ${amountLabel}` : "";
974
+ const price = priceLabel ? ` at ${priceLabel}` : "";
975
+ const venue = venueLabel ? ` on ${venueLabel}` : "";
976
+ return `${action}${amount}${price}${venue}`.trim();
977
+ },
978
+ partialFilledTitle: "Order partially filled",
979
+ partialFilledMessage: ({ venueLabel, sideLabel, amountLabel, priceLabel }) => {
980
+ const action = sideLabel ? `${sideLabel} partially filled` : "Partially filled";
981
+ const amount = amountLabel ? ` ${amountLabel}` : "";
982
+ const price = priceLabel ? ` at ${priceLabel}` : "";
983
+ const venue = venueLabel ? ` on ${venueLabel}` : "";
984
+ return `${action}${amount}${price}${venue}`.trim();
985
+ },
986
+ failedTitle: "Order failed",
987
+ failedMessage: (errorReason) => errorReason && errorReason.length > 0 ? errorReason : "Your order could not be completed. Please try again."
988
+ },
989
+ deposit: {
990
+ completedTitle: "Deposit complete",
991
+ completedMessage: ({ amountLabel, tokenLabel }) => {
992
+ if (amountLabel && tokenLabel) return `${amountLabel} ${tokenLabel} added to your balance.`;
993
+ if (tokenLabel) return `Your ${tokenLabel} has been added to your balance.`;
994
+ return "Your funds have been added to your balance.";
995
+ },
996
+ failedTitle: "Deposit failed",
997
+ failedMessage: ({ amountLabel, tokenLabel }) => {
998
+ const what = amountLabel && tokenLabel ? `${amountLabel} ${tokenLabel}` : "deposit";
999
+ return `We couldn't complete your ${what}.`;
1000
+ }
1001
+ },
1002
+ withdrawal: {
1003
+ completedTitle: "Withdrawal complete",
1004
+ completedMessage: ({ amountLabel, tokenLabel }) => {
1005
+ if (amountLabel && tokenLabel) return `${amountLabel} ${tokenLabel} sent to your wallet.`;
1006
+ if (tokenLabel) return `Your ${tokenLabel} has been sent to your wallet.`;
1007
+ return "Your withdrawal has been sent to your wallet.";
1008
+ },
1009
+ partialTitle: "Withdrawal partially completed",
1010
+ partialMessage: ({ amountLabel, tokenLabel }) => {
1011
+ if (amountLabel && tokenLabel)
1012
+ return `Part of your ${tokenLabel} was sent. The remainder was returned to your balance.`;
1013
+ return "Part of your withdrawal was sent. The remainder was returned to your balance.";
1014
+ },
1015
+ failedTitle: "Withdrawal failed",
1016
+ failedMessage: (errorReason) => errorReason && errorReason.length > 0 ? errorReason : "Your funds have been returned to your balance."
1017
+ }
944
1018
  }
945
1019
  };
946
1020
  var defaultAggUiLabelsByLocale = {
@@ -1031,7 +1105,9 @@ var defaultAggUiConfig = {
1031
1105
  enableAnimations: true,
1032
1106
  enableLiveUpdates: true,
1033
1107
  showFeesBreakdown: false,
1034
- enableGradients: false
1108
+ enableGradients: false,
1109
+ enableVenueEventDiscoveryFilters: false,
1110
+ enableNotifications: true
1035
1111
  },
1036
1112
  market: {
1037
1113
  arbitrageThreshold: 0
@@ -1058,7 +1134,7 @@ var mergeAggUiSearchConfig = (config) => {
1058
1134
  };
1059
1135
  };
1060
1136
  var mergeAggUiConfig = (persisted, config) => {
1061
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N;
1137
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R;
1062
1138
  const locale = (_d = (_c = (_a = config == null ? void 0 : config.general) == null ? void 0 : _a.locale) != null ? _c : (_b = persisted.general) == null ? void 0 : _b.locale) != null ? _d : DEFAULT_LOCALE;
1063
1139
  const theme = (_h = (_g = (_e = config == null ? void 0 : config.general) == null ? void 0 : _e.theme) != null ? _g : (_f = persisted.general) == null ? void 0 : _f.theme) != null ? _h : defaultAggUiConfig.general.theme;
1064
1140
  const formatters = createFormatters(locale);
@@ -1077,22 +1153,24 @@ var mergeAggUiConfig = (persisted, config) => {
1077
1153
  enableAnimations: (_p = (_o = config == null ? void 0 : config.features) == null ? void 0 : _o.enableAnimations) != null ? _p : defaultAggUiConfig.features.enableAnimations,
1078
1154
  enableLiveUpdates: (_r = (_q = config == null ? void 0 : config.features) == null ? void 0 : _q.enableLiveUpdates) != null ? _r : defaultAggUiConfig.features.enableLiveUpdates,
1079
1155
  showFeesBreakdown: (_t = (_s = config == null ? void 0 : config.features) == null ? void 0 : _s.showFeesBreakdown) != null ? _t : defaultAggUiConfig.features.showFeesBreakdown,
1080
- enableGradients: (_v = (_u = config == null ? void 0 : config.features) == null ? void 0 : _u.enableGradients) != null ? _v : defaultAggUiConfig.features.enableGradients
1156
+ enableGradients: (_v = (_u = config == null ? void 0 : config.features) == null ? void 0 : _u.enableGradients) != null ? _v : defaultAggUiConfig.features.enableGradients,
1157
+ enableVenueEventDiscoveryFilters: (_x = (_w = config == null ? void 0 : config.features) == null ? void 0 : _w.enableVenueEventDiscoveryFilters) != null ? _x : defaultAggUiConfig.features.enableVenueEventDiscoveryFilters,
1158
+ enableNotifications: (_z = (_y = config == null ? void 0 : config.features) == null ? void 0 : _y.enableNotifications) != null ? _z : defaultAggUiConfig.features.enableNotifications
1081
1159
  },
1082
1160
  market: {
1083
- arbitrageThreshold: (_x = (_w = config == null ? void 0 : config.market) == null ? void 0 : _w.arbitrageThreshold) != null ? _x : defaultAggUiConfig.market.arbitrageThreshold
1161
+ arbitrageThreshold: (_B = (_A = config == null ? void 0 : config.market) == null ? void 0 : _A.arbitrageThreshold) != null ? _B : defaultAggUiConfig.market.arbitrageThreshold
1084
1162
  },
1085
1163
  chart: {
1086
- defaultChartTimeRange: (_z = (_y = config == null ? void 0 : config.chart) == null ? void 0 : _y.defaultChartTimeRange) != null ? _z : defaultAggUiConfig.chart.defaultChartTimeRange,
1087
- selectedChartTimeRange: (_D = (_C = (_A = persisted.chart) == null ? void 0 : _A.selectedChartTimeRange) != null ? _C : (_B = config == null ? void 0 : config.chart) == null ? void 0 : _B.defaultChartTimeRange) != null ? _D : defaultAggUiConfig.chart.defaultChartTimeRange,
1164
+ defaultChartTimeRange: (_D = (_C = config == null ? void 0 : config.chart) == null ? void 0 : _C.defaultChartTimeRange) != null ? _D : defaultAggUiConfig.chart.defaultChartTimeRange,
1165
+ selectedChartTimeRange: (_H = (_G = (_E = persisted.chart) == null ? void 0 : _E.selectedChartTimeRange) != null ? _G : (_F = config == null ? void 0 : config.chart) == null ? void 0 : _F.defaultChartTimeRange) != null ? _H : defaultAggUiConfig.chart.defaultChartTimeRange,
1088
1166
  setSelectedChartTimeRange: defaultAggUiConfig.chart.setSelectedChartTimeRange
1089
1167
  },
1090
1168
  formatting: {
1091
- formatNumber: (_F = (_E = config == null ? void 0 : config.formatting) == null ? void 0 : _E.formatNumber) != null ? _F : formatters.formatNumber,
1092
- formatPercent: (_H = (_G = config == null ? void 0 : config.formatting) == null ? void 0 : _G.formatPercent) != null ? _H : formatters.formatPercent,
1093
- formatCurrency: (_J = (_I = config == null ? void 0 : config.formatting) == null ? void 0 : _I.formatCurrency) != null ? _J : formatters.formatCurrency,
1094
- formatCompactCurrency: (_L = (_K = config == null ? void 0 : config.formatting) == null ? void 0 : _K.formatCompactCurrency) != null ? _L : formatters.formatCompactCurrency,
1095
- formatDate: (_N = (_M = config == null ? void 0 : config.formatting) == null ? void 0 : _M.formatDate) != null ? _N : formatters.formatDate
1169
+ formatNumber: (_J = (_I = config == null ? void 0 : config.formatting) == null ? void 0 : _I.formatNumber) != null ? _J : formatters.formatNumber,
1170
+ formatPercent: (_L = (_K = config == null ? void 0 : config.formatting) == null ? void 0 : _K.formatPercent) != null ? _L : formatters.formatPercent,
1171
+ formatCurrency: (_N = (_M = config == null ? void 0 : config.formatting) == null ? void 0 : _M.formatCurrency) != null ? _N : formatters.formatCurrency,
1172
+ formatCompactCurrency: (_P = (_O = config == null ? void 0 : config.formatting) == null ? void 0 : _O.formatCompactCurrency) != null ? _P : formatters.formatCompactCurrency,
1173
+ formatDate: (_R = (_Q = config == null ? void 0 : config.formatting) == null ? void 0 : _Q.formatDate) != null ? _R : formatters.formatDate
1096
1174
  },
1097
1175
  search: mergeAggUiSearchConfig(config == null ? void 0 : config.search),
1098
1176
  walletActions: config == null ? void 0 : config.walletActions,
@@ -1395,6 +1473,9 @@ var useAggClient = () => {
1395
1473
  }
1396
1474
  return client;
1397
1475
  };
1476
+ var useOptionalAggClient = () => {
1477
+ return useContext3(AggClientContext);
1478
+ };
1398
1479
  var useAggUiConfig = () => {
1399
1480
  return useContext3(AggUiContext);
1400
1481
  };
@@ -3528,12 +3609,18 @@ function useSyncBalances(options) {
3528
3609
 
3529
3610
  // src/execution/use-execution-progress.ts
3530
3611
  import { useCallback as useCallback7, useEffect as useEffect5, useRef as useRef5, useState as useState5 } from "react";
3531
- var TERMINAL_ORDER_STATUSES = /* @__PURE__ */ new Set(["filled", "partial_fill", "failed", "cancelled"]);
3612
+ var TERMINAL_ORDER_STATUSES = /* @__PURE__ */ new Set([
3613
+ "filled",
3614
+ "partial_fill",
3615
+ "failed",
3616
+ "cancelled",
3617
+ "expired"
3618
+ ]);
3532
3619
  var ORDER_POLL_INTERVAL_MS = 5e3;
3533
3620
  function mapOrderStatusToTerminalEvent(status) {
3534
3621
  if (status === "filled") return "filled";
3535
3622
  if (status === "partial_fill") return "partial_fill";
3536
- if (status === "failed" || status === "cancelled") return "failed";
3623
+ if (status === "failed" || status === "cancelled" || status === "expired") return "failed";
3537
3624
  return null;
3538
3625
  }
3539
3626
  function useExecutionProgress({
@@ -3589,12 +3676,13 @@ function useExecutionProgress({
3589
3676
  submittedOrderVenueByIdRef.current.set(msg.orderId, trimmedVenue);
3590
3677
  }
3591
3678
  const { event } = msg;
3592
- if (event === "filled" || event === "partial_fill" || event === "failed" || event === "bridge_ws_subscribe_failed") {
3593
- const mappedEvent = event === "bridge_ws_subscribe_failed" ? "failed" : event;
3679
+ if (event === "filled" || event === "partial_fill" || event === "failed" || event === "bridge_ws_subscribe_failed" || event === "expired" || event === "dag_cancelled") {
3680
+ const mappedEvent = event === "filled" || event === "partial_fill" ? event : "failed";
3594
3681
  const resolvedVenue = trimmedVenue || submittedOrderVenueByIdRef.current.get(msg.orderId) || "";
3595
3682
  if (resolvedVenue) {
3596
3683
  submittedOrderVenueByIdRef.current.set(msg.orderId, resolvedVenue);
3597
3684
  }
3685
+ const fallbackErrorReason = event === "bridge_ws_subscribe_failed" ? "Bridge event subscription failed." : event === "expired" ? "Order expired before it could be submitted." : event === "dag_cancelled" ? "Order was cancelled before submission." : void 0;
3598
3686
  const nextTerminalEvent = {
3599
3687
  orderId: msg.orderId,
3600
3688
  venue: resolvedVenue,
@@ -3607,7 +3695,7 @@ function useExecutionProgress({
3607
3695
  quotedToWinRaw: msg.quotedToWinRaw,
3608
3696
  executionPriceRaw: msg.executionPriceRaw,
3609
3697
  quotedPriceRaw: msg.quotedPriceRaw,
3610
- errorReason: event === "bridge_ws_subscribe_failed" ? (_a = msg.errorReason) != null ? _a : "Bridge event subscription failed." : msg.errorReason,
3698
+ errorReason: (_a = msg.errorReason) != null ? _a : fallbackErrorReason,
3611
3699
  timestamp: msg.timestamp
3612
3700
  };
3613
3701
  setTerminalOrderEvents((prev) => {
@@ -4097,6 +4185,7 @@ export {
4097
4185
  applyOrderbookDepth,
4098
4186
  marketDataKeys,
4099
4187
  useAggClient,
4188
+ useOptionalAggClient,
4100
4189
  useAggUiConfig,
4101
4190
  useAggLabels,
4102
4191
  useAggAuthContext,
@@ -4111,6 +4200,7 @@ export {
4111
4200
  useAggWebSocketConnectionState,
4112
4201
  useOnOrderSubmitted,
4113
4202
  useOnBalanceUpdate,
4203
+ useOnOrderEvent,
4114
4204
  useOnWithdrawalLifecycle,
4115
4205
  DEFAULT_AGG_ROOT_CLASS_NAME,
4116
4206
  CHART_TIME_RANGES,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __async,
3
3
  useAggClient
4
- } from "./chunk-553OI6M2.mjs";
4
+ } from "./chunk-2C7JR5OH.mjs";
5
5
 
6
6
  // src/use-ramp-quotes.ts
7
7
  import { useMutation } from "@tanstack/react-query";
@@ -10,7 +10,7 @@ import {
10
10
  useOnWithdrawalLifecycle,
11
11
  useSyncBalances,
12
12
  useWithdrawManaged
13
- } from "./chunk-553OI6M2.mjs";
13
+ } from "./chunk-2C7JR5OH.mjs";
14
14
 
15
15
  // src/withdraw/use-withdraw-flow.ts
16
16
  import { useCallback, useEffect, useMemo, useState } from "react";
package/dist/deposit.js CHANGED
@@ -430,6 +430,15 @@ var enUsLabels = {
430
430
  eventList: {
431
431
  matchedTab: "Matched",
432
432
  allTab: "All",
433
+ sortByLabel: "Sort by",
434
+ sortBy24hVolume: "24h volume",
435
+ sortByTopArbitrage: "Top arbitrage",
436
+ sortByTotalVolume: "Total volume",
437
+ sortByEndingSoon: "Ending soon",
438
+ subcategoriesLabel: "Subcategories",
439
+ subcategoriesAll: "All",
440
+ subcategoriesOpenAria: "Open subcategories",
441
+ subcategoriesCloseAria: "Close subcategories",
433
442
  loading: (title) => `Loading ${title}`,
434
443
  tabsAria: (title) => `${title} tabs`,
435
444
  emptyAria: "No events found",
@@ -617,6 +626,18 @@ var enUsLabels = {
617
626
  noOrderbooks: "No live orderbooks are available for this market right now.",
618
627
  quoteUnavailable: "Quote temporarily unavailable. Please try again.",
619
628
  quoteBalanceMismatch: "Quote balance mismatch. Try a different amount.",
629
+ serviceTemporarilyUnavailable: "Service temporarily unavailable. Please try again in a moment.",
630
+ orderDeadlineExpiredBeforeSubmission: "Order deadline expired before submission. Please try again.",
631
+ sellNoOnchainPosition: "You don't currently hold any on-chain shares of this outcome. If you just sold or redeemed elsewhere, your position display will refresh shortly \u2014 try again after that.",
632
+ venueQuoteUnfillable: "The venue couldn't fill this order at the quoted price right now. Try a smaller size, a higher slippage tolerance, or wait a moment and re-quote.",
633
+ venueMinOrderSize: "Order size is below the venue minimum. Try a larger amount.",
634
+ sourceBalanceChanged: "Your balance changed since the quote. Refresh and try again, or pick a smaller amount.",
635
+ venueMarketResolved: "This market just resolved. Pick a different market or wait for the next round.",
636
+ dflowWalletUnverified: "Your Solana wallet needs to be verified with dFlow before you can trade Kalshi markets. Verify at https://dflow.net/proof, then try again.",
637
+ venueNoQuotePath: "No active quote path for this market right now. Try a different size, or wait a moment and re-quote.",
638
+ solanaBlockhashExpired: "Solana transaction expired before submission. Please re-quote and try again.",
639
+ venueRateLimited: "The venue is rate-limiting requests right now. Please wait a moment and try again.",
640
+ serviceBlockedOrder: "Something on our side blocked this order. Please contact support if it keeps happening \u2014 retrying with the same quote will hit the same issue.",
620
641
  selectedVenueUnavailable: "The venue you selected is no longer available on this route. Review the updated options and try again.",
621
642
  engineUnavailable: "The routing engine is temporarily unavailable. Please try again in a moment.",
622
643
  insufficientInputAmount: "Trade amount is too small to cover bridging and execution costs. Increase your spend or deposit funds on the destination chain.",
@@ -630,6 +651,7 @@ var enUsLabels = {
630
651
  deposit: "Deposit",
631
652
  kycRequired: "Verify to trade Kalshi",
632
653
  kycNotVerifiedTooltip: "You have not been verified yet",
654
+ kycVerify: "Verify Identity",
633
655
  kycVerifyModalTitle: "Verify Your Identity",
634
656
  kycVerifyModalDescription: "To start trading on Kalshi, you'll need to complete identity verification through dFlow. It only takes a few minutes and helps us stay compliant with regulations.",
635
657
  kycStartVerification: "Start Verification",
@@ -643,6 +665,7 @@ var enUsLabels = {
643
665
  splitOrderDescription: "We split your order for the best price:",
644
666
  viewAllRoutes: (count) => `View all (${count})`,
645
667
  venueUnavailableInRegion: "Unavailable in your region",
668
+ verified: "Verified",
646
669
  platformFee: "0% platform fees",
647
670
  estimatedFees: "Estimated fees",
648
671
  estimatedFeesTooltipAria: "Estimated fees breakdown",
@@ -834,6 +857,57 @@ var enUsLabels = {
834
857
  header: {
835
858
  bannerAria: "Site header",
836
859
  logoAria: "Home"
860
+ },
861
+ notifications: {
862
+ order: {
863
+ filledTitle: "Order filled",
864
+ filledMessage: ({ venueLabel, sideLabel, amountLabel, priceLabel }) => {
865
+ const action = sideLabel ? `${sideLabel} filled` : "Filled";
866
+ const amount = amountLabel ? ` ${amountLabel}` : "";
867
+ const price = priceLabel ? ` at ${priceLabel}` : "";
868
+ const venue = venueLabel ? ` on ${venueLabel}` : "";
869
+ return `${action}${amount}${price}${venue}`.trim();
870
+ },
871
+ partialFilledTitle: "Order partially filled",
872
+ partialFilledMessage: ({ venueLabel, sideLabel, amountLabel, priceLabel }) => {
873
+ const action = sideLabel ? `${sideLabel} partially filled` : "Partially filled";
874
+ const amount = amountLabel ? ` ${amountLabel}` : "";
875
+ const price = priceLabel ? ` at ${priceLabel}` : "";
876
+ const venue = venueLabel ? ` on ${venueLabel}` : "";
877
+ return `${action}${amount}${price}${venue}`.trim();
878
+ },
879
+ failedTitle: "Order failed",
880
+ failedMessage: (errorReason) => errorReason && errorReason.length > 0 ? errorReason : "Your order could not be completed. Please try again."
881
+ },
882
+ deposit: {
883
+ completedTitle: "Deposit complete",
884
+ completedMessage: ({ amountLabel, tokenLabel }) => {
885
+ if (amountLabel && tokenLabel) return `${amountLabel} ${tokenLabel} added to your balance.`;
886
+ if (tokenLabel) return `Your ${tokenLabel} has been added to your balance.`;
887
+ return "Your funds have been added to your balance.";
888
+ },
889
+ failedTitle: "Deposit failed",
890
+ failedMessage: ({ amountLabel, tokenLabel }) => {
891
+ const what = amountLabel && tokenLabel ? `${amountLabel} ${tokenLabel}` : "deposit";
892
+ return `We couldn't complete your ${what}.`;
893
+ }
894
+ },
895
+ withdrawal: {
896
+ completedTitle: "Withdrawal complete",
897
+ completedMessage: ({ amountLabel, tokenLabel }) => {
898
+ if (amountLabel && tokenLabel) return `${amountLabel} ${tokenLabel} sent to your wallet.`;
899
+ if (tokenLabel) return `Your ${tokenLabel} has been sent to your wallet.`;
900
+ return "Your withdrawal has been sent to your wallet.";
901
+ },
902
+ partialTitle: "Withdrawal partially completed",
903
+ partialMessage: ({ amountLabel, tokenLabel }) => {
904
+ if (amountLabel && tokenLabel)
905
+ return `Part of your ${tokenLabel} was sent. The remainder was returned to your balance.`;
906
+ return "Part of your withdrawal was sent. The remainder was returned to your balance.";
907
+ },
908
+ failedTitle: "Withdrawal failed",
909
+ failedMessage: (errorReason) => errorReason && errorReason.length > 0 ? errorReason : "Your funds have been returned to your balance."
910
+ }
837
911
  }
838
912
  };
839
913
  var defaultAggUiLabelsByLocale = {
@@ -904,7 +978,9 @@ var defaultAggUiConfig = {
904
978
  enableAnimations: true,
905
979
  enableLiveUpdates: true,
906
980
  showFeesBreakdown: false,
907
- enableGradients: false
981
+ enableGradients: false,
982
+ enableVenueEventDiscoveryFilters: false,
983
+ enableNotifications: true
908
984
  },
909
985
  market: {
910
986
  arbitrageThreshold: 0
package/dist/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-JWPZNCGY.mjs";
4
+ } from "./chunk-R6VANZRA.mjs";
5
5
  import {
6
6
  __async,
7
7
  useAggAuthState,
@@ -9,7 +9,7 @@ import {
9
9
  useAggUiConfig,
10
10
  useDepositAddresses,
11
11
  useSyncBalances
12
- } from "./chunk-553OI6M2.mjs";
12
+ } from "./chunk-2C7JR5OH.mjs";
13
13
 
14
14
  // src/deposit/normalize-wallet-error.ts
15
15
  function normalizeWalletError(error, supportedChains) {
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  export { QueryClient, QueryClientProvider, useQueryClient } from '@tanstack/react-query';
4
4
  import * as _agg_build_sdk from '@agg-build/sdk';
5
- import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, QuoteManagedResponse, QuoteManagedParams, ExecuteManagedResponse, ExecuteManagedParams, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, SmartRouteResponse, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } 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, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, SmartRouteResponse, 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, UseWithdrawalLifecycleResult, WithdrawFeeEstimate, WithdrawalLifecycleState, useManagedBalances, useWithdrawEstimate, useWithdrawFlow, useWithdrawManaged, useWithdrawalLifecycle } from './withdraw.mjs';
@@ -730,6 +730,15 @@ interface AggUiLabels {
730
730
  eventList: {
731
731
  matchedTab: string;
732
732
  allTab: string;
733
+ sortByLabel: string;
734
+ sortBy24hVolume: string;
735
+ sortByTopArbitrage: string;
736
+ sortByTotalVolume: string;
737
+ sortByEndingSoon: string;
738
+ subcategoriesLabel: string;
739
+ subcategoriesAll: string;
740
+ subcategoriesOpenAria: string;
741
+ subcategoriesCloseAria: string;
733
742
  loading: (title: string) => string;
734
743
  tabsAria: (title: string) => string;
735
744
  emptyAria: string;
@@ -911,6 +920,60 @@ interface AggUiLabels {
911
920
  noOrderbooks: string;
912
921
  quoteUnavailable: string;
913
922
  quoteBalanceMismatch: string;
923
+ serviceTemporarilyUnavailable: string;
924
+ orderDeadlineExpiredBeforeSubmission: string;
925
+ /**
926
+ * Venue rejected a SELL because the user's on-chain position is
927
+ * zero (VMP overstated, prior sell/redeem, transfer out, etc.).
928
+ * Default: "You don't currently hold any on-chain shares of this
929
+ * outcome. If you just sold or redeemed elsewhere, your position
930
+ * display will refresh shortly — try again after that."
931
+ */
932
+ sellNoOnchainPosition: string;
933
+ /**
934
+ * Venue couldn't fill at the quoted price (Limitless simulation
935
+ * failed, Myriad walk produced no in-tolerance levels, Hyperliquid
936
+ * `could not immediately match`, etc.).
937
+ */
938
+ venueQuoteUnfillable: string;
939
+ /**
940
+ * Bare-minimum venue order-size violation (Limitless 0.01-share
941
+ * floor, Polymarket post-fee dust, Hyperliquid min-notional).
942
+ */
943
+ venueMinOrderSize: string;
944
+ /**
945
+ * Source-chain balance changed between quote and submit. Covers
946
+ * Limitless Base USDC, Polymarket pUSD, Solana SPL InsufficientFunds,
947
+ * BNB BEP20 transfer-exceeds-balance.
948
+ */
949
+ sourceBalanceChanged: string;
950
+ /**
951
+ * Venue market resolved / closed between quote and submit.
952
+ */
953
+ venueMarketResolved: string;
954
+ /**
955
+ * dFlow wallet KYC required (verify at dflow.net/proof).
956
+ */
957
+ dflowWalletUnverified: string;
958
+ /**
959
+ * No active quote path on the matcher right now (dFlow
960
+ * route_not_found, etc.).
961
+ */
962
+ venueNoQuotePath: string;
963
+ /**
964
+ * Solana blockhash expired before the tx landed — re-quote needed.
965
+ */
966
+ solanaBlockhashExpired: string;
967
+ /**
968
+ * Venue / aggregator API is rate-limited; retry shortly.
969
+ */
970
+ venueRateLimited: string;
971
+ /**
972
+ * Service-side bug surfaced at admission time (DagValidationError,
973
+ * Duplicate step ID, etc.). Retrying the same quote will hit the
974
+ * same bug; user should contact support.
975
+ */
976
+ serviceBlockedOrder: string;
914
977
  selectedVenueUnavailable: string;
915
978
  engineUnavailable: string;
916
979
  insufficientInputAmount: string;
@@ -924,6 +987,7 @@ interface AggUiLabels {
924
987
  deposit: string;
925
988
  kycRequired: string;
926
989
  kycNotVerifiedTooltip: string;
990
+ kycVerify: string;
927
991
  kycVerifyModalTitle: string;
928
992
  kycVerifyModalDescription: string;
929
993
  kycStartVerification: string;
@@ -937,6 +1001,7 @@ interface AggUiLabels {
937
1001
  splitOrderDescription: string;
938
1002
  viewAllRoutes: (count: number) => string;
939
1003
  venueUnavailableInRegion: string;
1004
+ verified: string;
940
1005
  platformFee: string;
941
1006
  estimatedFees: string;
942
1007
  estimatedFeesTooltipAria: string;
@@ -1115,6 +1180,58 @@ interface AggUiLabels {
1115
1180
  bannerAria: string;
1116
1181
  logoAria: string;
1117
1182
  };
1183
+ /**
1184
+ * Copy for the global notification bridge (`AggNotificationEventsProvider`).
1185
+ * Each leaf is read from a websocket / activity-feed lifecycle event and
1186
+ * rendered into the existing toast primitive. Keep these terse — the toast
1187
+ * footprint is small and detail lines wrap awkwardly past two lines.
1188
+ */
1189
+ notifications: {
1190
+ order: {
1191
+ filledTitle: string;
1192
+ filledMessage: (params: {
1193
+ venueLabel?: string;
1194
+ sideLabel?: string;
1195
+ amountLabel?: string;
1196
+ priceLabel?: string;
1197
+ }) => string;
1198
+ partialFilledTitle: string;
1199
+ partialFilledMessage: (params: {
1200
+ venueLabel?: string;
1201
+ sideLabel?: string;
1202
+ amountLabel?: string;
1203
+ priceLabel?: string;
1204
+ }) => string;
1205
+ failedTitle: string;
1206
+ failedMessage: (errorReason?: string) => string;
1207
+ };
1208
+ deposit: {
1209
+ completedTitle: string;
1210
+ completedMessage: (params: {
1211
+ amountLabel?: string;
1212
+ tokenLabel?: string;
1213
+ }) => string;
1214
+ failedTitle: string;
1215
+ failedMessage: (params: {
1216
+ amountLabel?: string;
1217
+ tokenLabel?: string;
1218
+ }) => string;
1219
+ };
1220
+ withdrawal: {
1221
+ completedTitle: string;
1222
+ completedMessage: (params: {
1223
+ amountLabel?: string;
1224
+ tokenLabel?: string;
1225
+ }) => string;
1226
+ partialTitle: string;
1227
+ partialMessage: (params: {
1228
+ amountLabel?: string;
1229
+ tokenLabel?: string;
1230
+ }) => string;
1231
+ failedTitle: string;
1232
+ failedMessage: (errorReason?: string) => string;
1233
+ };
1234
+ };
1118
1235
  }
1119
1236
  type DeepPartial<TValue> = {
1120
1237
  [TKey in keyof TValue]?: TValue[TKey] extends (...args: infer TArgs) => infer TReturn ? (...args: TArgs) => TReturn : TValue[TKey] extends object ? DeepPartial<TValue[TKey]> : TValue[TKey];
@@ -1147,6 +1264,15 @@ interface AggUiFeatureFlagsConfig {
1147
1264
  showFeesBreakdown: boolean;
1148
1265
  /** Enable gradients */
1149
1266
  enableGradients: boolean;
1267
+ /** Enable venue-events discovery filters UI and query wiring. */
1268
+ enableVenueEventDiscoveryFilters: boolean;
1269
+ /**
1270
+ * Enable the global notification bridge that emits toasts for order /
1271
+ * deposit / withdrawal lifecycle events. Defaults to `true`. Set to
1272
+ * `false` to suppress those toasts (the toast surface itself stays mounted
1273
+ * for ad-hoc partner-fired toasts).
1274
+ */
1275
+ enableNotifications: boolean;
1150
1276
  }
1151
1277
  type AggUiFeatureFlagsConfigInput = Partial<AggUiFeatureFlagsConfig>;
1152
1278
  interface AggUiMarketConfig {
@@ -1387,6 +1513,8 @@ declare const DEFAULT_AGG_ROOT_CLASS_NAME = "agg-root";
1387
1513
  declare const CHART_TIME_RANGES: ChartTimeRange[];
1388
1514
 
1389
1515
  declare const useAggClient: () => AggClient;
1516
+ /** Like {@link useAggClient}, but returns `null` when no `<AggProvider>` is mounted. */
1517
+ declare const useOptionalAggClient: () => AggClient | null;
1390
1518
  declare const useAggUiConfig: () => AggUiConfig;
1391
1519
  declare const useAggLabels: () => AggUiLabels;
1392
1520
  declare const useAggAuthContext: () => AggAuthContextValue;
@@ -1950,6 +2078,7 @@ declare function useRedeemLifecycle(input: UseRedeemLifecycleInput | null): Rede
1950
2078
  declare function useAggWebSocket(): AggWebSocket | null;
1951
2079
  declare function useOnOrderSubmitted(callback: ((msg: WsOrderSubmitted) => void) | null): void;
1952
2080
  declare function useOnBalanceUpdate(callback: ((msg: WsBalanceUpdate) => void) | null): void;
2081
+ declare function useOnOrderEvent(callback: ((msg: WsOrderEvent) => void) | null): void;
1953
2082
  declare function useOnWithdrawalLifecycle(callback: ((msg: WsWithdrawalLifecycleEvent) => void) | null): void;
1954
2083
 
1955
2084
  interface MarketChartCandle {
@@ -2061,6 +2190,10 @@ declare const AUTH_CHOOSER_OPEN_EVENT = "agg-auth:open-chooser";
2061
2190
  declare const requestAggAuthChooserOpen: () => void;
2062
2191
 
2063
2192
  interface UseCategoriesOptions {
2193
+ /** Optional query-key scope to isolate caches across different surfaces. */
2194
+ queryKeyScope?: string;
2195
+ /** Fetch child categories for a parent category id. Omit for top-level categories. */
2196
+ parentId?: string | null;
2064
2197
  enabled?: boolean;
2065
2198
  /** Page size when using cursor pagination. Default 20. */
2066
2199
  limit?: number;
@@ -4408,6 +4541,8 @@ interface UseVenueEventsOptions {
4408
4541
  sortBy?: string;
4409
4542
  /** Sort direction: "asc" or "desc". */
4410
4543
  sortDir?: string;
4544
+ /** Recurrence filter (for venue events that support recurrence dimensions). */
4545
+ recurrence?: string;
4411
4546
  /** If provided, enable the query. */
4412
4547
  enabled?: boolean;
4413
4548
  /** Page size when using cursor pagination. Default 20. */
@@ -5189,4 +5324,4 @@ interface UseAppConfigResult {
5189
5324
  */
5190
5325
  declare function useAppConfig(): UseAppConfigResult;
5191
5326
 
5192
- 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, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsInput, 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 LiveBestPrices, type LiveCandle, 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 PriceGapMarket, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseCategoriesOptions, 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 UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, 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 UseTradableVenuesResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, findLivePriceById, getBuilder, getOrCreateBuilder, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserMoneyState, mergeBestPricesPreferringLive, 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, useCategories, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useTradableVenues, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
5327
+ 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, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsInput, 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 LiveBestPrices, type LiveCandle, 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 PriceGapMarket, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseCategoriesOptions, 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 UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, 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 UseTradableVenuesResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, findLivePriceById, getBuilder, getOrCreateBuilder, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserMoneyState, mergeBestPricesPreferringLive, 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, useCategories, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, 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, useTradableVenues, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };