@agg-build/sdk 4.1.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -4
- package/dist/index.d.mts +221 -20
- package/dist/index.d.ts +221 -20
- package/dist/index.js +157 -16
- package/dist/index.mjs +150 -16
- package/dist/server.d.mts +4 -0
- package/dist/server.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,10 +7,13 @@ declare enum Venue {
|
|
|
7
7
|
predict = "predict",
|
|
8
8
|
probable = "probable",
|
|
9
9
|
myriad = "myriad",
|
|
10
|
-
hyperliquid = "hyperliquid"
|
|
10
|
+
hyperliquid = "hyperliquid",
|
|
11
|
+
novig = "novig"
|
|
11
12
|
}
|
|
12
13
|
/** Single source of truth for venue identifiers. */
|
|
13
|
-
declare const VENUES: readonly [Venue.kalshi, Venue.polymarket, Venue.limitless, Venue.opinion, Venue.predict, Venue.probable, Venue.myriad, Venue.hyperliquid];
|
|
14
|
+
declare const VENUES: readonly [Venue.kalshi, Venue.polymarket, Venue.limitless, Venue.opinion, Venue.predict, Venue.probable, Venue.myriad, Venue.hyperliquid, Venue.novig];
|
|
15
|
+
/** Canonical destination chain for venues with on-chain funding or settlement. */
|
|
16
|
+
declare const VENUE_CHAIN_IDS: Partial<Record<Venue, number>>;
|
|
14
17
|
/**
|
|
15
18
|
* Venues that participate in new discovery, market-data, and execution flows.
|
|
16
19
|
*
|
|
@@ -19,9 +22,32 @@ declare const VENUES: readonly [Venue.kalshi, Venue.polymarket, Venue.limitless,
|
|
|
19
22
|
* Re-activating a venue is therefore an intentional code change here rather
|
|
20
23
|
* than a runtime configuration toggle.
|
|
21
24
|
*/
|
|
22
|
-
declare const ACTIVE_VENUES: readonly [Venue.polymarket, Venue.limitless, Venue.opinion, Venue.predict, Venue.probable, Venue.myriad, Venue.hyperliquid];
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
+
declare const ACTIVE_VENUES: readonly [Venue.kalshi, Venue.polymarket, Venue.limitless, Venue.opinion, Venue.predict, Venue.probable, Venue.myriad, Venue.hyperliquid];
|
|
26
|
+
/**
|
|
27
|
+
* Venues excluded from new user-facing activity. Kalshi has left this set —
|
|
28
|
+
* it is fully active again (data + execution) — leaving Novig as the only
|
|
29
|
+
* member.
|
|
30
|
+
*
|
|
31
|
+
* - `novig` — NOT YET LAUNCHED. Discovery, matching and the orderbook feed are
|
|
32
|
+
* built and running, but there is no execution path, so it must not reach
|
|
33
|
+
* end users. Listing it here is what makes prod hide it by default while
|
|
34
|
+
* `NOVIG_DATA_VISIBLE=true` un-hides it on staging for API verification
|
|
35
|
+
* (see `dataVisibleVenues` in `@app/runtime-config`).
|
|
36
|
+
*
|
|
37
|
+
* Membership here does NOT stop ingestion: the Rust engine gates discovery on
|
|
38
|
+
* credentials, so Novig data keeps flowing into `VenueEvent`/`VenueMarket` and
|
|
39
|
+
* keeps being matched. This set governs the API read layer and execution only.
|
|
40
|
+
*
|
|
41
|
+
* Novig must NOT be added to `ACTIVE_VENUES` before it is in
|
|
42
|
+
* `SUPPORTED_FILL_VENUES` (`orderbook.service.ts`). Active now implies
|
|
43
|
+
* executable outright — `isVenueExecutable` and its override are gone, so
|
|
44
|
+
* `isVenueActive` is the only gate — and an active venue absent from that set
|
|
45
|
+
* passes every gate and is then silently dropped at fill time, producing an
|
|
46
|
+
* empty executionPlan and a false `quote_unfillable`. Kalshi satisfies the
|
|
47
|
+
* invariant: it was added to `SUPPORTED_FILL_VENUES` unconditionally in the
|
|
48
|
+
* same change that made it active.
|
|
49
|
+
*/
|
|
50
|
+
declare const INACTIVE_VENUES: readonly [Venue.novig];
|
|
25
51
|
/** Whether a venue may participate in new user-facing activity. */
|
|
26
52
|
declare function isVenueActive(venue: string): boolean;
|
|
27
53
|
/** Whether a venue is intentionally retained only for wind-down/history flows. */
|
|
@@ -538,9 +564,12 @@ type GetHoldingsQuery = {
|
|
|
538
564
|
};
|
|
539
565
|
type GetOrdersQuery = {
|
|
540
566
|
status?: OrderStatus | undefined;
|
|
567
|
+
orderType?: "market" | "limit" | undefined;
|
|
541
568
|
orderId?: string | undefined;
|
|
542
569
|
/** Filter to all legs of one quote (multi-venue split routes). */
|
|
543
570
|
quoteId?: string | undefined;
|
|
571
|
+
/** Filter to the order(s) carrying this partner trade id. */
|
|
572
|
+
externalId?: string | undefined;
|
|
544
573
|
cursor?: string | undefined;
|
|
545
574
|
limit?: number | undefined;
|
|
546
575
|
};
|
|
@@ -558,6 +587,10 @@ type OrderListItem = {
|
|
|
558
587
|
* standalone orders without a Quote row.
|
|
559
588
|
*/
|
|
560
589
|
quoteId: string | null;
|
|
590
|
+
/** Partner-supplied trade id from POST /execution/orders. */
|
|
591
|
+
externalId: string | null;
|
|
592
|
+
/** Partner-supplied order id from POST /execution/limit-orders. */
|
|
593
|
+
clientOrderId: string | null;
|
|
561
594
|
createdAt: Date;
|
|
562
595
|
updatedAt: Date;
|
|
563
596
|
venue: Venue;
|
|
@@ -1193,11 +1226,11 @@ interface TSchema extends TKind, SchemaOptions {
|
|
|
1193
1226
|
* Always carry a human-readable `message` alongside; the code is additive and
|
|
1194
1227
|
* may be absent on rejections that pre-date this addition.
|
|
1195
1228
|
*/
|
|
1196
|
-
declare const QuoteErrorCodeTB: TUnion<[TLiteral<"quote_not_found">, TLiteral<"quote_expired">, TLiteral<"quote_already_executed">, TLiteral<"quote_cancelled">, TLiteral<"quote_user_mismatch">, TLiteral<"quote_app_blocked">, TLiteral<"quote_unfillable">, TLiteral<"quote_min_order_size">, TLiteral<"quote_stale_status">, TLiteral<"quote_stale_price">, TLiteral<"quote_insufficient_balance">, TLiteral<"quote_market_inactive">]>;
|
|
1229
|
+
declare const QuoteErrorCodeTB: TUnion<[TLiteral<"quote_not_found">, TLiteral<"quote_expired">, TLiteral<"quote_already_executed">, TLiteral<"quote_cancelled">, TLiteral<"quote_user_mismatch">, TLiteral<"quote_app_blocked">, TLiteral<"quote_unfillable">, TLiteral<"quote_min_order_size">, TLiteral<"quote_stale_status">, TLiteral<"quote_stale_price">, TLiteral<"quote_insufficient_balance">, TLiteral<"quote_market_inactive">, TLiteral<"venue_not_executable">, TLiteral<"outcome_ambiguous">]>;
|
|
1197
1230
|
type QuoteErrorCode = Static<typeof QuoteErrorCodeTB>;
|
|
1198
1231
|
declare const QuoteErrorTB: TObject<{
|
|
1199
1232
|
message: TString;
|
|
1200
|
-
code: TOptional<TUnion<[TLiteral<"quote_not_found">, TLiteral<"quote_expired">, TLiteral<"quote_already_executed">, TLiteral<"quote_cancelled">, TLiteral<"quote_user_mismatch">, TLiteral<"quote_app_blocked">, TLiteral<"quote_unfillable">, TLiteral<"quote_min_order_size">, TLiteral<"quote_stale_status">, TLiteral<"quote_stale_price">, TLiteral<"quote_insufficient_balance">, TLiteral<"quote_market_inactive">]>>;
|
|
1233
|
+
code: TOptional<TUnion<[TLiteral<"quote_not_found">, TLiteral<"quote_expired">, TLiteral<"quote_already_executed">, TLiteral<"quote_cancelled">, TLiteral<"quote_user_mismatch">, TLiteral<"quote_app_blocked">, TLiteral<"quote_unfillable">, TLiteral<"quote_min_order_size">, TLiteral<"quote_stale_status">, TLiteral<"quote_stale_price">, TLiteral<"quote_insufficient_balance">, TLiteral<"quote_market_inactive">, TLiteral<"venue_not_executable">, TLiteral<"outcome_ambiguous">]>>;
|
|
1201
1234
|
}>;
|
|
1202
1235
|
type QuoteError = Static<typeof QuoteErrorTB>;
|
|
1203
1236
|
|
|
@@ -1386,9 +1419,54 @@ interface BuildVenueUrlOpts {
|
|
|
1386
1419
|
seriesExternalId?: string | null;
|
|
1387
1420
|
/** VenueMarket.conditionId — used as a fallback for Polymarket when slug is missing. */
|
|
1388
1421
|
conditionId?: string | null;
|
|
1422
|
+
/**
|
|
1423
|
+
* Novig outcome id — the per-side (Yes/No) id, e.g.
|
|
1424
|
+
* `DiscoveredOutcome.external_identifier` / `o.id` in
|
|
1425
|
+
* agg-venue-novig/src/convert.rs. NOT the same id as `eventExternalId`
|
|
1426
|
+
* (Novig's event id, `ev.id`) or a market id (`m.id`) — Novig's deeplink
|
|
1427
|
+
* template takes the outcome, one level more specific than either. Not
|
|
1428
|
+
* currently plumbed from any caller.
|
|
1429
|
+
*/
|
|
1430
|
+
outcomeExternalId?: string | null;
|
|
1431
|
+
/**
|
|
1432
|
+
* Novig-issued partner id, required by Novig's deeplink URL structure for
|
|
1433
|
+
* attribution tracking (https://docs.novig.com/llms-full.txt,
|
|
1434
|
+
* "Deeplinking"). Not currently plumbed from any caller — no Novig case
|
|
1435
|
+
* builds a URL without it, so pass it explicitly once we have one.
|
|
1436
|
+
*/
|
|
1437
|
+
partnerId?: string | null;
|
|
1438
|
+
/**
|
|
1439
|
+
* Which of Novig's two documented deeplink schemes to build — Novig's docs
|
|
1440
|
+
* say to detect the caller's platform via User-Agent and pick accordingly.
|
|
1441
|
+
* Defaults to `"web"`. Ignored by every other venue.
|
|
1442
|
+
*/
|
|
1443
|
+
platform?: "web" | "native";
|
|
1389
1444
|
}
|
|
1390
1445
|
declare function buildVenueUrl(venue: string, opts: BuildVenueUrlOpts): string | null;
|
|
1391
1446
|
|
|
1447
|
+
declare const LIMIT_PRICE_RAW_SCALE: bigint;
|
|
1448
|
+
type LimitPriceSide = "buy" | "sell";
|
|
1449
|
+
type LimitPriceTickAdjustment = {
|
|
1450
|
+
adjusted: boolean;
|
|
1451
|
+
adjustedPriceRaw: string;
|
|
1452
|
+
originalPriceRaw: string;
|
|
1453
|
+
tickSizeRaw: string | null;
|
|
1454
|
+
};
|
|
1455
|
+
/**
|
|
1456
|
+
* Aligns a six-decimal limit price to a venue tick in the user's favor.
|
|
1457
|
+
* All rounding is performed with integers after the venue tick is scaled.
|
|
1458
|
+
*/
|
|
1459
|
+
declare const adjustLimitPriceRawToTick: ({ limitPriceRaw, side, tickSize, }: {
|
|
1460
|
+
limitPriceRaw: string;
|
|
1461
|
+
side: LimitPriceSide;
|
|
1462
|
+
tickSize?: number | null;
|
|
1463
|
+
}) => LimitPriceTickAdjustment;
|
|
1464
|
+
|
|
1465
|
+
declare const DEFAULT_BALANCE_REFILL_DAILY_CAP_RAW = "1002000000";
|
|
1466
|
+
declare const DEFAULT_BALANCE_REFILL_MAX_FEE_RAW = "2000000";
|
|
1467
|
+
declare const getBalanceRefillMaximumRaw: (dailyCapRaw: string, maxFeeRaw: string) => string;
|
|
1468
|
+
declare const isBalanceRefillWithinDailyCap: (minimumRaw: string, refillAmountRaw: string, dailyCapRaw: string, maxFeeRaw: string) => boolean;
|
|
1469
|
+
|
|
1392
1470
|
/**
|
|
1393
1471
|
* WebSocket protocol types for the Agg platform.
|
|
1394
1472
|
* All callback timestamps are in **seconds** (converted from server ms at SDK dispatch).
|
|
@@ -1542,6 +1620,8 @@ interface WsOrderEvent {
|
|
|
1542
1620
|
event: WsOrderEventType;
|
|
1543
1621
|
userId: string;
|
|
1544
1622
|
orderId: string;
|
|
1623
|
+
/** Partner trade id from `placeOrder()`, when the order carried one. */
|
|
1624
|
+
externalId?: string;
|
|
1545
1625
|
venue: string;
|
|
1546
1626
|
dagRunId?: string;
|
|
1547
1627
|
stepId?: string;
|
|
@@ -1945,6 +2025,15 @@ interface VenueGeoPolicyEntry {
|
|
|
1945
2025
|
venue: Venue;
|
|
1946
2026
|
/** ISO 3166-1 alpha-2, upper-case. Empty means no country restriction. */
|
|
1947
2027
|
blockedCountries: string[];
|
|
2028
|
+
/**
|
|
2029
|
+
* ISO 3166-1 alpha-2, upper-case. When present, this venue is ALLOWLIST
|
|
2030
|
+
* mode: ONLY these countries are permitted (`blockedCountries` is always
|
|
2031
|
+
* `[]` alongside this and must be ignored). Absent/undefined ⇒ ordinary
|
|
2032
|
+
* denylist mode, use `blockedCountries` as before. Only Novig uses this
|
|
2033
|
+
* today — a client that reads only `blockedCountries` sees an allowlisted
|
|
2034
|
+
* venue as unrestricted, which is exactly the misread this field closes.
|
|
2035
|
+
*/
|
|
2036
|
+
allowedCountries?: string[];
|
|
1948
2037
|
}
|
|
1949
2038
|
interface VenueGeoPolicyResponse {
|
|
1950
2039
|
venues: VenueGeoPolicyEntry[];
|
|
@@ -2001,9 +2090,13 @@ type AggAuthStartResult = {
|
|
|
2001
2090
|
/**
|
|
2002
2091
|
* Body for `POST /users/me/link-account/start` — authenticated account linking.
|
|
2003
2092
|
*
|
|
2004
|
-
* `redirectUrl` is required for
|
|
2005
|
-
* hands the partner a `link_confirm_token` by redirecting to `redirectUrl`,
|
|
2006
|
-
* the partner app completes the flow by calling `/confirm` from that page.
|
|
2093
|
+
* `redirectUrl` is required for OAuth/email providers: the callback / magic-link
|
|
2094
|
+
* verify hands the partner a `link_confirm_token` by redirecting to `redirectUrl`,
|
|
2095
|
+
* and the partner app completes the flow by calling `/confirm` from that page.
|
|
2096
|
+
*
|
|
2097
|
+
* Wallet providers (`siwe`/`siws`) instead return a `wallet_challenge` with a
|
|
2098
|
+
* `message` the user signs VERBATIM; the signature is then confirmed with
|
|
2099
|
+
* `{ kind: "wallet_signature", message, signature }`.
|
|
2007
2100
|
*/
|
|
2008
2101
|
type AggLinkAccountBody = {
|
|
2009
2102
|
provider: "google" | "twitter" | "apple";
|
|
@@ -2012,6 +2105,9 @@ type AggLinkAccountBody = {
|
|
|
2012
2105
|
provider: "email";
|
|
2013
2106
|
email: string;
|
|
2014
2107
|
redirectUrl: string;
|
|
2108
|
+
} | {
|
|
2109
|
+
provider: "siwe" | "siws";
|
|
2110
|
+
address: string;
|
|
2015
2111
|
};
|
|
2016
2112
|
type AggLinkAccountResult = {
|
|
2017
2113
|
type: "redirect";
|
|
@@ -2019,6 +2115,20 @@ type AggLinkAccountResult = {
|
|
|
2019
2115
|
} | {
|
|
2020
2116
|
type: "magic_link";
|
|
2021
2117
|
success: true;
|
|
2118
|
+
} | {
|
|
2119
|
+
type: "wallet_challenge";
|
|
2120
|
+
message: string;
|
|
2121
|
+
};
|
|
2122
|
+
/**
|
|
2123
|
+
* Wallet branch of `POST /users/me/link-account/confirm`. Requires `kind` so it
|
|
2124
|
+
* can never be confused with the `token` branch. `message` MUST be the exact
|
|
2125
|
+
* `message` returned by `/start`'s `wallet_challenge` — the server compares it
|
|
2126
|
+
* byte-for-byte, so do not reconstruct or edit it client-side.
|
|
2127
|
+
*/
|
|
2128
|
+
type AggLinkAccountWalletConfirmBody = {
|
|
2129
|
+
kind: "wallet_signature";
|
|
2130
|
+
message: string;
|
|
2131
|
+
signature: string;
|
|
2022
2132
|
};
|
|
2023
2133
|
/**
|
|
2024
2134
|
* Success result of /users/me/link-account/confirm.
|
|
@@ -2054,6 +2164,27 @@ interface PersistedAuthSnapshot {
|
|
|
2054
2164
|
}
|
|
2055
2165
|
/** Auth lifecycle status for UI state machines. */
|
|
2056
2166
|
type AuthStatus = "unknown" | "authenticated" | "unauthenticated";
|
|
2167
|
+
type SportsGameStatus = "scheduled" | "live" | "paused" | "finished" | "cancelled" | "postponed" | "unknown";
|
|
2168
|
+
interface SportsLiveParticipant {
|
|
2169
|
+
position: "first" | "second";
|
|
2170
|
+
name: string;
|
|
2171
|
+
shortName: string | null;
|
|
2172
|
+
imageUrl: string | null;
|
|
2173
|
+
score: string | null;
|
|
2174
|
+
}
|
|
2175
|
+
interface SportsLiveState {
|
|
2176
|
+
eventId: string;
|
|
2177
|
+
sport: string;
|
|
2178
|
+
status: SportsGameStatus;
|
|
2179
|
+
participants: [SportsLiveParticipant, SportsLiveParticipant];
|
|
2180
|
+
period: string | null;
|
|
2181
|
+
clock: string | null;
|
|
2182
|
+
updatedAt: string | null;
|
|
2183
|
+
}
|
|
2184
|
+
interface SportsLiveResponse {
|
|
2185
|
+
data: SportsLiveState[];
|
|
2186
|
+
missingEventIds: string[];
|
|
2187
|
+
}
|
|
2057
2188
|
interface AggClientOptions {
|
|
2058
2189
|
baseUrl: string;
|
|
2059
2190
|
/** Public App ID — sent as x-app-id header. For client-side partner usage. */
|
|
@@ -2184,6 +2315,13 @@ interface MatchedOrderbookMarket extends VenueMarketRef {
|
|
|
2184
2315
|
marketStatus: "open" | "closed" | "resolved" | "unopened" | "paused";
|
|
2185
2316
|
tickSize: number | null;
|
|
2186
2317
|
hasOrderbook: boolean;
|
|
2318
|
+
/**
|
|
2319
|
+
* Hyperliquid HIP-4 deployer namespace this member belongs to (e.g. "ap").
|
|
2320
|
+
* `null` for every other venue and for Hyperliquid members without one.
|
|
2321
|
+
* Names which deployer this cluster member is — distinct from whether its
|
|
2322
|
+
* book was published (see `hasOrderbook`).
|
|
2323
|
+
*/
|
|
2324
|
+
deployerVenue?: string | null;
|
|
2187
2325
|
}
|
|
2188
2326
|
/**
|
|
2189
2327
|
* Provenance of a published `midpoint`. Mirrors the engine's `MarkSource`.
|
|
@@ -2444,6 +2582,14 @@ interface VenueOrderbookEntry {
|
|
|
2444
2582
|
tick?: number | null;
|
|
2445
2583
|
/** Provenance of this venue book's published midpoint. See {@link MarkSource}. */
|
|
2446
2584
|
markSource?: MarkSource;
|
|
2585
|
+
/**
|
|
2586
|
+
* Hyperliquid HIP-4 deployer namespace whose book this entry publishes
|
|
2587
|
+
* (e.g. "ap"). `null` for every other venue. When a cluster has more than
|
|
2588
|
+
* one Hyperliquid deployer member, only one member's book is published per
|
|
2589
|
+
* request — this names which one, so a caller never pairs this entry's depth
|
|
2590
|
+
* with a different member's `venueMarketId`.
|
|
2591
|
+
*/
|
|
2592
|
+
deployerVenue?: string | null;
|
|
2447
2593
|
}
|
|
2448
2594
|
/** Response from GET /orderbooks (batch). */
|
|
2449
2595
|
interface BatchOrderbooksResponse {
|
|
@@ -2571,6 +2717,8 @@ interface TradeExecutorOrder {
|
|
|
2571
2717
|
side: string;
|
|
2572
2718
|
amountRaw: string;
|
|
2573
2719
|
quoteId: string | null;
|
|
2720
|
+
externalId: string | null;
|
|
2721
|
+
clientOrderId: string | null;
|
|
2574
2722
|
dagRunId: string | null;
|
|
2575
2723
|
filledAmountRaw: string | null;
|
|
2576
2724
|
executionPrice: string | null;
|
|
@@ -2674,6 +2822,35 @@ interface PlaceLimitOrderResponse {
|
|
|
2674
2822
|
filledSizeRaw: string;
|
|
2675
2823
|
remainingSizeRaw: string;
|
|
2676
2824
|
}
|
|
2825
|
+
interface PlaceOrderParams {
|
|
2826
|
+
venue: Venue;
|
|
2827
|
+
venueMarketOutcomeId: string;
|
|
2828
|
+
side: "buy" | "sell";
|
|
2829
|
+
/** Buy only. Maximum all-in USD spend, inclusive of app fee. */
|
|
2830
|
+
maxSpend?: number;
|
|
2831
|
+
/** Sell only. Number of contracts to sell. */
|
|
2832
|
+
sellShares?: number;
|
|
2833
|
+
/**
|
|
2834
|
+
* Your trade id. Required, unique within your app — two different users of
|
|
2835
|
+
* the same app cannot share one. A repeat returns 409 instead of trading twice.
|
|
2836
|
+
*/
|
|
2837
|
+
externalId: string;
|
|
2838
|
+
/** Slippage cap in bps. Defaults to 500 (5%). Set explicitly on sells. */
|
|
2839
|
+
slipCapBps?: number;
|
|
2840
|
+
}
|
|
2841
|
+
interface PlaceOrderResponse {
|
|
2842
|
+
orderId: string;
|
|
2843
|
+
externalId: string;
|
|
2844
|
+
venue: Venue;
|
|
2845
|
+
status: "pending";
|
|
2846
|
+
quoteId: string;
|
|
2847
|
+
/** `null` if the order row doesn't carry a quoted price. Not zero. */
|
|
2848
|
+
quotedPriceRaw: string | null;
|
|
2849
|
+
/** `null` under the same conditions as `quotedPriceRaw`. Not zero. */
|
|
2850
|
+
quotedCostRaw: string | null;
|
|
2851
|
+
/** `null` under the same conditions as `quotedPriceRaw`. Not zero. */
|
|
2852
|
+
quotedSharesRaw: string | null;
|
|
2853
|
+
}
|
|
2677
2854
|
interface ValidateManagedParams {
|
|
2678
2855
|
venueMarketOutcomeIds: string[];
|
|
2679
2856
|
side: "buy" | "sell";
|
|
@@ -2733,7 +2910,7 @@ interface CreateBalanceRefillPolicyParams {
|
|
|
2733
2910
|
targetTokenSymbol?: "USDC";
|
|
2734
2911
|
minimumRaw: string;
|
|
2735
2912
|
refillAmountRaw: string;
|
|
2736
|
-
/** Optional daily refill limit. Defaults to $
|
|
2913
|
+
/** Optional daily refill limit. Defaults to $1,002 in 6-decimal USD units. */
|
|
2737
2914
|
dailyCapRaw?: string;
|
|
2738
2915
|
/** Optional per-refill fee limit. Defaults to $2 in 6-decimal USD units. */
|
|
2739
2916
|
maxFeeRaw?: string;
|
|
@@ -2970,6 +3147,7 @@ interface ExecutionStatusOrder {
|
|
|
2970
3147
|
executionPriceRaw?: string;
|
|
2971
3148
|
partialFillReason?: string;
|
|
2972
3149
|
errorReason?: string;
|
|
3150
|
+
venueOrderId?: string;
|
|
2973
3151
|
txHash?: string;
|
|
2974
3152
|
updatedAt: string;
|
|
2975
3153
|
}
|
|
@@ -3337,6 +3515,8 @@ interface VenueSoloQuote {
|
|
|
3337
3515
|
* SUPPORTED_FILL_VENUES). FE filters on truthiness.
|
|
3338
3516
|
*/
|
|
3339
3517
|
quoteId: string | null;
|
|
3518
|
+
/** Why this venue cannot execute when quoteId is null (or execution is geo-gated). */
|
|
3519
|
+
unavailableReason?: string;
|
|
3340
3520
|
venue: string;
|
|
3341
3521
|
avgPrice: number | null;
|
|
3342
3522
|
filledQty: number;
|
|
@@ -3925,21 +4105,29 @@ declare class AggClient {
|
|
|
3925
4105
|
* the bearer automatically. Response shape:
|
|
3926
4106
|
* - OAuth providers → `{ type: "redirect", url }`; redirect the browser to `url`.
|
|
3927
4107
|
* - Email → `{ type: "magic_link", success: true }`; check the destination inbox.
|
|
4108
|
+
* - Wallet providers (siwe/siws) → `{ type: "wallet_challenge", message }`; have the
|
|
4109
|
+
* user sign `message` VERBATIM, then submit it to `linkAccountConfirm()` as
|
|
4110
|
+
* `{ kind: "wallet_signature", message, signature }`.
|
|
3928
4111
|
*
|
|
3929
|
-
* After the
|
|
4112
|
+
* After the OAuth/email callback runs, the browser lands back on the app's `redirectUrl`
|
|
3930
4113
|
* with a `link_confirm_token` query param. Feed that token to `linkAccountConfirm()`
|
|
3931
4114
|
* to persist the Account row.
|
|
3932
|
-
*
|
|
3933
|
-
* Wallet linking (siwe/siws) is not supported yet — it requires a different message
|
|
3934
|
-
* binding protocol than sign-in to be safe against signature phishing.
|
|
3935
4115
|
*/
|
|
3936
4116
|
linkAccount(body: AggLinkAccountBody): Promise<AggLinkAccountResult>;
|
|
3937
4117
|
/**
|
|
3938
|
-
*
|
|
3939
|
-
*
|
|
3940
|
-
*
|
|
4118
|
+
* Finalize an account link.
|
|
4119
|
+
*
|
|
4120
|
+
* - Pass a `link_confirm_token` string (OAuth/email) to exchange it for a linked
|
|
4121
|
+
* `Account` row.
|
|
4122
|
+
* - Pass `{ kind: "wallet_signature", message, signature }` (wallet providers) to
|
|
4123
|
+
* verify the signature over the `wallet_challenge` `message` returned by
|
|
4124
|
+
* `linkAccount()`.
|
|
4125
|
+
*
|
|
4126
|
+
* The server matches the current bearer's `principalId` to the challenge/token's
|
|
4127
|
+
* `principalId` before writing — this is the final ownership check. A wallet already
|
|
4128
|
+
* linked to a DIFFERENT principal rejects with HTTP 409.
|
|
3941
4129
|
*/
|
|
3942
|
-
linkAccountConfirm(
|
|
4130
|
+
linkAccountConfirm(input: string | AggLinkAccountWalletConfirmBody): Promise<AggLinkAccountConfirmResult>;
|
|
3943
4131
|
/** Exchange a one-time auth code (from OAuth/magic-link callback) for tokens. */
|
|
3944
4132
|
exchangeAuthCode(code: string): Promise<UserAuthResult>;
|
|
3945
4133
|
/** Refresh the access token using the stored refresh token. */
|
|
@@ -4030,6 +4218,7 @@ declare class AggClient {
|
|
|
4030
4218
|
status?: MarketStatus[];
|
|
4031
4219
|
sortBy?: string;
|
|
4032
4220
|
sortDir?: string;
|
|
4221
|
+
aggKey?: string | string[];
|
|
4033
4222
|
recurrence?: RecurrenceFilter | RecurrenceFilter[];
|
|
4034
4223
|
limit?: number;
|
|
4035
4224
|
cursor?: string;
|
|
@@ -4037,6 +4226,7 @@ declare class AggClient {
|
|
|
4037
4226
|
maxYesPrice?: number;
|
|
4038
4227
|
/** ISO-8601 timestamp. Hides events with endDate <= this value. NULL-endDate events are kept. */
|
|
4039
4228
|
endDateFrom?: string;
|
|
4229
|
+
signal?: AbortSignal;
|
|
4040
4230
|
/**
|
|
4041
4231
|
* When true, fold same-venue companion events into one tile per game
|
|
4042
4232
|
* (`groupParentId IS NULL`). Sent as `grouped=true`; omitted when false/absent
|
|
@@ -4049,6 +4239,10 @@ declare class AggClient {
|
|
|
4049
4239
|
getVenueEventById(id: string, options?: {
|
|
4050
4240
|
signal?: AbortSignal;
|
|
4051
4241
|
}): Promise<VenueEvent>;
|
|
4242
|
+
/** Get normalized live score state for sports events. Requires appId or admin auth. */
|
|
4243
|
+
getSportsLive(eventIds: string[], options?: {
|
|
4244
|
+
signal?: AbortSignal;
|
|
4245
|
+
}): Promise<SportsLiveResponse>;
|
|
4052
4246
|
/** List deterministic recurring crypto window markets across venues. Requires appId or admin auth. */
|
|
4053
4247
|
listRecurringCryptoMarkets(options?: ListRecurringCryptoMarketsOptions & {
|
|
4054
4248
|
signal?: AbortSignal;
|
|
@@ -4213,6 +4407,13 @@ declare class AggClient {
|
|
|
4213
4407
|
executeManaged(params: ExecuteManagedParams): Promise<ExecuteManagedResponse>;
|
|
4214
4408
|
/** Place a managed limit order. Returns the venue-backed order state. */
|
|
4215
4409
|
placeLimitOrder(params: PlaceLimitOrderParams): Promise<PlaceLimitOrderResponse>;
|
|
4410
|
+
/**
|
|
4411
|
+
* Place a market order directly on a named venue — no prior quote needed.
|
|
4412
|
+
* Always produces exactly one order. `externalId` is required and unique
|
|
4413
|
+
* within your app — two different users of the same app cannot share one —
|
|
4414
|
+
* so retrying a timed-out call with the same value is safe.
|
|
4415
|
+
*/
|
|
4416
|
+
placeOrder(params: PlaceOrderParams): Promise<PlaceOrderResponse>;
|
|
4216
4417
|
/** Redeem resolved winning positions by venue market outcome ids. */
|
|
4217
4418
|
redeem(body: RedeemRequest): Promise<RedeemResponse>;
|
|
4218
4419
|
/** List the authenticated user's managed balance refill policies. */
|
|
@@ -4380,4 +4581,4 @@ declare function aggregateMidpoint(midpoints: (number | null | undefined)[]): nu
|
|
|
4380
4581
|
|
|
4381
4582
|
declare function createAggClient(options: AggClientOptions): AggClient;
|
|
4382
4583
|
|
|
4383
|
-
export { ACTIVE_VENUES, type Account, AccountProvider, AccountType, AggApiError, type AggApiErrorInit, type AggApiFieldError, 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 BalanceRefillAttempt, type BalanceRefillAttemptStatus, type BalanceRefillPolicy, type BalanceRefillPolicyStatus, type BatchMidpointsResponse, type BatchOrderbooksResponse, type BookQuality, 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 CreateBalanceRefillPolicyParams, 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 ExecutionDagProgress, type ExecutionDisplayGroupStatus, type ExecutionDisplayStepKind, type ExecutionMode, type ExecutionOrderItem, type ExecutionOrdersQuery, type ExecutionOverallState, type ExecutionPositionGroup, type ExecutionPositionsQuery, type ExecutionStatusOrder, type ExecutionStatusQuery, type ExecutionStatusResponse, type ExecutionStatusStep, type GetBalanceQuery, type GetBalanceResponse, type GetCryptoReferencePricesOptions, type GetHoldingsQuery, type GetHoldingsResponse, type GetOrdersParams, type GetOrdersQuery, type GetPositionsParams, type GetPositionsQuery, type HelloResponse, IMAGE_SIZES, INACTIVE_VENUES, ImageSize, type LimitOrderTimeInForce, type ListRecurringCryptoMarketsOptions, type ManagedBalancesParams, type MarkSource, type MarketPriceHistory, MarketStatus, MatchStatus, MatchType, type MatchedMidpoint, type MatchedMidpointOutcome, type MatchedOrderbookMarket, type MatchedVenueMarketOutcomeRef, 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 PlaceLimitOrderParams, type PlaceLimitOrderResponse, type PlacePaperTradingOrderParams, type PositionGroup, type PositionRedeemStatus, type PricePoint, type PriceSource, type PricesHistoryResponse, type QuoteError, type QuoteErrorCode, 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 RecurringCryptoOrderbookDepthLevel, type RecurringCryptoOrderbookDepthSide, type RecurringCryptoOutcome, type RecurringCryptoOutcomeOrderbookDepth, 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 RpcTokenResponse, type SafeParseFailure, type SafeParseResult, type SafeParseSuccess, type ServerWallet, type SetPaperTradingBalanceParams, type SettlementDiff, type SettlementDifference, type SettlementSource, type SetupDepositAddressStep, type SetupVenueKeyStep, type SimpleOrderbookLevel, type SmartRouteAllocation, type SmartRouteBridgeStep, type SmartRouteFeeBreakdown, type SmartRouteFill, type SmartRouteParams, type SmartRouteResponse, type SmartRouteSettlementLeg, type SmartRouteSettlementPlan, 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 UpdateBalanceRefillPolicyParams, 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 VenueGeoPolicyEntry, type VenueGeoPolicyResponse, type VenueKeyStatus, 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 WithdrawalQuoteParams, type WithdrawalQuoteResponse, 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, getEffectiveDisabledVenues, getWalletAddressFromUserProfile, hasShape, isAggApiError, isEmail, isEnum, isFiniteNonNeg, isNonEmptyString, isVenueActive, isVenueDataVisible, isVenueInactive, mergeCandles, mergeClosedCandles, normalizeVenueMarketCluster, optimizedImageUrl, parse, parseEmail, parseEmailStrict, safeParse, snapshotToOrderbook, sortVenues };
|
|
4584
|
+
export { ACTIVE_VENUES, type Account, AccountProvider, AccountType, AggApiError, type AggApiErrorInit, type AggApiFieldError, type AggAuthDeliveryMode, type AggAuthProviderType, type AggAuthStartBody, type AggAuthStartResult, type AggAuthVerifyBody, AggClient, type AggClientAuthOptions, type AggClientSessionInput, type AggLinkAccountBody, type AggLinkAccountConfirmResult, type AggLinkAccountResult, type AggLinkAccountWalletConfirmBody, 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 BalanceRefillAttempt, type BalanceRefillAttemptStatus, type BalanceRefillPolicy, type BalanceRefillPolicyStatus, type BatchMidpointsResponse, type BatchOrderbooksResponse, type BookQuality, 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 CreateBalanceRefillPolicyParams, type CreatePaperTradingAccountParams, type CryptoReferencePriceError, type CryptoReferencePriceExternalMarketInput, type CryptoReferencePriceMarketInput, type CryptoReferencePriceResult, type CryptoReferencePriceSource, type CryptoReferencePriceTarget, type CryptoReferencePricesResponse, DEFAULT_BALANCE_REFILL_DAILY_CAP_RAW, DEFAULT_BALANCE_REFILL_MAX_FEE_RAW, 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 ExecutionDagProgress, type ExecutionDisplayGroupStatus, type ExecutionDisplayStepKind, type ExecutionMode, type ExecutionOrderItem, type ExecutionOrdersQuery, type ExecutionOverallState, type ExecutionPositionGroup, type ExecutionPositionsQuery, type ExecutionStatusOrder, type ExecutionStatusQuery, type ExecutionStatusResponse, type ExecutionStatusStep, type GetBalanceQuery, type GetBalanceResponse, type GetCryptoReferencePricesOptions, type GetHoldingsQuery, type GetHoldingsResponse, type GetOrdersParams, type GetOrdersQuery, type GetPositionsParams, type GetPositionsQuery, type HelloResponse, IMAGE_SIZES, INACTIVE_VENUES, ImageSize, LIMIT_PRICE_RAW_SCALE, type LimitOrderTimeInForce, type LimitPriceSide, type LimitPriceTickAdjustment, type ListRecurringCryptoMarketsOptions, type ManagedBalancesParams, type MarkSource, type MarketPriceHistory, MarketStatus, MatchStatus, MatchType, type MatchedMidpoint, type MatchedMidpointOutcome, type MatchedOrderbookMarket, type MatchedVenueMarketOutcomeRef, 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 PlaceLimitOrderParams, type PlaceLimitOrderResponse, type PlacePaperTradingOrderParams, type PositionGroup, type PositionRedeemStatus, type PricePoint, type PriceSource, type PricesHistoryResponse, type QuoteError, type QuoteErrorCode, 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 RecurringCryptoOrderbookDepthLevel, type RecurringCryptoOrderbookDepthSide, type RecurringCryptoOutcome, type RecurringCryptoOutcomeOrderbookDepth, 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 RpcTokenResponse, type SafeParseFailure, type SafeParseResult, type SafeParseSuccess, type ServerWallet, type SetPaperTradingBalanceParams, type SettlementDiff, type SettlementDifference, type SettlementSource, type SetupDepositAddressStep, type SetupVenueKeyStep, type SimpleOrderbookLevel, type SmartRouteAllocation, type SmartRouteBridgeStep, type SmartRouteFeeBreakdown, type SmartRouteFill, type SmartRouteParams, type SmartRouteResponse, type SmartRouteSettlementLeg, type SmartRouteSettlementPlan, type SmartRouteSetupCostLine, type SmartRouteSide, type SmartRouteStatus, type SmartRouteVenueFill, type SplitsByAmountResult, type SportsGameStatus, type SportsLiveParticipant, type SportsLiveResponse, type SportsLiveState, type SyncBalancesResponse, TimeInForce, type TradeExecutorOrder, type TradeExecutorOrderListResponse, TradeSide$1 as TradeSide, type TradeSplit, type TradeStep, TurnstileChallengeError, type UnifiedBalanceResponse, type UpdateBalanceRefillPolicyParams, 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, VENUE_CHAIN_IDS, type ValidateBalanceOnClientStep, type ValidateManagedParams, type ValidateManagedRequest, type ValidateManagedResponse, type ValidateTradeRequest, type ValidateTradeResponse, Venue, type VenueEvent, type VenueEventListItem, type VenueEventWithMarkets, type VenueGeoPolicyEntry, type VenueGeoPolicyResponse, type VenueKeyStatus, 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 WithdrawalQuoteParams, type WithdrawalQuoteResponse, 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, adjustLimitPriceRawToTick, aggregateMidpoint, applyOrderbookDelta, buildVenueUrl, computeBestSplitsByAmount, computeChecksum, createAggClient, enumGuard, formatMarketQuestion, formatOutcomeLabel, formatOutcomeTitle, getBalanceRefillMaximumRaw, getEffectiveDisabledVenues, getWalletAddressFromUserProfile, hasShape, isAggApiError, isBalanceRefillWithinDailyCap, isEmail, isEnum, isFiniteNonNeg, isNonEmptyString, isVenueActive, isVenueDataVisible, isVenueInactive, mergeCandles, mergeClosedCandles, normalizeVenueMarketCluster, optimizedImageUrl, parse, parseEmail, parseEmailStrict, safeParse, snapshotToOrderbook, sortVenues };
|