
Marketstack v2 is here, and it’s better than ever. Over the past few months, we have been working on it to make it even more functional-rich and low in latency. In order to achieve this, we are introducing new endpoints, response parameters, and a few minor changes that will enhance your experience working with Marketstack API. Let’s deep dive into it.
Table of Contents
What’s new in the existing endpoints
Enhanced End-of-Day Data
Marketstack’s end-of-day (EOD) endpoint is now more powerful and rich in functionality. We have added three new response parameters, exchangeCode
, name
, and description
enabling you to have more control over the data and features.
Intraday Data at Minute Intervals
The intraday endpoint now supports 1-minute interval updates for Pro users and above. It’s not just about faster data but also more detailed metrics:
- mid: Average bid-ask value.
- prevClose: Reference point for quick comparisons.
- lastSize, bidSize, askSize: Trading volume at different levels.
Perfect for building apps where speed and accuracy are critical, such as trading platforms or alert systems.
Splits endpoint
Splits endpoint has only got one new response parameter called stock_split
but it provides developers with more flexibility to implement functionalities like portfolio rebalancing or equity adjustments in their applications.
Dividends endpoint
Dividends endpoint is ideal for developers building portfolio management tools, financial analytics platforms, or investor dashboards. With precise data on corporate dividend actions, you can automate notifications, track trends, and provide actionable insights for long-term investment strategies.
Here are the new fields introduced.
- paymentDate: The payment date of the distribution.
- recordDate: The record date of the distribution.
- declarationDate: The declaration date of the distribution.
- distrFreq: The frequency that’s associated with this distribution.
Exchanges endpoint got so many new response parameters
The exchanges
endpoint delivers detailed information about stock exchanges worldwide. The key fields include the exchange name, acronym, market identifier code (MIC), country, and city, among others. New fields, such as operating MIC, market category code, legal entity name, and exchange status, offer deeper insights into exchange operations, structure, and regulatory details. This data enables users to identify and work with specific exchanges or validate exchange-related transactions effectively.
Additionally, the Marketstack v2 supports granular queries, allowing you to retrieve EOD, Intraday, or specific-date data for symbols associated with an exchange. Endpoints like /exchanges/[MIC]/eod
and /exchanges/[MIC]/intraday/latest
simplify integration into applications requiring detailed exchange-level data. With exchanges
endpoint, you can build robust tools for market analysis, research, and compliance tracking.
Head over to Marketstack v2 documentation to see the full list of new parameters included.
New Endpoints introduced in Marketstack v2
We introduced a couple of new endpoints to improve the developer experience and save bandwidth. These endpoints cater to new data types like market indices, bonds, and ETFs, providing granular control over queries and highly structured responses. You will be now able to build more flexible applications with the integration of Marketstack v2.
List of Tickers
List of Tickers endpoint is the new efficient way to obtain the list of all tickers supported by the Marketstack API. In the previous version, you had to make an API call to the tickers
endpoint then map through each data object in order to get the names or symbols.
Now, simply make a GET request to the following URI.
Note: You can still use the tickers
endpoint to obtain the list of tickers but that’s not the ideal way to do that as we have now a new endpoint for that in version 2.
1 |
GET http://api.marketstack.com/v2/tickerslist?access_key=[API_KEY] |
Ticker Info
The /tickerinfo endpoint allows users to retrieve detailed information about a specific stock ticker. By querying this endpoint with a ticker symbol (e.g., AADI), users can access a variety of key details about the stock, including company information, financial data, key executives, and more.
1 |
GET http://api.marketstack.com/v2/tickerinfo?access_key=[API_KEY]&ticker=AADI |
tickerinfo
enables developers building stock market or trading apps to use this endpoint to fetch comprehensive data about various stocks, enabling users to view detailed company profiles, financials, and key executives in real-time.
Market Indices
Marketstack has always been an API that provides everything you need to build dynamic applications. In order to improve the existing experience and workflow to obtain the indices we are introducing a new Market Indices endpoint. This transformation includes significant updates to the improved parameter support and new features to provide detailed market index insights.
You can divide this new endpoint into two endpoints.
- GET /indexlist: Fetches a comprehensive list of supported benchmarks/indices
- GET /indexinfo?index=us500: Returns detailed information for a specific market index, including region, country, benchmark code, current price, and performance metrics.
With this update, the Marketstack API offers richer data, intuitive development workflows, and broader insights for developers and analysts.
Bonds
In version 2 of Marketstack, we are introducing something which has never been part of the Marketstack API before. The new Bonds endpoint in Marketstack is designed to provide comprehensive bond market data to help developers create financial tools with ease.
Bondlist new Marketstack API
The Marketstack API users now have the possibility to call the bondlist
endpoint from Marketstack to get a list of supported countries.
1 |
GET http://api.marketstack.com/v2/bondlist?access_key=[API_KEY] |
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
{ "data": [ { "country": "austria" /The parameter “country” will be string type and holds the information of the country name where the bonds are supported. }, { "country": "australia" }, { "country": "belgium" }, { "country": "brazil" }, { "country": "canada" ... |
Bonds new Marketstack API
The new Bonds endpoint in Marketstack delivers real-time and historical bond market data tailored for requested countries. You can query bonds by country using the country parameter for precise results.
1 |
GET https://api.marketstack.com/v2/bond?access_key=[API_KEY]&country=kenya |
From tracking bond yields for investment apps to building financial reporting tools, the Bonds API equips developers with the data necessary to unlock the potential of global bond markets.
ETF Holdings
ETFs are a core of modern investing, and accessing granular data about their holdings is a game-changer for financial analytics, portfolio tracking, and algorithmic trading. With ETF Holdings new endpoint, Marketstack users can now seamlessly integrate ETF data into their applications to create smarter, more insightful applications.
ETF holdings can be divided into two different endpoints under the hood. Let’s see what they are.
ETF List
The Marketstack users can now make a call to the etflist
endpoint from Marketstack and the API will return a list of supported ETF tickers as a result.
1 |
GET https://api.marketstack.com/v2/etflist?access_key=[API_KEY] |
Sample response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
{ "data": [ { "ticker": "HEAL.JK" - A unique symbol assigned to publicly traded shares of a company }, { "ticker": "HEAR" }, { "ticker": "HEBA-B.ST" }, { "ticker": "HEDJ" }, { "ticker": "HEES" |
ETF Holdings
For each ETF ticker, drill down into the exact composition of holdings, including key metrics like legal entity identifiers (LEI), International Securities Identification Numbers (ISIN), and asset categories.
1 |
GET https://api.marketstack.com/v2/etfholdings?access_key=[API_KEY]&ticker=PRSVX |
Sample response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
{ "fund_name": "T. ROWE PRICE SMALL-CAP VALUE FUND, INC.", "data": [ { "investment_security": { "name": "ASGN Inc", "lei": "LZBNYYCBUKY537072438", "value_usd": "22869226.00", "percent_value": "0.2158", ... } }, ... ] } |
You can also analyze ETF holdings over a specific timeframe. Use the date_from
and date_to
parameters to unlock historical data for enhanced research and trend analysis.
1 |
GET https://api.marketstack.com/v2/etfholdings?access_key=[API_KEY]&ticker=PRSVX&date_from=2023-01-01&date_to=2023-12-31 |
Wrapping Up Marketstack v2
Marketstack v2 isn’t just an update, it’s a game-changer for developers building on top of it. With a sharper focus on performance, new powerful endpoints like ETF Holdings, and deeper integrations through premium data providers, we are providing low-latency, high-uptime, better developer experience, and how you interact with market data.
Whether you’re a hobbyist developer, a data analyst, or an indie hacker with a dream, Marketstack v2 has everything you need to build a dynamic trading application.
We’re excited to see how you leverage these upgrades to create something extraordinary. Got questions? Our updated documentation has you covered, and our team is always here to help.
The market never sleeps, and with Marketstack v2, neither will your applications.