How to Use Marketstack daily stock prices in Windsurf
Fetch daily open, high, low, close, and volume, plus values adjusted for splits and dividends. Use Marketstack daily stock prices for historical charts, closing-price comparisons, and daily research.
Prompts to try with Marketstack daily stock prices in Windsurf
Copy an example into Windsurf, or ask in your own words.
Use Marketstack daily stock prices for AAPL from January 1 through December 31, 2025, and add a daily candlestick chart with volume to this project's dashboard.
Use Marketstack daily stock prices to fetch MSFT's 2025 history, retrieve every matching page, and save the returned daily records as a CSV in this project.
Use Marketstack daily stock prices for NVDA during 2025 and add a notebook that calculates 20-day and 50-day moving averages from adjusted closing prices.
Use Marketstack daily stock prices for KO during 2025 and add a report comparing raw and adjusted closing prices, with the largest differences listed first.
Use Marketstack daily stock prices for JPM during 2025 and add a script that calculates the maximum drawdown from adjusted closing prices.
How to set up Marketstack daily stock prices in Windsurf
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:
{ "mcpServers": { "spiral": { "url": "https://api.spiral.ai/mcp" } } } - Sign in
Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.
devin mcp login spiral
- Check it
Spiral is listed under This computer in Customize › MCPs. From the terminal:
devin mcp list
Use the Spiral skill
- Send Windsurf 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 Marketstack daily stock prices
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": "marketstack/prices/eod", "input": { "symbols": "<symbols>" } }'
Then paste one of the prompts above: Windsurf finds Marketstack daily stock prices on Spiral, shows the price and runs it.
Marketstack daily stock prices providers and prices
Spiral runs Marketstack daily stock prices through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Windsurf for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Sort | DESC, ASC, desc, or asc | Order by date. DESC, newest first, is the default. | |
| Limit | 1 to 100 | Rows per page, from 1 to 100. Default 100. The request costs the same whatever the row count. | |
| Offset | 0 to 1000000 | Rows to skip for the next page. Default 0. |
Every API field of Marketstack · End-of-day prices is on its tool page: open its card above.
What can you do with Marketstack daily stock prices in Windsurf?
Build stock charts and historical research datasets from Marketstack's daily prices and volume. A coding agent can add calculations for adjusted-price returns, moving averages, and drawdowns to the project's existing analysis.
Daily price charts
Plot a stock's daily open, high, low, and close, with trading volume beneath the chart.
Performance comparisons
Fetch each stock separately and compare changes in adjusted closing prices over the same dates.
Closing-price briefs
Summarize the latest available close, its change from the previous returned trading day, and the day's trading range.
Historical strategy research
Calculate moving averages and test daily price rules against retrieved historical records, keeping raw and adjusted calculations separate.
Volume anomaly reviews
Compare a stock's daily volume with its preceding 20 trading days and list unusually active sessions.
Drawdown analysis
Calculate declines from previous peaks in adjusted closing prices and identify the deepest decline within a chosen period.
Adjustment checks
Place raw and adjusted closing prices side by side to identify dates that need closer review before using the history in research.
Research dataset checks
Compare the retrieved record count with the pagination total before calculating returns or exporting a historical dataset.
More on Marketstack daily stock prices and Windsurf
Overview
Marketstack daily stock prices in other agents
Questions about Marketstack daily stock prices in Windsurf
Can Windsurf use Marketstack daily stock prices?
Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Marketstack daily stock prices like any built-in tool.
How much does Marketstack daily stock prices cost in Windsurf?
Up to $0.034918 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.
Do I need an Alexandria account to use Marketstack daily stock prices in Windsurf?
No. Spiral runs Marketstack daily stock prices on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Marketstack daily stock prices in Windsurf?
About two minutes: add the server, then sign in, then check it.
Does Windsurf wait while Marketstack daily stock prices runs?
Marketstack daily stock prices runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.
Where does Marketstack get US stock data?
Marketstack names Tiingo as its licensed source for stock market data from US exchanges.
Does Marketstack cover stocks outside the US?
Yes. Its end-of-day endpoint documentation advertises more than 500,000 tickers across global exchanges; that is a coverage total, not a guarantee that every listing has a complete history.
When do daily stock prices update?
APILayer describes end-of-day data as updating once daily after market close, typically within hours. That description does not establish an exact publication time for each exchange.
Can one page contain only part of the requested history?
Yes. Marketstack returns paginated results, and the pagination total gives the number of matching records available across pages. A historical calculation should include all matching pages.
Start using Marketstack daily stock prices in Windsurf
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Windsurf:
set up https://spiral.ai/SKILL.md


