Marketstack

App · 20 actions

Read historical and intraday prices, dividends, splits and exchange data.

Actions

ActionWhat it does
Get a real-time stock priceRead the latest real-time price for a stock.
Get a stock exchangeRead the details for a stock exchange by its market identifier code.
Get daily prices for a dateRead stock prices for a particular trading date.
Get intraday prices for a dateRead prices within a selected trading day.
Get latest end-of-day pricesRead the most recent daily prices for one or more symbols.
Get latest intraday pricesRead the latest intraday prices.
Get ticker informationRead the company and exchange details for a stock ticker.
List currenciesRead the currency reference data.
List dividendsRead historical dividend records for the selected symbols.
List end-of-day pricesRead historical daily stock prices for one or more symbols.
List ETF holdingsRead the reported holdings of an exchange-traded fund.
List exchange-traded fundsFind exchange-traded funds and filter by ticker or observation date.
List exchangesSearch the trading exchanges covered by Marketstack.
List government bondsRead the government bond markets covered by Marketstack.
List intraday pricesRead historical prices within the trading day.
List market indicesRead the market indices tracked by Marketstack.
List stock splitsRead historical split records for the selected symbols.
List tickersSearch the stock symbols covered by Marketstack.
List tickers for an exchangeRead the stock symbols traded on a selected exchange.
List time zonesRead 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

TickertickertextRequired
Stock ticker symbol, e.g. AAPL.
Exchangeexchangetext
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

MicmictextRequired
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

SymbolssymbolslistRequired
One or more ticker symbols, such as AAPL or MSFT.
Exchangeexchangetext
Filter results by stock exchange, identified by its MIC. Example: XNAS
Sortsorttext
Sort order of the results by date.One of: DESC, ASC, desc, asc.
Limitlimitnumber
Specify a limit of results to return. Default value is 100.From 1 to 1000.
Offsetoffsetnumber
Specify an offset for pagination. Default offset value is 0.At least 0.
DatedatedateRequired
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

SymbolssymbolslistRequired
One or more ticker symbols, such as AAPL or MSFT.
Exchangeexchangetext
Filter results by stock exchange, identified by its MIC. Example: XNAS
Intervalintervaltext
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 Hoursafter_hourstrue/false
Include after-hours data in intraday results.
Sortsorttext
Sort order of the results by date.One of: DESC, ASC, desc, asc.
Limitlimitnumber
Specify a limit of results to return. Default value is 100.From 1 to 1000.
Offsetoffsetnumber
Specify an offset for pagination. Default offset value is 0.At least 0.
DatedatedateRequired
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

SymbolssymbolslistRequired
One or more ticker symbols, such as AAPL or MSFT.
Limitlimitnumber
How many results to return.From 1 to 1000.
Offsetoffsetnumber
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

SymbolssymbolslistRequired
One or more ticker symbols, such as AAPL or MSFT.
Limitlimitnumber
How many results to return.From 1 to 1000.
Offsetoffsetnumber
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

TickertickertextRequired
The ticker symbol, such as AAPL.

Outputs

dataobject
The response from Marketstack.
Example output
{
  "data": {}
}

List currencies

Read the currency reference data.

Inputs

Limitlimitnumber
How many results to return.From 1 to 1000.
Offsetoffsetnumber
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

SymbolssymbolslistRequired
One or more ticker symbols, such as AAPL or MSFT.
Start Datestart_datedate
The first trading date to include.
End Dateend_datedate
The last trading date to include.
Sortsorttext
The order of the returned observations.One of: ASC, DESC.
Limitlimitnumber
How many results to return.From 1 to 1000.
Offsetoffsetnumber
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

SymbolssymbolslistRequired
One or more ticker symbols, such as AAPL or MSFT.
Start Datestart_datedate
The first trading date to include.
End Dateend_datedate
The last trading date to include.
Sortsorttext
The order of the returned observations.One of: ASC, DESC.
Limitlimitnumber
How many results to return.From 1 to 1000.
Offsetoffsetnumber
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 Fromdate_fromdate
Filter results from a specific start date. [Format: YYYY-MM-DD]
Date Todate_todate
Filter results up to a specific end date. [Format: YYYY-MM-DD]
Limitlimitnumber
Specify a limit of results to return. Default value is 100.From 1 to 1000.
Offsetoffsetnumber
Specify an offset for pagination. Default offset value is 0.At least 0.
TickertickertextRequired
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 Fromdate_fromdate
Filter results from a specific start date. [Format: YYYY-MM-DD]
Date Todate_todate
Filter results up to a specific end date. [Format: YYYY-MM-DD]
Limitlimitnumber
Specify a limit of results to return. Default value is 100.From 1 to 1000.
Offsetoffsetnumber
Specify an offset for pagination. Default offset value is 0.At least 0.
Tickertickertext
ETF ticker symbol.
Statusstatustext
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

Searchsearchtext
Part of the exchange name.
Limitlimitnumber
How many results to return.From 1 to 1000.
Offsetoffsetnumber
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

Limitlimitnumber
Specify a limit of results to return. Default value is 100.From 1 to 1000.
Offsetoffsetnumber
Specify an offset for pagination. Default offset value is 0.At least 0.
Countrycountrytext
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

SymbolssymbolslistRequired
One or more ticker symbols, such as AAPL or MSFT.
Intervalintervaltext
Time between observations.One of: 1min, 5min, 10min, 15min, 30min, 1hour, 3hour, 6hour, 12hour, 24hour.
Start Datestart_datedate
The first trading date to include.
End Dateend_datedate
The last trading date to include.
Sortsorttext
The order of the returned observations.One of: ASC, DESC.
Limitlimitnumber
How many results to return.From 1 to 1000.
Offsetoffsetnumber
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

Limitlimitnumber
Specify a limit of results to return. Default value is 100.From 1 to 1000.
Offsetoffsetnumber
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

SymbolssymbolslistRequired
One or more ticker symbols, such as AAPL or MSFT.
Start Datestart_datedate
The first trading date to include.
End Dateend_datedate
The last trading date to include.
Sortsorttext
The order of the returned observations.One of: ASC, DESC.
Limitlimitnumber
How many results to return.From 1 to 1000.
Offsetoffsetnumber
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

Searchsearchtext
Part of the ticker or company name.
Limitlimitnumber
How many results to return.From 1 to 1000.
Offsetoffsetnumber
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

MicmictextRequired
Market Identifier Code (MIC) of the stock exchange.
Searchsearchtext
Use this parameter to get autocomplete suggestions by specifying a search term.
Limitlimitnumber
Specify a limit of results to return. Default value is 100.From 1 to 1000.
Offsetoffsetnumber
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

Limitlimitnumber
How many results to return.From 1 to 1000.
Offsetoffsetnumber
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
    }
  }
}

On this page