@agg-build/sdk 1.2.11 → 1.3.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/index.d.mts +139 -16
- package/dist/index.d.ts +139 -16
- package/dist/index.js +145 -5
- package/dist/index.mjs +145 -5
- package/dist/server.d.mts +62 -6
- package/dist/server.d.ts +62 -6
- package/dist/server.js +61 -2
- package/dist/server.mjs +58 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -375,7 +375,9 @@ type WalletChainBalance = {
|
|
|
375
375
|
chainId: number;
|
|
376
376
|
tokenAddress: string;
|
|
377
377
|
balanceRaw: string;
|
|
378
|
+
decimals: number;
|
|
378
379
|
lastSyncedAt: string;
|
|
380
|
+
tokenSymbol?: string | undefined;
|
|
379
381
|
};
|
|
380
382
|
type WalletTokenBalance = {
|
|
381
383
|
tokenSymbol: string;
|
|
@@ -624,6 +626,7 @@ type VenueEvent = {
|
|
|
624
626
|
category: {
|
|
625
627
|
id: string;
|
|
626
628
|
name: string;
|
|
629
|
+
displayName: string | null;
|
|
627
630
|
parentId: string | null;
|
|
628
631
|
eventCount: number;
|
|
629
632
|
};
|
|
@@ -827,6 +830,7 @@ type ComputeSplitsResponse = {
|
|
|
827
830
|
type Category = {
|
|
828
831
|
id: string;
|
|
829
832
|
name: string;
|
|
833
|
+
displayName: string | null;
|
|
830
834
|
parentId: string | null;
|
|
831
835
|
eventCount: number;
|
|
832
836
|
};
|
|
@@ -863,6 +867,7 @@ type ValidateManagedRequest = {
|
|
|
863
867
|
amount: number;
|
|
864
868
|
};
|
|
865
869
|
type WithdrawTokenSymbol$1 = "USDC" | "USDC.e" | "USDT";
|
|
870
|
+
type WithdrawalSourceTokenSymbol$1 = WithdrawTokenSymbol$1 | "pUSD";
|
|
866
871
|
type WithdrawManagedRequest = {
|
|
867
872
|
/** Positive integer string in the token's native decimals (e.g. "100000" = 0.1 USDC). */
|
|
868
873
|
amountRaw: string;
|
|
@@ -876,7 +881,7 @@ type WithdrawalSourceStatus$1 = "pending" | "submitted" | "confirmed" | "failed"
|
|
|
876
881
|
type WithdrawalSourceItem = {
|
|
877
882
|
sourceId: string;
|
|
878
883
|
chainId: number;
|
|
879
|
-
tokenSymbol:
|
|
884
|
+
tokenSymbol: WithdrawalSourceTokenSymbol$1;
|
|
880
885
|
/** On-chain token address on `chainId`. */
|
|
881
886
|
tokenAddress: string;
|
|
882
887
|
/**
|
|
@@ -1412,7 +1417,28 @@ interface WsWithdrawalLifecycleEvent {
|
|
|
1412
1417
|
/** @unit milliseconds (raw from server — NOT converted like other WS types) */
|
|
1413
1418
|
timestamp: number;
|
|
1414
1419
|
}
|
|
1415
|
-
|
|
1420
|
+
interface WsArbMarketUpdate {
|
|
1421
|
+
type: "arb_market_update";
|
|
1422
|
+
marketId: string;
|
|
1423
|
+
venueEventId: string | null;
|
|
1424
|
+
arbReturn: number;
|
|
1425
|
+
ts: number;
|
|
1426
|
+
}
|
|
1427
|
+
interface WsArbFeedEntry {
|
|
1428
|
+
marketId: string;
|
|
1429
|
+
venueEventId: string | null;
|
|
1430
|
+
arbReturn: number;
|
|
1431
|
+
ts: number;
|
|
1432
|
+
}
|
|
1433
|
+
interface WsArbFeedBatch {
|
|
1434
|
+
type: "arb_feed_batch";
|
|
1435
|
+
feed: "arb";
|
|
1436
|
+
entries: WsArbFeedEntry[];
|
|
1437
|
+
flushTs: number;
|
|
1438
|
+
chunk: number;
|
|
1439
|
+
chunkCount: number;
|
|
1440
|
+
}
|
|
1441
|
+
type WsServerMessage = WsOrderbookSnapshot | WsOrderbookDelta | WsTrade | WsSubscribed | WsUnsubscribed | WsConnected | WsAuthenticated | WsHeartbeat | WsMarketResolved | WsError | WsOrderSubmitted | WsBalanceUpdate | WsOrderEvent | WsRedeemEvent | WsWithdrawalLifecycleEvent | WsArbMarketUpdate | WsArbFeedBatch;
|
|
1416
1442
|
type WsClientMessage = {
|
|
1417
1443
|
action: "subscribe";
|
|
1418
1444
|
channel: "orderbook" | "trades";
|
|
@@ -1425,6 +1451,20 @@ type WsClientMessage = {
|
|
|
1425
1451
|
action: "resnapshot";
|
|
1426
1452
|
channel: "orderbook";
|
|
1427
1453
|
outcomeIds: string[];
|
|
1454
|
+
} | {
|
|
1455
|
+
action: "subscribe";
|
|
1456
|
+
channel: "arb";
|
|
1457
|
+
marketIds: string[];
|
|
1458
|
+
} | {
|
|
1459
|
+
action: "unsubscribe";
|
|
1460
|
+
channel: "arb";
|
|
1461
|
+
marketIds: string[];
|
|
1462
|
+
} | {
|
|
1463
|
+
action: "subscribe";
|
|
1464
|
+
channel: "arb-feed";
|
|
1465
|
+
} | {
|
|
1466
|
+
action: "unsubscribe";
|
|
1467
|
+
channel: "arb-feed";
|
|
1428
1468
|
} | {
|
|
1429
1469
|
action: "authenticate";
|
|
1430
1470
|
token: string;
|
|
@@ -1532,6 +1572,8 @@ interface AggWebSocketCallbacks {
|
|
|
1532
1572
|
onOrderEvent?: (msg: WsOrderEvent) => void;
|
|
1533
1573
|
onRedeemEvent?: (msg: WsRedeemEvent) => void;
|
|
1534
1574
|
onWithdrawalLifecycle?: (msg: WsWithdrawalLifecycleEvent) => void;
|
|
1575
|
+
onArbMarket?: (msg: WsArbMarketUpdate) => void;
|
|
1576
|
+
onArbFeed?: (batch: WsArbFeedBatch) => void;
|
|
1535
1577
|
onDiagnostics?: DiagnosticCallback;
|
|
1536
1578
|
onConnectionStateChange?: (connected: boolean) => void;
|
|
1537
1579
|
}
|
|
@@ -1559,7 +1601,13 @@ declare class AggWebSocket {
|
|
|
1559
1601
|
private readonly pendingFlushUnsubs;
|
|
1560
1602
|
private readonly pendingFlushTradeSubs;
|
|
1561
1603
|
private readonly pendingFlushTradeUnsubs;
|
|
1604
|
+
private readonly pendingFlushArbSubs;
|
|
1605
|
+
private readonly pendingFlushArbUnsubs;
|
|
1562
1606
|
private flushScheduled;
|
|
1607
|
+
private readonly arbSubs;
|
|
1608
|
+
private readonly arbFeedCbs;
|
|
1609
|
+
/** Latest arb market update per marketId (last-value-wins, loss-tolerant). */
|
|
1610
|
+
private readonly latestArb;
|
|
1563
1611
|
private readonly books;
|
|
1564
1612
|
/** Markets currently resyncing (awaiting snapshot after seq gap / checksum mismatch). */
|
|
1565
1613
|
private readonly resyncing;
|
|
@@ -1578,6 +1626,20 @@ declare class AggWebSocket {
|
|
|
1578
1626
|
getBook(outcomeId: string): OrderbookState | null;
|
|
1579
1627
|
/** Whether an outcome is currently resyncing (waiting for fresh snapshot). */
|
|
1580
1628
|
isResyncing(outcomeId: string): boolean;
|
|
1629
|
+
/** Get the latest arb update for a market (or null if none received yet). */
|
|
1630
|
+
getArb(marketId: string): WsArbMarketUpdate | null;
|
|
1631
|
+
/**
|
|
1632
|
+
* Subscribe to per-market arb updates for a given marketId.
|
|
1633
|
+
* Ref-counted: multiple callers for the same marketId share one server subscription.
|
|
1634
|
+
* Returns an unsubscribe function.
|
|
1635
|
+
*/
|
|
1636
|
+
subscribeArb(marketId: string, cb: (m: WsArbMarketUpdate) => void): () => void;
|
|
1637
|
+
/**
|
|
1638
|
+
* Subscribe to the global arb-feed batches.
|
|
1639
|
+
* Only one server subscription is maintained regardless of how many callers.
|
|
1640
|
+
* Returns an unsubscribe function.
|
|
1641
|
+
*/
|
|
1642
|
+
subscribeArbFeed(cb: (b: WsArbFeedBatch) => void): () => void;
|
|
1581
1643
|
/**
|
|
1582
1644
|
* Subscribe to a feed by outcome ID.
|
|
1583
1645
|
* @param outcomeId The venueMarketOutcomeId to subscribe to.
|
|
@@ -1636,6 +1698,7 @@ declare class AggWebSocket {
|
|
|
1636
1698
|
private send;
|
|
1637
1699
|
private activeOrderbookMarkets;
|
|
1638
1700
|
private activeTradeMarkets;
|
|
1701
|
+
private activeArbMarkets;
|
|
1639
1702
|
private emitDiagnostic;
|
|
1640
1703
|
private summarizeTopLevels;
|
|
1641
1704
|
private debugOrderbook;
|
|
@@ -2080,19 +2143,22 @@ interface QuoteManagedResponse {
|
|
|
2080
2143
|
}
|
|
2081
2144
|
interface ExecuteManagedParams {
|
|
2082
2145
|
quoteId: string;
|
|
2146
|
+
/** Trading mode. Defaults to live. */
|
|
2147
|
+
mode?: ExecutionMode;
|
|
2083
2148
|
/**
|
|
2084
2149
|
* Optional intent fallback. When the supplied `quoteId` has expired in the
|
|
2085
2150
|
* cache (e.g. user clicked Buy after a tab was inactive), the server
|
|
2086
|
-
* resolves the latest
|
|
2087
|
-
*
|
|
2088
|
-
*
|
|
2089
|
-
* different intent and won't match.
|
|
2151
|
+
* resolves the latest quote for this intent and refreshes/executes against
|
|
2152
|
+
* that instead of returning 400 `quote_not_found`. Same intent = same buttons
|
|
2153
|
+
* the user pressed in the UI; a different `maxSpend`, mode, or venue scope is
|
|
2154
|
+
* a different intent and won't match.
|
|
2090
2155
|
*/
|
|
2091
2156
|
fallbackToLatest?: {
|
|
2092
2157
|
outcomeId: string;
|
|
2093
2158
|
side: "buy" | "sell";
|
|
2094
2159
|
maxSpend?: number;
|
|
2095
2160
|
sellShares?: number;
|
|
2161
|
+
allowedVenues?: Venue[];
|
|
2096
2162
|
};
|
|
2097
2163
|
}
|
|
2098
2164
|
interface ExecuteManagedResponse {
|
|
@@ -2113,6 +2179,7 @@ interface ValidateManagedResponse {
|
|
|
2113
2179
|
bridgeAmountRaw?: string;
|
|
2114
2180
|
}
|
|
2115
2181
|
type WithdrawTokenSymbol = "USDC" | "USDC.e" | "USDT";
|
|
2182
|
+
type WithdrawalSourceTokenSymbol = WithdrawTokenSymbol | "pUSD";
|
|
2116
2183
|
interface WithdrawManagedParams {
|
|
2117
2184
|
/** Positive integer string in the token's native decimals (e.g. "100000" = 0.1 USDC). */
|
|
2118
2185
|
amountRaw: string;
|
|
@@ -2140,7 +2207,7 @@ interface WithdrawalLeg {
|
|
|
2140
2207
|
interface WithdrawManagedSourceItem {
|
|
2141
2208
|
sourceId: string;
|
|
2142
2209
|
chainId: number;
|
|
2143
|
-
tokenSymbol:
|
|
2210
|
+
tokenSymbol: WithdrawalSourceTokenSymbol;
|
|
2144
2211
|
/** On-chain token address on `chainId`. */
|
|
2145
2212
|
tokenAddress: string;
|
|
2146
2213
|
/**
|
|
@@ -2154,8 +2221,9 @@ interface WithdrawManagedSourceItem {
|
|
|
2154
2221
|
bridgeOperationId: string | null;
|
|
2155
2222
|
}
|
|
2156
2223
|
/**
|
|
2157
|
-
* `pricingStatus === "
|
|
2158
|
-
*
|
|
2224
|
+
* `pricingStatus === "quoted"` means the response includes a fresh preflight
|
|
2225
|
+
* quote; other states may carry null `expected.*` fields. Do NOT treat null
|
|
2226
|
+
* fields as missing.
|
|
2159
2227
|
*/
|
|
2160
2228
|
interface WithdrawalExpected {
|
|
2161
2229
|
outputRaw: string | null;
|
|
@@ -2181,7 +2249,7 @@ interface WithdrawManagedResponse {
|
|
|
2181
2249
|
};
|
|
2182
2250
|
legs: WithdrawalLeg[];
|
|
2183
2251
|
expected: WithdrawalExpected;
|
|
2184
|
-
pricingStatus: "unquoted" | "quoted";
|
|
2252
|
+
pricingStatus: "unquoted" | "quoting" | "quoted" | "unviable";
|
|
2185
2253
|
/**
|
|
2186
2254
|
* Persisted terminal-state error reason. Always `null` until the
|
|
2187
2255
|
* withdrawal reaches `failed` / `partial`. The submit response always
|
|
@@ -2215,6 +2283,7 @@ interface GetPositionsParams {
|
|
|
2215
2283
|
cursor?: string;
|
|
2216
2284
|
limit?: number;
|
|
2217
2285
|
status?: "active" | "closed";
|
|
2286
|
+
mode?: ExecutionMode;
|
|
2218
2287
|
}
|
|
2219
2288
|
interface GetOrdersParams {
|
|
2220
2289
|
status?: string;
|
|
@@ -2242,11 +2311,18 @@ interface OrderbookQuoteResponse {
|
|
|
2242
2311
|
slippage: number | null;
|
|
2243
2312
|
fills: OrderbookQuoteFill[];
|
|
2244
2313
|
}
|
|
2245
|
-
type ExecutionOrdersQuery = GetOrdersQuery
|
|
2314
|
+
type ExecutionOrdersQuery = GetOrdersQuery & {
|
|
2315
|
+
mode?: ExecutionMode;
|
|
2316
|
+
};
|
|
2246
2317
|
type ExecutionOrderItem = OrderListItem;
|
|
2247
|
-
type ExecutionPositionsQuery = GetPositionsQuery
|
|
2318
|
+
type ExecutionPositionsQuery = GetPositionsQuery & {
|
|
2319
|
+
mode?: ExecutionMode;
|
|
2320
|
+
};
|
|
2248
2321
|
type ExecutionPositionGroup = PositionGroup;
|
|
2249
|
-
type
|
|
2322
|
+
type ManagedBalancesParams = {
|
|
2323
|
+
mode?: ExecutionMode;
|
|
2324
|
+
};
|
|
2325
|
+
type UserActivityType = "trade" | "withdrawal" | "bridge" | "deposit" | "user_op" | "redeem";
|
|
2250
2326
|
interface UserActivityBase {
|
|
2251
2327
|
id: string;
|
|
2252
2328
|
createdAt: string;
|
|
@@ -2315,7 +2391,25 @@ interface UserActivityUserOp extends UserActivityBase {
|
|
|
2315
2391
|
txHash: string | null;
|
|
2316
2392
|
confirmedAt: string | null;
|
|
2317
2393
|
}
|
|
2318
|
-
|
|
2394
|
+
interface UserActivityRedeemLeg {
|
|
2395
|
+
id: string;
|
|
2396
|
+
venueMarketOutcomeId: string;
|
|
2397
|
+
venue: string;
|
|
2398
|
+
status: string;
|
|
2399
|
+
chainId: string;
|
|
2400
|
+
payoutTokenSymbol: string;
|
|
2401
|
+
payoutAmountRaw: string | null;
|
|
2402
|
+
txHash: string | null;
|
|
2403
|
+
errorMessage: string | null;
|
|
2404
|
+
venueMarket: UserActivityVenueMarket | null;
|
|
2405
|
+
venueMarketOutcome: Omit<UserActivityVenueMarketOutcome, "price"> | null;
|
|
2406
|
+
}
|
|
2407
|
+
interface UserActivityRedeem extends UserActivityBase {
|
|
2408
|
+
type: "redeem";
|
|
2409
|
+
totalPayoutRaw: string | null;
|
|
2410
|
+
legs: UserActivityRedeemLeg[];
|
|
2411
|
+
}
|
|
2412
|
+
type UserActivityItem = UserActivityTrade | UserActivityWithdrawal | UserActivityBridge | UserActivityDeposit | UserActivityUserOp | UserActivityRedeem;
|
|
2319
2413
|
interface UserActivityQuery {
|
|
2320
2414
|
type?: UserActivityType;
|
|
2321
2415
|
cursor?: string;
|
|
@@ -2378,6 +2472,23 @@ interface SmartRouteVenueFill {
|
|
|
2378
2472
|
fills: SmartRouteFill[];
|
|
2379
2473
|
venueQty: number;
|
|
2380
2474
|
}
|
|
2475
|
+
interface SmartRouteAllocation {
|
|
2476
|
+
sourceChainId: string;
|
|
2477
|
+
venue: string;
|
|
2478
|
+
amount: number;
|
|
2479
|
+
sourceTokenAddress?: string;
|
|
2480
|
+
custodyKind?: "EOA" | "DEPOSIT_WALLET";
|
|
2481
|
+
custodyAddress?: string;
|
|
2482
|
+
exactToken?: boolean;
|
|
2483
|
+
}
|
|
2484
|
+
interface SmartRouteBridgeStep {
|
|
2485
|
+
sourceChainId: string;
|
|
2486
|
+
destChainId: string;
|
|
2487
|
+
amount: number;
|
|
2488
|
+
cost: number;
|
|
2489
|
+
sourceTokenAddress?: string;
|
|
2490
|
+
destTokenAddress?: string;
|
|
2491
|
+
}
|
|
2381
2492
|
interface VenueSoloQuote {
|
|
2382
2493
|
/**
|
|
2383
2494
|
* Minted by the API per successful + executable solo; send this to
|
|
@@ -2396,6 +2507,8 @@ interface VenueSoloQuote {
|
|
|
2396
2507
|
status: string;
|
|
2397
2508
|
/** Per-price-level fills, identical shape to primary fills. Empty for non-ok statuses. */
|
|
2398
2509
|
fills: SmartRouteVenueFill[];
|
|
2510
|
+
allocations?: SmartRouteAllocation[];
|
|
2511
|
+
bridgeSteps?: SmartRouteBridgeStep[];
|
|
2399
2512
|
/**
|
|
2400
2513
|
* One-time setup costs for this solo's chosen venue + market. Populated
|
|
2401
2514
|
* only when the originating quote opted in via `deepEstimate=true`; absent
|
|
@@ -2412,6 +2525,8 @@ interface VenueSoloQuote {
|
|
|
2412
2525
|
type SmartRouteSide = "yes" | "no";
|
|
2413
2526
|
/** Trade direction for order routing. "buy" (default) reads asks, "sell" reads bids. */
|
|
2414
2527
|
type TradeSide = "buy" | "sell";
|
|
2528
|
+
/** Trading mode for normal execution endpoints. Defaults to live. */
|
|
2529
|
+
type ExecutionMode = "live" | "paper";
|
|
2415
2530
|
/** Request params for GET /orderbook/:venueMarketOutcomeId/route. */
|
|
2416
2531
|
interface SmartRouteParams {
|
|
2417
2532
|
venueMarketOutcomeId?: string;
|
|
@@ -2423,12 +2538,16 @@ interface SmartRouteParams {
|
|
|
2423
2538
|
side?: SmartRouteSide;
|
|
2424
2539
|
/** Trade direction: "buy" (default) or "sell". */
|
|
2425
2540
|
tradeSide?: TradeSide;
|
|
2541
|
+
/** Trading mode. Defaults to live. */
|
|
2542
|
+
mode?: ExecutionMode;
|
|
2426
2543
|
maxSpend?: number;
|
|
2427
2544
|
/** Sell only: target number of contracts to sell. Required for sell unless maxSpend is given. */
|
|
2428
2545
|
sellShares?: number;
|
|
2429
2546
|
chainBalances?: Record<string, number>;
|
|
2430
2547
|
slipCapBps?: number;
|
|
2431
2548
|
compareVenues?: boolean;
|
|
2549
|
+
/** Restrict this quote to one or more executable venues. */
|
|
2550
|
+
allowedVenues?: Venue[];
|
|
2432
2551
|
/**
|
|
2433
2552
|
* Opt in to the deep cost-estimate surface. When `true`, the response
|
|
2434
2553
|
* `feeBreakdown` includes `setupCosts` (one-time chain approvals + Kalshi
|
|
@@ -2526,6 +2645,8 @@ interface SmartRouteResponse {
|
|
|
2526
2645
|
reason: string;
|
|
2527
2646
|
}>;
|
|
2528
2647
|
venueSoloQuotes?: VenueSoloQuote[];
|
|
2648
|
+
allocations?: SmartRouteAllocation[];
|
|
2649
|
+
bridgeSteps?: SmartRouteBridgeStep[];
|
|
2529
2650
|
/** Estimated payout if the outcome wins (= totalFilled shares × $1). */
|
|
2530
2651
|
estimatedPayout?: number;
|
|
2531
2652
|
/** Total cost including all fees (rawExecCost + venueFees + bridgeFees +
|
|
@@ -2846,7 +2967,7 @@ declare class AggClient {
|
|
|
2846
2967
|
/** List execution positions for the authenticated user (cursor pagination). */
|
|
2847
2968
|
getExecutionPositions(params?: ExecutionPositionsQuery): Promise<PaginatedResponse<ExecutionPositionGroup>>;
|
|
2848
2969
|
/** Get managed wallet balances, including per-chain cash balances and per-venue position balances. */
|
|
2849
|
-
getManagedBalances(): Promise<UnifiedBalanceResponse>;
|
|
2970
|
+
getManagedBalances(params?: ManagedBalancesParams): Promise<UnifiedBalanceResponse>;
|
|
2850
2971
|
/** Cancel a pending managed execution by order id. */
|
|
2851
2972
|
cancelManagedOrder(orderId: string, options?: {
|
|
2852
2973
|
signal?: AbortSignal;
|
|
@@ -2860,6 +2981,7 @@ declare class AggClient {
|
|
|
2860
2981
|
status?: MarketStatus[];
|
|
2861
2982
|
sortBy?: string;
|
|
2862
2983
|
sortDir?: string;
|
|
2984
|
+
recurrence?: string;
|
|
2863
2985
|
limit?: number;
|
|
2864
2986
|
cursor?: string;
|
|
2865
2987
|
minYesPrice?: number;
|
|
@@ -2888,6 +3010,7 @@ declare class AggClient {
|
|
|
2888
3010
|
getCategories(options?: {
|
|
2889
3011
|
limit?: number;
|
|
2890
3012
|
cursor?: string;
|
|
3013
|
+
parentId?: string;
|
|
2891
3014
|
}): Promise<PaginatedResponse<Category>>;
|
|
2892
3015
|
/** Get per-app UI config (disabled venues + category presets). Requires appId. */
|
|
2893
3016
|
getAppConfig(init?: RequestInit): Promise<AppClientConfigResponse>;
|
|
@@ -3094,4 +3217,4 @@ declare function aggregateMidpoint(midpoints: (number | null | undefined)[]): nu
|
|
|
3094
3217
|
|
|
3095
3218
|
declare function createAggClient(options: AggClientOptions): AggClient;
|
|
3096
3219
|
|
|
3097
|
-
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 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 ExecutionOrderItem, type ExecutionOrdersQuery, type ExecutionPositionGroup, type ExecutionPositionsQuery, type GetBalanceQuery, type GetBalanceResponse, type GetHoldingsQuery, type GetHoldingsResponse, type GetOrdersParams, type GetOrdersQuery, type GetPositionsParams, type GetPositionsQuery, type HelloResponse, IMAGE_SIZES, ImageSize, 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, 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, type RampQuote, type RampQuoteRequest, type RampSessionRequest, type RampWidgetSession, 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 SmartRouteFeeBreakdown, type SmartRouteFill, type SmartRouteParams, type SmartRouteResponse, type SmartRouteSetupCostLine, type SmartRouteSide, type SmartRouteStatus, type SmartRouteVenueFill, type SplitsByAmountResult, type SyncBalancesResponse, 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 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 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 };
|
|
3220
|
+
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 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 GetHoldingsQuery, type GetHoldingsResponse, type GetOrdersParams, type GetOrdersQuery, type GetPositionsParams, type GetPositionsQuery, type HelloResponse, IMAGE_SIZES, ImageSize, 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, 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, type RampQuote, type RampQuoteRequest, type RampSessionRequest, type RampWidgetSession, 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, 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 };
|