The breadth wall
By the end of this lesson you will have the five breadth lines in PLAN.md filled in with your own numbers — the first one read off the usage counter, not copied from this page — and a written answer to what your screener cannot see.
Build Your First Tool's wall was freshness: your watchlist could not stay current. This one is different in kind, and you find it the same way — by measuring your own tool rather than being told about it.
Measure what a screen costs you
Read used from curl -s localhost:3000/api/usage, run one screen, wait a few seconds for the counter to catch up, read it again; close other tabs of the app first, so nothing else is counted. On a well-built screener that difference is 5 — the price of one /screener request, measured 2026-08-26. Reading the meter is free and does not distort the reading. Note that 5, because it is easy to forget: a screen is one request but five calls.
Now count how many screens a working session actually takes. Tuning filters is the whole activity: change a threshold, look, change it back, add a condition. Twenty attempts to get one screen right is normal and not wasteful — it is what screening is.
So: cost per attempt × attempts per session × sessions per week, against your daily allowance. Do that arithmetic with your own numbers now.
Price it against the free plan's 20 calls a day, even though that plan does not include the screener, because it shows the scale: 20 calls is four attempts, and twenty attempts are 100 calls, five days of that allowance. On a plan that includes the screener, with 100,000 calls a day, the same session is a rounding error, and the wall moves from calls to breadth. That gap is the first half of the wall, and notice how it differs from Build Your First Tool: there the limit throttled keeping something current, here it throttles thinking.
The half that more calls cannot fix
Now the real one.
Your universe was 51,215 US instruments, of which 18,012 were common stock. A screen across all of them is one request, and London beside them is the same request with ["exchange","in",["us","lse"]]. The limits are elsewhere. One screen answers at most 500 rows and cannot be paged past its first 1,000 matches, so a broad filter shows you the top of a list, not the list. And the screener filters only on the fields it carries: the moment you want to screen on anything else, a ratio from the full fundamentals or a figure computed from price history, you are fetching per company, at 10 calls each for fundamentals and only on a plan that includes them. That is not more calls of the same thing; it is data your plan may not carry at all.
This is the shape of it: a screener's usefulness scales with how much of the market it can see. A screen that reaches only the top of its matches, or only the fields it happens to carry, is not a smaller version of the full answer — it is a screen that silently omits whatever it cannot reach, and gives you a clean, confident, incomplete answer.
Incompleteness you cannot see is worse than a limit you can. Which is why the lesson on universes came first.
Write the sentence down
Add to the PLAN.md section you started in Build Your First Tool:
Cost per screen attempt: ___ calls
Attempts in a real session: ___
Sessions my allowance buys: ___ per week
Instruments I can see: ___ of ___
What I cannot screen: _________________
That last line is the honest output. It usually reads like "anything past the first 1,000 matches", or "anything needing a field the screener does not carry".
What upgrading changes, precisely
Nothing about your code, again. The same screener, the same filters, the same saved screens — with room to explore rather than ration, and, on a plan that includes fundamentals, fields to screen on that the screener does not carry.
And the same honesty as Build Your First Tool: if a few screens a day are what you need and they fit, it fits, and you should not pay for anything more. Live pricing is on the pricing page and deliberately not quoted here, because a number written into a lesson goes stale and then lies to whoever reads it next.
The finance behind it
Pulling a whole exchange at once is its own technique, with its own arithmetic: How do you pull fundamentals for a whole exchange without melting the pipe?
Try it now
Fill in the five lines with measured numbers. The measurement needs your own key on a plan that includes the screener: the shared demo key answers 403 on EODHD's screener endpoint and its counter moves with other people's requests (on it the difference is not 5), so if demo, a free key or mock is all you have, price one screen with estimateCalls(), write "priced, not measured" beside the first line, and work out the third line from the free plan's 20 calls a day. Then make breadth concrete. Your proxy hands back at most 100 rows (EODHD's screener itself stops at 500) and no total, so take the count from your Universe section instead: the common stocks on the one exchange you can screen (18,012 of 51,215 US instruments in this course's count), and work out what fraction of the instruments you could theoretically care about that represents. The number you get is the one that decides whether this tool is finished.
The prompt
Mock mode off, your key in .env.local, the dev server running. Paste:
Add a "Breadth" section to PLAN.md with these five lines: Cost per
screen attempt, Attempts in a real session, Sessions my allowance buys
per week, Instruments I can see (of how many), What I cannot screen.
Fill in measured numbers. Read today's count from
localhost:3000/api/usage (the field is used; ignore pageLoadCalls, it
prices the watchlist), which costs nothing.
Tell me what one screen costs by estimateCalls() and wait for my yes;
I will load the screen page once, and you read the count again a few
seconds later. Ask me how many attempts my last tuning session took,
work out sessions per week from the dailyLimit in the same answer,
and write the first three lines with the arithmetic shown. If that
limit is in the millions it is the shared demo key's, and if it is 20 it
is the free plan's, which has no screener: in either case use 20 calls
a day and say so. The last lines are mine to write.
Change no code.
A good answer changes one file, PLAN.md, spends exactly one screen, and shows the sum behind the third line.
Check it yourself
- The cost line came from two readings of the counter, not from this page (or, on a key that cannot run a screen, from
estimateCalls()and marked as priced). - The third line shows its arithmetic, and you can follow it from your own daily limit.
git diffshows onlyPLAN.md, and the lines on what you can and cannot see are in your words.
Compare with ours
## Breadth
Cost per screen attempt: 5 calls (counter read before and after one screen)
Attempts in a real session: about 20
Sessions my allowance buys: 1.4 per week (140 calls a week, 100 a session)
Instruments I can see: US common stock, one exchange
What I cannot screen: past the first 1,000 matches; any field the screener lacks
The full state at the end of this unit is on the starter's branch ref/build-a-screener/u4.
Checkpoint
git status # PLAN.md, nothing else
git add PLAN.md
git commit -m "Breadth wall measured: five calls a screen, what a week buys, what I cannot see"
Then answer this lesson's questions.