@agg-build/sdk 4.0.1 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.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
- /** Venues retained for historical/wind-down flows but unavailable for new activity. */
24
- declare const INACTIVE_VENUES: readonly [Venue.kalshi];
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;
@@ -769,6 +802,15 @@ type VenueEvent = {
769
802
  venues?: Venue[];
770
803
  venueCount?: number | undefined;
771
804
  groupMarketCount?: number | undefined;
805
+ /**
806
+ * Same-venue companion grouping: the id of this event's group base. NULL means
807
+ * the event IS the base, or is standalone. A venue splits one game into several
808
+ * events (`… - More Markets`, `… : Spread`), and same-venue events never share
809
+ * a matched cluster — so on a companion, `matchedVenueEvents[]` lists the other
810
+ * venues' EQUIVALENT companions, not the game's cluster. Use this id (or the
811
+ * shared `aggKey`) to reach the base.
812
+ */
813
+ groupParentId?: string | null | undefined;
772
814
  marketCount?: number | undefined;
773
815
  /**
774
816
  * ISO-8601 duration denormalized from Series.recurrence. `null` means
@@ -1039,6 +1081,159 @@ type SyncBalancesResponse = {
1039
1081
  synced: true;
1040
1082
  };
1041
1083
 
1084
+ /** Symbol key applied to readonly types */
1085
+ declare const ReadonlyKind: unique symbol;
1086
+ /** Symbol key applied to optional types */
1087
+ declare const OptionalKind: unique symbol;
1088
+ /** Symbol key applied to types */
1089
+ declare const Hint: unique symbol;
1090
+ /** Symbol key applied to types */
1091
+ declare const Kind: unique symbol;
1092
+
1093
+ type TReadonly<T extends TSchema> = T & {
1094
+ [ReadonlyKind]: 'Readonly';
1095
+ };
1096
+
1097
+ type TLiteralValue = boolean | number | string;
1098
+ interface TLiteral<T extends TLiteralValue = TLiteralValue> extends TSchema {
1099
+ [Kind]: 'Literal';
1100
+ static: T;
1101
+ const: T;
1102
+ }
1103
+
1104
+ type UnionStatic<T extends TSchema[], P extends unknown[]> = {
1105
+ [K in keyof T]: T[K] extends TSchema ? Static<T[K], P> : never;
1106
+ }[number];
1107
+ interface TUnion<T extends TSchema[] = TSchema[]> extends TSchema {
1108
+ [Kind]: 'Union';
1109
+ static: UnionStatic<T, this['params']>;
1110
+ anyOf: T;
1111
+ }
1112
+
1113
+ type StringFormatOption = 'date-time' | 'time' | 'date' | 'email' | 'idn-email' | 'hostname' | 'idn-hostname' | 'ipv4' | 'ipv6' | 'uri' | 'uri-reference' | 'iri' | 'uuid' | 'iri-reference' | 'uri-template' | 'json-pointer' | 'relative-json-pointer' | 'regex' | ({} & string);
1114
+ type StringContentEncodingOption = '7bit' | '8bit' | 'binary' | 'quoted-printable' | 'base64' | ({} & string);
1115
+ interface StringOptions extends SchemaOptions {
1116
+ /** The maximum string length */
1117
+ maxLength?: number;
1118
+ /** The minimum string length */
1119
+ minLength?: number;
1120
+ /** A regular expression pattern this string should match */
1121
+ pattern?: string;
1122
+ /** A format this string should match */
1123
+ format?: StringFormatOption;
1124
+ /** The content encoding for this string */
1125
+ contentEncoding?: StringContentEncodingOption;
1126
+ /** The content media type for this string */
1127
+ contentMediaType?: string;
1128
+ }
1129
+ interface TString extends TSchema, StringOptions {
1130
+ [Kind]: 'String';
1131
+ static: string;
1132
+ type: 'string';
1133
+ }
1134
+
1135
+ type TOptional<T extends TSchema> = T & {
1136
+ [OptionalKind]: 'Optional';
1137
+ };
1138
+
1139
+ /** Creates a static type from a TypeBox type */
1140
+ type Static<Type extends TSchema, Params extends unknown[] = [], Result = (Type & {
1141
+ params: Params;
1142
+ })['static']> = Result;
1143
+
1144
+ type ReadonlyOptionalPropertyKeys<T extends TProperties> = {
1145
+ [K in keyof T]: T[K] extends TReadonly<TSchema> ? (T[K] extends TOptional<T[K]> ? K : never) : never;
1146
+ }[keyof T];
1147
+ type ReadonlyPropertyKeys<T extends TProperties> = {
1148
+ [K in keyof T]: T[K] extends TReadonly<TSchema> ? (T[K] extends TOptional<T[K]> ? never : K) : never;
1149
+ }[keyof T];
1150
+ type OptionalPropertyKeys<T extends TProperties> = {
1151
+ [K in keyof T]: T[K] extends TOptional<TSchema> ? (T[K] extends TReadonly<T[K]> ? never : K) : never;
1152
+ }[keyof T];
1153
+ type RequiredPropertyKeys<T extends TProperties> = keyof Omit<T, ReadonlyOptionalPropertyKeys<T> | ReadonlyPropertyKeys<T> | OptionalPropertyKeys<T>>;
1154
+ type ObjectStaticProperties<T extends TProperties, R extends Record<keyof any, unknown>> = Evaluate<(Readonly<Partial<Pick<R, ReadonlyOptionalPropertyKeys<T>>>> & Readonly<Pick<R, ReadonlyPropertyKeys<T>>> & Partial<Pick<R, OptionalPropertyKeys<T>>> & Required<Pick<R, RequiredPropertyKeys<T>>>)>;
1155
+ type ObjectStatic<T extends TProperties, P extends unknown[]> = ObjectStaticProperties<T, {
1156
+ [K in keyof T]: Static<T[K], P>;
1157
+ }>;
1158
+ type TPropertyKey = string | number;
1159
+ type TProperties = Record<TPropertyKey, TSchema>;
1160
+ type TIsLiteralString<Type extends string> = ([
1161
+ Type
1162
+ ] extends [string] ? [string] extends [Type] ? false : true : false);
1163
+ type IsRequiredArrayLiteralConstant<RequiredTuple extends string[]> = (RequiredTuple extends [infer Left extends string, ...infer _ extends string[]] ? TIsLiteralString<Left> : false);
1164
+ type TRequiredArray<Properties extends TProperties, RequiredProperties extends TProperties = {
1165
+ [Key in keyof Properties as Properties[Key] extends TOptional<Properties[Key]> ? never : Key]: Properties[Key];
1166
+ }, RequiredUnion extends string = Extract<keyof RequiredProperties, string>, RequiredTuple extends string[] = UnionToTuple<RequiredUnion>, Result extends string[] | undefined = (IsRequiredArrayLiteralConstant<RequiredTuple> extends true ? RequiredTuple : string[] | undefined)> = Result;
1167
+ type TAdditionalProperties = undefined | TSchema | boolean;
1168
+ interface ObjectOptions extends SchemaOptions {
1169
+ /** Additional property constraints for this object */
1170
+ additionalProperties?: TAdditionalProperties;
1171
+ /** The minimum number of properties allowed on this object */
1172
+ minProperties?: number;
1173
+ /** The maximum number of properties allowed on this object */
1174
+ maxProperties?: number;
1175
+ }
1176
+ interface TObject<T extends TProperties = TProperties> extends TSchema, ObjectOptions {
1177
+ [Kind]: 'Object';
1178
+ static: ObjectStatic<T, this['params']>;
1179
+ additionalProperties?: TAdditionalProperties;
1180
+ type: 'object';
1181
+ properties: T;
1182
+ required: TRequiredArray<T>;
1183
+ }
1184
+
1185
+ type UnionToIntersect<U> = (U extends unknown ? (arg: U) => 0 : never) extends (arg: infer I) => 0 ? I : never;
1186
+ type UnionLast<U> = UnionToIntersect<U extends unknown ? (x: U) => 0 : never> extends (x: infer L) => 0 ? L : never;
1187
+ type UnionToTuple<U, Acc extends unknown[] = [], R = UnionLast<U>> = [U] extends [never] ? Acc : UnionToTuple<Exclude<U, R>, [Extract<U, R>, ...Acc]>;
1188
+ type Evaluate<T> = T extends infer O ? {
1189
+ [K in keyof O]: O[K];
1190
+ } : never;
1191
+
1192
+ interface SchemaOptions {
1193
+ $schema?: string;
1194
+ /** Id for this schema */
1195
+ $id?: string;
1196
+ /** Title of this schema */
1197
+ title?: string;
1198
+ /** Description of this schema */
1199
+ description?: string;
1200
+ /** Default value for this schema */
1201
+ default?: any;
1202
+ /** Example values matching this schema */
1203
+ examples?: any;
1204
+ /** Optional annotation for readOnly */
1205
+ readOnly?: boolean;
1206
+ /** Optional annotation for writeOnly */
1207
+ writeOnly?: boolean;
1208
+ [prop: string]: any;
1209
+ }
1210
+ interface TKind {
1211
+ [Kind]: string;
1212
+ }
1213
+ interface TSchema extends TKind, SchemaOptions {
1214
+ [ReadonlyKind]?: string;
1215
+ [OptionalKind]?: string;
1216
+ [Hint]?: string;
1217
+ params: unknown[];
1218
+ static: unknown;
1219
+ }
1220
+
1221
+ /**
1222
+ * Stable machine-readable codes for `/execution/fill` and `/orderbook/.../route`
1223
+ * 400 responses. The frontend branches on this to decide whether a rejection
1224
+ * is recoverable (silently re-quote and retry) vs. terminal (surface to user).
1225
+ *
1226
+ * Always carry a human-readable `message` alongside; the code is additive and
1227
+ * may be absent on rejections that pre-date this addition.
1228
+ */
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">]>;
1230
+ type QuoteErrorCode = Static<typeof QuoteErrorCodeTB>;
1231
+ declare const QuoteErrorTB: TObject<{
1232
+ message: TString;
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">]>>;
1234
+ }>;
1235
+ type QuoteError = Static<typeof QuoteErrorTB>;
1236
+
1042
1237
  /**
1043
1238
  * API response-boundary formatters for market display fields.
1044
1239
  *
@@ -1224,9 +1419,54 @@ interface BuildVenueUrlOpts {
1224
1419
  seriesExternalId?: string | null;
1225
1420
  /** VenueMarket.conditionId — used as a fallback for Polymarket when slug is missing. */
1226
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";
1227
1444
  }
1228
1445
  declare function buildVenueUrl(venue: string, opts: BuildVenueUrlOpts): string | null;
1229
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
+
1230
1470
  /**
1231
1471
  * WebSocket protocol types for the Agg platform.
1232
1472
  * All callback timestamps are in **seconds** (converted from server ms at SDK dispatch).
@@ -1380,6 +1620,8 @@ interface WsOrderEvent {
1380
1620
  event: WsOrderEventType;
1381
1621
  userId: string;
1382
1622
  orderId: string;
1623
+ /** Partner trade id from `placeOrder()`, when the order carried one. */
1624
+ externalId?: string;
1383
1625
  venue: string;
1384
1626
  dagRunId?: string;
1385
1627
  stepId?: string;
@@ -1783,6 +2025,15 @@ interface VenueGeoPolicyEntry {
1783
2025
  venue: Venue;
1784
2026
  /** ISO 3166-1 alpha-2, upper-case. Empty means no country restriction. */
1785
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[];
1786
2037
  }
1787
2038
  interface VenueGeoPolicyResponse {
1788
2039
  venues: VenueGeoPolicyEntry[];
@@ -1892,6 +2143,27 @@ interface PersistedAuthSnapshot {
1892
2143
  }
1893
2144
  /** Auth lifecycle status for UI state machines. */
1894
2145
  type AuthStatus = "unknown" | "authenticated" | "unauthenticated";
2146
+ type SportsGameStatus = "scheduled" | "live" | "paused" | "finished" | "cancelled" | "postponed" | "unknown";
2147
+ interface SportsLiveParticipant {
2148
+ position: "first" | "second";
2149
+ name: string;
2150
+ shortName: string | null;
2151
+ imageUrl: string | null;
2152
+ score: string | null;
2153
+ }
2154
+ interface SportsLiveState {
2155
+ eventId: string;
2156
+ sport: string;
2157
+ status: SportsGameStatus;
2158
+ participants: [SportsLiveParticipant, SportsLiveParticipant];
2159
+ period: string | null;
2160
+ clock: string | null;
2161
+ updatedAt: string | null;
2162
+ }
2163
+ interface SportsLiveResponse {
2164
+ data: SportsLiveState[];
2165
+ missingEventIds: string[];
2166
+ }
1895
2167
  interface AggClientOptions {
1896
2168
  baseUrl: string;
1897
2169
  /** Public App ID — sent as x-app-id header. For client-side partner usage. */
@@ -2022,6 +2294,13 @@ interface MatchedOrderbookMarket extends VenueMarketRef {
2022
2294
  marketStatus: "open" | "closed" | "resolved" | "unopened" | "paused";
2023
2295
  tickSize: number | null;
2024
2296
  hasOrderbook: boolean;
2297
+ /**
2298
+ * Hyperliquid HIP-4 deployer namespace this member belongs to (e.g. "ap").
2299
+ * `null` for every other venue and for Hyperliquid members without one.
2300
+ * Names which deployer this cluster member is — distinct from whether its
2301
+ * book was published (see `hasOrderbook`).
2302
+ */
2303
+ deployerVenue?: string | null;
2025
2304
  }
2026
2305
  /**
2027
2306
  * Provenance of a published `midpoint`. Mirrors the engine's `MarkSource`.
@@ -2282,6 +2561,14 @@ interface VenueOrderbookEntry {
2282
2561
  tick?: number | null;
2283
2562
  /** Provenance of this venue book's published midpoint. See {@link MarkSource}. */
2284
2563
  markSource?: MarkSource;
2564
+ /**
2565
+ * Hyperliquid HIP-4 deployer namespace whose book this entry publishes
2566
+ * (e.g. "ap"). `null` for every other venue. When a cluster has more than
2567
+ * one Hyperliquid deployer member, only one member's book is published per
2568
+ * request — this names which one, so a caller never pairs this entry's depth
2569
+ * with a different member's `venueMarketId`.
2570
+ */
2571
+ deployerVenue?: string | null;
2285
2572
  }
2286
2573
  /** Response from GET /orderbooks (batch). */
2287
2574
  interface BatchOrderbooksResponse {
@@ -2409,6 +2696,8 @@ interface TradeExecutorOrder {
2409
2696
  side: string;
2410
2697
  amountRaw: string;
2411
2698
  quoteId: string | null;
2699
+ externalId: string | null;
2700
+ clientOrderId: string | null;
2412
2701
  dagRunId: string | null;
2413
2702
  filledAmountRaw: string | null;
2414
2703
  executionPrice: string | null;
@@ -2512,6 +2801,35 @@ interface PlaceLimitOrderResponse {
2512
2801
  filledSizeRaw: string;
2513
2802
  remainingSizeRaw: string;
2514
2803
  }
2804
+ interface PlaceOrderParams {
2805
+ venue: Venue;
2806
+ venueMarketOutcomeId: string;
2807
+ side: "buy" | "sell";
2808
+ /** Buy only. Maximum all-in USD spend, inclusive of app fee. */
2809
+ maxSpend?: number;
2810
+ /** Sell only. Number of contracts to sell. */
2811
+ sellShares?: number;
2812
+ /**
2813
+ * Your trade id. Required, unique within your app — two different users of
2814
+ * the same app cannot share one. A repeat returns 409 instead of trading twice.
2815
+ */
2816
+ externalId: string;
2817
+ /** Slippage cap in bps. Defaults to 500 (5%). Set explicitly on sells. */
2818
+ slipCapBps?: number;
2819
+ }
2820
+ interface PlaceOrderResponse {
2821
+ orderId: string;
2822
+ externalId: string;
2823
+ venue: Venue;
2824
+ status: "pending";
2825
+ quoteId: string;
2826
+ /** `null` if the order row doesn't carry a quoted price. Not zero. */
2827
+ quotedPriceRaw: string | null;
2828
+ /** `null` under the same conditions as `quotedPriceRaw`. Not zero. */
2829
+ quotedCostRaw: string | null;
2830
+ /** `null` under the same conditions as `quotedPriceRaw`. Not zero. */
2831
+ quotedSharesRaw: string | null;
2832
+ }
2515
2833
  interface ValidateManagedParams {
2516
2834
  venueMarketOutcomeIds: string[];
2517
2835
  side: "buy" | "sell";
@@ -2571,7 +2889,7 @@ interface CreateBalanceRefillPolicyParams {
2571
2889
  targetTokenSymbol?: "USDC";
2572
2890
  minimumRaw: string;
2573
2891
  refillAmountRaw: string;
2574
- /** Optional daily refill limit. Defaults to $250 in 6-decimal USD units. */
2892
+ /** Optional daily refill limit. Defaults to $1,002 in 6-decimal USD units. */
2575
2893
  dailyCapRaw?: string;
2576
2894
  /** Optional per-refill fee limit. Defaults to $2 in 6-decimal USD units. */
2577
2895
  maxFeeRaw?: string;
@@ -2808,6 +3126,7 @@ interface ExecutionStatusOrder {
2808
3126
  executionPriceRaw?: string;
2809
3127
  partialFillReason?: string;
2810
3128
  errorReason?: string;
3129
+ venueOrderId?: string;
2811
3130
  txHash?: string;
2812
3131
  updatedAt: string;
2813
3132
  }
@@ -3175,6 +3494,8 @@ interface VenueSoloQuote {
3175
3494
  * SUPPORTED_FILL_VENUES). FE filters on truthiness.
3176
3495
  */
3177
3496
  quoteId: string | null;
3497
+ /** Why this venue cannot execute when quoteId is null (or execution is geo-gated). */
3498
+ unavailableReason?: string;
3178
3499
  venue: string;
3179
3500
  avgPrice: number | null;
3180
3501
  filledQty: number;
@@ -3868,6 +4189,7 @@ declare class AggClient {
3868
4189
  status?: MarketStatus[];
3869
4190
  sortBy?: string;
3870
4191
  sortDir?: string;
4192
+ aggKey?: string | string[];
3871
4193
  recurrence?: RecurrenceFilter | RecurrenceFilter[];
3872
4194
  limit?: number;
3873
4195
  cursor?: string;
@@ -3875,6 +4197,7 @@ declare class AggClient {
3875
4197
  maxYesPrice?: number;
3876
4198
  /** ISO-8601 timestamp. Hides events with endDate <= this value. NULL-endDate events are kept. */
3877
4199
  endDateFrom?: string;
4200
+ signal?: AbortSignal;
3878
4201
  /**
3879
4202
  * When true, fold same-venue companion events into one tile per game
3880
4203
  * (`groupParentId IS NULL`). Sent as `grouped=true`; omitted when false/absent
@@ -3887,6 +4210,10 @@ declare class AggClient {
3887
4210
  getVenueEventById(id: string, options?: {
3888
4211
  signal?: AbortSignal;
3889
4212
  }): Promise<VenueEvent>;
4213
+ /** Get normalized live score state for sports events. Requires appId or admin auth. */
4214
+ getSportsLive(eventIds: string[], options?: {
4215
+ signal?: AbortSignal;
4216
+ }): Promise<SportsLiveResponse>;
3890
4217
  /** List deterministic recurring crypto window markets across venues. Requires appId or admin auth. */
3891
4218
  listRecurringCryptoMarkets(options?: ListRecurringCryptoMarketsOptions & {
3892
4219
  signal?: AbortSignal;
@@ -4051,6 +4378,13 @@ declare class AggClient {
4051
4378
  executeManaged(params: ExecuteManagedParams): Promise<ExecuteManagedResponse>;
4052
4379
  /** Place a managed limit order. Returns the venue-backed order state. */
4053
4380
  placeLimitOrder(params: PlaceLimitOrderParams): Promise<PlaceLimitOrderResponse>;
4381
+ /**
4382
+ * Place a market order directly on a named venue — no prior quote needed.
4383
+ * Always produces exactly one order. `externalId` is required and unique
4384
+ * within your app — two different users of the same app cannot share one —
4385
+ * so retrying a timed-out call with the same value is safe.
4386
+ */
4387
+ placeOrder(params: PlaceOrderParams): Promise<PlaceOrderResponse>;
4054
4388
  /** Redeem resolved winning positions by venue market outcome ids. */
4055
4389
  redeem(body: RedeemRequest): Promise<RedeemResponse>;
4056
4390
  /** List the authenticated user's managed balance refill policies. */
@@ -4218,4 +4552,4 @@ declare function aggregateMidpoint(midpoints: (number | null | undefined)[]): nu
4218
4552
 
4219
4553
  declare function createAggClient(options: AggClientOptions): AggClient;
4220
4554
 
4221
- 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, 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 };
4555
+ 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, 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 };