@stxapp/stx-typescript 0.8.0 → 0.8.1

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.
@@ -2902,6 +2902,55 @@ declare class STXChannelException extends STXException {
2902
2902
  */
2903
2903
  declare class STXTimeoutException extends STXChannelException {
2904
2904
  }
2905
+ /**
2906
+ * Combos are not available on this environment: the exchange refused the
2907
+ * join to the player or maker topic with `unmatched topic`. Nothing else is
2908
+ * affected. Preview: combos are available on US demo.
2909
+ */
2910
+ declare class STXCombosUnavailableException extends STXChannelException {
2911
+ }
2912
+ /**
2913
+ * The exchange refused a combo command or join. `code` is the refusal
2914
+ * (`not_found`, `insufficient_assets`, `player_refused`, ...); for
2915
+ * `player_refused:<reason>` the part after the first colon is in `detail`.
2916
+ * `command` is the event that was refused, e.g. `accept`. `reason` (from
2917
+ * `STXChannelException`) is the full string as sent.
2918
+ */
2919
+ declare class STXComboRefusedException extends STXChannelException {
2920
+ readonly command: string;
2921
+ readonly code: string;
2922
+ readonly detail: string | undefined;
2923
+ constructor(message: string, opts: {
2924
+ topic?: string;
2925
+ reply?: unknown;
2926
+ command: string;
2927
+ code: string;
2928
+ detail?: string;
2929
+ });
2930
+ }
2931
+ /**
2932
+ * `accept` found nothing live at the accepted amount or better. The request
2933
+ * stays open. `best` is the live best quote now; its fields are null when
2934
+ * nothing is live. Accept again at `best.amount` to take it.
2935
+ */
2936
+ declare class STXComboPriceMovedException extends STXComboRefusedException {
2937
+ readonly best: {
2938
+ quote_id: string | null;
2939
+ amount: string | null;
2940
+ expires_at: number | null;
2941
+ };
2942
+ constructor(message: string, opts: {
2943
+ topic?: string;
2944
+ reply?: unknown;
2945
+ command: string;
2946
+ code: string;
2947
+ best: {
2948
+ quote_id: string | null;
2949
+ amount: string | null;
2950
+ expires_at: number | null;
2951
+ };
2952
+ });
2953
+ }
2905
2954
  /** Build the exception for one non-2xx response. */
2906
2955
  declare function errorForStatus(statusCode: number, body: unknown, opts: {
2907
2956
  method: string;
@@ -3003,8 +3052,8 @@ declare class ApiKeyCredentials implements AuthProvider {
3003
3052
  toString(): string;
3004
3053
  }
3005
3054
 
3006
- declare const VERSION = "0.8.0";
3007
- declare const USER_AGENT = "stx-typescript/0.8.0";
3055
+ declare const VERSION = "0.8.1";
3056
+ declare const USER_AGENT = "stx-typescript/0.8.1";
3008
3057
  /**
3009
3058
  * `Symbol.asyncDispose` where the runtime has it (Node 20+, Bun), so
3010
3059
  * `await using client = new STX()` works there; a registered stand-in on
@@ -3101,6 +3150,353 @@ declare class AccountView {
3101
3150
  close(): Promise<void>;
3102
3151
  }
3103
3152
 
3153
+ /** What the combination needs of a leg. */
3154
+ type ComboOutcome = "won" | "lost";
3155
+ /** One leg of a quote request. */
3156
+ interface ComboLeg {
3157
+ /** An `open`, ordinary (not combination) market. */
3158
+ marketId: string;
3159
+ outcome: ComboOutcome;
3160
+ }
3161
+ /** Options for `STXWebSocket.comboPlayer()` and `STXWebSocket.comboMaker()`. */
3162
+ interface ComboJoinOptions<E> {
3163
+ /**
3164
+ * A geolocation packet, or a function returning one, sent on every join
3165
+ * where the exchange is geo-fenced. A function is called again on each
3166
+ * rejoin, so a reconnect sends a fresh packet.
3167
+ */
3168
+ geoLocation?: GeoLocationProvider;
3169
+ /** Called for every typed event, as it arrives. */
3170
+ onEvent?: (event: E) => void | Promise<void>;
3171
+ }
3172
+ /** The join reply on either topic. */
3173
+ interface ComboJoinReply {
3174
+ /** Your account's pseudonym for counterparties. Makers see the player's on requests and quotes. */
3175
+ external_id: string;
3176
+ /** ISO 8601 time the geolocation packet expires, or null when no packet was needed. Rejoin before it. */
3177
+ next_geolocation_at: string | null;
3178
+ }
3179
+ /** `requestQuote()` reply. */
3180
+ interface ComboRequestReply {
3181
+ rfq_id: string;
3182
+ }
3183
+ /** `cashOut()` reply. */
3184
+ interface ComboCashOutReply {
3185
+ rfq_id: string;
3186
+ /** The combination being sold. */
3187
+ market_id: string;
3188
+ /** Contracts to sell, set by the exchange: what you hold less your resting sells. */
3189
+ quantity: string;
3190
+ }
3191
+ /** `accept()` reply: what was placed for the player, not what filled. */
3192
+ interface ComboPlacement {
3193
+ market_id: string;
3194
+ /** The player's order. Its fills arrive on `fills`. */
3195
+ order_id: string;
3196
+ quantity: string;
3197
+ price: string;
3198
+ }
3199
+ /** `cancel()` reply. */
3200
+ interface ComboCancelReply {
3201
+ /** The `rfq_id` that was cancelled. */
3202
+ cancelled: string;
3203
+ }
3204
+ /** The best live quote. All three fields are null when nothing is live. */
3205
+ interface ComboBestQuote {
3206
+ quote_id: string | null;
3207
+ amount: string | null;
3208
+ /** Microseconds since the Unix epoch. */
3209
+ expires_at: number | null;
3210
+ }
3211
+ /** `snapshot()` reply. */
3212
+ interface ComboSnapshot {
3213
+ rfq_id: string;
3214
+ /** Null on a buy until a bind places; the combination on a cash out. */
3215
+ market_id: string | null;
3216
+ /** `binding` while an acceptance waits for its next bind attempt. */
3217
+ status: "open" | "binding";
3218
+ /** The player's side: `buy` for a request, `sell` for a cash out. */
3219
+ side: "buy" | "sell";
3220
+ /** The stake on a buy; null on a cash out. */
3221
+ amount: string | null;
3222
+ /** The size on a cash out; null on a buy. */
3223
+ quantity: string | null;
3224
+ /** When the request ends, in microseconds since the Unix epoch. */
3225
+ expires_at: number;
3226
+ best_quote: ComboBestQuote;
3227
+ }
3228
+ /** `quote()` reply. It carries no price or size: the bind sets those. */
3229
+ interface ComboQuoteReply {
3230
+ quote_id: string;
3231
+ /** The amount as recorded. */
3232
+ amount: string;
3233
+ /** The player's `external_id`. */
3234
+ external_id: string;
3235
+ }
3236
+ /** `withdrawQuote()` reply. */
3237
+ interface ComboWithdrawReply {
3238
+ /** The `quote_id` that was withdrawn. */
3239
+ withdrawn: string;
3240
+ }
3241
+ /** Why a player's request ended without placing. */
3242
+ type ComboRequestClosedReason = "cancelled" | "expired" | "leg_not_quotable" | "unknown_leg" | "player_refused" | "maker_refused";
3243
+ /** `best_quote`: the best quote changed. */
3244
+ interface ComboBestQuoteEvent extends ComboBestQuote {
3245
+ rfq_id: string;
3246
+ market_id: string | null;
3247
+ }
3248
+ /** `placed`: the bind placed. The `accept()` reply plus `rfq_id`. */
3249
+ interface ComboPlacedEvent extends ComboPlacement {
3250
+ rfq_id: string;
3251
+ }
3252
+ /** `negotiation_closed` to the player: the request ended without placing. */
3253
+ interface ComboRequestClosedEvent {
3254
+ rfq_id: string;
3255
+ market_id: string | null;
3256
+ reason: ComboRequestClosedReason;
3257
+ }
3258
+ /** An event on the player's topic. Narrow on `event`. */
3259
+ type ComboPlayerEvent = {
3260
+ event: "best_quote";
3261
+ payload: ComboBestQuoteEvent;
3262
+ } | {
3263
+ event: "placed";
3264
+ payload: ComboPlacedEvent;
3265
+ } | {
3266
+ event: "negotiation_closed";
3267
+ payload: ComboRequestClosedEvent;
3268
+ };
3269
+ /** One leg as makers see it. */
3270
+ interface ComboRfqLeg {
3271
+ market_id: string;
3272
+ outcome: ComboOutcome;
3273
+ short_name: string;
3274
+ }
3275
+ /** `rfq_opened`: a player opened a request. */
3276
+ interface ComboRfqOpenedEvent {
3277
+ rfq_id: string;
3278
+ /** Null on a buy; the combination on a cash out. */
3279
+ market_id: string | null;
3280
+ /** The player's pseudonym. */
3281
+ external_id: string;
3282
+ /** The player's side; the maker takes the other. */
3283
+ side: "buy" | "sell";
3284
+ /** The stake on a buy; null on a cash out. */
3285
+ amount: string | null;
3286
+ /** The size on a cash out; null on a buy. */
3287
+ quantity: string | null;
3288
+ /** Price against this, not a constant. */
3289
+ max_price: string;
3290
+ /** Price against this, not a constant. */
3291
+ tick_size: string;
3292
+ expires_at: number;
3293
+ legs: ComboRfqLeg[];
3294
+ }
3295
+ /** Why a request ended, as the feed reports it. */
3296
+ type ComboRfqClosedReason = "placed" | "cancelled" | "expired" | "leg_not_quotable" | "unknown_leg" | "player_refused" | "maker_refused" | "ended";
3297
+ /** `rfq_closed`: a request ended. */
3298
+ interface ComboRfqClosedEvent {
3299
+ rfq_id: string;
3300
+ market_id: string | null;
3301
+ reason: ComboRfqClosedReason;
3302
+ }
3303
+ /** `quote_accepted`: this quote is about to be bound. */
3304
+ interface ComboQuoteAcceptedEvent {
3305
+ rfq_id: string;
3306
+ market_id: string | null;
3307
+ external_id: string;
3308
+ quote_id: string;
3309
+ }
3310
+ /** `placed` to the maker: this quote bound and the maker's order was placed. Both orders share the size and price. */
3311
+ interface ComboMakerPlacedEvent {
3312
+ rfq_id: string;
3313
+ market_id: string;
3314
+ external_id: string;
3315
+ quote_id: string;
3316
+ /** The maker's order. Its fills arrive on `fills`. */
3317
+ order_id: string;
3318
+ quantity: string;
3319
+ price: string;
3320
+ }
3321
+ /** Why one of the maker's quotes stopped standing. */
3322
+ type ComboQuoteClosedReason = "placed_elsewhere" | "maker_refused" | "cancelled" | "expired" | "leg_not_quotable" | "unknown_leg" | "player_refused";
3323
+ /** `negotiation_closed` to the maker: this quote stopped standing. */
3324
+ interface ComboQuoteClosedEvent {
3325
+ rfq_id: string;
3326
+ market_id: string | null;
3327
+ external_id: string;
3328
+ quote_id: string;
3329
+ reason: ComboQuoteClosedReason;
3330
+ }
3331
+ /** An event on the maker's topic. Narrow on `event`. */
3332
+ type ComboMakerEvent = {
3333
+ event: "rfq_opened";
3334
+ payload: ComboRfqOpenedEvent;
3335
+ } | {
3336
+ event: "rfq_closed";
3337
+ payload: ComboRfqClosedEvent;
3338
+ } | {
3339
+ event: "quote_accepted";
3340
+ payload: ComboQuoteAcceptedEvent;
3341
+ } | {
3342
+ event: "placed";
3343
+ payload: ComboMakerPlacedEvent;
3344
+ } | {
3345
+ event: "negotiation_closed";
3346
+ payload: ComboQuoteClosedEvent;
3347
+ };
3348
+ /**
3349
+ * A refusal `reason` the exchange documents for combo commands. The type stays
3350
+ * open (`string`) because a few reasons are sentences passed through verbatim.
3351
+ */
3352
+ type ComboRefusalReason = "malformed_payload" | "malformed_id" | "malformed_money" | "malformed_leg" | "malformed_client_order_id" | "unknown_command" | "not_found" | "timeout" | "request_unavailable" | "not_the_requester" | "combo_minimum_two_markets_needed" | "combo_maximum_legs_exceeded" | "unknown_outcome" | "non_positive_amount" | "sub_cent_amount" | "insufficient_assets" | "draining" | "account_unreachable" | "unknown_leg" | "leg_not_quotable" | "duplicate_legs" | "request_not_started" | "unknown_combination" | "market_not_quotable" | "combination_unavailable" | "nothing_to_sell" | "price_moved" | "player_refused" | "maker_refused" | "market_not_trading" | "market_unavailable" | "price_out_of_range" | "below_one_contract" | "bind_in_progress" | "cancelled" | "expired" | "expires_at_required" | "cannot_quote_own_request" | "unknown_quote" | "unauthorized" | "insufficient_scope" | (string & {});
3353
+ /** What the player and maker sessions share: the joined channel, typed events and waiting. */
3354
+ declare abstract class ComboSession<E extends {
3355
+ event: string;
3356
+ payload: {
3357
+ rfq_id: string;
3358
+ };
3359
+ }> implements AsyncIterable<E> {
3360
+ #private;
3361
+ /** The underlying channel. Its `reply` is the latest join reply. */
3362
+ readonly channel: Channel;
3363
+ /** @internal */
3364
+ constructor(channel: Channel, events: ReadonlySet<string>, onEvent: ((event: E) => void | Promise<void>) | undefined);
3365
+ /** Your account's pseudonym for counterparties, from the join reply. */
3366
+ get externalId(): string;
3367
+ /** When the geolocation packet this join used expires (ISO 8601), or null. Rejoin before it. */
3368
+ get nextGeolocationAt(): string | null;
3369
+ /** @internal */
3370
+ _typed(msg: ChannelMessage): E | undefined;
3371
+ /** @internal Called for every message on the channel, before it is queued. */
3372
+ _receive(msg: ChannelMessage): Promise<void>;
3373
+ /** The events received so far (the latest 1000), oldest first. */
3374
+ get events(): readonly E[];
3375
+ /**
3376
+ * The next event, in arrival order. Rejects with `STXTimeoutException` when
3377
+ * none arrives within `timeoutMs`, and with `STXChannelException` once the
3378
+ * channel is closed. Use either this or `for await`, not both.
3379
+ */
3380
+ next(timeoutMs?: number | null): Promise<E>;
3381
+ [Symbol.asyncIterator](): AsyncIterator<E>;
3382
+ /**
3383
+ * Resolve with the first event named `event` (or one of several) for
3384
+ * `rfqId`, looking first at events already received. Unlike `next()`, it
3385
+ * takes nothing from the queue. Rejects with `STXTimeoutException` after
3386
+ * `timeoutMs` (default 10000).
3387
+ *
3388
+ * @param event An event name, or several.
3389
+ * @param opts.rfqId Only events for this request.
3390
+ * @param opts.quoteId Only events for this quote (maker events).
3391
+ * @param opts.timeoutMs Milliseconds to wait. Default 10000.
3392
+ */
3393
+ waitFor<K extends E["event"]>(event: K | readonly K[], opts?: {
3394
+ rfqId?: string;
3395
+ quoteId?: string;
3396
+ timeoutMs?: number;
3397
+ }): Promise<Extract<E, {
3398
+ event: K;
3399
+ }>>;
3400
+ /** Leave the topic. Requests opened and quotes placed on this channel end, as on any close. */
3401
+ leave(): Promise<void>;
3402
+ /** @internal Send a command and map a refusal to the combo exceptions. */
3403
+ _command<T>(command: string, payload: Record<string, unknown>, timeoutMs?: number): Promise<T>;
3404
+ }
3405
+ /**
3406
+ * The player's side of combos, on `rfq:<user_id>`. Get one with
3407
+ * `ws.comboPlayer()`.
3408
+ *
3409
+ * Preview: available on US demo; may change before general availability.
3410
+ *
3411
+ * A request belongs to this channel: leaving, a dropped socket or a geo lapse
3412
+ * ends it `cancelled`, and the SDK's automatic rejoin does not bring it back.
3413
+ * Every refusal throws `STXComboRefusedException` with the exchange's
3414
+ * `reason` in `code`.
3415
+ */
3416
+ declare class ComboPlayer extends ComboSession<ComboPlayerEvent> {
3417
+ /** @internal */
3418
+ constructor(channel: Channel, onEvent?: (event: ComboPlayerEvent) => void | Promise<void>);
3419
+ /**
3420
+ * `request_quote`: ask makers to quote on these legs for a stake. `amount`
3421
+ * is the stake as a decimal string in whole cents, e.g. `"250.00"`. Makers
3422
+ * quote what you win; quotes arrive as `best_quote` events.
3423
+ *
3424
+ * @param legs Two or more `open` markets and the outcome the combination needs of each.
3425
+ * @param amount The stake in dollars, e.g. `"250.00"`.
3426
+ */
3427
+ requestQuote(legs: readonly ComboLeg[], amount: string): Promise<ComboRequestReply>;
3428
+ /**
3429
+ * `cash_out`: ask makers to quote for what you hold of a combination, by the
3430
+ * `market_id` from `placed`. The exchange sets the size.
3431
+ *
3432
+ * @param marketId The combination's market id.
3433
+ */
3434
+ cashOut(marketId: string): Promise<ComboCashOutReply>;
3435
+ /**
3436
+ * `accept`: bind the request at `amount` or more, normally the amount
3437
+ * `best_quote` showed. The best live quote binds whoever made it, so the
3438
+ * placement can be better than `amount`. Waits up to 35 s.
3439
+ *
3440
+ * Throws `STXComboPriceMovedException` (with the live `best`) when nothing
3441
+ * at least as good is live; the request stays open and you can accept again.
3442
+ * The reply says what was placed; fills arrive on `fills`.
3443
+ *
3444
+ * @param rfqId The request.
3445
+ * @param quoteId The quote you saw, normally from `best_quote`.
3446
+ * @param amount The least amount you take, e.g. `"1750.00"`.
3447
+ */
3448
+ accept(rfqId: string, quoteId: string, amount: string): Promise<ComboPlacement>;
3449
+ /**
3450
+ * `cancel`: end the request and drop every quote on it.
3451
+ *
3452
+ * @param rfqId The request.
3453
+ */
3454
+ cancel(rfqId: string): Promise<ComboCancelReply>;
3455
+ /**
3456
+ * `snapshot`: the request now, with the live best quote. Not delayed like `best_quote` events.
3457
+ *
3458
+ * @param rfqId The request.
3459
+ */
3460
+ snapshot(rfqId: string): Promise<ComboSnapshot>;
3461
+ }
3462
+ /**
3463
+ * The maker's side of combos, on `combo_quote:<user_id>`. Get one with
3464
+ * `ws.comboMaker()`. Joining subscribes to every request opened after the
3465
+ * join (`rfq_opened`); earlier requests are not replayed.
3466
+ *
3467
+ * Preview: available on US demo; may change before general availability.
3468
+ *
3469
+ * A quote belongs to this channel: leaving or a dropped socket withdraws it.
3470
+ * Every refusal throws `STXComboRefusedException` with the exchange's
3471
+ * `reason` in `code`.
3472
+ */
3473
+ declare class ComboMaker extends ComboSession<ComboMakerEvent> {
3474
+ /** @internal */
3475
+ constructor(channel: Channel, onEvent?: (event: ComboMakerEvent) => void | Promise<void>);
3476
+ /**
3477
+ * `quote`: offer `amount` on a request. On a buy it is what the player wins;
3478
+ * on a cash out, what you pay for the whole size. Price it against the
3479
+ * request's `max_price` and `tick_size`. `expiresInMs` (a positive integer)
3480
+ * counts from receipt; the quote ends no later than its request.
3481
+ * `clientOrderId` (at most 255 bytes) is copied onto your order if it binds.
3482
+ *
3483
+ * @param rfqId The request, from `rfq_opened`.
3484
+ * @param amount In dollars, e.g. `"1750.00"`.
3485
+ * @param expiresInMs How long the quote stands, in milliseconds.
3486
+ * @param opts.clientOrderId Copied onto your order if the quote binds.
3487
+ */
3488
+ quote(rfqId: string, amount: string, expiresInMs: number, opts?: {
3489
+ clientOrderId?: string | null;
3490
+ }): Promise<ComboQuoteReply>;
3491
+ /**
3492
+ * `withdraw_quote`: remove one of your quotes.
3493
+ *
3494
+ * @param rfqId The request.
3495
+ * @param quoteId Your quote, from the `quote()` reply.
3496
+ */
3497
+ withdrawQuote(rfqId: string, quoteId: string): Promise<ComboWithdrawReply>;
3498
+ }
3499
+
3104
3500
  /** Events that carry state on join, by channel name (topic prefix). */
3105
3501
  declare const SNAPSHOT_EVENTS: Readonly<Record<string, readonly string[]>>;
3106
3502
  /** One pushed frame. */
@@ -3159,6 +3555,8 @@ declare class Channel implements AsyncIterable<ChannelMessage> {
3159
3555
  joinRef: string | null;
3160
3556
  joined: boolean;
3161
3557
  closed: boolean;
3558
+ /** @internal Runs before every (re)join, e.g. to refresh a geolocation packet in `joinPayload`. */
3559
+ _beforeJoin: (() => Promise<void>) | undefined;
3162
3560
  constructor(ws: STXWebSocket, topic: string, joinPayload: Record<string, unknown>, onMessage: MessageHandler | undefined, opts: {
3163
3561
  pingIntervalMs: number | null;
3164
3562
  queueSize: number;
@@ -3424,6 +3822,25 @@ declare class STXWebSocket {
3424
3822
  userInfo(opts?: {
3425
3823
  onMessage?: MessageHandler;
3426
3824
  }): Promise<Channel>;
3825
+ /**
3826
+ * Join `rfq:{user_id}` and return a `ComboPlayer`: request quotes on a
3827
+ * combination, cash one out, accept, cancel and read a request.
3828
+ *
3829
+ * Preview: available on US demo; may change before general availability.
3830
+ * Where combos are not available, rejects with
3831
+ * `STXCombosUnavailableException`. Other join refusals (a read-only key, an
3832
+ * account that may not trade) reject with `STXComboRefusedException`.
3833
+ */
3834
+ comboPlayer(opts?: ComboJoinOptions<ComboPlayerEvent>): Promise<ComboPlayer>;
3835
+ /**
3836
+ * Join `combo_quote:{user_id}` and return a `ComboMaker`: receive every
3837
+ * request opened from now on (`rfq_opened`), quote and withdraw quotes.
3838
+ *
3839
+ * Preview: available on US demo; may change before general availability.
3840
+ * Where combos are not available, rejects with
3841
+ * `STXCombosUnavailableException`.
3842
+ */
3843
+ comboMaker(opts?: ComboJoinOptions<ComboMakerEvent>): Promise<ComboMaker>;
3427
3844
  /**
3428
3845
  * Join `topic` with `payload` and wait for the reply. Rejects with
3429
3846
  * `STXChannelException` carrying the server's reason (for example
@@ -3826,4 +4243,4 @@ declare class STX {
3826
4243
  websocket(opts?: Omit<STXWebSocketOptions, "rest">): STXWebSocket;
3827
4244
  }
3828
4245
 
3829
- export { type NewOrder as $, type AcceptTermsOptions as A, type Balance as B, type Cancellation as C, type GeoOption as D, Environment as E, type FeeTransaction as F, type GeoCheckResult as G, type GeoRejection as H, HOSTS as I, type KnownStat as J, KEY_HEADER as K, type Leaderboard as L, type LeaderboardEntry as M, type LeaderboardStanding as N, type Logger as O, MAX_MARKETS_PER_REQUEST as P, type Market as Q, type MarketFilter as R, type MarketRejectionReason as S, type MarketRequestEcho as T, type MarketStat as U, type MarketStatsQuery as V, type MarketsQuery as W, type Me as X, type MessageHandler as Y, NO_RETRY as Z, type NewMarketInput as _, type AccountChange as a, loadPrivateKey as a$, type NewOrderInput as a0, OPERATIONS as a1, type Operation as a2, type OperationId as a3, type Order as a4, type OrderOptions as a5, type OrdersQuery as a6, Page as a7, type PageQuery as a8, type PaymentTransaction as a9, STXRejectedException as aA, STXServerException as aB, STXTimeoutException as aC, STXTransportException as aD, STXValidationException as aE, STXWebSocket as aF, type STXWebSocketOptions as aG, type Settlement as aH, type SettlementsQuery as aI, type Signer as aJ, type Stat as aK, type StatDetail as aL, Stats as aM, type StrList as aN, TERMINAL_ORDER_STATUSES as aO, TIMESTAMP_HEADER as aP, type Transaction as aQ, USER_AGENT as aR, VERSION as aS, type WebSocketAuthContext as aT, baseUrlFor as aU, buildMessage as aV, environmentNamed as aW, errorForStatus as aX, geoRejection as aY, handshakePath as aZ, isValidLine as a_, type Position as aa, type PrivateKeyInput as ab, type ProfileUpdate as ac, type RecentTrade as ad, ReconnectPolicy as ae, type ReconnectPolicyOptions as af, Region as ag, type ResponseEvent as ah, RetryPolicy as ai, type RetryPolicyOptions as aj, SIGNATURE_HEADER as ak, SNAPSHOT_EVENTS as al, STX as am, STXAPIException as an, STXAuthenticationException as ao, STXChannelException as ap, STXConfigException as aq, type STXEnvironment as ar, STXException as as, STXForbiddenException as at, STXGeoLocationException as au, STXInsufficientScopeException as av, STXInvalidTokenException as aw, STXNotFoundException as ax, type STXOptions as ay, STXRateLimitException as az, type AccountChangeKind as b, models as b0, orderBody as b1, requestPath as b2, resolveHost as b3, signerFromPrivateKey as b4, socketUrlFor as b5, type AccountState as c, AccountView as d, type AccountViewOptions as e, ApiKeyCredentials as f, type AuthProvider as g, type AuthRequest as h, type BatchOrderResult as i, type BookLevel as j, Channel as k, ChannelMessage as l, type CreateMarketResult as m, type CreateMarketsOptions as n, Environments as o, type Error$1 as p, type Event as q, type EventPlayer as r, type EventPlayers as s, type EventStat as t, type EventTeam as u, type EventsQuery as v, type FetchLike as w, type Fill as x, type FillsQuery as y, type GeoLocationProvider as z };
4246
+ export { type EventTeam as $, type AcceptTermsOptions as A, type Balance as B, type Cancellation as C, type ComboPlayerEvent as D, type ComboQuoteAcceptedEvent as E, type ComboQuoteClosedEvent as F, type ComboQuoteClosedReason as G, type ComboQuoteReply as H, type ComboRefusalReason as I, type ComboRequestClosedEvent as J, type ComboRequestClosedReason as K, type ComboRequestReply as L, type ComboRfqClosedEvent as M, type ComboRfqClosedReason as N, type ComboRfqLeg as O, type ComboRfqOpenedEvent as P, type ComboSnapshot as Q, type ComboWithdrawReply as R, type CreateMarketResult as S, type CreateMarketsOptions as T, Environment as U, Environments as V, type Error$1 as W, type Event as X, type EventPlayer as Y, type EventPlayers as Z, type EventStat as _, type AccountChange as a, STXInsufficientScopeException as a$, type EventsQuery as a0, type FeeTransaction as a1, type FetchLike as a2, type Fill as a3, type FillsQuery as a4, type GeoCheckResult as a5, type GeoLocationProvider as a6, type GeoOption as a7, type GeoRejection as a8, HOSTS as a9, Page as aA, type PageQuery as aB, type PaymentTransaction as aC, type Position as aD, type PrivateKeyInput as aE, type ProfileUpdate as aF, type RecentTrade as aG, ReconnectPolicy as aH, type ReconnectPolicyOptions as aI, Region as aJ, type ResponseEvent as aK, RetryPolicy as aL, type RetryPolicyOptions as aM, SIGNATURE_HEADER as aN, SNAPSHOT_EVENTS as aO, STX as aP, STXAPIException as aQ, STXAuthenticationException as aR, STXChannelException as aS, STXComboPriceMovedException as aT, STXComboRefusedException as aU, STXCombosUnavailableException as aV, STXConfigException as aW, type STXEnvironment as aX, STXException as aY, STXForbiddenException as aZ, STXGeoLocationException as a_, KEY_HEADER as aa, type KnownStat as ab, type Leaderboard as ac, type LeaderboardEntry as ad, type LeaderboardStanding as ae, type Logger as af, MAX_MARKETS_PER_REQUEST as ag, type Market as ah, type MarketFilter as ai, type MarketRejectionReason as aj, type MarketRequestEcho as ak, type MarketStat as al, type MarketStatsQuery as am, type MarketsQuery as an, type Me as ao, type MessageHandler as ap, NO_RETRY as aq, type NewMarketInput as ar, type NewOrder as as, type NewOrderInput as at, OPERATIONS as au, type Operation as av, type OperationId as aw, type Order as ax, type OrderOptions as ay, type OrdersQuery as az, type AccountChangeKind as b, STXInvalidTokenException as b0, STXNotFoundException as b1, type STXOptions as b2, STXRateLimitException as b3, STXRejectedException as b4, STXServerException as b5, STXTimeoutException as b6, STXTransportException as b7, STXValidationException as b8, STXWebSocket as b9, signerFromPrivateKey as bA, socketUrlFor as bB, type STXWebSocketOptions as ba, type Settlement as bb, type SettlementsQuery as bc, type Signer as bd, type Stat as be, type StatDetail as bf, Stats as bg, type StrList as bh, TERMINAL_ORDER_STATUSES as bi, TIMESTAMP_HEADER as bj, type Transaction as bk, USER_AGENT as bl, VERSION as bm, type WebSocketAuthContext as bn, baseUrlFor as bo, buildMessage as bp, environmentNamed as bq, errorForStatus as br, geoRejection as bs, handshakePath as bt, isValidLine as bu, loadPrivateKey as bv, models as bw, orderBody as bx, requestPath as by, resolveHost as bz, type AccountState as c, AccountView as d, type AccountViewOptions as e, ApiKeyCredentials as f, type AuthProvider as g, type AuthRequest as h, type BatchOrderResult as i, type BookLevel as j, Channel as k, ChannelMessage as l, type ComboBestQuote as m, type ComboBestQuoteEvent as n, type ComboCancelReply as o, type ComboCashOutReply as p, type ComboJoinOptions as q, type ComboJoinReply as r, type ComboLeg as s, ComboMaker as t, type ComboMakerEvent as u, type ComboMakerPlacedEvent as v, type ComboOutcome as w, type ComboPlacedEvent as x, type ComboPlacement as y, ComboPlayer as z };