@agg-build/hooks 2.7.2 → 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 +287 -2
- package/dist/index.d.ts +287 -2
- package/dist/index.js +297 -102
- package/dist/index.mjs +140 -26
- package/dist/withdraw.js +31 -1
- package/dist/withdraw.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
|
|
|
2
2
|
import { QueryClient } from '@tanstack/react-query';
|
|
3
3
|
export { QueryClient, QueryClientProvider, useQueryClient } from '@tanstack/react-query';
|
|
4
4
|
import * as _agg_build_sdk from '@agg-build/sdk';
|
|
5
|
-
import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, QuoteManagedResponse, QuoteManagedParams, ExecuteManagedResponse, ExecuteManagedParams, 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.js';
|
|
@@ -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;
|
|
@@ -5935,4 +6220,4 @@ declare function useAppConfig(): UseAppConfigResult;
|
|
|
5935
6220
|
*/
|
|
5936
6221
|
declare function useCachedAppConfig(): UseAppConfigResult;
|
|
5937
6222
|
|
|
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 };
|
|
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 };
|