Licence, attribution, and what you may publish
By the end of this lesson you will have a LICENSE with your name under the starter's, a NOTICE that keeps the data apart from the code, a two-sentence licence section in the README, and one footer on every page saying the data comes from EODHD APIs and is not investment advice.
Two different things are about to become public, and they are governed separately. Getting this wrong is the one mistake in this course that is hard to undo.
Your code and their data are not the same asset
The code is yours. You wrote it, or you generated it and reviewed it. Pick a licence and put it in the repository — a permissive one like MIT if you want it used, something more restrictive if you do not. A repository with no licence is not "open by default"; it is all-rights-reserved by default, which is rarely what an author intends.
The data is not yours. It is retrieved under your plan's terms, which are, in EODHD's own words, "intended for personal use only as commercial use requires a more thorough approach to licensing and data use".
So the honest artefact separates them. The starter repository does this with two files: a LICENSE covering the code, and a NOTICE that opens by saying the code licence "does not cover the market data this code retrieves". Copy that shape.
What you may and may not publish
| The code | Yes — that is the portfolio piece |
| A screenshot from mock mode | Yes — fixture prices, not EODHD's data |
| A screenshot of real prices | Ask EODHD first — the personal-use terms forbid displaying the data to others |
Your .env.local |
Never |
| A cached copy of the price history | No — that is redistributing their dataset |
| Sample fixtures for tests | A handful of rows to make a test run is a different thing from shipping a dataset; keep it small and say what it is |
| A hosted instance serving other people from your key | This is the conversation to have with them first |
The last row is the one people arrive at without noticing. A deployed tool that only you can open, behind the sign-in, is personal use. The same deployment open to anyone with the link is displaying the data to other people, which the personal-use terms rule out in so many words ("displaying, or granting access to the Information"), and the difference is not technical. Until you have had that conversation with EODHD, the public URL runs in mock mode or sits behind the sign-in.
Attribute the source
"Powered by EODHD APIs" in the footer and named in the README. It costs nothing, it is accurate, and it tells a reader where the numbers come from — which is information they need in order to judge them.
Say what it is not
One line, near the top: this is a research and learning tool, it is a historical and market-data viewer, it is not investment advice, and you are not a licensed adviser.
Backtest Strategies argued this for backtests. It applies more broadly once anything is public, because a stranger has none of the context that makes your intent obvious. A chart with a rising line reads as a recommendation to almost everyone who sees it.
The finance behind it
What you may do with market data, treated properly from the data side: Where do you find the tickers that no longer exist? covers the same list this course tells you not to redistribute.
Try it now
Add both files and read your repository as a stranger would: can they tell what they may do with your code, and separately what they may do with the data it fetches? If either answer takes more than ten seconds to find, move it higher.
The prompt
Mock mode on, plan mode on, and paste:
Make the repository say what may be done with it. In LICENSE, keep the
existing copyright line and add one under it with this year and my
name, which I will type. Leave NOTICE as it is unless it names a file
that does not exist. In README.md, under Licence, write two sentences:
the code is MIT, see LICENSE; the market data it fetches is not
covered, see NOTICE. Keep any other sentence now under Licence, such
as one about serving other people from a public URL, after those two
rather than dropping it. Put "Powered by EODHD APIs" and "Not investment
advice" in one footer in src/app/layout.tsx so every page carries it,
and remove any page footer that now says the same thing twice. Make no
API call. Done means npm test, npm run typecheck, npm run lint and
npm run check:leak green; then show me the diff.
The agent stops and asks for your name before it edits LICENSE: answer with the name alone, for example Ada Lovelace. A good answer changes LICENSE, README.md, src/app/layout.tsx and the page whose old footer line it replaces, and leaves NOTICE alone: the starter's copy already separates the data from the code.
Check it yourself
- Every page — watchlist, screener, cockpit — ends with the same footer, once.
LICENSEstill carries the starter's copyright line, with yours under it: the MIT licence asks that the original notice stay in every copy.- Reading only the README's Licence section, a stranger can say what they may do with the code, and that the data is a separate question.
git ls-files | grep -E '^\.env'prints.env.exampleand nothing else.
Compare with ours
// src/app/layout.tsx: one footer, so a page added later cannot forget it
<footer className="mx-auto max-w-5xl px-4 py-6 text-xs text-neutral-500">
Powered by EODHD APIs · Not investment advice ·{" "}
<a href="https://github.com/you/market-cockpit/blob/main/NOTICE">Data licence</a>
</footer>
The full state at the end of this unit is on the starter's branch ref/ship-your-tool/u1.

Checkpoint
npm test && npm run typecheck
git status # the files you expect, and no .env file
git add -A
git commit -m "Licence for the code, NOTICE for the data, attribution and not-advice on every page"
Then answer this lesson's questions.