Marketstack
App · 20 actions
Read historical and intraday prices, dividends, splits and exchange data.
Actions
| Action | What it does |
|---|---|
| Get a real-time stock price | Read the latest real-time price for a stock. |
| Get a stock exchange | Read the details for a stock exchange by its market identifier code. |
| Get daily prices for a date | Read stock prices for a particular trading date. |
| Get intraday prices for a date | Read prices within a selected trading day. |
| Get latest end-of-day prices | Read the most recent daily prices for one or more symbols. |
| Get latest intraday prices | Read the latest intraday prices. |
| Get ticker information | Read the company and exchange details for a stock ticker. |
| List currencies | Read the currency reference data. |
| List dividends | Read historical dividend records for the selected symbols. |
| List end-of-day prices | Read historical daily stock prices for one or more symbols. |
| List ETF holdings | Read the reported holdings of an exchange-traded fund. |
| List exchange-traded funds | Find exchange-traded funds and filter by ticker or observation date. |
| List exchanges | Search the trading exchanges covered by Marketstack. |
| List government bonds | Read the government bond markets covered by Marketstack. |
| List intraday prices | Read historical prices within the trading day. |
| List market indices | Read the market indices tracked by Marketstack. |
| List stock splits | Read historical split records for the selected symbols. |
| List tickers | Search the stock symbols covered by Marketstack. |
| List tickers for an exchange | Read the stock symbols traded on a selected exchange. |
| List time zones | Read the time zone reference data. |
Get a real-time stock price
Read the latest real-time price for a stock. Availability depends on your plan.
Inputs
- Ticker
tickertextRequired - Stock ticker symbol, e.g. AAPL.
- Exchange
exchangetext - Exchange MIC code, e.g. XNAS, XLON. Use it when a ticker is listed on more than one exchange.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{
"country": "example",
"currency": "example",
"exchange_code": "example",
"exchange_name": "example",
"price": "example",
"ticker": "example",
"trade_last": "example"
}
]
}
}Get a stock exchange
Read the details for a stock exchange by its market identifier code.
Inputs
- Mic
mictextRequired - Market Identifier Code (MIC) of the stock exchange.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{
"acronym": "example",
"city": "example",
"comments": "example",
"country": "example",
"country_code": "example",
"date_creation": "example",
"date_expiry": "example",
"date_last_update": "example",
"date_last_validation": "example",
"exchange_lei": "example",
"exchange_status": "example",
"legal_entity_name": "example",
"market_category_code": "example",
"mic": "example",
"name": "example",
"operating_mic": "example",
"oprt_sgmt": "example",
"website": "example"
}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}Get daily prices for a date
Read stock prices for a particular trading date.
Inputs
- Symbols
symbolslistRequired - One or more ticker symbols, such as AAPL or MSFT.
- Exchange
exchangetext - Filter results by stock exchange, identified by its MIC. Example: XNAS
- Sort
sorttext - Sort order of the results by date.One of:
DESC,ASC,desc,asc. - Limit
limitnumber - Specify a limit of results to return. Default value is 100.From 1 to 1000.
- Offset
offsetnumber - Specify an offset for pagination. Default offset value is 0.At least 0.
- Date
datedateRequired - The trading date to look up.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{
"adj_close": 1,
"adj_high": 1,
"adj_low": 1,
"adj_open": 1,
"adj_volume": 1,
"asset_type": "example",
"close": 1,
"date": "example",
"dividend": 1,
"exchange": "example",
"exchange_code": "example",
"high": 1,
"low": 1,
"name": "example",
"open": 1,
"price_currency": "example",
"split_factor": 1,
"symbol": "example",
"volume": 1
}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}Get intraday prices for a date
Read prices within a selected trading day. This uses a plan with intraday access.
Inputs
- Symbols
symbolslistRequired - One or more ticker symbols, such as AAPL or MSFT.
- Exchange
exchangetext - Filter results by stock exchange, identified by its MIC. Example: XNAS
- Interval
intervaltext - Intraday data interval. Available values: 1min, 5min, 10min, 15min, 30min, 1hour, 3hour, 6hour, 12hour, 24hour. Default: 1hourOne of:
1min,5min,10min,15min,30min,1hour,3hour,6hour,12hour,24hour. - After Hours
after_hourstrue/false - Include after-hours data in intraday results.
- Sort
sorttext - Sort order of the results by date.One of:
DESC,ASC,desc,asc. - Limit
limitnumber - Specify a limit of results to return. Default value is 100.From 1 to 1000.
- Offset
offsetnumber - Specify an offset for pagination. Default offset value is 0.At least 0.
- Date
datedateRequired - The trading date to look up.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{
"ask_price": 1,
"ask_size": 1,
"bid_price": 1,
"bid_size": 1,
"close": 1,
"date": "example",
"exchange": "example",
"high": 1,
"last": 1,
"last_size": 1,
"low": 1,
"marketstack_last": 1,
"mid": 1,
"open": 1,
"symbol": "example",
"volume": 1
}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}Get latest end-of-day prices
Read the most recent daily prices for one or more symbols.
Inputs
- Symbols
symbolslistRequired - One or more ticker symbols, such as AAPL or MSFT.
- Limit
limitnumber - How many results to return.From 1 to 1000.
- Offset
offsetnumber - How many records to skip.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}Get latest intraday prices
Read the latest intraday prices. This uses a plan with intraday access.
Inputs
- Symbols
symbolslistRequired - One or more ticker symbols, such as AAPL or MSFT.
- Limit
limitnumber - How many results to return.From 1 to 1000.
- Offset
offsetnumber - How many records to skip.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}Get ticker information
Read the company and exchange details for a stock ticker.
Inputs
- Ticker
tickertextRequired - The ticker symbol, such as AAPL.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {}
}List currencies
Read the currency reference data.
Inputs
- Limit
limitnumber - How many results to return.From 1 to 1000.
- Offset
offsetnumber - How many records to skip.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}List dividends
Read historical dividend records for the selected symbols.
Inputs
- Symbols
symbolslistRequired - One or more ticker symbols, such as AAPL or MSFT.
- Start Date
start_datedate - The first trading date to include.
- End Date
end_datedate - The last trading date to include.
- Sort
sorttext - The order of the returned observations.One of:
ASC,DESC. - Limit
limitnumber - How many results to return.From 1 to 1000.
- Offset
offsetnumber - How many records to skip.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}List end-of-day prices
Read historical daily stock prices for one or more symbols.
Inputs
- Symbols
symbolslistRequired - One or more ticker symbols, such as AAPL or MSFT.
- Start Date
start_datedate - The first trading date to include.
- End Date
end_datedate - The last trading date to include.
- Sort
sorttext - The order of the returned observations.One of:
ASC,DESC. - Limit
limitnumber - How many results to return.From 1 to 1000.
- Offset
offsetnumber - How many records to skip.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{
"close": 1,
"date": "example",
"exchange": "example",
"high": 1,
"low": 1,
"open": 1,
"symbol": "example",
"volume": 1
}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}List ETF holdings
Read the reported holdings of an exchange-traded fund.
Inputs
- Date From
date_fromdate - Filter results from a specific start date. [Format: YYYY-MM-DD]
- Date To
date_todate - Filter results up to a specific end date. [Format: YYYY-MM-DD]
- Limit
limitnumber - Specify a limit of results to return. Default value is 100.From 1 to 1000.
- Offset
offsetnumber - Specify an offset for pagination. Default offset value is 0.At least 0.
- Ticker
tickertextRequired - ETF ticker symbol.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"basics": {
"cik": "example",
"file_number": "example",
"fund_name": "example",
"reg_lei": "example"
},
"output": {
"attributes": {
"date_report_period": "example",
"end_report_period": "example",
"final_filing": true,
"isin": "example",
"series_id": "example",
"series_lei": "example",
"series_name": "example",
"ticker": "example"
},
"holdings": [
{
"investment_security": {
"asset_category": {},
"balance": {},
"cash_collateral": {},
"currency": {},
"cusip": {},
"fair_value_level": {},
"invested_country": {},
"isin": {},
"issuer_category": {},
"lei": {},
"loan_by_fund": {},
"name": {},
"non_cash_collateral": {},
"payoff_profile": {},
"percent_value": {},
"restricted_sec": {},
"title": {},
"units": {},
"value_usd": {}
}
}
],
"signature": {
"date_signed": "example",
"name_of_applicant": "example",
"signature": "example",
"signer_name": "example",
"title": "example"
}
}
}
}List exchange-traded funds
Find exchange-traded funds and filter by ticker or observation date.
Inputs
- Date From
date_fromdate - Filter results from a specific start date. [Format: YYYY-MM-DD]
- Date To
date_todate - Filter results up to a specific end date. [Format: YYYY-MM-DD]
- Limit
limitnumber - Specify a limit of results to return. Default value is 100.From 1 to 1000.
- Offset
offsetnumber - Specify an offset for pagination. Default offset value is 0.At least 0.
- Ticker
tickertext - ETF ticker symbol.
- Status
statustext - Filter by ETF status.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{
"ticker": "example"
}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}List exchanges
Search the trading exchanges covered by Marketstack.
Inputs
- Search
searchtext - Part of the exchange name.
- Limit
limitnumber - How many results to return.From 1 to 1000.
- Offset
offsetnumber - How many records to skip.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}List government bonds
Read the government bond markets covered by Marketstack.
Inputs
- Limit
limitnumber - Specify a limit of results to return. Default value is 100.From 1 to 1000.
- Offset
offsetnumber - Specify an offset for pagination. Default offset value is 0.At least 0.
- Country
countrytext - Filter bonds by country.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{
"country": "example"
}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}List intraday prices
Read historical prices within the trading day. This uses a plan with intraday access.
Inputs
- Symbols
symbolslistRequired - One or more ticker symbols, such as AAPL or MSFT.
- Interval
intervaltext - Time between observations.One of:
1min,5min,10min,15min,30min,1hour,3hour,6hour,12hour,24hour. - Start Date
start_datedate - The first trading date to include.
- End Date
end_datedate - The last trading date to include.
- Sort
sorttext - The order of the returned observations.One of:
ASC,DESC. - Limit
limitnumber - How many results to return.From 1 to 1000.
- Offset
offsetnumber - How many records to skip.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}List market indices
Read the market indices tracked by Marketstack.
Inputs
- Limit
limitnumber - Specify a limit of results to return. Default value is 100.From 1 to 1000.
- Offset
offsetnumber - Specify an offset for pagination. Default offset value is 0.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{
"benchmark": "example"
}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}List stock splits
Read historical split records for the selected symbols.
Inputs
- Symbols
symbolslistRequired - One or more ticker symbols, such as AAPL or MSFT.
- Start Date
start_datedate - The first trading date to include.
- End Date
end_datedate - The last trading date to include.
- Sort
sorttext - The order of the returned observations.One of:
ASC,DESC. - Limit
limitnumber - How many results to return.From 1 to 1000.
- Offset
offsetnumber - How many records to skip.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}List tickers
Search the stock symbols covered by Marketstack.
Inputs
- Search
searchtext - Part of the ticker or company name.
- Limit
limitnumber - How many results to return.From 1 to 1000.
- Offset
offsetnumber - How many records to skip.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}List tickers for an exchange
Read the stock symbols traded on a selected exchange.
Inputs
- Mic
mictextRequired - Market Identifier Code (MIC) of the stock exchange.
- Search
searchtext - Use this parameter to get autocomplete suggestions by specifying a search term.
- Limit
limitnumber - Specify a limit of results to return. Default value is 100.From 1 to 1000.
- Offset
offsetnumber - Specify an offset for pagination. Default offset value is 0.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": {
"acronym": "example",
"city": "example",
"comments": "example",
"country": "example",
"country_code": "example",
"date_creation": "example",
"date_expiry": "example",
"date_last_update": "example",
"date_last_validation": "example",
"exchange_lei": "example",
"exchange_status": "example",
"legal_entity_name": "example",
"market_category_code": "example",
"mic": "example",
"name": "example",
"operating_mic": "example",
"oprt_sgmt": "example",
"tickers": [
{
"has_eod": {},
"has_intraday": {},
"name": {},
"symbol": {}
}
],
"website": "example"
},
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}List time zones
Read the time zone reference data.
Inputs
- Limit
limitnumber - How many results to return.From 1 to 1000.
- Offset
offsetnumber - How many records to skip.At least 0.
Outputs
dataobject- The response from Marketstack.
Example output
{
"data": {
"data": [
{}
],
"pagination": {
"count": 1,
"limit": 1,
"offset": 1,
"total": 1
}
}
}