The wall — where your tool stops being enough
By the end of this lesson you will have four lines in your PLAN.md filled in from your own account — cost per view, views a day, data age, and the one thing your tool cannot do — and the sentence that names it.
You have a working watchlist with honest labels. This lesson finds the exact point where it cannot do what you want, on your own data, with your own numbers. Not a marketing panel: an experiment with a result you write down.
Measure your own cost per view
You have the meter. Use it as an instrument.
Note apiRequests from /user, reload your watchlist once, wait a few seconds for the counter to catch up, and note it again. The difference is your cost per page view — one per instrument on the list, since /real-time is billed per symbol whether you batch the request or not. Measured on the account this course was written against, ten consecutive /user reads left the counter unmoved, so the meter itself is free and does not distort the reading; check that on yours rather than taking it from here, because it is exactly the kind of thing that differs by plan.
Then work out what your allowance actually buys:
views per day = daily limit ÷ cost per view
Do that arithmetic with your real numbers, right now, before reading on. It is the single most useful figure in this course, and it is different for everyone.
Then work out what you actually want
Ask honestly, not aspirationally. A realistic morning routine might be: open it at 7am, again at the open, then every half hour while the market is active. That is roughly fifteen views. Fifteen views is nothing.
Now ask for what you wanted when you started building: a page that refreshes itself every minute while it is open, so glancing at the tab is enough. Six and a half hours of trading, once a minute, is around 390 refreshes, times your cost per view.
Compare the two against your allowance. For most free plans the first fits comfortably and the second does not fit at all.
That gap is the wall. It is not "you have run out of calls". It is a specific thing you wanted your tool to do, that it cannot: keep itself current while you are not looking.
The other wall, and the more interesting one
Freshness. Go back to the age you measured in the last lesson.
If your data is delayed by fifteen minutes, then the threshold rules from unit 3 fire fifteen minutes late, always. For a rule that says "tell me if this drops 3%", fifteen minutes is the difference between information and history. You cannot fix this with more calls, and no amount of clever caching helps, and no plan changes it either: the endpoint your tool reads, /real-time, is fifteen to twenty minutes behind on every plan, paid ones included.
Prices as they happen are a different service: EODHD's WebSocket feed, on the plans that include it (All-In-One or EOD+Intraday — All World Extended), and reading it is new code, a connection your tool holds open rather than a key you swap. It is the difference between a tool that reports and a tool that alerts.
Write down your own numbers
Three lines in your PLAN.md, filled in with what you measured:
Cost per view: ___ calls
Views my allowance buys: ___ per day
My data age: ___ minutes
What I cannot build: _________________
That last line is the honest output of this course. For most people it reads something like "an alert I can act on" or "a page I can leave open".
What upgrading changes, stated precisely
Less than you might hope, so be exact about it. A paid plan raises the allowance from 20 calls a day to 100,000 and reaches back beyond one year, and the refresh you could not afford fits with your proxy, list, notes, rules and deployment unchanged. It does not make /real-time fresher: that endpoint is delayed on every plan. A tool that alerts as prices move needs the WebSocket feed and the code to hold it.
That is the whole proposition and it deserves to be stated without decoration. You built the tool. The subscription is what gives it room to run. Live pricing is on the EODHD pricing page — this lesson deliberately quotes no figures, because a number written into a lesson is a number that goes stale and lies to the next reader.
And if your measured routine fits inside the free allowance, then it fits, and you should not pay for anything. A course that told you otherwise would be an advertisement, and you would be right to stop trusting the rest of it.
Try it now
The prompt
Measure first, with mock mode off and a key of your own in .env.local (the demo token's counter is shared by everyone, so it cannot be measured; see lesson 4, "First data on screen, and the meter that shows what it cost", for the free key). If you cannot measure today, because you have no key of your own yet or today's calls are spent, estimate instead: the meter's line "Live, it would cost N calls" gives the cost per view, the free plan's limit is 20 a day, and the mock panel from the last lesson gives an age. Put those in the prompt in place of a measurement, and write "estimated" after each figure in PLAN.md. Otherwise, open the usage route, the localhost:3000/api/usage page on the address npm run dev prints (usually http://localhost:3000), which costs nothing, and note used. Reload the watchlist once, wait a few seconds for the counter to catch up, and open the usage route again. Then paste, with your numbers in place of the brackets:
I measured on my own account (or estimated, if I say so): used went
from [before] to [after] for one page view, my daily limit is [limit],
and my data age from the last
lesson was [minutes]. Show the arithmetic: cost per view, views my
allowance buys per day, and what a page that refreshes once a minute
for a 6.5-hour session would cost. Then add four lines to PLAN.md next
to the definition of done, with my numbers: Cost per view, Views my
allowance buys, My data age, What I cannot build. Leave the last one
empty for me. Change no other file and make no request.
A good answer shows each division and multiplication, changes only PLAN.md, and leaves the fourth line blank.
Check it yourself
- Cost per view equals the number of tickers on your list: one call per symbol, and reading the account is free.
- Views per day is your limit divided by the cost per view, rounded down.
- The refresh-every-minute figure is about 390 times your cost per view, and on most free plans far past the limit.
git diff --statlistsPLAN.mdand nothing else.- Fill the last line yourself, answering one question in a sentence: which specific thing you wanted, on the day you wrote that plan, does your tool still not do? A capability, not a counter. That sentence is the most valuable thing you will produce in this course.
Compare with ours
Ours, with five tickers on the free plan
Cost per view: 5 calls
Views my allowance buys: 4 per day, 20 calls at 5 a view
My data age: what we measured in the last lesson
What I cannot build: a page I can leave open through the session
Five tickers refreshed once a minute for 6.5 hours is 390 × 5 = 1,950 calls, close to a hundred free days. The full state at the end of this unit is on the starter's branch ref/build-your-first-tool/u4.
Checkpoint
git status # only the files you expect, and no .env*
git add -A
git commit -m "Plan: the wall in my own numbers, and what my tool cannot do"
Then answer this lesson's questions.