@agg-build/hooks 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-TJRQ55UC.mjs → chunk-3UEZQTMJ.mjs} +92 -11
- package/dist/{chunk-Q4FRCMP6.mjs → chunk-LOFGAX6T.mjs} +1 -1
- package/dist/{chunk-DP6VYGAX.mjs → chunk-X4MMFGU5.mjs} +1 -1
- package/dist/deposit.js +31 -1
- package/dist/deposit.mjs +2 -2
- package/dist/index.d.mts +289 -2
- package/dist/index.d.ts +289 -2
- package/dist/index.js +312 -107
- package/dist/index.mjs +155 -31
- package/dist/withdraw.js +31 -1
- package/dist/withdraw.mjs +2 -2
- package/package.json +1 -1
|
@@ -278,6 +278,34 @@ var enUsLabels = {
|
|
|
278
278
|
claimableWinningsTooltip: (count) => `${count} position${count === 1 ? "" : "s"} ready to claim`,
|
|
279
279
|
walletMenuFor: (profileLabel) => `Profile menu for ${profileLabel}`
|
|
280
280
|
},
|
|
281
|
+
balanceRefill: {
|
|
282
|
+
tabLabel: "Balance management",
|
|
283
|
+
title: "Automatic balance refill",
|
|
284
|
+
description: "Keep a minimum USDC balance on one network by moving funds from another managed network.",
|
|
285
|
+
networkLabel: "Network to maintain",
|
|
286
|
+
minimumLabel: "Minimum balance",
|
|
287
|
+
refillAmountLabel: "Refill by at least",
|
|
288
|
+
dailyCapLabel: "Maximum per day",
|
|
289
|
+
maximumFeeLabel: "Maximum fee per refill",
|
|
290
|
+
activeLabel: "Automatic refill is active",
|
|
291
|
+
pausedLabel: "Automatic refill is paused",
|
|
292
|
+
enableAction: "Enable automatic refill",
|
|
293
|
+
saveAction: "Save refill settings",
|
|
294
|
+
pauseAction: "Pause automatic refill",
|
|
295
|
+
resumeAction: "Resume automatic refill",
|
|
296
|
+
loading: "Loading refill settings...",
|
|
297
|
+
loadError: "Refill settings could not be loaded.",
|
|
298
|
+
saveError: "Refill settings could not be saved.",
|
|
299
|
+
saved: "Refill settings saved.",
|
|
300
|
+
consent: "By enabling, you authorize AGG to move USDC between your managed wallets within these limits.",
|
|
301
|
+
lastRefill: "Latest refill",
|
|
302
|
+
statuses: {
|
|
303
|
+
reserved: "Funds reserved",
|
|
304
|
+
executing: "Refill in progress",
|
|
305
|
+
completed: "Refill completed",
|
|
306
|
+
failed: "Refill failed"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
281
309
|
deposit: {
|
|
282
310
|
title: "Deposit",
|
|
283
311
|
back: "Go back",
|
|
@@ -853,6 +881,7 @@ var enUsLabels = {
|
|
|
853
881
|
tradingAccessAddKalshiAccount: "Add Kalshi Account",
|
|
854
882
|
outcome: (label) => `Outcome: ${label}`,
|
|
855
883
|
smartRouting: "Smart Routing",
|
|
884
|
+
limitRoutingCurrentPrice: (priceLabel, feeLabel) => feeLabel ? `Current ${priceLabel} \xB7 Fee ${feeLabel}` : `Current ${priceLabel}`,
|
|
856
885
|
orderTypeMarket: "Market",
|
|
857
886
|
orderTypeLimit: "Limit",
|
|
858
887
|
orderTypeAria: "Order type",
|
|
@@ -1326,7 +1355,7 @@ var mergeAggUiSearchConfig = (config) => {
|
|
|
1326
1355
|
};
|
|
1327
1356
|
};
|
|
1328
1357
|
var mergeAggUiConfig = (persisted, config) => {
|
|
1329
|
-
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, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _
|
|
1358
|
+
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, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa;
|
|
1330
1359
|
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;
|
|
1331
1360
|
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;
|
|
1332
1361
|
const formatters = createFormatters(locale);
|
|
@@ -1364,13 +1393,16 @@ var mergeAggUiConfig = (persisted, config) => {
|
|
|
1364
1393
|
formatting: {
|
|
1365
1394
|
formatNumber: (_R = (_Q = config == null ? void 0 : config.formatting) == null ? void 0 : _Q.formatNumber) != null ? _R : formatters.formatNumber,
|
|
1366
1395
|
formatPercent: (_T = (_S = config == null ? void 0 : config.formatting) == null ? void 0 : _S.formatPercent) != null ? _T : formatters.formatPercent,
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1396
|
+
// ponytail: no default here — each cents surface keeps its own rendering
|
|
1397
|
+
// when unset, so adding this knob changes nothing for existing partners.
|
|
1398
|
+
formatPrice: (_U = config == null ? void 0 : config.formatting) == null ? void 0 : _U.formatPrice,
|
|
1399
|
+
formatCurrency: (_W = (_V = config == null ? void 0 : config.formatting) == null ? void 0 : _V.formatCurrency) != null ? _W : formatters.formatCurrency,
|
|
1400
|
+
formatCompactCurrency: (_Y = (_X = config == null ? void 0 : config.formatting) == null ? void 0 : _X.formatCompactCurrency) != null ? _Y : formatters.formatCompactCurrency,
|
|
1401
|
+
formatDate: (__ = (_Z = config == null ? void 0 : config.formatting) == null ? void 0 : _Z.formatDate) != null ? __ : formatters.formatDate
|
|
1370
1402
|
},
|
|
1371
1403
|
search: mergeAggUiSearchConfig(config == null ? void 0 : config.search),
|
|
1372
1404
|
trading: {
|
|
1373
|
-
executionMode: (
|
|
1405
|
+
executionMode: (_aa = (_$ = config == null ? void 0 : config.trading) == null ? void 0 : _$.executionMode) != null ? _aa : defaultAggUiConfig.trading.executionMode
|
|
1374
1406
|
},
|
|
1375
1407
|
walletActions: config == null ? void 0 : config.walletActions,
|
|
1376
1408
|
solanaRpcUrl: config == null ? void 0 : config.solanaRpcUrl
|
|
@@ -1393,7 +1425,8 @@ var executionKeys = {
|
|
|
1393
1425
|
claimableClosedPositionsCount: () => ["execution", "positions", "claimable-count"],
|
|
1394
1426
|
orders: (status, cursor, limit) => ["execution", "orders", status != null ? status : null, cursor != null ? cursor : null, limit != null ? limit : null],
|
|
1395
1427
|
ordersPrefix: () => ["execution", "orders"],
|
|
1396
|
-
depositAddresses: () => ["execution", "deposit-addresses"]
|
|
1428
|
+
depositAddresses: () => ["execution", "deposit-addresses"],
|
|
1429
|
+
balanceRefillPolicies: () => ["execution", "balance-refill-policies"]
|
|
1397
1430
|
};
|
|
1398
1431
|
|
|
1399
1432
|
// src/execution/balance-invalidation.ts
|
|
@@ -4611,6 +4644,53 @@ function useExecutionProgress({
|
|
|
4611
4644
|
return { phase, submittedOrders, latestBalance, dagProgress, terminalOrderEvents };
|
|
4612
4645
|
}
|
|
4613
4646
|
|
|
4647
|
+
// src/execution/use-balance-refill-policies.ts
|
|
4648
|
+
import { useMutation as useMutation7, useQuery as useQuery5, useQueryClient as useQueryClient8 } from "@tanstack/react-query";
|
|
4649
|
+
function useBalanceRefillPolicies(options) {
|
|
4650
|
+
var _a, _b;
|
|
4651
|
+
const client = useAggClient();
|
|
4652
|
+
const queryClient = useQueryClient8();
|
|
4653
|
+
const queryKey = executionKeys.balanceRefillPolicies();
|
|
4654
|
+
const query = useQuery5({
|
|
4655
|
+
queryKey,
|
|
4656
|
+
queryFn: () => client.getBalanceRefillPolicies(),
|
|
4657
|
+
enabled: (_a = options == null ? void 0 : options.enabled) != null ? _a : true,
|
|
4658
|
+
staleTime: 15e3,
|
|
4659
|
+
refetchInterval: (state) => {
|
|
4660
|
+
var _a2;
|
|
4661
|
+
return ((_a2 = state.state.data) == null ? void 0 : _a2.some(
|
|
4662
|
+
(policy) => {
|
|
4663
|
+
var _a3, _b2;
|
|
4664
|
+
return ["reserved", "executing"].includes((_b2 = (_a3 = policy.latestAttempt) == null ? void 0 : _a3.status) != null ? _b2 : "");
|
|
4665
|
+
}
|
|
4666
|
+
)) ? 5e3 : false;
|
|
4667
|
+
}
|
|
4668
|
+
});
|
|
4669
|
+
const createPolicy = useMutation7({
|
|
4670
|
+
mutationFn: (params) => client.createBalanceRefillPolicy(params),
|
|
4671
|
+
onSuccess: (policy) => {
|
|
4672
|
+
queryClient.setQueryData(queryKey, [policy]);
|
|
4673
|
+
}
|
|
4674
|
+
});
|
|
4675
|
+
const updatePolicy = useMutation7({
|
|
4676
|
+
mutationFn: ({
|
|
4677
|
+
policyId,
|
|
4678
|
+
params
|
|
4679
|
+
}) => client.updateBalanceRefillPolicy(policyId, params),
|
|
4680
|
+
onSuccess: (updated) => {
|
|
4681
|
+
queryClient.setQueryData(
|
|
4682
|
+
queryKey,
|
|
4683
|
+
(current) => (current != null ? current : []).map((policy) => policy.id === updated.id ? updated : policy)
|
|
4684
|
+
);
|
|
4685
|
+
}
|
|
4686
|
+
});
|
|
4687
|
+
return __spreadProps(__spreadValues({}, query), {
|
|
4688
|
+
policies: (_b = query.data) != null ? _b : [],
|
|
4689
|
+
createPolicy,
|
|
4690
|
+
updatePolicy
|
|
4691
|
+
});
|
|
4692
|
+
}
|
|
4693
|
+
|
|
4614
4694
|
// src/execution/compute-closed-position-totals.ts
|
|
4615
4695
|
var computeClosedPositionTotals = (group) => {
|
|
4616
4696
|
const outcomes = group.venueMarket.venueMarketOutcomes;
|
|
@@ -4650,7 +4730,7 @@ var computeClosedPositionTotals = (group) => {
|
|
|
4650
4730
|
};
|
|
4651
4731
|
|
|
4652
4732
|
// src/execution/use-redeem.ts
|
|
4653
|
-
import { useMutation as
|
|
4733
|
+
import { useMutation as useMutation8, useQueryClient as useQueryClient9 } from "@tanstack/react-query";
|
|
4654
4734
|
var RedeemRejectedError = class extends Error {
|
|
4655
4735
|
constructor(message, response) {
|
|
4656
4736
|
super(message);
|
|
@@ -4661,8 +4741,8 @@ var RedeemRejectedError = class extends Error {
|
|
|
4661
4741
|
var isLegRejected = (status) => status === "ineligible" || status === "rejected";
|
|
4662
4742
|
var useRedeem = () => {
|
|
4663
4743
|
const client = useAggClient();
|
|
4664
|
-
const queryClient =
|
|
4665
|
-
return
|
|
4744
|
+
const queryClient = useQueryClient9();
|
|
4745
|
+
return useMutation8({
|
|
4666
4746
|
mutationFn: (body) => __async(null, null, function* () {
|
|
4667
4747
|
const response = yield client.redeem(body);
|
|
4668
4748
|
if (response.results.length > 0 && response.results.every((r) => isLegRejected(r.status))) {
|
|
@@ -4684,7 +4764,7 @@ var useOnRedeemEvent2 = (listener) => {
|
|
|
4684
4764
|
};
|
|
4685
4765
|
|
|
4686
4766
|
// src/execution/use-redeem-eligible-count.ts
|
|
4687
|
-
import { useQuery as
|
|
4767
|
+
import { useQuery as useQuery6 } from "@tanstack/react-query";
|
|
4688
4768
|
var CLAIMABLE_COUNT_PAGE_LIMIT = 100;
|
|
4689
4769
|
var getClaimablePositionsCount = (client) => __async(null, null, function* () {
|
|
4690
4770
|
var _a;
|
|
@@ -4709,7 +4789,7 @@ var useRedeemEligibleCount = () => {
|
|
|
4709
4789
|
var _a;
|
|
4710
4790
|
const client = useAggClient();
|
|
4711
4791
|
const { isAuthenticated } = useAggAuthState();
|
|
4712
|
-
const query =
|
|
4792
|
+
const query = useQuery6({
|
|
4713
4793
|
queryKey: executionKeys.claimablePositionsCount(),
|
|
4714
4794
|
queryFn: () => getClaimablePositionsCount(client),
|
|
4715
4795
|
enabled: isAuthenticated,
|
|
@@ -4938,6 +5018,7 @@ export {
|
|
|
4938
5018
|
useDepositAddresses,
|
|
4939
5019
|
useSyncBalances,
|
|
4940
5020
|
useExecutionProgress,
|
|
5021
|
+
useBalanceRefillPolicies,
|
|
4941
5022
|
computeClosedPositionTotals,
|
|
4942
5023
|
RedeemRejectedError,
|
|
4943
5024
|
useRedeem,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useOnWithdrawalLifecycle,
|
|
12
12
|
useSyncBalances,
|
|
13
13
|
useWithdrawManaged
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3UEZQTMJ.mjs";
|
|
15
15
|
|
|
16
16
|
// src/withdraw/use-withdraw-flow.ts
|
|
17
17
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
package/dist/deposit.js
CHANGED
|
@@ -203,6 +203,34 @@ var enUsLabels = {
|
|
|
203
203
|
claimableWinningsTooltip: (count) => `${count} position${count === 1 ? "" : "s"} ready to claim`,
|
|
204
204
|
walletMenuFor: (profileLabel) => `Profile menu for ${profileLabel}`
|
|
205
205
|
},
|
|
206
|
+
balanceRefill: {
|
|
207
|
+
tabLabel: "Balance management",
|
|
208
|
+
title: "Automatic balance refill",
|
|
209
|
+
description: "Keep a minimum USDC balance on one network by moving funds from another managed network.",
|
|
210
|
+
networkLabel: "Network to maintain",
|
|
211
|
+
minimumLabel: "Minimum balance",
|
|
212
|
+
refillAmountLabel: "Refill by at least",
|
|
213
|
+
dailyCapLabel: "Maximum per day",
|
|
214
|
+
maximumFeeLabel: "Maximum fee per refill",
|
|
215
|
+
activeLabel: "Automatic refill is active",
|
|
216
|
+
pausedLabel: "Automatic refill is paused",
|
|
217
|
+
enableAction: "Enable automatic refill",
|
|
218
|
+
saveAction: "Save refill settings",
|
|
219
|
+
pauseAction: "Pause automatic refill",
|
|
220
|
+
resumeAction: "Resume automatic refill",
|
|
221
|
+
loading: "Loading refill settings...",
|
|
222
|
+
loadError: "Refill settings could not be loaded.",
|
|
223
|
+
saveError: "Refill settings could not be saved.",
|
|
224
|
+
saved: "Refill settings saved.",
|
|
225
|
+
consent: "By enabling, you authorize AGG to move USDC between your managed wallets within these limits.",
|
|
226
|
+
lastRefill: "Latest refill",
|
|
227
|
+
statuses: {
|
|
228
|
+
reserved: "Funds reserved",
|
|
229
|
+
executing: "Refill in progress",
|
|
230
|
+
completed: "Refill completed",
|
|
231
|
+
failed: "Refill failed"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
206
234
|
deposit: {
|
|
207
235
|
title: "Deposit",
|
|
208
236
|
back: "Go back",
|
|
@@ -778,6 +806,7 @@ var enUsLabels = {
|
|
|
778
806
|
tradingAccessAddKalshiAccount: "Add Kalshi Account",
|
|
779
807
|
outcome: (label) => `Outcome: ${label}`,
|
|
780
808
|
smartRouting: "Smart Routing",
|
|
809
|
+
limitRoutingCurrentPrice: (priceLabel, feeLabel) => feeLabel ? `Current ${priceLabel} \xB7 Fee ${feeLabel}` : `Current ${priceLabel}`,
|
|
781
810
|
orderTypeMarket: "Market",
|
|
782
811
|
orderTypeLimit: "Limit",
|
|
783
812
|
orderTypeAria: "Order type",
|
|
@@ -1242,7 +1271,8 @@ var executionKeys = {
|
|
|
1242
1271
|
claimableClosedPositionsCount: () => ["execution", "positions", "claimable-count"],
|
|
1243
1272
|
orders: (status, cursor, limit) => ["execution", "orders", status != null ? status : null, cursor != null ? cursor : null, limit != null ? limit : null],
|
|
1244
1273
|
ordersPrefix: () => ["execution", "orders"],
|
|
1245
|
-
depositAddresses: () => ["execution", "deposit-addresses"]
|
|
1274
|
+
depositAddresses: () => ["execution", "deposit-addresses"],
|
|
1275
|
+
balanceRefillPolicies: () => ["execution", "balance-refill-policies"]
|
|
1246
1276
|
};
|
|
1247
1277
|
|
|
1248
1278
|
// src/execution/balance-invalidation.ts
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useRampQuotes,
|
|
3
3
|
useRampSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LOFGAX6T.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__async,
|
|
7
7
|
useAggAuthState,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useDepositAddresses,
|
|
12
12
|
useOptionalAggClient,
|
|
13
13
|
useSyncBalances
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3UEZQTMJ.mjs";
|
|
15
15
|
|
|
16
16
|
// src/deposit/normalize-wallet-error.ts
|
|
17
17
|
function normalizeWalletError(error, supportedChains) {
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
|
|
|
2
2
|
import { QueryClient } from '@tanstack/react-query';
|
|
3
3
|
export { QueryClient, QueryClientProvider, useQueryClient } from '@tanstack/react-query';
|
|
4
4
|
import * as _agg_build_sdk from '@agg-build/sdk';
|
|
5
|
-
import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, QuoteManagedResponse, QuoteManagedParams, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, Venue as Venue$1, VenueKeyStatus, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurrenceFilter, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } from '@agg-build/sdk';
|
|
5
|
+
import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, QuoteManagedResponse, QuoteManagedParams, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, WsOrderSubmitted, WsBalanceUpdate, CreateBalanceRefillPolicyParams, UpdateBalanceRefillPolicyParams, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, Venue as Venue$1, VenueKeyStatus, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurrenceFilter, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse } from '@agg-build/sdk';
|
|
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';
|
|
@@ -562,6 +562,34 @@ interface AggUiLabels {
|
|
|
562
562
|
claimableWinningsTooltip: (count: number) => string;
|
|
563
563
|
walletMenuFor: (profileLabel: string) => string;
|
|
564
564
|
};
|
|
565
|
+
balanceRefill: {
|
|
566
|
+
tabLabel: string;
|
|
567
|
+
title: string;
|
|
568
|
+
description: string;
|
|
569
|
+
networkLabel: string;
|
|
570
|
+
minimumLabel: string;
|
|
571
|
+
refillAmountLabel: string;
|
|
572
|
+
dailyCapLabel: string;
|
|
573
|
+
maximumFeeLabel: string;
|
|
574
|
+
activeLabel: string;
|
|
575
|
+
pausedLabel: string;
|
|
576
|
+
enableAction: string;
|
|
577
|
+
saveAction: string;
|
|
578
|
+
pauseAction: string;
|
|
579
|
+
resumeAction: string;
|
|
580
|
+
loading: string;
|
|
581
|
+
loadError: string;
|
|
582
|
+
saveError: string;
|
|
583
|
+
saved: string;
|
|
584
|
+
consent: string;
|
|
585
|
+
lastRefill: string;
|
|
586
|
+
statuses: {
|
|
587
|
+
reserved: string;
|
|
588
|
+
executing: string;
|
|
589
|
+
completed: string;
|
|
590
|
+
failed: string;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
565
593
|
deposit: {
|
|
566
594
|
title: string;
|
|
567
595
|
back: string;
|
|
@@ -1174,6 +1202,7 @@ interface AggUiLabels {
|
|
|
1174
1202
|
tradingAccessAddKalshiAccount: string;
|
|
1175
1203
|
outcome: (label: string) => string;
|
|
1176
1204
|
smartRouting: string;
|
|
1205
|
+
limitRoutingCurrentPrice: (priceLabel: string, feeLabel?: string) => string;
|
|
1177
1206
|
orderTypeMarket: string;
|
|
1178
1207
|
orderTypeLimit: string;
|
|
1179
1208
|
orderTypeAria: string;
|
|
@@ -1589,6 +1618,18 @@ interface AggUiFormattingConfig {
|
|
|
1589
1618
|
formatNumber: (value: number) => string;
|
|
1590
1619
|
/** Format percent */
|
|
1591
1620
|
formatPercent: (value: number) => string;
|
|
1621
|
+
/**
|
|
1622
|
+
* Format a market price. Receives the same `0..1` probability as
|
|
1623
|
+
* `formatPercent` — the two are different renderings of one number, so set
|
|
1624
|
+
* both to the same function to apply a single odds convention app-wide.
|
|
1625
|
+
*
|
|
1626
|
+
* Governs every cents surface: order book (incl. mid/spread), event page
|
|
1627
|
+
* outcome chips, place-order, and positions.
|
|
1628
|
+
*
|
|
1629
|
+
* Optional: when unset each surface keeps its existing default rendering
|
|
1630
|
+
* (`62.5¢` on the order book, `63¢` on positions).
|
|
1631
|
+
*/
|
|
1632
|
+
formatPrice?: (value: number) => string;
|
|
1592
1633
|
/** Format currency */
|
|
1593
1634
|
formatCurrency: (value: number) => string;
|
|
1594
1635
|
/** Format compact currency */
|
|
@@ -2036,6 +2077,7 @@ declare const executionKeys: {
|
|
|
2036
2077
|
orders: (status?: string | null, cursor?: string | null, limit?: number | null) => readonly ["execution", "orders", string | null, string | null, number | null];
|
|
2037
2078
|
ordersPrefix: () => readonly ["execution", "orders"];
|
|
2038
2079
|
depositAddresses: () => readonly ["execution", "deposit-addresses"];
|
|
2080
|
+
balanceRefillPolicies: () => readonly ["execution", "balance-refill-policies"];
|
|
2039
2081
|
};
|
|
2040
2082
|
|
|
2041
2083
|
interface UseQuoteManagedOptions {
|
|
@@ -2307,6 +2349,209 @@ interface UseExecutionProgressResult {
|
|
|
2307
2349
|
}
|
|
2308
2350
|
declare function useExecutionProgress({ orderIds, quoteId, enabled, mode, }: UseExecutionProgressOptions): UseExecutionProgressResult;
|
|
2309
2351
|
|
|
2352
|
+
interface UseBalanceRefillPoliciesOptions {
|
|
2353
|
+
enabled?: boolean;
|
|
2354
|
+
}
|
|
2355
|
+
declare function useBalanceRefillPolicies(options?: UseBalanceRefillPoliciesOptions): {
|
|
2356
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2357
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2358
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2359
|
+
policyId: string;
|
|
2360
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2361
|
+
}, unknown>;
|
|
2362
|
+
data: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2363
|
+
error: Error;
|
|
2364
|
+
isError: true;
|
|
2365
|
+
isPending: false;
|
|
2366
|
+
isLoading: false;
|
|
2367
|
+
isLoadingError: false;
|
|
2368
|
+
isRefetchError: true;
|
|
2369
|
+
isSuccess: false;
|
|
2370
|
+
isPlaceholderData: false;
|
|
2371
|
+
status: "error";
|
|
2372
|
+
dataUpdatedAt: number;
|
|
2373
|
+
errorUpdatedAt: number;
|
|
2374
|
+
failureCount: number;
|
|
2375
|
+
failureReason: Error | null;
|
|
2376
|
+
errorUpdateCount: number;
|
|
2377
|
+
isFetched: boolean;
|
|
2378
|
+
isFetchedAfterMount: boolean;
|
|
2379
|
+
isFetching: boolean;
|
|
2380
|
+
isInitialLoading: boolean;
|
|
2381
|
+
isPaused: boolean;
|
|
2382
|
+
isRefetching: boolean;
|
|
2383
|
+
isStale: boolean;
|
|
2384
|
+
isEnabled: boolean;
|
|
2385
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2386
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2387
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2388
|
+
} | {
|
|
2389
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2390
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2391
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2392
|
+
policyId: string;
|
|
2393
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2394
|
+
}, unknown>;
|
|
2395
|
+
data: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2396
|
+
error: null;
|
|
2397
|
+
isError: false;
|
|
2398
|
+
isPending: false;
|
|
2399
|
+
isLoading: false;
|
|
2400
|
+
isLoadingError: false;
|
|
2401
|
+
isRefetchError: false;
|
|
2402
|
+
isSuccess: true;
|
|
2403
|
+
isPlaceholderData: false;
|
|
2404
|
+
status: "success";
|
|
2405
|
+
dataUpdatedAt: number;
|
|
2406
|
+
errorUpdatedAt: number;
|
|
2407
|
+
failureCount: number;
|
|
2408
|
+
failureReason: Error | null;
|
|
2409
|
+
errorUpdateCount: number;
|
|
2410
|
+
isFetched: boolean;
|
|
2411
|
+
isFetchedAfterMount: boolean;
|
|
2412
|
+
isFetching: boolean;
|
|
2413
|
+
isInitialLoading: boolean;
|
|
2414
|
+
isPaused: boolean;
|
|
2415
|
+
isRefetching: boolean;
|
|
2416
|
+
isStale: boolean;
|
|
2417
|
+
isEnabled: boolean;
|
|
2418
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2419
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2420
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2421
|
+
} | {
|
|
2422
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2423
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2424
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2425
|
+
policyId: string;
|
|
2426
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2427
|
+
}, unknown>;
|
|
2428
|
+
data: undefined;
|
|
2429
|
+
error: Error;
|
|
2430
|
+
isError: true;
|
|
2431
|
+
isPending: false;
|
|
2432
|
+
isLoading: false;
|
|
2433
|
+
isLoadingError: true;
|
|
2434
|
+
isRefetchError: false;
|
|
2435
|
+
isSuccess: false;
|
|
2436
|
+
isPlaceholderData: false;
|
|
2437
|
+
status: "error";
|
|
2438
|
+
dataUpdatedAt: number;
|
|
2439
|
+
errorUpdatedAt: number;
|
|
2440
|
+
failureCount: number;
|
|
2441
|
+
failureReason: Error | null;
|
|
2442
|
+
errorUpdateCount: number;
|
|
2443
|
+
isFetched: boolean;
|
|
2444
|
+
isFetchedAfterMount: boolean;
|
|
2445
|
+
isFetching: boolean;
|
|
2446
|
+
isInitialLoading: boolean;
|
|
2447
|
+
isPaused: boolean;
|
|
2448
|
+
isRefetching: boolean;
|
|
2449
|
+
isStale: boolean;
|
|
2450
|
+
isEnabled: boolean;
|
|
2451
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2452
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2453
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2454
|
+
} | {
|
|
2455
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2456
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2457
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2458
|
+
policyId: string;
|
|
2459
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2460
|
+
}, unknown>;
|
|
2461
|
+
data: undefined;
|
|
2462
|
+
error: null;
|
|
2463
|
+
isError: false;
|
|
2464
|
+
isPending: true;
|
|
2465
|
+
isLoading: true;
|
|
2466
|
+
isLoadingError: false;
|
|
2467
|
+
isRefetchError: false;
|
|
2468
|
+
isSuccess: false;
|
|
2469
|
+
isPlaceholderData: false;
|
|
2470
|
+
status: "pending";
|
|
2471
|
+
dataUpdatedAt: number;
|
|
2472
|
+
errorUpdatedAt: number;
|
|
2473
|
+
failureCount: number;
|
|
2474
|
+
failureReason: Error | null;
|
|
2475
|
+
errorUpdateCount: number;
|
|
2476
|
+
isFetched: boolean;
|
|
2477
|
+
isFetchedAfterMount: boolean;
|
|
2478
|
+
isFetching: boolean;
|
|
2479
|
+
isInitialLoading: boolean;
|
|
2480
|
+
isPaused: boolean;
|
|
2481
|
+
isRefetching: boolean;
|
|
2482
|
+
isStale: boolean;
|
|
2483
|
+
isEnabled: boolean;
|
|
2484
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2485
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2486
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2487
|
+
} | {
|
|
2488
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2489
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2490
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2491
|
+
policyId: string;
|
|
2492
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2493
|
+
}, unknown>;
|
|
2494
|
+
data: undefined;
|
|
2495
|
+
error: null;
|
|
2496
|
+
isError: false;
|
|
2497
|
+
isPending: true;
|
|
2498
|
+
isLoadingError: false;
|
|
2499
|
+
isRefetchError: false;
|
|
2500
|
+
isSuccess: false;
|
|
2501
|
+
isPlaceholderData: false;
|
|
2502
|
+
status: "pending";
|
|
2503
|
+
dataUpdatedAt: number;
|
|
2504
|
+
errorUpdatedAt: number;
|
|
2505
|
+
failureCount: number;
|
|
2506
|
+
failureReason: Error | null;
|
|
2507
|
+
errorUpdateCount: number;
|
|
2508
|
+
isFetched: boolean;
|
|
2509
|
+
isFetchedAfterMount: boolean;
|
|
2510
|
+
isFetching: boolean;
|
|
2511
|
+
isLoading: boolean;
|
|
2512
|
+
isInitialLoading: boolean;
|
|
2513
|
+
isPaused: boolean;
|
|
2514
|
+
isRefetching: boolean;
|
|
2515
|
+
isStale: boolean;
|
|
2516
|
+
isEnabled: boolean;
|
|
2517
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2518
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2519
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2520
|
+
} | {
|
|
2521
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2522
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2523
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2524
|
+
policyId: string;
|
|
2525
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2526
|
+
}, unknown>;
|
|
2527
|
+
data: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2528
|
+
isError: false;
|
|
2529
|
+
error: null;
|
|
2530
|
+
isPending: false;
|
|
2531
|
+
isLoading: false;
|
|
2532
|
+
isLoadingError: false;
|
|
2533
|
+
isRefetchError: false;
|
|
2534
|
+
isSuccess: true;
|
|
2535
|
+
isPlaceholderData: true;
|
|
2536
|
+
status: "success";
|
|
2537
|
+
dataUpdatedAt: number;
|
|
2538
|
+
errorUpdatedAt: number;
|
|
2539
|
+
failureCount: number;
|
|
2540
|
+
failureReason: Error | null;
|
|
2541
|
+
errorUpdateCount: number;
|
|
2542
|
+
isFetched: boolean;
|
|
2543
|
+
isFetchedAfterMount: boolean;
|
|
2544
|
+
isFetching: boolean;
|
|
2545
|
+
isInitialLoading: boolean;
|
|
2546
|
+
isPaused: boolean;
|
|
2547
|
+
isRefetching: boolean;
|
|
2548
|
+
isStale: boolean;
|
|
2549
|
+
isEnabled: boolean;
|
|
2550
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2551
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2552
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2553
|
+
};
|
|
2554
|
+
|
|
2310
2555
|
interface ClosedPositionTotals {
|
|
2311
2556
|
totalTraded: number;
|
|
2312
2557
|
amountWon: number;
|
|
@@ -3725,6 +3970,8 @@ interface UseMidpointsResult {
|
|
|
3725
3970
|
* clearer name for display surfaces that want a single source of truth.
|
|
3726
3971
|
*/
|
|
3727
3972
|
bestMidpointsByOutcomeId: Map<string, number>;
|
|
3973
|
+
/** Venue-local midpoint for each outcome before cross-venue best-price folding. */
|
|
3974
|
+
currentMidpointsByOutcomeId?: Map<string, number>;
|
|
3728
3975
|
/**
|
|
3729
3976
|
* Map of outcomeId → venue name that provided the price in `prices`.
|
|
3730
3977
|
* When a matched sibling offers a lower midpoint for the same semantic
|
|
@@ -4438,6 +4685,44 @@ interface UseSmartRouteResult {
|
|
|
4438
4685
|
*/
|
|
4439
4686
|
declare function useSmartRoute(options: UseSmartRouteOptions): UseSmartRouteResult;
|
|
4440
4687
|
|
|
4688
|
+
interface LimitOrderVenueQuoteRequest {
|
|
4689
|
+
venue: Venue$1;
|
|
4690
|
+
venueMarketOutcomeId: string;
|
|
4691
|
+
}
|
|
4692
|
+
interface UseLimitOrderVenueQuotesOptions {
|
|
4693
|
+
requests: LimitOrderVenueQuoteRequest[];
|
|
4694
|
+
tradeSide: "buy" | "sell";
|
|
4695
|
+
amount?: number;
|
|
4696
|
+
marketId?: string | null;
|
|
4697
|
+
accountId?: string | null;
|
|
4698
|
+
chainBalances?: Record<string, number>;
|
|
4699
|
+
mode?: ExecutionMode | null;
|
|
4700
|
+
slipCapBps?: number;
|
|
4701
|
+
enabled?: boolean;
|
|
4702
|
+
staleTimeMs?: number;
|
|
4703
|
+
refreshContext?: UseSmartRouteOptions["refreshContext"];
|
|
4704
|
+
}
|
|
4705
|
+
interface LimitOrderVenueQuoteResult {
|
|
4706
|
+
request: LimitOrderVenueQuoteRequest;
|
|
4707
|
+
data: SmartRouteResponse | null;
|
|
4708
|
+
isLoading: boolean;
|
|
4709
|
+
isFetching: boolean;
|
|
4710
|
+
error: Error | null;
|
|
4711
|
+
refetch: () => Promise<unknown>;
|
|
4712
|
+
}
|
|
4713
|
+
interface UseLimitOrderVenueQuotesResult {
|
|
4714
|
+
quotes: LimitOrderVenueQuoteResult[];
|
|
4715
|
+
isLoading: boolean;
|
|
4716
|
+
isFetching: boolean;
|
|
4717
|
+
error: Error | null;
|
|
4718
|
+
refetch: () => Promise<unknown>;
|
|
4719
|
+
}
|
|
4720
|
+
/**
|
|
4721
|
+
* Fetches informational single-venue quotes for limit-order routing cards.
|
|
4722
|
+
* Quote IDs are intentionally not consumed by the limit-order execution flow.
|
|
4723
|
+
*/
|
|
4724
|
+
declare const useLimitOrderVenueQuotes: (options: UseLimitOrderVenueQuotesOptions) => UseLimitOrderVenueQuotesResult;
|
|
4725
|
+
|
|
4441
4726
|
interface VenueSellQuoteRequest {
|
|
4442
4727
|
venue: Venue$1;
|
|
4443
4728
|
requestedSellShares: number;
|
|
@@ -5364,6 +5649,8 @@ interface UseVenueMarketsOptions {
|
|
|
5364
5649
|
marketGroup?: string[];
|
|
5365
5650
|
/** Page size when using cursor pagination. Default 20. */
|
|
5366
5651
|
limit?: number;
|
|
5652
|
+
/** Eagerly fetch every page until exhausted (no scroll wiring needed). */
|
|
5653
|
+
fetchAll?: boolean;
|
|
5367
5654
|
/** Enable/disable the query. Default true. */
|
|
5368
5655
|
enabled?: boolean;
|
|
5369
5656
|
/** Sort by this field. */
|
|
@@ -5933,4 +6220,4 @@ declare function useAppConfig(): UseAppConfigResult;
|
|
|
5933
6220
|
*/
|
|
5934
6221
|
declare function useCachedAppConfig(): UseAppConfigResult;
|
|
5935
6222
|
|
|
5936
|
-
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 UseVenueSellQuotesOptions, type UseVenueSellQuotesResult, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type VenueSellQuoteRequest, type VenueSellQuoteResult, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, 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, useVenueKeyStatus, useVenueMarketMidpoints, useVenueMarkets, useVenueSellQuotes, useViewportMidpoints, useVisibleIds, userActivityQueryKeys, venueKeyQueryKeys };
|
|
6223
|
+
export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LimitOrderVenueQuoteRequest, type LimitOrderVenueQuoteResult, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCancelManagedOrderOptions, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLimitOrderVenueQuotesOptions, type UseLimitOrderVenueQuotesResult, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePlaceLimitOrderOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseVenueSellQuotesOptions, type UseVenueSellQuotesResult, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type VenueSellQuoteRequest, type VenueSellQuoteResult, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useBalanceRefillPolicies, useCachedAppConfig, useCancelManagedOrder, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLimitOrderVenueQuotes, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePlaceLimitOrder, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueKeyStatus, useVenueMarketMidpoints, useVenueMarkets, useVenueSellQuotes, useViewportMidpoints, useVisibleIds, userActivityQueryKeys, venueKeyQueryKeys };
|