Skip to content

docs(notebooks): add 108, the full SPXW chain streamed across the open - #1524

Merged
userFRM merged 2 commits into
mainfrom
docs/notebook-108-full-chain
Nov 23, 2026
Merged

userFRM merged 2 commits into
mainfrom
docs/notebook-108-full-chain

Conversation

@userFRM

@userFRM userFRM commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Adds notebook 108: one Python process, one streaming session, loaded as far as a Pro plan allows (quotes on the 15,000 SPXW contracts nearest the money, quotes on the 2,000 most-traded stocks, and the full option and stock trade streams), read as Arrow record batches.

The committed outputs are from a 15-minute run across the 09:30 ET open on 23 Nov 2026, on a stock Colab runtime (Intel Xeon @ 2.20GHz, 2 logical cores, thetadatadx 0.9.0):

Events 58,471,178 over 897 full seconds
Mean 65,185 per second
Busiest second 405,914 events (09:30)
Busiest 100 ms 57,839 events
Delay, receipt to notebook median second 17.6 ms, 99th pct 40.8 ms, worst 293.9 ms (09:30)
Process CPU mean 73%, busiest second 156% of one core
Memory, peak 310 MiB
Dropped events 0

The notebook waits for its window (START_ET, 09:25 ET by default; None starts at once), shows a live panel once a second, then summarizes per stream, per minute, per stock and per SPXW expiration, and charts events per second, CPU, memory and delay. Credentials come from THETADATA_API_KEY or creds.txt, or hidden prompts in Colab.

Quotes on the 15,000 SPXW contracts nearest the money and on the 2,000
most-traded stocks, plus the option and stock full trade streams, read
as Arrow batches in one Python process. Reports events per second, the
receive-to-notebook delay, CPU use and dropped events. Runs in Colab:
credentials are asked for in hidden prompts when no key or creds file
is present.
The committed outputs now come from a 15-minute run across the
09:30 ET open on a stock Colab runtime (2 cores): 17,002 subscriptions,
58.5 million events, busiest second 405,914, 0 dropped. The notebook
waits for its window (09:25 ET by default) and reports CPU, memory and
per-minute, per-stock and per-expiration counts.
@userFRM userFRM added the documentation Improvements or additions to documentation label Nov 23, 2026
@userFRM userFRM added this to the 0.9.1 milestone Nov 23, 2026
@userFRM
userFRM merged commit 5e8f4c5 into main Nov 23, 2026
49 of 95 checks passed
@userFRM
userFRM deleted the docs/notebook-108-full-chain branch November 23, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant