@agg-build/sdk 2.0.0 → 2.1.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.
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
20
32
  var __async = (__this, __arguments, generator) => {
21
33
  return new Promise((resolve, reject) => {
22
34
  var fulfilled = (value) => {
@@ -41,5 +53,6 @@ var __async = (__this, __arguments, generator) => {
41
53
  export {
42
54
  __spreadValues,
43
55
  __spreadProps,
56
+ __objRest,
44
57
  __async
45
58
  };
package/dist/index.d.mts CHANGED
@@ -661,6 +661,8 @@ type VenueEvent = {
661
661
  displayName: string | null;
662
662
  parentId: string | null;
663
663
  eventCount: number;
664
+ volume24hr: number;
665
+ volume: number;
664
666
  };
665
667
  }[];
666
668
  status?: MarketStatus | undefined;
@@ -867,6 +869,8 @@ type Category = {
867
869
  displayName: string | null;
868
870
  parentId: string | null;
869
871
  eventCount: number;
872
+ volume24hr: number;
873
+ volume: number;
870
874
  };
871
875
  type SettlementSource = {
872
876
  name: string;
@@ -1439,6 +1443,8 @@ interface WsWithdrawalLifecycleEvent {
1439
1443
  requestedAmountRaw?: string;
1440
1444
  /** Terminal settled amount in destination-token native decimals. */
1441
1445
  completedAmountRaw?: string | null;
1446
+ /** Realized platform fee in destination-token native decimals. Only present on terminal events. */
1447
+ feeRaw?: string | null;
1442
1448
  /** True when `status` is terminal (`completed` / `partial` / `failed`). */
1443
1449
  terminal: boolean;
1444
1450
  /** Optional leg delta — present when this event was triggered by a leg flip. */
@@ -2425,6 +2431,12 @@ interface WithdrawManagedParams {
2425
2431
  destinationAddress: string;
2426
2432
  /** EVM chain ID where the recipient should receive funds. Required as of v2026.04. */
2427
2433
  destinationChainId: number;
2434
+ /**
2435
+ * When `true`, the server caps the withdrawal to the maximum deliverable amount
2436
+ * instead of rejecting an over-balance request. Use only when the user explicitly
2437
+ * clicked Max — manual over-typed amounts must still surface the unviable state.
2438
+ */
2439
+ max?: boolean;
2428
2440
  }
2429
2441
  type WithdrawalLifecycleStatus = "pending" | "bridging" | "transferring" | "completed" | "partial" | "failed";
2430
2442
  type WithdrawalSourceStatus = "pending" | "submitted" | "confirmed" | "failed";
@@ -2467,6 +2479,19 @@ interface WithdrawalExpected {
2467
2479
  feeRaw: string | null;
2468
2480
  etaSeconds: number | null;
2469
2481
  }
2482
+ /** Body for POST /execution/withdraw/preview — identical to a withdraw request. */
2483
+ type WithdrawPreviewParams = WithdrawManagedParams;
2484
+ /** Response from POST /execution/withdraw/preview. All amounts are raw strings in destination-token native decimals. */
2485
+ interface WithdrawPreviewResponse {
2486
+ receiveAmountRaw: string | null;
2487
+ feeRaw: string | null;
2488
+ relayFeeRaw: string | null;
2489
+ networkFeeRaw: string | null;
2490
+ pricingStatus: "quoted" | "unviable";
2491
+ quoteExpiresAt: string | null;
2492
+ unviableReason: string | null;
2493
+ maxDeliverableRaw: string | null;
2494
+ }
2470
2495
  interface WithdrawManagedResponse {
2471
2496
  withdrawalId: string;
2472
2497
  status: WithdrawalLifecycleStatus;
@@ -2559,6 +2584,170 @@ type ExecutionPositionGroup = PositionGroup;
2559
2584
  type ManagedBalancesParams = {
2560
2585
  mode?: ExecutionMode;
2561
2586
  };
2587
+ interface PaperTradingAppOptions {
2588
+ /** App ID for the paper account namespace. Defaults to AggClient appId. */
2589
+ appId?: string;
2590
+ }
2591
+ interface PaperTradingListParams {
2592
+ limit?: number;
2593
+ cursor?: string;
2594
+ }
2595
+ interface CreatePaperTradingAccountParams {
2596
+ name?: string;
2597
+ externalId?: string;
2598
+ initialBalanceRaw?: string;
2599
+ initialBalance?: number;
2600
+ }
2601
+ interface SetPaperTradingBalanceParams {
2602
+ balanceRaw?: string;
2603
+ balance?: number;
2604
+ reason?: string;
2605
+ }
2606
+ interface ResetPaperTradingAccountParams {
2607
+ balanceRaw?: string;
2608
+ balance?: number;
2609
+ reason?: string;
2610
+ }
2611
+ interface PlacePaperTradingOrderParams {
2612
+ venueMarketOutcomeId: string;
2613
+ side: "buy" | "sell";
2614
+ spendRaw?: string;
2615
+ spend?: number;
2616
+ shares?: number;
2617
+ slippageBps?: number;
2618
+ clientOrderId?: string;
2619
+ }
2620
+ type PaperTradingMarkSource = "orderbook_midpoint" | "orderbook_best_bid" | "catalog_price";
2621
+ type PaperTradingLiquidityStatus = "full" | "partial" | "none";
2622
+ interface PaperTradingAccount {
2623
+ id: string;
2624
+ appId: string;
2625
+ name: string | null;
2626
+ externalId: string | null;
2627
+ currency: string;
2628
+ startingBalanceRaw: string;
2629
+ startingBalance: number;
2630
+ cashBalanceRaw: string;
2631
+ cashBalance: number;
2632
+ realizedPnlRaw: string;
2633
+ realizedPnl: number;
2634
+ kycStatus: "verified";
2635
+ kycVerified: true;
2636
+ status: "active" | "archived";
2637
+ createdAt: string;
2638
+ updatedAt: string;
2639
+ }
2640
+ interface PaperTradingPosition {
2641
+ id: string;
2642
+ accountId: string;
2643
+ venue: string;
2644
+ venueMarketId: string;
2645
+ venueMarketOutcomeId: string;
2646
+ marketQuestion: string;
2647
+ outcomeLabel: string;
2648
+ size: number;
2649
+ avgEntryPrice: number;
2650
+ markPrice: number;
2651
+ markSource: PaperTradingMarkSource;
2652
+ markTimestamp: number | null;
2653
+ bestBidPrice: number | null;
2654
+ bestAskPrice: number | null;
2655
+ midpoint: number | null;
2656
+ spread: number | null;
2657
+ marketValueRaw: string;
2658
+ marketValue: number;
2659
+ unrealizedPnlRaw: string;
2660
+ unrealizedPnl: number;
2661
+ liquidationPrice: number | null;
2662
+ liquidationValueRaw: string;
2663
+ liquidationValue: number;
2664
+ liquidationPnlRaw: string;
2665
+ liquidationPnl: number;
2666
+ liquidityShares: number;
2667
+ liquidityStatus: PaperTradingLiquidityStatus;
2668
+ realizedPnlRaw: string;
2669
+ realizedPnl: number;
2670
+ createdAt: string;
2671
+ updatedAt: string;
2672
+ }
2673
+ interface PaperTradingOrder {
2674
+ id: string;
2675
+ accountId: string;
2676
+ venue: string;
2677
+ venueMarketId: string;
2678
+ venueMarketOutcomeId: string;
2679
+ marketQuestion: string;
2680
+ outcomeLabel: string;
2681
+ side: "buy" | "sell";
2682
+ status: "filled" | "rejected";
2683
+ clientOrderId: string | null;
2684
+ requestedSpendRaw: string | null;
2685
+ requestedSpend: number | null;
2686
+ requestedShares: number | null;
2687
+ filledShares: number;
2688
+ avgPrice: number | null;
2689
+ slippageBps: number | null;
2690
+ notionalRaw: string;
2691
+ notional: number;
2692
+ cashDeltaRaw: string;
2693
+ cashDelta: number;
2694
+ realizedPnlRaw: string;
2695
+ realizedPnl: number;
2696
+ rejectionReason: string | null;
2697
+ createdAt: string;
2698
+ }
2699
+ interface PaperTradingBalanceAdjustment {
2700
+ id: string;
2701
+ accountId: string;
2702
+ type: "set_balance" | "reset";
2703
+ amountRaw: string;
2704
+ amount: number;
2705
+ previousCashBalanceRaw: string;
2706
+ previousCashBalance: number;
2707
+ newCashBalanceRaw: string;
2708
+ newCashBalance: number;
2709
+ reason: string | null;
2710
+ createdAt: string;
2711
+ }
2712
+ interface PaperTradingPortfolio {
2713
+ account: PaperTradingAccount;
2714
+ cashBalanceRaw: string;
2715
+ cashBalance: number;
2716
+ marketValueRaw: string;
2717
+ marketValue: number;
2718
+ equityRaw: string;
2719
+ equity: number;
2720
+ realizedPnlRaw: string;
2721
+ realizedPnl: number;
2722
+ unrealizedPnlRaw: string;
2723
+ unrealizedPnl: number;
2724
+ liquidationValueRaw: string;
2725
+ liquidationValue: number;
2726
+ liquidationEquityRaw: string;
2727
+ liquidationEquity: number;
2728
+ liquidationPnlRaw: string;
2729
+ liquidationPnl: number;
2730
+ positions: PaperTradingPosition[];
2731
+ }
2732
+ interface PaperTradingAccountsPage {
2733
+ data: PaperTradingAccount[];
2734
+ nextCursor: string | null;
2735
+ hasMore: boolean;
2736
+ }
2737
+ interface PaperTradingPositionsPage {
2738
+ data: PaperTradingPosition[];
2739
+ nextCursor: string | null;
2740
+ hasMore: boolean;
2741
+ }
2742
+ interface PaperTradingOrdersPage {
2743
+ data: PaperTradingOrder[];
2744
+ nextCursor: string | null;
2745
+ hasMore: boolean;
2746
+ }
2747
+ interface PaperTradingBalanceResponse {
2748
+ account: PaperTradingAccount;
2749
+ adjustment: PaperTradingBalanceAdjustment;
2750
+ }
2562
2751
  type UserActivityType = "trade" | "withdrawal" | "bridge" | "deposit" | "user_op" | "redeem";
2563
2752
  interface UserActivityBase {
2564
2753
  id: string;
@@ -2619,6 +2808,7 @@ interface UserActivityDeposit extends UserActivityBase {
2619
2808
  chainId: string;
2620
2809
  fromAddress: string;
2621
2810
  txHash: string;
2811
+ source: "connected_wallet" | "external_wallet";
2622
2812
  }
2623
2813
  interface UserActivityUserOp extends UserActivityBase {
2624
2814
  type: "user_op";
@@ -2961,6 +3151,129 @@ type SearchResponse<T> = {
2961
3151
  nextCursor: string | null;
2962
3152
  hasMore: boolean;
2963
3153
  };
3154
+ interface NewsFeedPageOptions {
3155
+ cursor?: string;
3156
+ since?: string;
3157
+ before?: string;
3158
+ limit?: number;
3159
+ }
3160
+ interface NewsFeedMarketNewsParams {
3161
+ venueMarketIds?: string[];
3162
+ venueEventIds?: string[];
3163
+ customQuery?: string;
3164
+ tbs?: string;
3165
+ limit?: number;
3166
+ }
3167
+ interface NewsFeedArticleWithSummary {
3168
+ title: string;
3169
+ url: string;
3170
+ snippet: string;
3171
+ source: string;
3172
+ imageUrl: string | null;
3173
+ publishedAt: string | null;
3174
+ summary: string;
3175
+ relevanceScore: number;
3176
+ }
3177
+ interface NewsFeedMarketNewsResult {
3178
+ venueMarketId: string;
3179
+ venueEventId: string;
3180
+ question: string;
3181
+ eventTitle: string;
3182
+ category: string;
3183
+ searchQuery: string;
3184
+ timeRange: string;
3185
+ timeRangeLabel: string;
3186
+ articles: NewsFeedArticleWithSummary[];
3187
+ }
3188
+ interface NewsFeedMarketNewsResponse {
3189
+ results: NewsFeedMarketNewsResult[];
3190
+ }
3191
+ interface NewsFeedLinkedMarket {
3192
+ venueMarketId: string;
3193
+ question: string;
3194
+ venue: string;
3195
+ yesPrice: number;
3196
+ eventTitle: string;
3197
+ eventId: string;
3198
+ summary: string;
3199
+ relevanceScore: number;
3200
+ }
3201
+ interface NewsFeedArticleFeedItem {
3202
+ article: {
3203
+ id: string;
3204
+ title: string;
3205
+ url: string;
3206
+ snippet: string;
3207
+ source: string;
3208
+ imageUrl: string | null;
3209
+ publishedAt: string | null;
3210
+ };
3211
+ markets: NewsFeedLinkedMarket[];
3212
+ category: string;
3213
+ id: string;
3214
+ seq: number;
3215
+ timestamp: string;
3216
+ }
3217
+ interface NewsFeedMarketFeedArticle {
3218
+ title: string;
3219
+ url: string;
3220
+ source: string;
3221
+ imageUrl: string | null;
3222
+ publishedAt: string | null;
3223
+ summary: string;
3224
+ relevanceScore: number;
3225
+ seq: number;
3226
+ addedAt: string;
3227
+ }
3228
+ interface NewsFeedMarketFeedItem {
3229
+ venueMarketId: string;
3230
+ question: string;
3231
+ venue: string;
3232
+ yesPrice: number;
3233
+ eventTitle: string;
3234
+ eventId: string;
3235
+ category: string;
3236
+ articleCount: number;
3237
+ articles: NewsFeedMarketFeedArticle[];
3238
+ }
3239
+ interface NewsFeedArticleFeedResponse {
3240
+ data: NewsFeedArticleFeedItem[];
3241
+ nextCursor: string | null;
3242
+ hasMore: boolean;
3243
+ }
3244
+ interface NewsFeedMarketFeedResponse {
3245
+ data: NewsFeedMarketFeedItem[];
3246
+ nextCursor: string | null;
3247
+ hasMore: boolean;
3248
+ }
3249
+ interface NewsFeedListResponse {
3250
+ feeds: Array<{
3251
+ id: string;
3252
+ name: string;
3253
+ itemCount: number;
3254
+ }>;
3255
+ }
3256
+ interface NewsFeedStatusResponse {
3257
+ articles: {
3258
+ total: number;
3259
+ today: number;
3260
+ };
3261
+ feedItems: {
3262
+ total: number;
3263
+ today: number;
3264
+ };
3265
+ perCategory: Array<{
3266
+ category: string;
3267
+ todayCount: number;
3268
+ dailyLimit: number;
3269
+ }>;
3270
+ config: {
3271
+ cronEnabled: boolean;
3272
+ itemsPerDay: number;
3273
+ batchSize: number;
3274
+ categories: string[];
3275
+ };
3276
+ }
2964
3277
  type CorrelatedMarketSide = "yes" | "no";
2965
3278
  type CorrelatedMarketSignalDirection = "more_likely" | "less_likely";
2966
3279
  interface CorrelatedMarketSignal {
@@ -3080,6 +3393,10 @@ declare class AggClient {
3080
3393
  /** In-flight refresh promise — serializes concurrent 401 retries so only one refresh runs. */
3081
3394
  private pendingRefresh;
3082
3395
  constructor(options: AggClientOptions);
3396
+ private resolvePaperTradingAppId;
3397
+ private paperTradingAccountsPath;
3398
+ private paperTradingAccountPath;
3399
+ private paperTradingListQuery;
3083
3400
  private withAuthPayload;
3084
3401
  private restoreSession;
3085
3402
  private persistSession;
@@ -3205,6 +3522,24 @@ declare class AggClient {
3205
3522
  getExecutionPositions(params?: ExecutionPositionsQuery): Promise<PaginatedResponse<ExecutionPositionGroup>>;
3206
3523
  /** Get managed wallet balances, including per-chain cash balances and per-venue position balances. */
3207
3524
  getManagedBalances(params?: ManagedBalancesParams): Promise<UnifiedBalanceResponse>;
3525
+ /** Create a server-managed paper trading account for an app. Requires adminKey or apiKey. */
3526
+ createPaperTradingAccount(params: CreatePaperTradingAccountParams, options?: PaperTradingAppOptions): Promise<PaperTradingAccount>;
3527
+ /** List server-managed paper trading accounts for an app. Requires adminKey or apiKey. */
3528
+ listPaperTradingAccounts(params?: PaperTradingListParams & PaperTradingAppOptions): Promise<PaperTradingAccountsPage>;
3529
+ /** Fetch a server-managed paper trading account. Requires adminKey or apiKey. */
3530
+ getPaperTradingAccount(accountId: string, options?: PaperTradingAppOptions): Promise<PaperTradingAccount>;
3531
+ /** Set a paper trading account cash balance. Requires adminKey or apiKey. */
3532
+ setPaperTradingBalance(accountId: string, params: SetPaperTradingBalanceParams, options?: PaperTradingAppOptions): Promise<PaperTradingBalanceResponse>;
3533
+ /** Clear positions and reset cash for a paper trading account. Requires adminKey or apiKey. */
3534
+ resetPaperTradingAccount(accountId: string, params?: ResetPaperTradingAccountParams, options?: PaperTradingAppOptions): Promise<PaperTradingBalanceResponse>;
3535
+ /** Place a direct simulated order in a paper trading account. Requires adminKey or apiKey. */
3536
+ placePaperTradingOrder(accountId: string, params: PlacePaperTradingOrderParams, options?: PaperTradingAppOptions): Promise<PaperTradingOrder>;
3537
+ /** List positions for a server-managed paper trading account. Requires adminKey or apiKey. */
3538
+ listPaperTradingPositions(accountId: string, params?: PaperTradingListParams & PaperTradingAppOptions): Promise<PaperTradingPositionsPage>;
3539
+ /** List orders for a server-managed paper trading account. Requires adminKey or apiKey. */
3540
+ listPaperTradingOrders(accountId: string, params?: PaperTradingListParams & PaperTradingAppOptions): Promise<PaperTradingOrdersPage>;
3541
+ /** Fetch account-level paper trading equity, P&L, and marked positions. Requires adminKey or apiKey. */
3542
+ getPaperTradingPortfolio(accountId: string, options?: PaperTradingAppOptions): Promise<PaperTradingPortfolio>;
3208
3543
  /** Cancel a pending managed execution by order id. */
3209
3544
  cancelManagedOrder(orderId: string, options?: {
3210
3545
  signal?: AbortSignal;
@@ -3257,6 +3592,27 @@ declare class AggClient {
3257
3592
  }): Promise<PaginatedResponse<Category>>;
3258
3593
  /** Get per-app UI config (disabled venues + category presets). Requires appId. */
3259
3594
  getAppConfig(init?: RequestInit): Promise<AppClientConfigResponse>;
3595
+ private buildNewsFeedQuery;
3596
+ /** List available market news feeds and item counts. */
3597
+ getNewsFeeds(options?: {
3598
+ signal?: AbortSignal;
3599
+ }): Promise<NewsFeedListResponse>;
3600
+ /** Get the article-centric market news feed for a category. */
3601
+ getNewsFeed(category: string, options?: NewsFeedPageOptions & {
3602
+ signal?: AbortSignal;
3603
+ }): Promise<NewsFeedArticleFeedResponse>;
3604
+ /** Get the market-centric market news feed for a category. */
3605
+ getNewsFeedMarkets(category: string, options?: NewsFeedPageOptions & {
3606
+ signal?: AbortSignal;
3607
+ }): Promise<NewsFeedMarketFeedResponse>;
3608
+ /** Get news feed coverage and per-category counts. */
3609
+ getNewsFeedStatus(options?: {
3610
+ signal?: AbortSignal;
3611
+ }): Promise<NewsFeedStatusResponse>;
3612
+ /** Search recent news for specific markets and return market impact summaries. */
3613
+ getMarketNews(params: NewsFeedMarketNewsParams, options?: {
3614
+ signal?: AbortSignal;
3615
+ }): Promise<NewsFeedMarketNewsResponse>;
3260
3616
  /**
3261
3617
  * Search events or markets by query string. Supports cursor-based pagination.
3262
3618
  *
@@ -3321,12 +3677,15 @@ declare class AggClient {
3321
3677
  getMidpoints(params: {
3322
3678
  venueMarketIds: string[];
3323
3679
  bestPrice?: boolean;
3680
+ maxMidpointIdsPerRequest?: number;
3324
3681
  }, options?: {
3325
3682
  signal?: AbortSignal;
3683
+ maxMidpointIdsPerRequest?: number;
3326
3684
  }): Promise<BatchMidpointsResponse>;
3327
3685
  getMidpoints(venueMarketIds: string[], options?: {
3328
3686
  signal?: AbortSignal;
3329
3687
  bestPrice?: boolean;
3688
+ maxMidpointIdsPerRequest?: number;
3330
3689
  }): Promise<BatchMidpointsResponse>;
3331
3690
  /** Get a single outcome-level orderbook from the engine. */
3332
3691
  getOutcomeOrderbook(outcomeId: string, options?: {
@@ -3357,6 +3716,12 @@ declare class AggClient {
3357
3716
  redeem(body: RedeemRequest): Promise<RedeemResponse>;
3358
3717
  /** Withdraw funds from managed wallets to an external address. */
3359
3718
  withdrawManaged(params: WithdrawManagedParams): Promise<WithdrawManagedResponse>;
3719
+ /**
3720
+ * Preview a withdrawal — real fee + receive estimate without creating one.
3721
+ * Optional: `withdrawManaged` does NOT require a prior preview, so partners
3722
+ * integrating against the SDK can ignore this entirely.
3723
+ */
3724
+ withdrawPreview(params: WithdrawPreviewParams): Promise<WithdrawPreviewResponse>;
3360
3725
  /**
3361
3726
  * Read the current persisted state of a withdrawal. Used as a backfill for
3362
3727
  * the WS lifecycle channel: the client polls this on hook mount and on WS
@@ -3369,6 +3734,15 @@ declare class AggClient {
3369
3734
  syncManagedBalances(): Promise<SyncBalancesResponse>;
3370
3735
  /** Get managed wallet deposit addresses (EVM + Solana). Returns 202 shape while provisioning. */
3371
3736
  getDepositAddresses(): Promise<DepositAddressesResponse>;
3737
+ /**
3738
+ * Internal: record that a deposit tx was initiated via the in-app
3739
+ * connected-wallet flow, so the activity feed can label it correctly.
3740
+ * Best-effort — callers should not block the UX on this.
3741
+ */
3742
+ recordDepositIntent(body: {
3743
+ chainId: number;
3744
+ txHash: string;
3745
+ }): Promise<void>;
3372
3746
  /** Get open positions grouped by matched market with per-venue breakdown. */
3373
3747
  getPositions(params?: GetPositionsParams): Promise<PaginatedResponse<PositionGroup>>;
3374
3748
  /** Get crypto purchase quotes. */
@@ -3460,4 +3834,4 @@ declare function aggregateMidpoint(midpoints: (number | null | undefined)[]): nu
3460
3834
 
3461
3835
  declare function createAggClient(options: AggClientOptions): AggClient;
3462
3836
 
3463
- export { type Account, AccountProvider, AccountType, type AggAuthDeliveryMode, type AggAuthProviderType, type AggAuthStartBody, type AggAuthStartResult, type AggAuthVerifyBody, AggClient, type AggClientAuthOptions, type AggClientSessionInput, type AggLinkAccountBody, type AggLinkAccountConfirmResult, type AggLinkAccountResult, type AggSessionUser, AggWebSocket, type AggWebSocketCallbacks, type AggWebSocketOptions, type AggregatedOrderbookLevel, type AggregatedOrderbookResponse, type App, type AppClientConfigResponse, type AttributedOrderbook, type AttributedOrderbookLevel, type AuthCodeResponse, type AuthStatus, type AuthTokenResponse, type AuthUser, type BatchMidpointsResponse, type BatchOrderbooksResponse, type BuildVenueUrlOpts, CONFIRMED_MATCH_STATUSES, type CancelManagedExecutionResponse, type Candle, CandleBuilder, type CandleInterval, type Category, Chain, type ChartBarsResponse, type ChartCandle, type ChartResolution, type ChartVenueCandles, type ComputeSplitsRequest, type ComputeSplitsResponse, type ComputeSplitsSelection, type CorrelatedMarketCascadeItem, type CorrelatedMarketCascadeResponse, type CorrelatedMarketQueryResult, type CorrelatedMarketSide, type CorrelatedMarketSignal, type CorrelatedMarketSignalBatch, type CorrelatedMarketSignalDirection, type CorrelatedMarketsStatus, type CreateApp, type CryptoReferencePriceError, type CryptoReferencePriceExternalMarketInput, type CryptoReferencePriceMarketInput, type CryptoReferencePriceResult, type CryptoReferencePriceSource, type CryptoReferencePriceTarget, type CryptoReferencePricesResponse, type DepositAddressesPendingResponse, type DepositAddressesReadyResponse, type DepositAddressesResponse, type DepositAddressesSupportedChain, type DepositAddressesToken, type DepositStep, type DiagnosticCallback, type DiagnosticEvent, type ExecuteManagedParams, type ExecuteManagedRequest, type ExecuteManagedResponse, type ExecuteTradeRequest, type ExecuteTradeResponse, type ExecutionMode, type ExecutionOrderItem, type ExecutionOrdersQuery, type ExecutionPositionGroup, type ExecutionPositionsQuery, type GetBalanceQuery, type GetBalanceResponse, type GetCryptoReferencePricesOptions, type GetHoldingsQuery, type GetHoldingsResponse, type GetOrdersParams, type GetOrdersQuery, type GetPositionsParams, type GetPositionsQuery, type HelloResponse, IMAGE_SIZES, ImageSize, type ListRecurringCryptoMarketsOptions, type ManagedBalancesParams, type MarkSource, type MarketPriceHistory, MarketStatus, MatchStatus, MatchType, type MatchedMidpoint, type MatchedMidpointOutcome, type MatchedOrderbookMarket, type MatchedVenueMarketOutcomeRef, type MatchingReport, type MidpointItem, type MidpointRow, type NonceResponse, type OrderListItem, type OrderListQuery, OrderStatus, OrderType, type Orderbook, type OrderbookBatchItemError, type OrderbookBatchItemErrorCode, type OrderbookBatchItemStatus, type OrderbookHistoryPoint, type OrderbookHistoryResponse, type OrderbookLevel, type OrderbookQuoteFill, type OrderbookQuoteParams, type OrderbookQuoteResponse, type OrderbookServiceUnavailableError, type OrderbookState, type OrderbooksOnlyError, type OutcomeMidpoint, type OutcomeMidpointRow, type OutcomeOrderbookResponse, type PaginatedResponse, type PersistedAuthSnapshot, type PositionGroup, type PositionRedeemStatus, type PricePoint, type PriceSource, type PricesHistoryResponse, type QuoteManagedParams, type QuoteManagedRequest, type QuoteManagedResponse, type QuoteManagedSplit, type QuoteManagedStep, type QuoteSplit, type QuoteStep, RECURRENCE_CADENCES, type RampQuote, type RampQuoteRequest, type RampSessionRequest, type RampWidgetSession, type RecurrenceCadence, type RecurrenceFilter, type RecurringCryptoComparisonPoint, type RecurringCryptoComparisonPriceSource, type RecurringCryptoDuration, type RecurringCryptoDurationInput, type RecurringCryptoMarketMetrics, type RecurringCryptoMarketsResponse, type RecurringCryptoOutcome, type RecurringCryptoPriceComparison, type RecurringCryptoReferencePrice, type RecurringCryptoResolution, type RecurringCryptoSourceConfidence, type RecurringCryptoVenueMarket, type RecurringCryptoWindowComparisons, type RecurringCryptoWindowMarket, type RedeemLegResult, type RedeemLegStatus, type RedeemRequest, type RedeemResponse, type RequestedOrderbookMarket, type ResolveCorrelatedMarketsParams, type ResolveCorrelatedMarketsResponse, type ResolvedCorrelatedMarketsResponse, type SafeParseFailure, type SafeParseResult, type SafeParseSuccess, type ServerWallet, type SettlementSource, type SetupDepositAddressStep, type SetupVenueKeyStep, type SimpleOrderbookLevel, type SmartRouteAllocation, type SmartRouteBridgeStep, type SmartRouteFeeBreakdown, type SmartRouteFill, type SmartRouteParams, type SmartRouteResponse, type SmartRouteSetupCostLine, type SmartRouteSide, type SmartRouteStatus, type SmartRouteVenueFill, type SplitsByAmountResult, type SyncBalancesResponse, TimeInForce, type TradeExecutorOrder, type TradeExecutorOrderListResponse, TradeSide$1 as TradeSide, type TradeSplit, type TradeStep, TurnstileChallengeError, type UnifiedBalanceResponse, type UpdateUserBody, type UpsertVenueKey, type UserActivityBridge, type UserActivityDeposit, type UserActivityItem, type UserActivityQuery, type UserActivityRedeem, type UserActivityRedeemLeg, type UserActivityTrade, type UserActivityType, type UserActivityUserOp, type UserActivityWithdrawal, type UserHolding, type UserProfile, VENUES, type ValidateBalanceOnClientStep, type ValidateManagedParams, type ValidateManagedRequest, type ValidateManagedResponse, type ValidateTradeRequest, type ValidateTradeResponse, Venue, type VenueEvent, type VenueEventListItem, type VenueEventWithMarkets, type VenueKeySummary, type VenueMarket, type VenueMarketClusterNode, type VenueMarketListItem, type VenueMarketOutcome, type VenueMarketRef, type VenueOrderbookEntry, type VenueOrderbookLevel, type VenuePositionBalance, type VenuePriceInfo, type VenueSoloQuote, type VerifyBody, type VerifyResponse, type WalletChainBalance, type WalletTokenBalance, type WithdrawManagedParams, type WithdrawManagedRequest, type WithdrawManagedResponse, type WithdrawManagedSourceItem, type WithdrawTokenSymbol, type WithdrawalExpected, type WithdrawalLeg, type WithdrawalLegStatus, type WithdrawalLegType, type WithdrawalLifecycleStatus, type WithdrawalSource, type WithdrawalSourceItem, type WithdrawalSourceStatus, type WithdrawalSourceTokenSymbol, type WsArbFeedBatch, type WsArbFeedEntry, type WsArbMarketUpdate, type WsAttributedLevel, type WsAuthenticated, type WsBalanceUpdate, type WsCandleInterval, type WsClientMessage, type WsConnected, type WsError, type WsHeartbeat, type WsMarkSource, type WsMarketResolved, type WsOrderEvent, type WsOrderEventType, type WsOrderSubmitted, type WsOrderbookDelta, type WsOrderbookSnapshot, type WsRedeemEvent, type WsServerMessage, type WsSubscribed, type WsTrade, type WsUnsubscribed, type WsVenueBook, type WsVenueInfo, type WsVenueLevel, type WsWithdrawalLegStatus, type WsWithdrawalLifecycleEvent, type WsWithdrawalLifecycleLeg, type WsWithdrawalLifecycleStatus, aggregateMidpoint, applyOrderbookDelta, buildVenueUrl, computeBestSplitsByAmount, computeChecksum, createAggClient, enumGuard, formatMarketQuestion, formatOutcomeLabel, formatOutcomeTitle, getWalletAddressFromUserProfile, hasShape, isEmail, isEnum, isFiniteNonNeg, isNonEmptyString, mergeCandles, mergeClosedCandles, normalizeVenueMarketCluster, optimizedImageUrl, parse, parseEmail, parseEmailStrict, safeParse, snapshotToOrderbook, sortVenues };
3837
+ export { type Account, AccountProvider, AccountType, type AggAuthDeliveryMode, type AggAuthProviderType, type AggAuthStartBody, type AggAuthStartResult, type AggAuthVerifyBody, AggClient, type AggClientAuthOptions, type AggClientSessionInput, type AggLinkAccountBody, type AggLinkAccountConfirmResult, type AggLinkAccountResult, type AggSessionUser, AggWebSocket, type AggWebSocketCallbacks, type AggWebSocketOptions, type AggregatedOrderbookLevel, type AggregatedOrderbookResponse, type App, type AppClientConfigResponse, type AttributedOrderbook, type AttributedOrderbookLevel, type AuthCodeResponse, type AuthStatus, type AuthTokenResponse, type AuthUser, type BatchMidpointsResponse, type BatchOrderbooksResponse, type BuildVenueUrlOpts, CONFIRMED_MATCH_STATUSES, type CancelManagedExecutionResponse, type Candle, CandleBuilder, type CandleInterval, type Category, Chain, type ChartBarsResponse, type ChartCandle, type ChartResolution, type ChartVenueCandles, type ComputeSplitsRequest, type ComputeSplitsResponse, type ComputeSplitsSelection, type CorrelatedMarketCascadeItem, type CorrelatedMarketCascadeResponse, type CorrelatedMarketQueryResult, type CorrelatedMarketSide, type CorrelatedMarketSignal, type CorrelatedMarketSignalBatch, type CorrelatedMarketSignalDirection, type CorrelatedMarketsStatus, type CreateApp, type CreatePaperTradingAccountParams, type CryptoReferencePriceError, type CryptoReferencePriceExternalMarketInput, type CryptoReferencePriceMarketInput, type CryptoReferencePriceResult, type CryptoReferencePriceSource, type CryptoReferencePriceTarget, type CryptoReferencePricesResponse, type DepositAddressesPendingResponse, type DepositAddressesReadyResponse, type DepositAddressesResponse, type DepositAddressesSupportedChain, type DepositAddressesToken, type DepositStep, type DiagnosticCallback, type DiagnosticEvent, type ExecuteManagedParams, type ExecuteManagedRequest, type ExecuteManagedResponse, type ExecuteTradeRequest, type ExecuteTradeResponse, type ExecutionMode, type ExecutionOrderItem, type ExecutionOrdersQuery, type ExecutionPositionGroup, type ExecutionPositionsQuery, type GetBalanceQuery, type GetBalanceResponse, type GetCryptoReferencePricesOptions, type GetHoldingsQuery, type GetHoldingsResponse, type GetOrdersParams, type GetOrdersQuery, type GetPositionsParams, type GetPositionsQuery, type HelloResponse, IMAGE_SIZES, ImageSize, type ListRecurringCryptoMarketsOptions, type ManagedBalancesParams, type MarkSource, type MarketPriceHistory, MarketStatus, MatchStatus, MatchType, type MatchedMidpoint, type MatchedMidpointOutcome, type MatchedOrderbookMarket, type MatchedVenueMarketOutcomeRef, type MatchingReport, type MidpointItem, type MidpointRow, type NewsFeedArticleFeedItem, type NewsFeedArticleFeedResponse, type NewsFeedArticleWithSummary, type NewsFeedLinkedMarket, type NewsFeedListResponse, type NewsFeedMarketFeedArticle, type NewsFeedMarketFeedItem, type NewsFeedMarketFeedResponse, type NewsFeedMarketNewsParams, type NewsFeedMarketNewsResponse, type NewsFeedMarketNewsResult, type NewsFeedPageOptions, type NewsFeedStatusResponse, type NonceResponse, type OrderListItem, type OrderListQuery, OrderStatus, OrderType, type Orderbook, type OrderbookBatchItemError, type OrderbookBatchItemErrorCode, type OrderbookBatchItemStatus, type OrderbookHistoryPoint, type OrderbookHistoryResponse, type OrderbookLevel, type OrderbookQuoteFill, type OrderbookQuoteParams, type OrderbookQuoteResponse, type OrderbookServiceUnavailableError, type OrderbookState, type OrderbooksOnlyError, type OutcomeMidpoint, type OutcomeMidpointRow, type OutcomeOrderbookResponse, type PaginatedResponse, type PaperTradingAccount, type PaperTradingAccountsPage, type PaperTradingAppOptions, type PaperTradingBalanceAdjustment, type PaperTradingBalanceResponse, type PaperTradingLiquidityStatus, type PaperTradingListParams, type PaperTradingMarkSource, type PaperTradingOrder, type PaperTradingOrdersPage, type PaperTradingPortfolio, type PaperTradingPosition, type PaperTradingPositionsPage, type PersistedAuthSnapshot, type PlacePaperTradingOrderParams, type PositionGroup, type PositionRedeemStatus, type PricePoint, type PriceSource, type PricesHistoryResponse, type QuoteManagedParams, type QuoteManagedRequest, type QuoteManagedResponse, type QuoteManagedSplit, type QuoteManagedStep, type QuoteSplit, type QuoteStep, RECURRENCE_CADENCES, type RampQuote, type RampQuoteRequest, type RampSessionRequest, type RampWidgetSession, type RecurrenceCadence, type RecurrenceFilter, type RecurringCryptoComparisonPoint, type RecurringCryptoComparisonPriceSource, type RecurringCryptoDuration, type RecurringCryptoDurationInput, type RecurringCryptoMarketMetrics, type RecurringCryptoMarketsResponse, type RecurringCryptoOutcome, type RecurringCryptoPriceComparison, type RecurringCryptoReferencePrice, type RecurringCryptoResolution, type RecurringCryptoSourceConfidence, type RecurringCryptoVenueMarket, type RecurringCryptoWindowComparisons, type RecurringCryptoWindowMarket, type RedeemLegResult, type RedeemLegStatus, type RedeemRequest, type RedeemResponse, type RequestedOrderbookMarket, type ResetPaperTradingAccountParams, type ResolveCorrelatedMarketsParams, type ResolveCorrelatedMarketsResponse, type ResolvedCorrelatedMarketsResponse, type SafeParseFailure, type SafeParseResult, type SafeParseSuccess, type ServerWallet, type SetPaperTradingBalanceParams, type SettlementSource, type SetupDepositAddressStep, type SetupVenueKeyStep, type SimpleOrderbookLevel, type SmartRouteAllocation, type SmartRouteBridgeStep, type SmartRouteFeeBreakdown, type SmartRouteFill, type SmartRouteParams, type SmartRouteResponse, type SmartRouteSetupCostLine, type SmartRouteSide, type SmartRouteStatus, type SmartRouteVenueFill, type SplitsByAmountResult, type SyncBalancesResponse, TimeInForce, type TradeExecutorOrder, type TradeExecutorOrderListResponse, TradeSide$1 as TradeSide, type TradeSplit, type TradeStep, TurnstileChallengeError, type UnifiedBalanceResponse, type UpdateUserBody, type UpsertVenueKey, type UserActivityBridge, type UserActivityDeposit, type UserActivityItem, type UserActivityQuery, type UserActivityRedeem, type UserActivityRedeemLeg, type UserActivityTrade, type UserActivityType, type UserActivityUserOp, type UserActivityWithdrawal, type UserHolding, type UserProfile, VENUES, type ValidateBalanceOnClientStep, type ValidateManagedParams, type ValidateManagedRequest, type ValidateManagedResponse, type ValidateTradeRequest, type ValidateTradeResponse, Venue, type VenueEvent, type VenueEventListItem, type VenueEventWithMarkets, type VenueKeySummary, type VenueMarket, type VenueMarketClusterNode, type VenueMarketListItem, type VenueMarketOutcome, type VenueMarketRef, type VenueOrderbookEntry, type VenueOrderbookLevel, type VenuePositionBalance, type VenuePriceInfo, type VenueSoloQuote, type VerifyBody, type VerifyResponse, type WalletChainBalance, type WalletTokenBalance, type WithdrawManagedParams, type WithdrawManagedRequest, type WithdrawManagedResponse, type WithdrawManagedSourceItem, type WithdrawPreviewParams, type WithdrawPreviewResponse, type WithdrawTokenSymbol, type WithdrawalExpected, type WithdrawalLeg, type WithdrawalLegStatus, type WithdrawalLegType, type WithdrawalLifecycleStatus, type WithdrawalSource, type WithdrawalSourceItem, type WithdrawalSourceStatus, type WithdrawalSourceTokenSymbol, type WsArbFeedBatch, type WsArbFeedEntry, type WsArbMarketUpdate, type WsAttributedLevel, type WsAuthenticated, type WsBalanceUpdate, type WsCandleInterval, type WsClientMessage, type WsConnected, type WsError, type WsHeartbeat, type WsMarkSource, type WsMarketResolved, type WsOrderEvent, type WsOrderEventType, type WsOrderSubmitted, type WsOrderbookDelta, type WsOrderbookSnapshot, type WsRedeemEvent, type WsServerMessage, type WsSubscribed, type WsTrade, type WsUnsubscribed, type WsVenueBook, type WsVenueInfo, type WsVenueLevel, type WsWithdrawalLegStatus, type WsWithdrawalLifecycleEvent, type WsWithdrawalLifecycleLeg, type WsWithdrawalLifecycleStatus, aggregateMidpoint, applyOrderbookDelta, buildVenueUrl, computeBestSplitsByAmount, computeChecksum, createAggClient, enumGuard, formatMarketQuestion, formatOutcomeLabel, formatOutcomeTitle, getWalletAddressFromUserProfile, hasShape, isEmail, isEnum, isFiniteNonNeg, isNonEmptyString, mergeCandles, mergeClosedCandles, normalizeVenueMarketCluster, optimizedImageUrl, parse, parseEmail, parseEmailStrict, safeParse, snapshotToOrderbook, sortVenues };