# Every code example in the docs, run as written (https://docs.predictorsdk.com/changelog/2026-10-19-docs-snippets)

2026-10-19 · Fix

We ran every snippet on the docs against the live API with the published SDKs, and fixed the ones that failed, printed the wrong thing or had gone stale.

We copied every code example in the docs, ran it against the live API with the
published SDKs, and fixed what didn't work as written:

- **TypeScript examples are ES modules.** They use top-level `await`, which
  fails in a project made with `npm init` until its `package.json` has
  `"type": "module"`. The [quickstart](https://docs.predictorsdk.com/quickstart) and the
  [TypeScript SDK](https://docs.predictorsdk.com/sdk/typescript) page now say so, and how to run them in a
  CommonJS project.
- **The Go quickstart prints prices.** Step 4 printed pointer addresses,
  because `Bid` and `Ask` are pointers; it now prints the numbers.
- **The date examples stay current.** The SDK pages' "tonight's games" examples
  used a fixed date that has passed; they now ask for today's games.
- **Empty `player_prop_match`.** The [player-prop guide](https://docs.predictorsdk.com/guides/player-prop-matching)
  said an empty value is a `400`. Like an empty value of any other control
  parameter, it means the default, `strict`.
- **Refreshed examples.** The rule-matrix excerpts on the
  [game-line rules](https://docs.predictorsdk.com/guides/game-line-rules) and player-prop guides show the values
  the API returns today (SX Bet now reads as voiding a tied NFL game), and the
  response-size table on [filtering](https://docs.predictorsdk.com/guides/filtering) gives ranges that cover an
  NFL weekend.
- **AlphaArcade in the NBA.** The [Overview](https://docs.predictorsdk.com/) now lists AlphaArcade for NBA
  moneylines, which it matches when it lists a game.