@agg-build/hooks 4.18.0 → 4.19.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/README.md +9 -8
- package/dist/{chunk-ESDA4NZI.mjs → chunk-4TVA4XJ5.mjs} +25 -0
- package/dist/{chunk-SBGLJDPJ.mjs → chunk-H4RVA4SH.mjs} +1 -1
- package/dist/{chunk-5B2F3GMC.mjs → chunk-XETRWNX5.mjs} +1 -1
- package/dist/deposit.js +25 -0
- package/dist/deposit.mjs +2 -2
- package/dist/index.d.mts +278 -2
- package/dist/index.d.ts +278 -2
- package/dist/index.js +175 -69
- package/dist/index.mjs +108 -31
- package/dist/withdraw.js +25 -0
- package/dist/withdraw.mjs +2 -2
- package/package.json +2 -2
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, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, ExecutionStatusStep, WsOrderSubmitted, WsBalanceUpdate, ExecutionStatusOrder, CreateBalanceRefillPolicyParams, UpdateBalanceRefillPolicyParams, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, ChartBarsMeta, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, Venue as Venue$1, VenueKeyStatus, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountWalletConfirmBody, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurringCryptoDuration, RecurringCryptoVenueMarket, RecurringCryptoWindowMarket, RecurrenceFilter, SportsLiveResponse, SportsLiveState, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse, AppTradingMode, VenueMarket as VenueMarket$1, HostedVenueWithdrawalRequest } from '@agg-build/sdk';
|
|
5
|
+
import { CandleBuilder, AggAuthStartBody, AggAuthStartResult, AggClientSessionInput, AggClient, RampQuote, RampQuoteRequest, RampWidgetSession, RampSessionRequest, ExecuteManagedResponse, ExecuteManagedParams, PlaceLimitOrderResponse, PlaceLimitOrderParams, CancelManagedExecutionResponse, GetPositionsParams, ExecutionStatusStep, WsOrderSubmitted, WsBalanceUpdate, ExecutionStatusOrder, CreateBalanceRefillPolicyParams, UpdateBalanceRefillPolicyParams, RedeemResponse, RedeemRequest, WsRedeemEvent, AggWebSocket, WsOrderEvent, WsWithdrawalLifecycleEvent, ChartBarsMeta, WsCandleInterval, WsTrade, AggregatedOrderbookResponse, Venue as Venue$1, VenueKeyStatus, AggLinkAccountBody, AggLinkAccountResult, AggLinkAccountWalletConfirmBody, AggLinkAccountConfirmResult, Category, UserActivityQuery, UserActivityItem, PaginatedResponse, LeaderboardMetric, LeaderboardRow, CandleInterval, OrderbookState, OrderbookQuoteResponse, OrderListQuery, TradeExecutorOrder, SmartRouteSide, ExecutionMode, SmartRouteResponse, RecurringCryptoDuration, RecurringCryptoVenueMarket, RecurringCryptoWindowMarket, RecurrenceFilter, SportsLiveResponse, SportsLiveState, MidpointRow, BatchMidpointsResponse, AppClientConfigResponse, AppTradingMode, VenueMarket as VenueMarket$1, HostedVenueWithdrawalRequest } from '@agg-build/sdk';
|
|
6
6
|
export { SportsGameStatus, SportsLiveParticipant, SportsLiveResponse, SportsLiveState, 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';
|
|
@@ -1220,6 +1220,40 @@ interface AggUiLabels {
|
|
|
1220
1220
|
readFullDetails: string;
|
|
1221
1221
|
showLess: string;
|
|
1222
1222
|
};
|
|
1223
|
+
leaderboard: {
|
|
1224
|
+
title: string;
|
|
1225
|
+
/** `appName` is undefined when the host does not pass one. */
|
|
1226
|
+
subtitle: (appName: string | undefined, periodLabel: string) => string;
|
|
1227
|
+
periodLabel: string;
|
|
1228
|
+
rankByLabel: string;
|
|
1229
|
+
periods: {
|
|
1230
|
+
"1d": string;
|
|
1231
|
+
"7d": string;
|
|
1232
|
+
"30d": string;
|
|
1233
|
+
all: string;
|
|
1234
|
+
};
|
|
1235
|
+
metrics: {
|
|
1236
|
+
realizedPnl: string;
|
|
1237
|
+
volume: string;
|
|
1238
|
+
};
|
|
1239
|
+
columns: {
|
|
1240
|
+
rank: string;
|
|
1241
|
+
trader: string;
|
|
1242
|
+
orders: string;
|
|
1243
|
+
volume: string;
|
|
1244
|
+
realizedPnl: string;
|
|
1245
|
+
};
|
|
1246
|
+
tradesCount: (count: number) => string;
|
|
1247
|
+
anonymousTrader: string;
|
|
1248
|
+
you: string;
|
|
1249
|
+
showMore: string;
|
|
1250
|
+
loadingAria: string;
|
|
1251
|
+
emptyTitle: string;
|
|
1252
|
+
emptyDescription: string;
|
|
1253
|
+
errorTitle: string;
|
|
1254
|
+
errorDescription: string;
|
|
1255
|
+
pnlFootnote: string;
|
|
1256
|
+
};
|
|
1223
1257
|
marketDetails: {
|
|
1224
1258
|
loading: string;
|
|
1225
1259
|
unavailableAria: string;
|
|
@@ -4183,6 +4217,248 @@ declare function useUserActivity(options?: UseUserActivityOptions): {
|
|
|
4183
4217
|
promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<UserActivityItem>, unknown>>;
|
|
4184
4218
|
};
|
|
4185
4219
|
|
|
4220
|
+
/** Preset ranges the leaderboard UI offers. The API itself takes any from/to. */
|
|
4221
|
+
type LeaderboardPeriod = "1d" | "7d" | "30d" | "all";
|
|
4222
|
+
declare const LEADERBOARD_PERIODS: readonly LeaderboardPeriod[];
|
|
4223
|
+
interface UseLeaderboardOptions {
|
|
4224
|
+
/** Default `30d`. */
|
|
4225
|
+
period?: LeaderboardPeriod;
|
|
4226
|
+
/** Default `realizedPnl`. */
|
|
4227
|
+
metric?: LeaderboardMetric;
|
|
4228
|
+
/** Page size, 1..100. Default 50. */
|
|
4229
|
+
limit?: number;
|
|
4230
|
+
enabled?: boolean;
|
|
4231
|
+
}
|
|
4232
|
+
/**
|
|
4233
|
+
* Inclusive UTC day range for a preset. `1d` is today, `7d` is the last 7
|
|
4234
|
+
* UTC days including today, `30d` the last 30. `all` returns no bounds.
|
|
4235
|
+
*/
|
|
4236
|
+
declare function leaderboardRange(period: LeaderboardPeriod, now?: Date): {
|
|
4237
|
+
from?: string;
|
|
4238
|
+
to?: string;
|
|
4239
|
+
};
|
|
4240
|
+
declare const leaderboardQueryKeys: {
|
|
4241
|
+
all: () => readonly ["leaderboard"];
|
|
4242
|
+
list: (period: LeaderboardPeriod, metric: LeaderboardMetric, limit: number) => readonly ["leaderboard", LeaderboardPeriod, LeaderboardMetric, number];
|
|
4243
|
+
};
|
|
4244
|
+
declare function useLeaderboard(options?: UseLeaderboardOptions): {
|
|
4245
|
+
rows: LeaderboardRow[];
|
|
4246
|
+
hasNextPage: boolean;
|
|
4247
|
+
data: _tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>;
|
|
4248
|
+
error: Error;
|
|
4249
|
+
isError: true;
|
|
4250
|
+
isPending: false;
|
|
4251
|
+
isLoading: false;
|
|
4252
|
+
isLoadingError: false;
|
|
4253
|
+
isRefetchError: true;
|
|
4254
|
+
isSuccess: false;
|
|
4255
|
+
isPlaceholderData: false;
|
|
4256
|
+
status: "error";
|
|
4257
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4258
|
+
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4259
|
+
hasPreviousPage: boolean;
|
|
4260
|
+
isFetchNextPageError: boolean;
|
|
4261
|
+
isFetchingNextPage: boolean;
|
|
4262
|
+
isFetchPreviousPageError: boolean;
|
|
4263
|
+
isFetchingPreviousPage: boolean;
|
|
4264
|
+
dataUpdatedAt: number;
|
|
4265
|
+
errorUpdatedAt: number;
|
|
4266
|
+
failureCount: number;
|
|
4267
|
+
failureReason: Error | null;
|
|
4268
|
+
errorUpdateCount: number;
|
|
4269
|
+
isFetched: boolean;
|
|
4270
|
+
isFetchedAfterMount: boolean;
|
|
4271
|
+
isFetching: boolean;
|
|
4272
|
+
isInitialLoading: boolean;
|
|
4273
|
+
isPaused: boolean;
|
|
4274
|
+
isRefetching: boolean;
|
|
4275
|
+
isStale: boolean;
|
|
4276
|
+
isEnabled: boolean;
|
|
4277
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4278
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
4279
|
+
promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>>;
|
|
4280
|
+
} | {
|
|
4281
|
+
rows: LeaderboardRow[];
|
|
4282
|
+
hasNextPage: boolean;
|
|
4283
|
+
data: _tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>;
|
|
4284
|
+
error: null;
|
|
4285
|
+
isError: false;
|
|
4286
|
+
isPending: false;
|
|
4287
|
+
isLoading: false;
|
|
4288
|
+
isLoadingError: false;
|
|
4289
|
+
isRefetchError: false;
|
|
4290
|
+
isFetchNextPageError: false;
|
|
4291
|
+
isFetchPreviousPageError: false;
|
|
4292
|
+
isSuccess: true;
|
|
4293
|
+
isPlaceholderData: false;
|
|
4294
|
+
status: "success";
|
|
4295
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4296
|
+
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4297
|
+
hasPreviousPage: boolean;
|
|
4298
|
+
isFetchingNextPage: boolean;
|
|
4299
|
+
isFetchingPreviousPage: boolean;
|
|
4300
|
+
dataUpdatedAt: number;
|
|
4301
|
+
errorUpdatedAt: number;
|
|
4302
|
+
failureCount: number;
|
|
4303
|
+
failureReason: Error | null;
|
|
4304
|
+
errorUpdateCount: number;
|
|
4305
|
+
isFetched: boolean;
|
|
4306
|
+
isFetchedAfterMount: boolean;
|
|
4307
|
+
isFetching: boolean;
|
|
4308
|
+
isInitialLoading: boolean;
|
|
4309
|
+
isPaused: boolean;
|
|
4310
|
+
isRefetching: boolean;
|
|
4311
|
+
isStale: boolean;
|
|
4312
|
+
isEnabled: boolean;
|
|
4313
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4314
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
4315
|
+
promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>>;
|
|
4316
|
+
} | {
|
|
4317
|
+
rows: LeaderboardRow[];
|
|
4318
|
+
hasNextPage: boolean;
|
|
4319
|
+
data: undefined;
|
|
4320
|
+
error: Error;
|
|
4321
|
+
isError: true;
|
|
4322
|
+
isPending: false;
|
|
4323
|
+
isLoading: false;
|
|
4324
|
+
isLoadingError: true;
|
|
4325
|
+
isRefetchError: false;
|
|
4326
|
+
isFetchNextPageError: false;
|
|
4327
|
+
isFetchPreviousPageError: false;
|
|
4328
|
+
isSuccess: false;
|
|
4329
|
+
isPlaceholderData: false;
|
|
4330
|
+
status: "error";
|
|
4331
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4332
|
+
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4333
|
+
hasPreviousPage: boolean;
|
|
4334
|
+
isFetchingNextPage: boolean;
|
|
4335
|
+
isFetchingPreviousPage: boolean;
|
|
4336
|
+
dataUpdatedAt: number;
|
|
4337
|
+
errorUpdatedAt: number;
|
|
4338
|
+
failureCount: number;
|
|
4339
|
+
failureReason: Error | null;
|
|
4340
|
+
errorUpdateCount: number;
|
|
4341
|
+
isFetched: boolean;
|
|
4342
|
+
isFetchedAfterMount: boolean;
|
|
4343
|
+
isFetching: boolean;
|
|
4344
|
+
isInitialLoading: boolean;
|
|
4345
|
+
isPaused: boolean;
|
|
4346
|
+
isRefetching: boolean;
|
|
4347
|
+
isStale: boolean;
|
|
4348
|
+
isEnabled: boolean;
|
|
4349
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4350
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
4351
|
+
promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>>;
|
|
4352
|
+
} | {
|
|
4353
|
+
rows: LeaderboardRow[];
|
|
4354
|
+
hasNextPage: boolean;
|
|
4355
|
+
data: undefined;
|
|
4356
|
+
error: null;
|
|
4357
|
+
isError: false;
|
|
4358
|
+
isPending: true;
|
|
4359
|
+
isLoading: true;
|
|
4360
|
+
isLoadingError: false;
|
|
4361
|
+
isRefetchError: false;
|
|
4362
|
+
isFetchNextPageError: false;
|
|
4363
|
+
isFetchPreviousPageError: false;
|
|
4364
|
+
isSuccess: false;
|
|
4365
|
+
isPlaceholderData: false;
|
|
4366
|
+
status: "pending";
|
|
4367
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4368
|
+
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4369
|
+
hasPreviousPage: boolean;
|
|
4370
|
+
isFetchingNextPage: boolean;
|
|
4371
|
+
isFetchingPreviousPage: boolean;
|
|
4372
|
+
dataUpdatedAt: number;
|
|
4373
|
+
errorUpdatedAt: number;
|
|
4374
|
+
failureCount: number;
|
|
4375
|
+
failureReason: Error | null;
|
|
4376
|
+
errorUpdateCount: number;
|
|
4377
|
+
isFetched: boolean;
|
|
4378
|
+
isFetchedAfterMount: boolean;
|
|
4379
|
+
isFetching: boolean;
|
|
4380
|
+
isInitialLoading: boolean;
|
|
4381
|
+
isPaused: boolean;
|
|
4382
|
+
isRefetching: boolean;
|
|
4383
|
+
isStale: boolean;
|
|
4384
|
+
isEnabled: boolean;
|
|
4385
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4386
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
4387
|
+
promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>>;
|
|
4388
|
+
} | {
|
|
4389
|
+
rows: LeaderboardRow[];
|
|
4390
|
+
hasNextPage: boolean;
|
|
4391
|
+
data: undefined;
|
|
4392
|
+
error: null;
|
|
4393
|
+
isError: false;
|
|
4394
|
+
isPending: true;
|
|
4395
|
+
isLoadingError: false;
|
|
4396
|
+
isRefetchError: false;
|
|
4397
|
+
isFetchNextPageError: false;
|
|
4398
|
+
isFetchPreviousPageError: false;
|
|
4399
|
+
isSuccess: false;
|
|
4400
|
+
isPlaceholderData: false;
|
|
4401
|
+
status: "pending";
|
|
4402
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4403
|
+
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4404
|
+
hasPreviousPage: boolean;
|
|
4405
|
+
isFetchingNextPage: boolean;
|
|
4406
|
+
isFetchingPreviousPage: boolean;
|
|
4407
|
+
dataUpdatedAt: number;
|
|
4408
|
+
errorUpdatedAt: number;
|
|
4409
|
+
failureCount: number;
|
|
4410
|
+
failureReason: Error | null;
|
|
4411
|
+
errorUpdateCount: number;
|
|
4412
|
+
isFetched: boolean;
|
|
4413
|
+
isFetchedAfterMount: boolean;
|
|
4414
|
+
isFetching: boolean;
|
|
4415
|
+
isLoading: boolean;
|
|
4416
|
+
isInitialLoading: boolean;
|
|
4417
|
+
isPaused: boolean;
|
|
4418
|
+
isRefetching: boolean;
|
|
4419
|
+
isStale: boolean;
|
|
4420
|
+
isEnabled: boolean;
|
|
4421
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4422
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
4423
|
+
promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>>;
|
|
4424
|
+
} | {
|
|
4425
|
+
rows: LeaderboardRow[];
|
|
4426
|
+
hasNextPage: boolean;
|
|
4427
|
+
data: _tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>;
|
|
4428
|
+
isError: false;
|
|
4429
|
+
error: null;
|
|
4430
|
+
isPending: false;
|
|
4431
|
+
isLoading: false;
|
|
4432
|
+
isLoadingError: false;
|
|
4433
|
+
isRefetchError: false;
|
|
4434
|
+
isSuccess: true;
|
|
4435
|
+
isPlaceholderData: true;
|
|
4436
|
+
isFetchNextPageError: false;
|
|
4437
|
+
isFetchPreviousPageError: false;
|
|
4438
|
+
status: "success";
|
|
4439
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4440
|
+
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4441
|
+
hasPreviousPage: boolean;
|
|
4442
|
+
isFetchingNextPage: boolean;
|
|
4443
|
+
isFetchingPreviousPage: boolean;
|
|
4444
|
+
dataUpdatedAt: number;
|
|
4445
|
+
errorUpdatedAt: number;
|
|
4446
|
+
failureCount: number;
|
|
4447
|
+
failureReason: Error | null;
|
|
4448
|
+
errorUpdateCount: number;
|
|
4449
|
+
isFetched: boolean;
|
|
4450
|
+
isFetchedAfterMount: boolean;
|
|
4451
|
+
isFetching: boolean;
|
|
4452
|
+
isInitialLoading: boolean;
|
|
4453
|
+
isPaused: boolean;
|
|
4454
|
+
isRefetching: boolean;
|
|
4455
|
+
isStale: boolean;
|
|
4456
|
+
isEnabled: boolean;
|
|
4457
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>, Error>>;
|
|
4458
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
4459
|
+
promise: Promise<_tanstack_react_query.InfiniteData<PaginatedResponse<LeaderboardRow>, unknown>>;
|
|
4460
|
+
};
|
|
4461
|
+
|
|
4186
4462
|
interface UseExternalIdOptions {
|
|
4187
4463
|
onSuccess?: (profile: UserProfile) => void;
|
|
4188
4464
|
onError?: (error: Error) => void;
|
|
@@ -7942,4 +8218,4 @@ declare function useHostedVenueTransfers(accountId: string, environment: Environ
|
|
|
7942
8218
|
clear: () => void;
|
|
7943
8219
|
};
|
|
7944
8220
|
|
|
7945
|
-
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 ExecutionRawStepProgress, type ExecutionStepProgress, 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_ORDER_VENUE_MARKET_IDS_PER_REQUEST, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartAvailability, 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 RecurringCryptoIdentity, type RecurringCryptoMarketInstance, type RecurringCryptoTimeline, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, SPORTS_LIVE_POLL_INTERVAL_MS, SPORTS_SCHEDULED_POLL_INTERVAL_MS, 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 UseExecutionOrdersForMarketsOptions, type UseExecutionOrdersForMarketsResult, 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 UseMarketChartsResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePaperOnboardingResult, type UsePlaceLimitOrderOptions, type UsePositionsOptions, type UseRecurringCryptoMarketsOptions, type UseRedeemLifecycleInput, type UseResolvedExecutionModeResult, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSettlementDetailsDataOptions, 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, appConfigQueryKey, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, fetchRecurringCryptoMarkets, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, hostedVenueAccountQueryKeys, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, mergeRecurringCryptoWindows, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, recurringCryptoTransitionPollInterval, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRecurringCryptoIdentity, resolveRecurringCryptoTimeline, resolveRollingWindow, resolveTradingStateKind, retinaImageUrl, sharedKycQueryKeys, sortVenues, sportsLiveQueryKey, sportsLiveRefetchInterval, 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, useExecutionOrdersForMarkets, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useHostedVenueAccount, useHostedVenueActivity, useHostedVenueTransfers, useLabels, useLimitOrderVenueQuotes, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketCharts, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePaperOnboarding, usePlaceLimitOrder, usePositions, useRampQuotes, useRampSession, useRecurringCryptoMarkets, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useResolvedExecutionMode, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSettlementDetailsData, useSharedKyc, useSmartRoute, useSportsLive, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueKeyStatus, useVenueMarketMidpoints, useVenueMarkets, useVenueSellQuotes, useViewportMidpoints, useVisibleIds, userActivityQueryKeys, venueKeyQueryKeys };
|
|
8221
|
+
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 ExecutionRawStepProgress, type ExecutionStepProgress, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, LEADERBOARD_PERIODS, type LeaderboardPeriod, type LimitOrderVenueQuoteRequest, type LimitOrderVenueQuoteResult, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_ORDER_VENUE_MARKET_IDS_PER_REQUEST, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartAvailability, 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 RecurringCryptoIdentity, type RecurringCryptoMarketInstance, type RecurringCryptoTimeline, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, SPORTS_LIVE_POLL_INTERVAL_MS, SPORTS_SCHEDULED_POLL_INTERVAL_MS, 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 UseExecutionOrdersForMarketsOptions, type UseExecutionOrdersForMarketsResult, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLeaderboardOptions, type UseLimitOrderVenueQuotesOptions, type UseLimitOrderVenueQuotesResult, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketChartsResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePaperOnboardingResult, type UsePlaceLimitOrderOptions, type UsePositionsOptions, type UseRecurringCryptoMarketsOptions, type UseRedeemLifecycleInput, type UseResolvedExecutionModeResult, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSettlementDetailsDataOptions, 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, appConfigQueryKey, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, fetchRecurringCryptoMarkets, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, hostedVenueAccountQueryKeys, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, leaderboardQueryKeys, leaderboardRange, mergeBestPricesPreferringLive, mergeRecurringCryptoWindows, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, recurringCryptoTransitionPollInterval, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRecurringCryptoIdentity, resolveRecurringCryptoTimeline, resolveRollingWindow, resolveTradingStateKind, retinaImageUrl, sharedKycQueryKeys, sortVenues, sportsLiveQueryKey, sportsLiveRefetchInterval, 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, useExecutionOrdersForMarkets, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useHostedVenueAccount, useHostedVenueActivity, useHostedVenueTransfers, useLabels, useLeaderboard, useLimitOrderVenueQuotes, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketCharts, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePaperOnboarding, usePlaceLimitOrder, usePositions, useRampQuotes, useRampSession, useRecurringCryptoMarkets, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useResolvedExecutionMode, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSettlementDetailsData, useSharedKyc, useSmartRoute, useSportsLive, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueKeyStatus, useVenueMarketMidpoints, useVenueMarkets, useVenueSellQuotes, useViewportMidpoints, useVisibleIds, userActivityQueryKeys, venueKeyQueryKeys };
|