@agg-build/sdk 1.3.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.
- package/dist/{chunk-AXBFBHS2.mjs → chunk-WNQUEZJF.mjs} +13 -0
- package/dist/index.d.mts +622 -5
- package/dist/index.d.ts +622 -5
- package/dist/index.js +364 -6
- package/dist/index.mjs +351 -7
- package/dist/server.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -68,13 +68,31 @@ declare enum OrderStatus {
|
|
|
68
68
|
pending_bridge = "pending_bridge",
|
|
69
69
|
submitting = "submitting",
|
|
70
70
|
submitted = "submitted",
|
|
71
|
+
open = "open",
|
|
72
|
+
partially_filled_open = "partially_filled_open",
|
|
73
|
+
cancel_pending = "cancel_pending",
|
|
71
74
|
filled = "filled",
|
|
72
|
-
partial_fill = "partial_fill"
|
|
75
|
+
partial_fill = "partial_fill",
|
|
76
|
+
failed = "failed",
|
|
77
|
+
expired = "expired",
|
|
78
|
+
cancelled = "cancelled"
|
|
73
79
|
}
|
|
74
80
|
declare enum TradeSide$1 {
|
|
75
81
|
Buy = "buy",
|
|
76
82
|
Sell = "sell"
|
|
77
83
|
}
|
|
84
|
+
declare enum OrderType {
|
|
85
|
+
Market = "market",
|
|
86
|
+
Limit = "limit"
|
|
87
|
+
}
|
|
88
|
+
declare enum TimeInForce {
|
|
89
|
+
GTC = "GTC",
|
|
90
|
+
GTD = "GTD",
|
|
91
|
+
FOK = "FOK",
|
|
92
|
+
FAK = "FAK",
|
|
93
|
+
IOC = "IOC",
|
|
94
|
+
ALO = "ALO"
|
|
95
|
+
}
|
|
78
96
|
|
|
79
97
|
/**
|
|
80
98
|
* Standalone type definitions — no Zod dependency.
|
|
@@ -375,6 +393,8 @@ type WalletChainBalance = {
|
|
|
375
393
|
chainId: number;
|
|
376
394
|
tokenAddress: string;
|
|
377
395
|
balanceRaw: string;
|
|
396
|
+
heldRaw?: string | undefined;
|
|
397
|
+
availableRaw?: string | undefined;
|
|
378
398
|
decimals: number;
|
|
379
399
|
lastSyncedAt: string;
|
|
380
400
|
tokenSymbol?: string | undefined;
|
|
@@ -382,11 +402,15 @@ type WalletChainBalance = {
|
|
|
382
402
|
type WalletTokenBalance = {
|
|
383
403
|
tokenSymbol: string;
|
|
384
404
|
totalRaw: string;
|
|
405
|
+
availableRaw?: string | undefined;
|
|
406
|
+
reservedRaw?: string | undefined;
|
|
385
407
|
decimals: number;
|
|
386
408
|
chains: {
|
|
387
409
|
chainId: number;
|
|
388
410
|
tokenAddress: string;
|
|
389
411
|
balanceRaw: string;
|
|
412
|
+
heldRaw?: string | undefined;
|
|
413
|
+
availableRaw?: string | undefined;
|
|
390
414
|
decimals: number;
|
|
391
415
|
lastSyncedAt: string;
|
|
392
416
|
}[];
|
|
@@ -404,11 +428,15 @@ type UnifiedBalanceResponse = {
|
|
|
404
428
|
cash: {
|
|
405
429
|
tokenSymbol: string;
|
|
406
430
|
totalRaw: string;
|
|
431
|
+
availableRaw?: string | undefined;
|
|
432
|
+
reservedRaw?: string | undefined;
|
|
407
433
|
decimals: number;
|
|
408
434
|
chains: {
|
|
409
435
|
chainId: number;
|
|
410
436
|
tokenAddress: string;
|
|
411
437
|
balanceRaw: string;
|
|
438
|
+
heldRaw?: string | undefined;
|
|
439
|
+
availableRaw?: string | undefined;
|
|
412
440
|
decimals: number;
|
|
413
441
|
lastSyncedAt: string;
|
|
414
442
|
}[];
|
|
@@ -587,6 +615,10 @@ type VenueMarket = {
|
|
|
587
615
|
endDate?: string | null | undefined;
|
|
588
616
|
creationDate?: string | null | undefined;
|
|
589
617
|
resolutionDate?: string | null | undefined;
|
|
618
|
+
/** Sports market classification for type-aware sorting (moneyline, spread, total, etc.). */
|
|
619
|
+
sportsMarketType?: string | null | undefined;
|
|
620
|
+
/** Sort rank within a sports section (0=moneyline, 1=spread, 2=total, 3+=other). */
|
|
621
|
+
sectionRank?: number | null | undefined;
|
|
590
622
|
matchedVenueMarkets?: {
|
|
591
623
|
id: string;
|
|
592
624
|
venue: Venue;
|
|
@@ -629,6 +661,8 @@ type VenueEvent = {
|
|
|
629
661
|
displayName: string | null;
|
|
630
662
|
parentId: string | null;
|
|
631
663
|
eventCount: number;
|
|
664
|
+
volume24hr: number;
|
|
665
|
+
volume: number;
|
|
632
666
|
};
|
|
633
667
|
}[];
|
|
634
668
|
status?: MarketStatus | undefined;
|
|
@@ -646,10 +680,12 @@ type VenueEvent = {
|
|
|
646
680
|
/**
|
|
647
681
|
* ISO-8601 duration denormalized from Series.recurrence. `null` means
|
|
648
682
|
* the event has no recurring schedule (one-off). Use this value with
|
|
649
|
-
* the `?recurrence=` filter on /venue-events
|
|
650
|
-
* values
|
|
683
|
+
* the `?recurrence=` filter on /venue-events using public recurrence
|
|
684
|
+
* enum values.
|
|
651
685
|
*/
|
|
652
686
|
recurrence?: string | null | undefined;
|
|
687
|
+
/** Type-aware structure classification used to sort markets under this event. */
|
|
688
|
+
structureType?: "candidate" | "sport" | "axis" | "dates" | null | undefined;
|
|
653
689
|
};
|
|
654
690
|
type Orderbook = {
|
|
655
691
|
bids: {
|
|
@@ -833,6 +869,8 @@ type Category = {
|
|
|
833
869
|
displayName: string | null;
|
|
834
870
|
parentId: string | null;
|
|
835
871
|
eventCount: number;
|
|
872
|
+
volume24hr: number;
|
|
873
|
+
volume: number;
|
|
836
874
|
};
|
|
837
875
|
type SettlementSource = {
|
|
838
876
|
name: string;
|
|
@@ -1405,6 +1443,8 @@ interface WsWithdrawalLifecycleEvent {
|
|
|
1405
1443
|
requestedAmountRaw?: string;
|
|
1406
1444
|
/** Terminal settled amount in destination-token native decimals. */
|
|
1407
1445
|
completedAmountRaw?: string | null;
|
|
1446
|
+
/** Realized platform fee in destination-token native decimals. Only present on terminal events. */
|
|
1447
|
+
feeRaw?: string | null;
|
|
1408
1448
|
/** True when `status` is terminal (`completed` / `partial` / `failed`). */
|
|
1409
1449
|
terminal: boolean;
|
|
1410
1450
|
/** Optional leg delta — present when this event was triggered by a leg flip. */
|
|
@@ -1951,6 +1991,209 @@ interface MatchedOrderbookMarket extends VenueMarketRef {
|
|
|
1951
1991
|
* - `none` — no mark available
|
|
1952
1992
|
*/
|
|
1953
1993
|
type MarkSource = "local" | "local_merged" | "local_one_sided" | "sibling" | "local_boundary" | "none";
|
|
1994
|
+
declare const RECURRENCE_CADENCES: readonly ["PT5M", "PT10M", "PT15M", "PT1H", "P1D", "P1W", "P1M", "P1Y"];
|
|
1995
|
+
type RecurrenceCadence = (typeof RECURRENCE_CADENCES)[number];
|
|
1996
|
+
type RecurrenceFilter = RecurrenceCadence | "null";
|
|
1997
|
+
type RecurringCryptoDuration = "PT5M" | "PT15M" | "PT1H" | "P1D";
|
|
1998
|
+
type RecurringCryptoDurationInput = RecurringCryptoDuration | "5m" | "15m" | "1h" | "1d";
|
|
1999
|
+
type RecurringCryptoSourceConfidence = "verified" | "inferred" | "missing";
|
|
2000
|
+
interface ListRecurringCryptoMarketsOptions {
|
|
2001
|
+
assets?: string[];
|
|
2002
|
+
durations?: RecurringCryptoDurationInput[];
|
|
2003
|
+
interval?: RecurringCryptoDurationInput;
|
|
2004
|
+
window?: "current";
|
|
2005
|
+
venues?: Venue[];
|
|
2006
|
+
status?: MarketStatus[];
|
|
2007
|
+
windowStartFrom?: string;
|
|
2008
|
+
windowStartTo?: string;
|
|
2009
|
+
cursor?: string;
|
|
2010
|
+
limit?: number;
|
|
2011
|
+
includeOrderbookPrices?: boolean;
|
|
2012
|
+
includeReferencePrices?: boolean;
|
|
2013
|
+
includeDirectVenueMarkets?: boolean;
|
|
2014
|
+
}
|
|
2015
|
+
interface RecurringCryptoOutcome {
|
|
2016
|
+
/**
|
|
2017
|
+
* Canonical Agg outcome id. Null for direct live venue rows because those
|
|
2018
|
+
* rows are discovery data and cannot be passed to smart order routing.
|
|
2019
|
+
*/
|
|
2020
|
+
venueMarketOutcomeId: string | null;
|
|
2021
|
+
/** Venue-native outcome id or synthetic external id for direct live rows. */
|
|
2022
|
+
externalOutcomeId: string | null;
|
|
2023
|
+
/** False for this endpoint; live crypto markets are not smart-route inputs. */
|
|
2024
|
+
routeable: boolean;
|
|
2025
|
+
/** False for this endpoint; split-order routing is not supported here. */
|
|
2026
|
+
splitOrdersAllowed: boolean;
|
|
2027
|
+
label: string;
|
|
2028
|
+
title: string | null;
|
|
2029
|
+
midpoint: number | null;
|
|
2030
|
+
bestBid: number | null;
|
|
2031
|
+
bestAsk: number | null;
|
|
2032
|
+
markSource: MarkSource | string | null;
|
|
2033
|
+
lastKnownPrice: number | null;
|
|
2034
|
+
}
|
|
2035
|
+
interface RecurringCryptoMarketMetrics {
|
|
2036
|
+
volume: number | null;
|
|
2037
|
+
volume24h: number | null;
|
|
2038
|
+
openInterest: number | null;
|
|
2039
|
+
liquidity: number | null;
|
|
2040
|
+
spread: number | null;
|
|
2041
|
+
}
|
|
2042
|
+
interface RecurringCryptoResolution {
|
|
2043
|
+
sourceName: string | null;
|
|
2044
|
+
sourceUrl: string | null;
|
|
2045
|
+
sourceDomain: string | null;
|
|
2046
|
+
rawCriteria: unknown;
|
|
2047
|
+
confidence: RecurringCryptoSourceConfidence;
|
|
2048
|
+
}
|
|
2049
|
+
interface RecurringCryptoReferencePrice {
|
|
2050
|
+
asset: string;
|
|
2051
|
+
quoteAsset: "USD";
|
|
2052
|
+
raw: string | null;
|
|
2053
|
+
decimals: number | null;
|
|
2054
|
+
normalized: number | null;
|
|
2055
|
+
timestamp: string | null;
|
|
2056
|
+
provider: string | null;
|
|
2057
|
+
providerMarketId: string | null;
|
|
2058
|
+
confidence: RecurringCryptoSourceConfidence;
|
|
2059
|
+
fetchedAt?: string | null;
|
|
2060
|
+
ageMs?: number | null;
|
|
2061
|
+
refreshing?: boolean;
|
|
2062
|
+
stale?: boolean;
|
|
2063
|
+
}
|
|
2064
|
+
type CryptoReferencePriceTarget = {
|
|
2065
|
+
type: "venueMarket";
|
|
2066
|
+
venueMarketId: string;
|
|
2067
|
+
} | {
|
|
2068
|
+
type: "venueEvent";
|
|
2069
|
+
venueEventId: string;
|
|
2070
|
+
} | {
|
|
2071
|
+
type: "externalVenueMarket";
|
|
2072
|
+
venue: Venue;
|
|
2073
|
+
externalMarketId: string;
|
|
2074
|
+
} | {
|
|
2075
|
+
type: "market";
|
|
2076
|
+
venue: Venue;
|
|
2077
|
+
venueEventId?: string;
|
|
2078
|
+
venueMarketId: string;
|
|
2079
|
+
externalEventId?: string | null;
|
|
2080
|
+
externalMarketId?: string;
|
|
2081
|
+
asset: string;
|
|
2082
|
+
quoteAsset?: "USD";
|
|
2083
|
+
resolution: RecurringCryptoResolution;
|
|
2084
|
+
};
|
|
2085
|
+
interface CryptoReferencePriceExternalMarketInput {
|
|
2086
|
+
venue: Venue;
|
|
2087
|
+
externalMarketId: string;
|
|
2088
|
+
}
|
|
2089
|
+
interface CryptoReferencePriceMarketInput extends RecurringCryptoVenueMarket {
|
|
2090
|
+
asset: string;
|
|
2091
|
+
quoteAsset?: "USD";
|
|
2092
|
+
}
|
|
2093
|
+
interface GetCryptoReferencePricesOptions {
|
|
2094
|
+
targets?: CryptoReferencePriceTarget[];
|
|
2095
|
+
venueMarketIds?: string[];
|
|
2096
|
+
venueEventIds?: string[];
|
|
2097
|
+
externalMarkets?: CryptoReferencePriceExternalMarketInput[];
|
|
2098
|
+
markets?: CryptoReferencePriceMarketInput[];
|
|
2099
|
+
windowMarkets?: RecurringCryptoWindowMarket[];
|
|
2100
|
+
signal?: AbortSignal;
|
|
2101
|
+
}
|
|
2102
|
+
interface CryptoReferencePriceError {
|
|
2103
|
+
code: "not_found" | "not_recurring_crypto" | "reference_feed_missing" | "price_unavailable" | "stale_price";
|
|
2104
|
+
message: string;
|
|
2105
|
+
}
|
|
2106
|
+
interface CryptoReferencePriceSource {
|
|
2107
|
+
provider: string | null;
|
|
2108
|
+
providerMarketId: string | null;
|
|
2109
|
+
confidence: RecurringCryptoSourceConfidence;
|
|
2110
|
+
}
|
|
2111
|
+
interface CryptoReferencePriceResult {
|
|
2112
|
+
target: CryptoReferencePriceTarget;
|
|
2113
|
+
venue: Venue | null;
|
|
2114
|
+
venueEventId: string | null;
|
|
2115
|
+
venueMarketId: string | null;
|
|
2116
|
+
externalEventId: string | null;
|
|
2117
|
+
externalMarketId: string | null;
|
|
2118
|
+
asset: string | null;
|
|
2119
|
+
quoteAsset: "USD" | null;
|
|
2120
|
+
raw: string | null;
|
|
2121
|
+
decimals: number | null;
|
|
2122
|
+
normalized: number | null;
|
|
2123
|
+
providerTimestamp: string | null;
|
|
2124
|
+
fetchedAt: string | null;
|
|
2125
|
+
ageMs: number | null;
|
|
2126
|
+
refreshing: boolean;
|
|
2127
|
+
stale: boolean;
|
|
2128
|
+
source: CryptoReferencePriceSource;
|
|
2129
|
+
error: CryptoReferencePriceError | null;
|
|
2130
|
+
}
|
|
2131
|
+
interface CryptoReferencePricesResponse {
|
|
2132
|
+
data: CryptoReferencePriceResult[];
|
|
2133
|
+
softRefreshMs: number;
|
|
2134
|
+
hardMaxAgeMs: number;
|
|
2135
|
+
}
|
|
2136
|
+
type RecurringCryptoComparisonPriceSource = "referencePrice" | "midpoint" | "lastKnownPrice";
|
|
2137
|
+
interface RecurringCryptoComparisonPoint {
|
|
2138
|
+
venue: Venue;
|
|
2139
|
+
venueMarketId: string;
|
|
2140
|
+
value: number;
|
|
2141
|
+
label: string | null;
|
|
2142
|
+
source: RecurringCryptoComparisonPriceSource;
|
|
2143
|
+
provider: string | null;
|
|
2144
|
+
providerMarketId: string | null;
|
|
2145
|
+
timestamp: string | null;
|
|
2146
|
+
confidence: RecurringCryptoSourceConfidence | null;
|
|
2147
|
+
}
|
|
2148
|
+
interface RecurringCryptoPriceComparison {
|
|
2149
|
+
count: number;
|
|
2150
|
+
min: RecurringCryptoComparisonPoint | null;
|
|
2151
|
+
max: RecurringCryptoComparisonPoint | null;
|
|
2152
|
+
spread: number | null;
|
|
2153
|
+
spreadBps: number | null;
|
|
2154
|
+
byVenue: RecurringCryptoComparisonPoint[];
|
|
2155
|
+
}
|
|
2156
|
+
interface RecurringCryptoWindowComparisons {
|
|
2157
|
+
referencePrice: RecurringCryptoPriceComparison;
|
|
2158
|
+
outcomePrices: {
|
|
2159
|
+
up: RecurringCryptoPriceComparison;
|
|
2160
|
+
down: RecurringCryptoPriceComparison;
|
|
2161
|
+
};
|
|
2162
|
+
}
|
|
2163
|
+
interface RecurringCryptoVenueMarket {
|
|
2164
|
+
venue: Venue;
|
|
2165
|
+
venueEventId: string;
|
|
2166
|
+
venueMarketId: string;
|
|
2167
|
+
externalEventId: string | null;
|
|
2168
|
+
externalMarketId: string;
|
|
2169
|
+
question: string;
|
|
2170
|
+
status: MarketStatus;
|
|
2171
|
+
priceSource: "snag" | "direct";
|
|
2172
|
+
/** False for this endpoint; live crypto markets are not smart-route inputs. */
|
|
2173
|
+
routeable: boolean;
|
|
2174
|
+
/** False for this endpoint; split-order routing is not supported here. */
|
|
2175
|
+
splitOrdersAllowed: boolean;
|
|
2176
|
+
outcomes: RecurringCryptoOutcome[];
|
|
2177
|
+
metrics: RecurringCryptoMarketMetrics;
|
|
2178
|
+
resolution: RecurringCryptoResolution;
|
|
2179
|
+
referencePrice: RecurringCryptoReferencePrice;
|
|
2180
|
+
}
|
|
2181
|
+
interface RecurringCryptoWindowMarket {
|
|
2182
|
+
id: string;
|
|
2183
|
+
asset: string;
|
|
2184
|
+
quoteAsset: "USD";
|
|
2185
|
+
duration: RecurringCryptoDuration;
|
|
2186
|
+
windowStart: string;
|
|
2187
|
+
windowEnd: string;
|
|
2188
|
+
status: MarketStatus;
|
|
2189
|
+
markets: RecurringCryptoVenueMarket[];
|
|
2190
|
+
comparisons: RecurringCryptoWindowComparisons;
|
|
2191
|
+
}
|
|
2192
|
+
interface RecurringCryptoMarketsResponse {
|
|
2193
|
+
data: RecurringCryptoWindowMarket[];
|
|
2194
|
+
nextCursor: string | null;
|
|
2195
|
+
hasMore: boolean;
|
|
2196
|
+
}
|
|
1954
2197
|
/** Per-venue orderbook entry with native tick spacing. */
|
|
1955
2198
|
interface VenueOrderbookEntry {
|
|
1956
2199
|
venueMarketId: string;
|
|
@@ -2188,6 +2431,12 @@ interface WithdrawManagedParams {
|
|
|
2188
2431
|
destinationAddress: string;
|
|
2189
2432
|
/** EVM chain ID where the recipient should receive funds. Required as of v2026.04. */
|
|
2190
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;
|
|
2191
2440
|
}
|
|
2192
2441
|
type WithdrawalLifecycleStatus = "pending" | "bridging" | "transferring" | "completed" | "partial" | "failed";
|
|
2193
2442
|
type WithdrawalSourceStatus = "pending" | "submitted" | "confirmed" | "failed";
|
|
@@ -2230,6 +2479,19 @@ interface WithdrawalExpected {
|
|
|
2230
2479
|
feeRaw: string | null;
|
|
2231
2480
|
etaSeconds: number | null;
|
|
2232
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
|
+
}
|
|
2233
2495
|
interface WithdrawManagedResponse {
|
|
2234
2496
|
withdrawalId: string;
|
|
2235
2497
|
status: WithdrawalLifecycleStatus;
|
|
@@ -2322,6 +2584,170 @@ type ExecutionPositionGroup = PositionGroup;
|
|
|
2322
2584
|
type ManagedBalancesParams = {
|
|
2323
2585
|
mode?: ExecutionMode;
|
|
2324
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
|
+
}
|
|
2325
2751
|
type UserActivityType = "trade" | "withdrawal" | "bridge" | "deposit" | "user_op" | "redeem";
|
|
2326
2752
|
interface UserActivityBase {
|
|
2327
2753
|
id: string;
|
|
@@ -2382,6 +2808,7 @@ interface UserActivityDeposit extends UserActivityBase {
|
|
|
2382
2808
|
chainId: string;
|
|
2383
2809
|
fromAddress: string;
|
|
2384
2810
|
txHash: string;
|
|
2811
|
+
source: "connected_wallet" | "external_wallet";
|
|
2385
2812
|
}
|
|
2386
2813
|
interface UserActivityUserOp extends UserActivityBase {
|
|
2387
2814
|
type: "user_op";
|
|
@@ -2724,6 +3151,129 @@ type SearchResponse<T> = {
|
|
|
2724
3151
|
nextCursor: string | null;
|
|
2725
3152
|
hasMore: boolean;
|
|
2726
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
|
+
}
|
|
2727
3277
|
type CorrelatedMarketSide = "yes" | "no";
|
|
2728
3278
|
type CorrelatedMarketSignalDirection = "more_likely" | "less_likely";
|
|
2729
3279
|
interface CorrelatedMarketSignal {
|
|
@@ -2843,6 +3393,10 @@ declare class AggClient {
|
|
|
2843
3393
|
/** In-flight refresh promise — serializes concurrent 401 retries so only one refresh runs. */
|
|
2844
3394
|
private pendingRefresh;
|
|
2845
3395
|
constructor(options: AggClientOptions);
|
|
3396
|
+
private resolvePaperTradingAppId;
|
|
3397
|
+
private paperTradingAccountsPath;
|
|
3398
|
+
private paperTradingAccountPath;
|
|
3399
|
+
private paperTradingListQuery;
|
|
2846
3400
|
private withAuthPayload;
|
|
2847
3401
|
private restoreSession;
|
|
2848
3402
|
private persistSession;
|
|
@@ -2968,6 +3522,24 @@ declare class AggClient {
|
|
|
2968
3522
|
getExecutionPositions(params?: ExecutionPositionsQuery): Promise<PaginatedResponse<ExecutionPositionGroup>>;
|
|
2969
3523
|
/** Get managed wallet balances, including per-chain cash balances and per-venue position balances. */
|
|
2970
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>;
|
|
2971
3543
|
/** Cancel a pending managed execution by order id. */
|
|
2972
3544
|
cancelManagedOrder(orderId: string, options?: {
|
|
2973
3545
|
signal?: AbortSignal;
|
|
@@ -2981,7 +3553,7 @@ declare class AggClient {
|
|
|
2981
3553
|
status?: MarketStatus[];
|
|
2982
3554
|
sortBy?: string;
|
|
2983
3555
|
sortDir?: string;
|
|
2984
|
-
recurrence?:
|
|
3556
|
+
recurrence?: RecurrenceFilter | RecurrenceFilter[];
|
|
2985
3557
|
limit?: number;
|
|
2986
3558
|
cursor?: string;
|
|
2987
3559
|
minYesPrice?: number;
|
|
@@ -2993,6 +3565,12 @@ declare class AggClient {
|
|
|
2993
3565
|
getVenueEventById(id: string, options?: {
|
|
2994
3566
|
signal?: AbortSignal;
|
|
2995
3567
|
}): Promise<VenueEvent>;
|
|
3568
|
+
/** List deterministic recurring crypto window markets across venues. Requires appId or admin auth. */
|
|
3569
|
+
listRecurringCryptoMarkets(options?: ListRecurringCryptoMarketsOptions & {
|
|
3570
|
+
signal?: AbortSignal;
|
|
3571
|
+
}): Promise<RecurringCryptoMarketsResponse>;
|
|
3572
|
+
/** Poll fresh reference prices for recurring crypto markets. Requires appId or admin auth. */
|
|
3573
|
+
getCryptoReferencePrices(options: GetCryptoReferencePricesOptions): Promise<CryptoReferencePricesResponse>;
|
|
2996
3574
|
/** List venue markets with optional filters. Requires appId or admin auth. Supports cursor-based pagination. */
|
|
2997
3575
|
getVenueMarkets(options?: {
|
|
2998
3576
|
venue?: Venue;
|
|
@@ -3014,6 +3592,27 @@ declare class AggClient {
|
|
|
3014
3592
|
}): Promise<PaginatedResponse<Category>>;
|
|
3015
3593
|
/** Get per-app UI config (disabled venues + category presets). Requires appId. */
|
|
3016
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>;
|
|
3017
3616
|
/**
|
|
3018
3617
|
* Search events or markets by query string. Supports cursor-based pagination.
|
|
3019
3618
|
*
|
|
@@ -3078,12 +3677,15 @@ declare class AggClient {
|
|
|
3078
3677
|
getMidpoints(params: {
|
|
3079
3678
|
venueMarketIds: string[];
|
|
3080
3679
|
bestPrice?: boolean;
|
|
3680
|
+
maxMidpointIdsPerRequest?: number;
|
|
3081
3681
|
}, options?: {
|
|
3082
3682
|
signal?: AbortSignal;
|
|
3683
|
+
maxMidpointIdsPerRequest?: number;
|
|
3083
3684
|
}): Promise<BatchMidpointsResponse>;
|
|
3084
3685
|
getMidpoints(venueMarketIds: string[], options?: {
|
|
3085
3686
|
signal?: AbortSignal;
|
|
3086
3687
|
bestPrice?: boolean;
|
|
3688
|
+
maxMidpointIdsPerRequest?: number;
|
|
3087
3689
|
}): Promise<BatchMidpointsResponse>;
|
|
3088
3690
|
/** Get a single outcome-level orderbook from the engine. */
|
|
3089
3691
|
getOutcomeOrderbook(outcomeId: string, options?: {
|
|
@@ -3114,6 +3716,12 @@ declare class AggClient {
|
|
|
3114
3716
|
redeem(body: RedeemRequest): Promise<RedeemResponse>;
|
|
3115
3717
|
/** Withdraw funds from managed wallets to an external address. */
|
|
3116
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>;
|
|
3117
3725
|
/**
|
|
3118
3726
|
* Read the current persisted state of a withdrawal. Used as a backfill for
|
|
3119
3727
|
* the WS lifecycle channel: the client polls this on hook mount and on WS
|
|
@@ -3126,6 +3734,15 @@ declare class AggClient {
|
|
|
3126
3734
|
syncManagedBalances(): Promise<SyncBalancesResponse>;
|
|
3127
3735
|
/** Get managed wallet deposit addresses (EVM + Solana). Returns 202 shape while provisioning. */
|
|
3128
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>;
|
|
3129
3746
|
/** Get open positions grouped by matched market with per-venue breakdown. */
|
|
3130
3747
|
getPositions(params?: GetPositionsParams): Promise<PaginatedResponse<PositionGroup>>;
|
|
3131
3748
|
/** Get crypto purchase quotes. */
|
|
@@ -3217,4 +3834,4 @@ declare function aggregateMidpoint(midpoints: (number | null | undefined)[]): nu
|
|
|
3217
3834
|
|
|
3218
3835
|
declare function createAggClient(options: AggClientOptions): AggClient;
|
|
3219
3836
|
|
|
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 };
|
|
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 };
|