@agg-build/hooks 2.7.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-Q4FRCMP6.mjs → chunk-MGWCWGMA.mjs} +1 -1
- package/dist/{chunk-TJRQ55UC.mjs → chunk-XYWK7G2R.mjs} +124 -15
- package/dist/{chunk-DP6VYGAX.mjs → chunk-ZNY6BIDR.mjs} +1 -1
- package/dist/deposit.js +59 -2
- package/dist/deposit.mjs +2 -2
- package/dist/index.d.mts +318 -5
- package/dist/index.d.ts +318 -5
- package/dist/index.js +337 -109
- package/dist/index.mjs +148 -29
- package/dist/withdraw.js +59 -2
- package/dist/withdraw.mjs +2 -2
- package/package.json +2 -2
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,56 @@ 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
|
+
manageTitle: string;
|
|
587
|
+
manageDescription: string;
|
|
588
|
+
noAutoRefill: string;
|
|
589
|
+
autoRefill: string;
|
|
590
|
+
minimumShortLabel: string;
|
|
591
|
+
refillToLabel: string;
|
|
592
|
+
unitLabel: string;
|
|
593
|
+
resetAction: string;
|
|
594
|
+
cancelAction: string;
|
|
595
|
+
saveChangesAction: string;
|
|
596
|
+
modalLoading: string;
|
|
597
|
+
modalEmptyTitle: string;
|
|
598
|
+
modalEmptyDescription: string;
|
|
599
|
+
modalLoadError: string;
|
|
600
|
+
requiredError: string;
|
|
601
|
+
positiveError: string;
|
|
602
|
+
precisionError: string;
|
|
603
|
+
relationshipError: string;
|
|
604
|
+
maximumError: (maximum: string) => string;
|
|
605
|
+
createUnavailableError: string;
|
|
606
|
+
expandNetwork: (network: string) => string;
|
|
607
|
+
collapseNetwork: (network: string) => string;
|
|
608
|
+
statuses: {
|
|
609
|
+
reserved: string;
|
|
610
|
+
executing: string;
|
|
611
|
+
completed: string;
|
|
612
|
+
failed: string;
|
|
613
|
+
};
|
|
614
|
+
};
|
|
565
615
|
deposit: {
|
|
566
616
|
title: string;
|
|
567
617
|
back: string;
|
|
@@ -768,6 +818,7 @@ interface AggUiLabels {
|
|
|
768
818
|
};
|
|
769
819
|
balance: {
|
|
770
820
|
availableBalance: string;
|
|
821
|
+
manage: string;
|
|
771
822
|
reservedForOpenOrders: (amount: string) => string;
|
|
772
823
|
positionsValue: string;
|
|
773
824
|
kalshiBalance: string;
|
|
@@ -1174,6 +1225,7 @@ interface AggUiLabels {
|
|
|
1174
1225
|
tradingAccessAddKalshiAccount: string;
|
|
1175
1226
|
outcome: (label: string) => string;
|
|
1176
1227
|
smartRouting: string;
|
|
1228
|
+
limitRoutingCurrentPrice: (priceLabel: string, feeLabel?: string) => string;
|
|
1177
1229
|
orderTypeMarket: string;
|
|
1178
1230
|
orderTypeLimit: string;
|
|
1179
1231
|
orderTypeAria: string;
|
|
@@ -1199,6 +1251,10 @@ interface AggUiLabels {
|
|
|
1199
1251
|
limitOrderPlacedDescription: string;
|
|
1200
1252
|
orderSplitting: string;
|
|
1201
1253
|
splitOrderDescription: string;
|
|
1254
|
+
maximizePayout: string;
|
|
1255
|
+
maximizePayoutDescription: string;
|
|
1256
|
+
venueInventory: (sharesLabel: string, priceLabel: string) => string;
|
|
1257
|
+
insufficientVenueInventory: (sharesLabel: string, priceLabel: string) => string;
|
|
1202
1258
|
viewAllRoutes: (count: number) => string;
|
|
1203
1259
|
venueUnavailableInRegion: string;
|
|
1204
1260
|
verified: string;
|
|
@@ -1589,6 +1645,18 @@ interface AggUiFormattingConfig {
|
|
|
1589
1645
|
formatNumber: (value: number) => string;
|
|
1590
1646
|
/** Format percent */
|
|
1591
1647
|
formatPercent: (value: number) => string;
|
|
1648
|
+
/**
|
|
1649
|
+
* Format a market price. Receives the same `0..1` probability as
|
|
1650
|
+
* `formatPercent` — the two are different renderings of one number, so set
|
|
1651
|
+
* both to the same function to apply a single odds convention app-wide.
|
|
1652
|
+
*
|
|
1653
|
+
* Governs every cents surface: order book (incl. mid/spread), event page
|
|
1654
|
+
* outcome chips, place-order, and positions.
|
|
1655
|
+
*
|
|
1656
|
+
* Optional: when unset each surface keeps its existing default rendering
|
|
1657
|
+
* (`62.5¢` on the order book, `63¢` on positions).
|
|
1658
|
+
*/
|
|
1659
|
+
formatPrice?: (value: number) => string;
|
|
1592
1660
|
/** Format currency */
|
|
1593
1661
|
formatCurrency: (value: number) => string;
|
|
1594
1662
|
/** Format compact currency */
|
|
@@ -1763,12 +1831,13 @@ interface AggBalanceContextValue {
|
|
|
1763
1831
|
availableBalanceBreakdown: AggBalanceBreakdownItem[];
|
|
1764
1832
|
/** Raw response from GET /execution/balances for direct consumer use. */
|
|
1765
1833
|
managedBalances: UnifiedBalanceResponse;
|
|
1766
|
-
/** Total cash, including
|
|
1834
|
+
/** Total cash, including reserved or otherwise held funds. */
|
|
1767
1835
|
totalBalance: number;
|
|
1768
1836
|
/** Cash immediately available for a new trade or withdrawal. */
|
|
1769
1837
|
availableBalance: number;
|
|
1770
|
-
/** Cash currently
|
|
1838
|
+
/** Cash currently held by active execution reservations. */
|
|
1771
1839
|
reservedBalance: number;
|
|
1840
|
+
/** Marked position value plus reserved cash presented as open-order exposure. */
|
|
1772
1841
|
positionsBalanceTotal: number;
|
|
1773
1842
|
kalshiBalance: number | null;
|
|
1774
1843
|
kalshiPortfolioValue: number | null;
|
|
@@ -2036,6 +2105,7 @@ declare const executionKeys: {
|
|
|
2036
2105
|
orders: (status?: string | null, cursor?: string | null, limit?: number | null) => readonly ["execution", "orders", string | null, string | null, number | null];
|
|
2037
2106
|
ordersPrefix: () => readonly ["execution", "orders"];
|
|
2038
2107
|
depositAddresses: () => readonly ["execution", "deposit-addresses"];
|
|
2108
|
+
balanceRefillPolicies: () => readonly ["execution", "balance-refill-policies"];
|
|
2039
2109
|
};
|
|
2040
2110
|
|
|
2041
2111
|
interface UseQuoteManagedOptions {
|
|
@@ -2307,6 +2377,209 @@ interface UseExecutionProgressResult {
|
|
|
2307
2377
|
}
|
|
2308
2378
|
declare function useExecutionProgress({ orderIds, quoteId, enabled, mode, }: UseExecutionProgressOptions): UseExecutionProgressResult;
|
|
2309
2379
|
|
|
2380
|
+
interface UseBalanceRefillPoliciesOptions {
|
|
2381
|
+
enabled?: boolean;
|
|
2382
|
+
}
|
|
2383
|
+
declare function useBalanceRefillPolicies(options?: UseBalanceRefillPoliciesOptions): {
|
|
2384
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2385
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2386
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2387
|
+
policyId: string;
|
|
2388
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2389
|
+
}, unknown>;
|
|
2390
|
+
data: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2391
|
+
error: Error;
|
|
2392
|
+
isError: true;
|
|
2393
|
+
isPending: false;
|
|
2394
|
+
isLoading: false;
|
|
2395
|
+
isLoadingError: false;
|
|
2396
|
+
isRefetchError: true;
|
|
2397
|
+
isSuccess: false;
|
|
2398
|
+
isPlaceholderData: false;
|
|
2399
|
+
status: "error";
|
|
2400
|
+
dataUpdatedAt: number;
|
|
2401
|
+
errorUpdatedAt: number;
|
|
2402
|
+
failureCount: number;
|
|
2403
|
+
failureReason: Error | null;
|
|
2404
|
+
errorUpdateCount: number;
|
|
2405
|
+
isFetched: boolean;
|
|
2406
|
+
isFetchedAfterMount: boolean;
|
|
2407
|
+
isFetching: boolean;
|
|
2408
|
+
isInitialLoading: boolean;
|
|
2409
|
+
isPaused: boolean;
|
|
2410
|
+
isRefetching: boolean;
|
|
2411
|
+
isStale: boolean;
|
|
2412
|
+
isEnabled: boolean;
|
|
2413
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2414
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2415
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2416
|
+
} | {
|
|
2417
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2418
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2419
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2420
|
+
policyId: string;
|
|
2421
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2422
|
+
}, unknown>;
|
|
2423
|
+
data: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2424
|
+
error: null;
|
|
2425
|
+
isError: false;
|
|
2426
|
+
isPending: false;
|
|
2427
|
+
isLoading: false;
|
|
2428
|
+
isLoadingError: false;
|
|
2429
|
+
isRefetchError: false;
|
|
2430
|
+
isSuccess: true;
|
|
2431
|
+
isPlaceholderData: false;
|
|
2432
|
+
status: "success";
|
|
2433
|
+
dataUpdatedAt: number;
|
|
2434
|
+
errorUpdatedAt: number;
|
|
2435
|
+
failureCount: number;
|
|
2436
|
+
failureReason: Error | null;
|
|
2437
|
+
errorUpdateCount: number;
|
|
2438
|
+
isFetched: boolean;
|
|
2439
|
+
isFetchedAfterMount: boolean;
|
|
2440
|
+
isFetching: boolean;
|
|
2441
|
+
isInitialLoading: boolean;
|
|
2442
|
+
isPaused: boolean;
|
|
2443
|
+
isRefetching: boolean;
|
|
2444
|
+
isStale: boolean;
|
|
2445
|
+
isEnabled: boolean;
|
|
2446
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2447
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2448
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2449
|
+
} | {
|
|
2450
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2451
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2452
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2453
|
+
policyId: string;
|
|
2454
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2455
|
+
}, unknown>;
|
|
2456
|
+
data: undefined;
|
|
2457
|
+
error: Error;
|
|
2458
|
+
isError: true;
|
|
2459
|
+
isPending: false;
|
|
2460
|
+
isLoading: false;
|
|
2461
|
+
isLoadingError: true;
|
|
2462
|
+
isRefetchError: false;
|
|
2463
|
+
isSuccess: false;
|
|
2464
|
+
isPlaceholderData: false;
|
|
2465
|
+
status: "error";
|
|
2466
|
+
dataUpdatedAt: number;
|
|
2467
|
+
errorUpdatedAt: number;
|
|
2468
|
+
failureCount: number;
|
|
2469
|
+
failureReason: Error | null;
|
|
2470
|
+
errorUpdateCount: number;
|
|
2471
|
+
isFetched: boolean;
|
|
2472
|
+
isFetchedAfterMount: boolean;
|
|
2473
|
+
isFetching: boolean;
|
|
2474
|
+
isInitialLoading: boolean;
|
|
2475
|
+
isPaused: boolean;
|
|
2476
|
+
isRefetching: boolean;
|
|
2477
|
+
isStale: boolean;
|
|
2478
|
+
isEnabled: boolean;
|
|
2479
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2480
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2481
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2482
|
+
} | {
|
|
2483
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2484
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2485
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2486
|
+
policyId: string;
|
|
2487
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2488
|
+
}, unknown>;
|
|
2489
|
+
data: undefined;
|
|
2490
|
+
error: null;
|
|
2491
|
+
isError: false;
|
|
2492
|
+
isPending: true;
|
|
2493
|
+
isLoading: true;
|
|
2494
|
+
isLoadingError: false;
|
|
2495
|
+
isRefetchError: false;
|
|
2496
|
+
isSuccess: false;
|
|
2497
|
+
isPlaceholderData: false;
|
|
2498
|
+
status: "pending";
|
|
2499
|
+
dataUpdatedAt: number;
|
|
2500
|
+
errorUpdatedAt: number;
|
|
2501
|
+
failureCount: number;
|
|
2502
|
+
failureReason: Error | null;
|
|
2503
|
+
errorUpdateCount: number;
|
|
2504
|
+
isFetched: boolean;
|
|
2505
|
+
isFetchedAfterMount: boolean;
|
|
2506
|
+
isFetching: boolean;
|
|
2507
|
+
isInitialLoading: boolean;
|
|
2508
|
+
isPaused: boolean;
|
|
2509
|
+
isRefetching: boolean;
|
|
2510
|
+
isStale: boolean;
|
|
2511
|
+
isEnabled: boolean;
|
|
2512
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2513
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2514
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2515
|
+
} | {
|
|
2516
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2517
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2518
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2519
|
+
policyId: string;
|
|
2520
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2521
|
+
}, unknown>;
|
|
2522
|
+
data: undefined;
|
|
2523
|
+
error: null;
|
|
2524
|
+
isError: false;
|
|
2525
|
+
isPending: true;
|
|
2526
|
+
isLoadingError: false;
|
|
2527
|
+
isRefetchError: false;
|
|
2528
|
+
isSuccess: false;
|
|
2529
|
+
isPlaceholderData: false;
|
|
2530
|
+
status: "pending";
|
|
2531
|
+
dataUpdatedAt: number;
|
|
2532
|
+
errorUpdatedAt: number;
|
|
2533
|
+
failureCount: number;
|
|
2534
|
+
failureReason: Error | null;
|
|
2535
|
+
errorUpdateCount: number;
|
|
2536
|
+
isFetched: boolean;
|
|
2537
|
+
isFetchedAfterMount: boolean;
|
|
2538
|
+
isFetching: boolean;
|
|
2539
|
+
isLoading: boolean;
|
|
2540
|
+
isInitialLoading: boolean;
|
|
2541
|
+
isPaused: boolean;
|
|
2542
|
+
isRefetching: boolean;
|
|
2543
|
+
isStale: boolean;
|
|
2544
|
+
isEnabled: boolean;
|
|
2545
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2546
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2547
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2548
|
+
} | {
|
|
2549
|
+
policies: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2550
|
+
createPolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, CreateBalanceRefillPolicyParams, unknown>;
|
|
2551
|
+
updatePolicy: _tanstack_react_query.UseMutationResult<_agg_build_sdk.BalanceRefillPolicy, Error, {
|
|
2552
|
+
policyId: string;
|
|
2553
|
+
params: UpdateBalanceRefillPolicyParams;
|
|
2554
|
+
}, unknown>;
|
|
2555
|
+
data: _agg_build_sdk.BalanceRefillPolicy[];
|
|
2556
|
+
isError: false;
|
|
2557
|
+
error: null;
|
|
2558
|
+
isPending: false;
|
|
2559
|
+
isLoading: false;
|
|
2560
|
+
isLoadingError: false;
|
|
2561
|
+
isRefetchError: false;
|
|
2562
|
+
isSuccess: true;
|
|
2563
|
+
isPlaceholderData: true;
|
|
2564
|
+
status: "success";
|
|
2565
|
+
dataUpdatedAt: number;
|
|
2566
|
+
errorUpdatedAt: number;
|
|
2567
|
+
failureCount: number;
|
|
2568
|
+
failureReason: Error | null;
|
|
2569
|
+
errorUpdateCount: number;
|
|
2570
|
+
isFetched: boolean;
|
|
2571
|
+
isFetchedAfterMount: boolean;
|
|
2572
|
+
isFetching: boolean;
|
|
2573
|
+
isInitialLoading: boolean;
|
|
2574
|
+
isPaused: boolean;
|
|
2575
|
+
isRefetching: boolean;
|
|
2576
|
+
isStale: boolean;
|
|
2577
|
+
isEnabled: boolean;
|
|
2578
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_agg_build_sdk.BalanceRefillPolicy[], Error>>;
|
|
2579
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2580
|
+
promise: Promise<_agg_build_sdk.BalanceRefillPolicy[]>;
|
|
2581
|
+
};
|
|
2582
|
+
|
|
2310
2583
|
interface ClosedPositionTotals {
|
|
2311
2584
|
totalTraded: number;
|
|
2312
2585
|
amountWon: number;
|
|
@@ -3725,6 +3998,8 @@ interface UseMidpointsResult {
|
|
|
3725
3998
|
* clearer name for display surfaces that want a single source of truth.
|
|
3726
3999
|
*/
|
|
3727
4000
|
bestMidpointsByOutcomeId: Map<string, number>;
|
|
4001
|
+
/** Venue-local midpoint for each outcome before cross-venue best-price folding. */
|
|
4002
|
+
currentMidpointsByOutcomeId?: Map<string, number>;
|
|
3728
4003
|
/**
|
|
3729
4004
|
* Map of outcomeId → venue name that provided the price in `prices`.
|
|
3730
4005
|
* When a matched sibling offers a lower midpoint for the same semantic
|
|
@@ -4438,6 +4713,44 @@ interface UseSmartRouteResult {
|
|
|
4438
4713
|
*/
|
|
4439
4714
|
declare function useSmartRoute(options: UseSmartRouteOptions): UseSmartRouteResult;
|
|
4440
4715
|
|
|
4716
|
+
interface LimitOrderVenueQuoteRequest {
|
|
4717
|
+
venue: Venue$1;
|
|
4718
|
+
venueMarketOutcomeId: string;
|
|
4719
|
+
}
|
|
4720
|
+
interface UseLimitOrderVenueQuotesOptions {
|
|
4721
|
+
requests: LimitOrderVenueQuoteRequest[];
|
|
4722
|
+
tradeSide: "buy" | "sell";
|
|
4723
|
+
amount?: number;
|
|
4724
|
+
marketId?: string | null;
|
|
4725
|
+
accountId?: string | null;
|
|
4726
|
+
chainBalances?: Record<string, number>;
|
|
4727
|
+
mode?: ExecutionMode | null;
|
|
4728
|
+
slipCapBps?: number;
|
|
4729
|
+
enabled?: boolean;
|
|
4730
|
+
staleTimeMs?: number;
|
|
4731
|
+
refreshContext?: UseSmartRouteOptions["refreshContext"];
|
|
4732
|
+
}
|
|
4733
|
+
interface LimitOrderVenueQuoteResult {
|
|
4734
|
+
request: LimitOrderVenueQuoteRequest;
|
|
4735
|
+
data: SmartRouteResponse | null;
|
|
4736
|
+
isLoading: boolean;
|
|
4737
|
+
isFetching: boolean;
|
|
4738
|
+
error: Error | null;
|
|
4739
|
+
refetch: () => Promise<unknown>;
|
|
4740
|
+
}
|
|
4741
|
+
interface UseLimitOrderVenueQuotesResult {
|
|
4742
|
+
quotes: LimitOrderVenueQuoteResult[];
|
|
4743
|
+
isLoading: boolean;
|
|
4744
|
+
isFetching: boolean;
|
|
4745
|
+
error: Error | null;
|
|
4746
|
+
refetch: () => Promise<unknown>;
|
|
4747
|
+
}
|
|
4748
|
+
/**
|
|
4749
|
+
* Fetches informational single-venue quotes for limit-order routing cards.
|
|
4750
|
+
* Quote IDs are intentionally not consumed by the limit-order execution flow.
|
|
4751
|
+
*/
|
|
4752
|
+
declare const useLimitOrderVenueQuotes: (options: UseLimitOrderVenueQuotesOptions) => UseLimitOrderVenueQuotesResult;
|
|
4753
|
+
|
|
4441
4754
|
interface VenueSellQuoteRequest {
|
|
4442
4755
|
venue: Venue$1;
|
|
4443
4756
|
requestedSellShares: number;
|
|
@@ -5369,7 +5682,7 @@ interface UseVenueMarketsOptions {
|
|
|
5369
5682
|
/** Enable/disable the query. Default true. */
|
|
5370
5683
|
enabled?: boolean;
|
|
5371
5684
|
/** Sort by this field. */
|
|
5372
|
-
sortBy?: "volume" | "volume24hr" | "createdAt" | "
|
|
5685
|
+
sortBy?: "volume" | "volume24hr" | "createdAt" | "updatedAt";
|
|
5373
5686
|
/** Sort direction: "asc" or "desc". */
|
|
5374
5687
|
sortDir?: "asc" | "desc";
|
|
5375
5688
|
/** Sort surface. "list" makes axis/dates events sort by volume (matches the
|
|
@@ -5935,4 +6248,4 @@ declare function useAppConfig(): UseAppConfigResult;
|
|
|
5935
6248
|
*/
|
|
5936
6249
|
declare function useCachedAppConfig(): UseAppConfigResult;
|
|
5937
6250
|
|
|
5938
|
-
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 };
|
|
6251
|
+
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 };
|