@stxapp/stx-typescript 0.7.0 → 0.9.0-alpha.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0-alpha.1 (2026-10-10)
4
+
5
+ Alpha: install with `npm install @stxapp/stx-typescript@alpha`. The new API may change before beta.
6
+
7
+ Sign in with your STX account, and connect your STX account:
8
+
9
+ - `createConnect()` in `@stxapp/stx-typescript/oauth` runs the OpenID Connect sign-in from your server. `start()` returns the redirect (optionally straight to Google, Apple or X, with a login hint), `finish()` exchanges the code and verifies the ID token, `refresh()` keeps the connection, `userInfo()` reads the member's claims again, and `disconnect()` ends the connection at STX.
10
+ - `OAuthClient.authorizationUrl()` and `beginAuthorization()` take `connection` and `loginHint`, for an app with its own login that connects a member's STX account.
11
+ - Two typed errors when the member does not come back connected: `STXAccountPendingException` (the member's STX account is still being verified) and `STXAccessDeniedException` (the member declined, or their account cannot be connected). Both extend `STXOAuthException`, so existing `catch` blocks keep working.
12
+ - A refresh or code exchange refused because the member's account is still being verified also throws `STXAccountPendingException` (`errorReason` is `account_pending`), and `memberClient()` keeps the stored tokens: the same refresh token works once the member is verified. A refresh refused because the connection ended still throws `STXGrantRevokedException` and deletes them.
13
+ - `STXOAuthException.errorReason` carries the narrower reason when the exchange sends one.
14
+ - An error on the callback is reported only for a sign-in your app started: `finish()`, `completeAuthorization()` and `readCallback()` check the `state` before the error, so a callback with a missing or unknown `state` throws `invalid_state` whatever error it carries. `completeAuthorization()` and `readCallback()` also use the `state` up, so a replayed callback throws `invalid_state`; with `finish()` the saved sign-in is yours, so delete it after the first callback.
15
+ - `TokenSet.idToken` carries the ID token when `openid` is granted.
16
+ - HTTP Basic client credentials are form-urlencoded before base64, as RFC 6749 requires. Client ids and secrets with only letters, digits and `_-.` are sent exactly as before.
17
+
18
+ Creating markets as your app:
19
+
20
+ - `marketTypes()` lists the market types (`GET /api/v1/types`): the rules an app can create, the fields each takes and the stats on offer per event type.
21
+ - `createMarkets()` takes each market by its `rule`: `{ rule: "player_stat_line", playerId, stat, line }`. **Changed from 0.8.0:** `rule` is now required and `propType` is gone.
22
+ - `createMarkets(..., { dryRun: true })` runs every check and creates nothing; a market that would be created comes back `valid`.
23
+ - **Changed from 0.8.0:** each result is `{ index, status, market_id, reason }`. `index` is the market's position in your list, `market_id` and `reason` are `null` when they do not apply, and the `market` echo of the request is gone (use `index`). The `NewMarketInput` and `MarketRequestEcho` types are replaced by `NewMarket`.
24
+ - Fixed: a market the exchange returned no result for now comes back `rejected` with `not_created` instead of leaving a gap in the results.
25
+
26
+ ## 0.8.0 (2026-10-06)
27
+
28
+ - Create player-prop markets as an app with the `markets.write` scope: `eventPlayers()`, `statsFor()` and `createMarkets()`, with `Stats` constants by sport and an opt-in `validate` check. Lines must be positive and end in `.5`; up to 25 markets per call.
29
+ - `AppScopes.MARKETS_WRITE`.
30
+ - Request and response types follow the current exchange REST spec.
31
+
3
32
  ## 0.7.0 (2026-10-03)
4
33
 
5
34
  - `balance()`, `positions()` and `placeOrders()` call `GET /api/v1/account/balance`, `GET /api/v1/positions` and `POST /api/v1/orders/batched` directly. They require exchange v3.3.172 or later, which every STX environment runs. On an older exchange they now throw `STXNotFoundException` instead of reading the channel snapshots or placing orders one at a time.
package/README.md CHANGED
@@ -69,6 +69,48 @@ Every field is described in the [API reference](https://docs.stxapp.io/sdks/type
69
69
 
70
70
  </details>
71
71
 
72
+ ## For apps: STX accounts and markets (alpha)
73
+
74
+ An app registered with STX can bring its members' STX accounts in, and can act as itself. These are in the alpha: `npm install @stxapp/stx-typescript@alpha`. They run on your server; the client secret and the tokens never go to a browser or a mobile app. There are two ways to bring a member's STX account in.
75
+
76
+ **Connect your STX account.** Your app keeps its own login, and a signed-in user links their STX account so your app can trade and read for them. It works with any login system (your own passwords, or a login service you already use); STX never sees it.
77
+
78
+ ```ts
79
+ import { MemoryPendingAuthorizationStore, MemoryTokenStore, OAuthClient } from "@stxapp/stx-typescript/oauth";
80
+
81
+ const oauth = new OAuthClient({ baseUrl: "https://demo.stxapp.io", clientId, clientSecret, redirectUri });
82
+ const pending = new MemoryPendingAuthorizationStore(); // sign-ins in progress; use your session store or database
83
+ const store = new MemoryTokenStore(); // members' tokens; use your database
84
+ const { url } = await oauth.beginAuthorization(pending, { scope: ["balance.read", "orders.write"], data: { userId } });
85
+ // redirect to url; on the callback:
86
+ await oauth.completeAuthorization(pending, callbackUrl, { store, memberKey: (d) => String(d?.userId) });
87
+ const balance = await oauth.memberClient(store, userId).balance();
88
+ ```
89
+
90
+ **Sign in with your STX account.** The STX account is the login: one button signs the member in, onboards them on STX if they are new, and connects their account. You get tokens to call STX for the member and a verified `identity`.
91
+
92
+ ```ts
93
+ import { createConnect } from "@stxapp/stx-typescript/oauth";
94
+
95
+ const connect = createConnect({ issuer: "https://demo.stxapp.io", clientId, clientSecret, redirectUri });
96
+ const signIn = await connect.start({ connection: "google" }); // keep signIn in your session, redirect to signIn.url
97
+ const { tokens, identity } = await connect.finish(callbackUrl, signIn); // identity.sub is the member's stable id
98
+ ```
99
+
100
+ If your login runs through a login service, you can add the STX account there as one more sign-in option instead. That service then runs the sign-in, and you use this SDK only afterwards, to call STX with the tokens it hands you. See [Using a login service](https://docs.stxapp.io/oauth/sign-in-with-your-stx-account/login-vendor/).
101
+
102
+ **Create markets as your app.** With an app token (client credentials) and the `markets.write` scope, list the market types and create markets on scheduled events. A client that holds a write scope has an IP allow-list, and the allow-list applies to every call that client makes, so run this from an allow-listed address.
103
+
104
+ ```ts
105
+ const stx = oauth.appClient(["events", "markets.write"]);
106
+ const types = await stx.marketTypes(); // the rules you can create, their fields and stats
107
+ const results = await stx.createMarkets(eventId, [
108
+ { rule: "player_stat_line", playerId, stat: "POINTS", line: 18.5 },
109
+ ]);
110
+ ```
111
+
112
+ See the guides for [signing in and connecting](https://docs.stxapp.io/sdks/typescript/sign-in-with-stx/) and [creating markets](https://docs.stxapp.io/sdks/typescript/markets/), and `examples/sign-in-with-stx.ts`, `examples/isv-backend/` and `examples/create-markets.ts`.
113
+
72
114
  ## Documentation
73
115
 
74
116
  - [TypeScript SDK guide](https://docs.stxapp.io/sdks/typescript/)
@@ -299,6 +299,17 @@ var OPERATIONS = {
299
299
  isList: true,
300
300
  paginated: true
301
301
  },
302
+ events__id_players_get: {
303
+ method: "GET",
304
+ path: "/api/v1/events/{event_id}/players",
305
+ query: [],
306
+ pathParams: ["event_id"],
307
+ hasBody: false,
308
+ responseKey: "",
309
+ model: "",
310
+ isList: false,
311
+ paginated: false
312
+ },
302
313
  fills_get: {
303
314
  method: "GET",
304
315
  path: "/api/v1/fills",
@@ -310,6 +321,28 @@ var OPERATIONS = {
310
321
  isList: true,
311
322
  paginated: true
312
323
  },
324
+ leaderboard_get: {
325
+ method: "GET",
326
+ path: "/api/v1/leaderboard",
327
+ query: ["period", "category", "metric", "limit"],
328
+ pathParams: [],
329
+ hasBody: false,
330
+ responseKey: "",
331
+ model: "",
332
+ isList: false,
333
+ paginated: false
334
+ },
335
+ leaderboard_me_get: {
336
+ method: "GET",
337
+ path: "/api/v1/leaderboard/me",
338
+ query: ["period", "category"],
339
+ pathParams: [],
340
+ hasBody: false,
341
+ responseKey: "",
342
+ model: "",
343
+ isList: false,
344
+ paginated: false
345
+ },
313
346
  markets_get: {
314
347
  method: "GET",
315
348
  path: "/api/v1/markets",
@@ -321,6 +354,17 @@ var OPERATIONS = {
321
354
  isList: true,
322
355
  paginated: true
323
356
  },
357
+ markets_post: {
358
+ method: "POST",
359
+ path: "/api/v1/markets",
360
+ query: [],
361
+ pathParams: [],
362
+ hasBody: true,
363
+ responseKey: "",
364
+ model: "",
365
+ isList: false,
366
+ paginated: false
367
+ },
324
368
  me_get: {
325
369
  method: "GET",
326
370
  path: "/api/v1/me",
@@ -332,6 +376,17 @@ var OPERATIONS = {
332
376
  isList: false,
333
377
  paginated: false
334
378
  },
379
+ me_profile_patch: {
380
+ method: "PATCH",
381
+ path: "/api/v1/me/profile",
382
+ query: [],
383
+ pathParams: [],
384
+ hasBody: true,
385
+ responseKey: "me",
386
+ model: "Me",
387
+ isList: false,
388
+ paginated: false
389
+ },
335
390
  orders_get: {
336
391
  method: "GET",
337
392
  path: "/api/v1/orders",
@@ -359,7 +414,7 @@ var OPERATIONS = {
359
414
  path: "/api/v1/orders/all",
360
415
  query: [],
361
416
  pathParams: [],
362
- hasBody: false,
417
+ hasBody: true,
363
418
  responseKey: "cancellations",
364
419
  model: "Cancellation",
365
420
  isList: true,
@@ -392,7 +447,7 @@ var OPERATIONS = {
392
447
  path: "/api/v1/orders/{order_id}",
393
448
  query: [],
394
449
  pathParams: ["order_id"],
395
- hasBody: false,
450
+ hasBody: true,
396
451
  responseKey: "",
397
452
  model: "",
398
453
  isList: false,
@@ -496,8 +551,113 @@ var OPERATIONS = {
496
551
  model: "",
497
552
  isList: false,
498
553
  paginated: false
554
+ },
555
+ types_get: {
556
+ method: "GET",
557
+ path: "/api/v1/types",
558
+ query: [],
559
+ pathParams: [],
560
+ hasBody: false,
561
+ responseKey: "",
562
+ model: "",
563
+ isList: false,
564
+ paginated: false
565
+ }
566
+ };
567
+
568
+ // src/markets.ts
569
+ var Stats = {
570
+ Baseball: {
571
+ BASES: "BASES",
572
+ BK: "BK",
573
+ DOUBLES: "DOUBLES",
574
+ HITS: "HITS",
575
+ HIT_RUN_RBI: "HIT_RUN_RBI",
576
+ HOMERUN: "HOMERUN",
577
+ PERA: "PERA",
578
+ PHITA: "PHITA",
579
+ PK: "PK",
580
+ POUTS: "POUTS",
581
+ PRUNSALOWED: "PRUNSALOWED",
582
+ PWALKSA: "PWALKSA",
583
+ RBI: "RBI",
584
+ RUNS: "RUNS",
585
+ SINGLES: "SINGLES",
586
+ STOLENBASES: "STOLENBASES",
587
+ TRIPLES: "TRIPLES",
588
+ WALKS: "WALKS"
589
+ },
590
+ Basketball: {
591
+ ASSISTS: "ASSISTS",
592
+ BLOCKS: "BLOCKS",
593
+ POINTS: "POINTS",
594
+ POINTS_ASSISTS: "POINTS_ASSISTS",
595
+ POINTS_REBOUNDS: "POINTS_REBOUNDS",
596
+ POINTS_REBOUNDS_ASSISTS: "POINTS_REBOUNDS_ASSISTS",
597
+ REBOUNDS: "REBOUNDS",
598
+ REBOUNDS_ASSISTS: "REBOUNDS_ASSISTS",
599
+ STEALS: "STEALS",
600
+ STEALS_BLOCKS: "STEALS_BLOCKS",
601
+ THREE_POINTS: "THREE_POINTS",
602
+ TURNOVERS: "TURNOVERS"
603
+ },
604
+ Football: {
605
+ DEF_INTERCEPT: "DEF_INTERCEPT",
606
+ DEF_TD: "DEF_TD",
607
+ FG_MADE: "FG_MADE",
608
+ INTERCEPT: "INTERCEPT",
609
+ PASS_ATT: "PASS_ATT",
610
+ PASS_CMP: "PASS_CMP",
611
+ PASS_RUSH_YDS: "PASS_RUSH_YDS",
612
+ PASS_SACKS: "PASS_SACKS",
613
+ PASS_TD: "PASS_TD",
614
+ PASS_YDS: "PASS_YDS",
615
+ REC: "REC",
616
+ RECV_LONG: "RECV_LONG",
617
+ RECV_TD: "RECV_TD",
618
+ RECV_YDS: "RECV_YDS",
619
+ RUSH_ATT: "RUSH_ATT",
620
+ RUSH_LONG: "RUSH_LONG",
621
+ RUSH_REC_YDS: "RUSH_REC_YDS",
622
+ RUSH_TD: "RUSH_TD",
623
+ RUSH_YDS: "RUSH_YDS",
624
+ SACKS: "SACKS",
625
+ TACKLES_ASSIST: "TACKLES_ASSIST",
626
+ TACKLES_SOLO: "TACKLES_SOLO",
627
+ TACKLES_TOTAL: "TACKLES_TOTAL",
628
+ TD_SCORE: "TD_SCORE"
629
+ },
630
+ Hockey: {
631
+ ASSISTS: "ASSISTS",
632
+ GOALS: "GOALS",
633
+ GOAL_AG: "GOAL_AG",
634
+ GOAL_SO: "GOAL_SO",
635
+ POINTS: "POINTS",
636
+ SAVES: "SAVES"
499
637
  }
500
638
  };
639
+ var MAX_MARKETS_PER_REQUEST = 25;
640
+ function isValidLine(line) {
641
+ return typeof line === "number" && Number.isFinite(line) && line > 0 && line * 2 % 2 === 1;
642
+ }
643
+ function marketEntry(m) {
644
+ return Object.fromEntries(Object.entries(m).map(([k, v]) => [k.replace(/[A-Z]/g, (c) => `_${c.toLowerCase()}`), v]));
645
+ }
646
+ function toCreateMarketResult(raw, index) {
647
+ return { ...raw, index, market_id: _nullishCoalesce(raw.market_id, () => ( null)), reason: _nullishCoalesce(raw.reason, () => ( null)) };
648
+ }
649
+ function rejected(index, reason) {
650
+ return { index, status: "rejected", market_id: null, reason };
651
+ }
652
+ function checkMarket(m, players) {
653
+ if (m.rule !== "player_stat_line") return { market: m };
654
+ if (!isValidLine(m.line)) return { reason: "invalid_line" };
655
+ const stat = players.stats.find((s) => String(s.stat).toUpperCase() === String(m.stat).toUpperCase());
656
+ if (!stat) return { reason: "unsupported_stat" };
657
+ const ids2 = new Set(players.teams.flatMap((t) => t.players.map((p) => p.player_id)));
658
+ if (!ids2.has(m.playerId)) return { reason: "unknown_player" };
659
+ return { market: { ...m, stat: stat.stat } };
660
+ }
501
661
 
502
662
  // src/paging.ts
503
663
  var Page = class {
@@ -809,7 +969,7 @@ function credentialsFromSettings(keyId, privateKey, signer) {
809
969
  }
810
970
 
811
971
  // src/version.ts
812
- var VERSION = "0.7.0";
972
+ var VERSION = "0.9.0-alpha.1";
813
973
  var USER_AGENT = `stx-typescript/${VERSION}`;
814
974
  var ASYNC_DISPOSE = _nullishCoalesce(Symbol.asyncDispose, () => ( /* @__PURE__ */ Symbol.for("Symbol.asyncDispose")));
815
975
 
@@ -1140,7 +1300,8 @@ function buildRequest(operationId, args = {}) {
1140
1300
  if (unknown.length) throw new TypeError(`${operationId} does not take ${unknown.sort().join(", ")}`);
1141
1301
  const qs = encodeQuery(query);
1142
1302
  if (qs) path = `${path}?${qs}`;
1143
- const body = op.hasBody || args.body !== void 0 ? JSON.stringify(_nullishCoalesce(args.body, () => ( {}))) : void 0;
1303
+ const declared = op.hasBody && op.method !== "DELETE";
1304
+ const body = declared || args.body !== void 0 ? JSON.stringify(_nullishCoalesce(args.body, () => ( {}))) : void 0;
1144
1305
  return {
1145
1306
  operationId,
1146
1307
  method: op.method,
@@ -1533,6 +1694,81 @@ var STX = (_class3 = class _STX {
1533
1694
  return this.#iterate("events_get", _STX.#eventsQuery({ ...query, cursor: void 0 }));
1534
1695
  }
1535
1696
  // ------------------------------------------------------------------
1697
+ // Creating markets
1698
+ // ------------------------------------------------------------------
1699
+ /**
1700
+ * `GET /api/v1/events/{event_id}/players`: the event's team rosters and the
1701
+ * stats a market on it can use. `teams` is empty until the rosters are
1702
+ * published. Needs an OAuth app token with `events`, or an API key.
1703
+ */
1704
+ eventPlayers(eventId) {
1705
+ return this.#one("events__id_players_get", { pathParams: { event_id: eventId } });
1706
+ }
1707
+ /** The stats `event` accepts for new markets. */
1708
+ async statsFor(event) {
1709
+ const eventId = typeof event === "string" ? event : event.event_id;
1710
+ if (!eventId) throw new TypeError("statsFor needs an event id");
1711
+ return (await this.eventPlayers(eventId)).stats;
1712
+ }
1713
+ /**
1714
+ * `GET /api/v1/types`: the market types, keyed by rule. One with
1715
+ * `partner_create: true` can be created with `createMarkets()`, and lists
1716
+ * the `fields` an entry takes and, per event type, the `stats` on offer. It
1717
+ * changes only when STX adds a rule or a stat, so read it once and keep it.
1718
+ * Needs an OAuth app token with `events`, or an API key.
1719
+ */
1720
+ marketTypes() {
1721
+ return this.#one("types_get");
1722
+ }
1723
+ /**
1724
+ * `POST /api/v1/markets`: create markets on a scheduled event, up to
1725
+ * `MAX_MARKETS_PER_REQUEST` per call. Each market names its `rule` and the
1726
+ * fields that rule takes. Needs an OAuth app token with `markets.write`,
1727
+ * which STX grants, from an address on the client's IP allow-list (it
1728
+ * applies to every call that client makes).
1729
+ *
1730
+ * Returns one result per market, in the order given, each with its `index`:
1731
+ * `created` or `exists` (both with `market_id`), `valid` (a `dryRun` market
1732
+ * that would be created), or `rejected` with a `reason`. A rejected market
1733
+ * is a result, not an error, and resending is safe: a market that is
1734
+ * already listed comes back `exists`. A refused request throws (`403`
1735
+ * without `markets.write`, `404` unknown event, `422` event not open).
1736
+ *
1737
+ * `dryRun` runs every check and creates nothing. More than
1738
+ * `MAX_MARKETS_PER_REQUEST` markets throws `TypeError` before any request.
1739
+ * `validate` also needs the `events` scope.
1740
+ */
1741
+ async createMarkets(eventId, markets, opts = {}) {
1742
+ if (markets.length < 1 || markets.length > MAX_MARKETS_PER_REQUEST) {
1743
+ throw new TypeError(`createMarkets takes 1 to ${MAX_MARKETS_PER_REQUEST} markets; got ${markets.length}`);
1744
+ }
1745
+ const results = new Array(markets.length);
1746
+ let send = markets.map((m, i) => ({ m, i }));
1747
+ if (opts.validate) {
1748
+ const players = await this.eventPlayers(eventId);
1749
+ send = send.flatMap(({ m, i }) => {
1750
+ const checked = checkMarket(m, players);
1751
+ if ("market" in checked) return [{ m: checked.market, i }];
1752
+ results[i] = rejected(i, checked.reason);
1753
+ return [];
1754
+ });
1755
+ }
1756
+ if (send.length) {
1757
+ const body = {
1758
+ event_id: eventId,
1759
+ ...opts.dryRun ? { dry_run: true } : {},
1760
+ markets: send.map(({ m }) => marketEntry(m))
1761
+ };
1762
+ const raw = await this.#one("markets_post", { body });
1763
+ (_nullishCoalesce(raw.markets, () => ( []))).forEach((r, k) => {
1764
+ const sent = typeof r.index === "number" ? r.index : k;
1765
+ const slot = send[sent];
1766
+ if (slot) results[slot.i] = toCreateMarketResult(r, slot.i);
1767
+ });
1768
+ }
1769
+ return Array.from(results, (r, i) => _nullishCoalesce(r, () => ( rejected(i, "not_created"))));
1770
+ }
1771
+ // ------------------------------------------------------------------
1536
1772
  // Orders
1537
1773
  // ------------------------------------------------------------------
1538
1774
  static #ordersQuery(q) {
@@ -2770,5 +3006,8 @@ function dropUndefined(payload) {
2770
3006
 
2771
3007
 
2772
3008
 
2773
- exports.Region = Region; exports.Environment = Environment; exports.geoRejection = geoRejection; exports.STXException = STXException; exports.STXConfigException = STXConfigException; exports.STXAPIException = STXAPIException; exports.STXValidationException = STXValidationException; exports.STXAuthenticationException = STXAuthenticationException; exports.STXForbiddenException = STXForbiddenException; exports.STXInvalidTokenException = STXInvalidTokenException; exports.STXInsufficientScopeException = STXInsufficientScopeException; exports.STXNotFoundException = STXNotFoundException; exports.STXRejectedException = STXRejectedException; exports.STXGeoLocationException = STXGeoLocationException; exports.STXRateLimitException = STXRateLimitException; exports.STXServerException = STXServerException; exports.STXTransportException = STXTransportException; exports.STXChannelException = STXChannelException; exports.STXTimeoutException = STXTimeoutException; exports.errorForStatus = errorForStatus; exports.Environments = Environments; exports.HOSTS = HOSTS; exports.environmentNamed = environmentNamed; exports.resolveHost = resolveHost; exports.baseUrlFor = baseUrlFor; exports.socketUrlFor = socketUrlFor; exports.OPERATIONS = OPERATIONS; exports.Page = Page; exports.RetryPolicy = RetryPolicy; exports.NO_RETRY = NO_RETRY; exports.resolveSettings = resolveSettings; exports.KEY_HEADER = KEY_HEADER; exports.TIMESTAMP_HEADER = TIMESTAMP_HEADER; exports.SIGNATURE_HEADER = SIGNATURE_HEADER; exports.buildMessage = buildMessage; exports.requestPath = requestPath; exports.handshakePath = handshakePath; exports.loadPrivateKey = loadPrivateKey; exports.signerFromPrivateKey = signerFromPrivateKey; exports.ApiKeyCredentials = ApiKeyCredentials; exports.VERSION = VERSION; exports.USER_AGENT = USER_AGENT; exports.TERMINAL_ORDER_STATUSES = TERMINAL_ORDER_STATUSES; exports.AccountView = AccountView; exports.centsToDollars = centsToDollars; exports.toDollarString = toDollarString; exports.toQuantity = toQuantity; exports.convertMarketPayload = convertMarketPayload; exports.convertMarketsFrame = convertMarketsFrame; exports.convertBook = convertBook; exports.convertMarketChannelPayload = convertMarketChannelPayload; exports.SNAPSHOT_EVENTS = SNAPSHOT_EVENTS; exports.ChannelMessage = ChannelMessage; exports.ReconnectPolicy = ReconnectPolicy; exports.Channel = Channel; exports.STXWebSocket = STXWebSocket; exports.orderBody = orderBody; exports.STX = STX;
2774
- //# sourceMappingURL=chunk-ASOLCDBG.cjs.map
3009
+
3010
+
3011
+
3012
+ exports.Region = Region; exports.Environment = Environment; exports.geoRejection = geoRejection; exports.STXException = STXException; exports.STXConfigException = STXConfigException; exports.STXAPIException = STXAPIException; exports.STXValidationException = STXValidationException; exports.STXAuthenticationException = STXAuthenticationException; exports.STXForbiddenException = STXForbiddenException; exports.STXInvalidTokenException = STXInvalidTokenException; exports.STXInsufficientScopeException = STXInsufficientScopeException; exports.STXNotFoundException = STXNotFoundException; exports.STXRejectedException = STXRejectedException; exports.STXGeoLocationException = STXGeoLocationException; exports.STXRateLimitException = STXRateLimitException; exports.STXServerException = STXServerException; exports.STXTransportException = STXTransportException; exports.STXChannelException = STXChannelException; exports.STXTimeoutException = STXTimeoutException; exports.errorForStatus = errorForStatus; exports.Environments = Environments; exports.HOSTS = HOSTS; exports.environmentNamed = environmentNamed; exports.resolveHost = resolveHost; exports.baseUrlFor = baseUrlFor; exports.socketUrlFor = socketUrlFor; exports.OPERATIONS = OPERATIONS; exports.Stats = Stats; exports.MAX_MARKETS_PER_REQUEST = MAX_MARKETS_PER_REQUEST; exports.isValidLine = isValidLine; exports.Page = Page; exports.RetryPolicy = RetryPolicy; exports.NO_RETRY = NO_RETRY; exports.resolveSettings = resolveSettings; exports.KEY_HEADER = KEY_HEADER; exports.TIMESTAMP_HEADER = TIMESTAMP_HEADER; exports.SIGNATURE_HEADER = SIGNATURE_HEADER; exports.buildMessage = buildMessage; exports.requestPath = requestPath; exports.handshakePath = handshakePath; exports.loadPrivateKey = loadPrivateKey; exports.signerFromPrivateKey = signerFromPrivateKey; exports.ApiKeyCredentials = ApiKeyCredentials; exports.VERSION = VERSION; exports.USER_AGENT = USER_AGENT; exports.TERMINAL_ORDER_STATUSES = TERMINAL_ORDER_STATUSES; exports.AccountView = AccountView; exports.centsToDollars = centsToDollars; exports.toDollarString = toDollarString; exports.toQuantity = toQuantity; exports.convertMarketPayload = convertMarketPayload; exports.convertMarketsFrame = convertMarketsFrame; exports.convertBook = convertBook; exports.convertMarketChannelPayload = convertMarketChannelPayload; exports.SNAPSHOT_EVENTS = SNAPSHOT_EVENTS; exports.ChannelMessage = ChannelMessage; exports.ReconnectPolicy = ReconnectPolicy; exports.Channel = Channel; exports.STXWebSocket = STXWebSocket; exports.orderBody = orderBody; exports.STX = STX;
3013
+ //# sourceMappingURL=chunk-33AQCUGM.cjs.map