How to Use EODHD earnings calendar in opencode
Get earnings report dates, fiscal period ends, market-session timing, actual EPS, consensus estimates, and surprise figures. Use it to prepare for company reports or compare reported earnings with expectations.
Prompts to try with EODHD earnings calendar in opencode
Copy an example into opencode, or ask in your own words.
Use EODHD earnings calendar to fetch AAPL.US reports for 2025 and add a table to this project with announcement date, fiscal period end, actual EPS, consensus EPS, and surprise percentage.
Use EODHD earnings calendar for AAPL.US, MSFT.US, and GOOGL.US during 2025. Add a comparison chart of the returned earnings surprise percentages to this project.
Use EODHD earnings calendar for NVDA.US during 2025 and update this project's event view to display announcement dates separately from fiscal period ends.
Use EODHD earnings calendar to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from EODHD earnings calendar and tell me what changed since last week.
How to set up EODHD earnings calendar in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run EODHD earnings calendar
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "eodhd/calendar/earnings", "input": { "to": "<to>" } }'
Then paste one of the prompts above: opencode finds EODHD earnings calendar on Spiral, shows the price and runs it.
EODHD earnings calendar providers and prices
Spiral runs EODHD earnings calendar through Alexandria. Open a card for today's price, with every fee included.
What can you do with EODHD earnings calendar in opencode?
Build a corporate events view that shows earnings expectations and IPO deal status beside each date. A coding agent can turn EODHD responses into tables in your project, preserving fiscal periods, listing exchanges, and offering details.
Prepare a weekly market agenda
Arrange earnings announcements and expected IPO trading dates into a dated research agenda, with earnings-session timing and IPO deal status beside each event.
Build a corporate events dashboard
Display company earnings with actual and estimated EPS, alongside IPO listings with exchange, shares offered, and deal status.
Review changes between calendar checks
Compare successive responses to flag changed earnings dates or figures and changed IPO dates, offering details, or status for analyst review.
Create a monthly company events recap
Summarize earnings surprises and IPO deals marked Priced during the selected month, keeping reported results separate from expected events.
Compare earnings against expectations
Build a table for Apple, Microsoft, and Alphabet showing report dates, fiscal periods, actual EPS, consensus EPS, and surprise percentages.
More on EODHD earnings calendar and opencode
Overview
EODHD earnings calendar in other agents
Questions about EODHD earnings calendar in opencode
Can opencode use EODHD earnings calendar?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run EODHD earnings calendar like any built-in tool.
How much does EODHD earnings calendar cost in opencode?
Up to $0.17459 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use EODHD earnings calendar in opencode?
No. Spiral runs EODHD earnings calendar on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up EODHD earnings calendar in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while EODHD earnings calendar runs?
EODHD earnings calendar runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
What company events does EODHD return?
Earnings records pair report dates with actual EPS, consensus estimates, and surprise figures. IPO records describe companies going public, including their exchange, offering details, and filing or deal status.
Do all the dates mean the same thing?
EODHD distinguishes an earnings announcement date from the fiscal period end the results describe. IPO records separately identify expected trading, initial filing, and amendment dates.
How should I handle larger historical requests?
Earnings results are not paginated, so EODHD recommends short date windows. Its August 2026 assessment found continuous IPO history from February 2013, plus an isolated batch of 84 deals in early 2010.
Where does EODHD collect company information?
EODHD describes its fundamental-data sources as company announcements, financial news providers, investor relations websites, and annual reports. This is its general sourcing description, rather than an attribution for each calendar record.
Does EODHD guarantee real-time, accurate event data?
EODHD's terms explicitly say API data is not necessarily real-time or accurate. Its calendars should therefore not be presented as a guaranteed live record of company announcements.
Start using EODHD earnings calendar in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


