# Massive

> Get market data from Massive (formerly Polygon.io): stock, crypto and forex price bars, a day's open and close, moving averages, RSI and MACD, company details, news, dividends, splits, short interest, options contracts, Treasury yields, and whether the markets are open.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/massive

## Actions

### Get a market's daily bars

Get one day's bar for every ticker in a market. A day holds thousands of tickers, so it returns the first ones, A to Z, and says how many there were in all.

**Inputs**

- Day (`date`, date, required): The trading day.
- Market (`market`, text): Which market. Defaults to US stocks. One of: `stocks` (US stocks (default)), `crypto`, `fx` (Forex).
- Adjust for splits (`adjusted`, true/false): Adjust prices for stock splits. On by default. Default: `true`.
- How many (`limit`, number): How many to return, 1 to 1000. Defaults to 100. From 1 to 1000.

**Outputs**

- `bars` (list): The first bars, A to Z
- `count` (number): How many records are returned
- `date` (text): The day
- `market` (text): The market
- `total` (number): How many tickers traded that day in all

**Example output**

```json
{
  "bars": [
    {
      "close": 356.27,
      "high": 360.83,
      "low": 355.75,
      "open": 357.96,
      "ticker": "AAPL",
      "timestamp": "2026-11-13T05:00:00Z",
      "transactions": 702541,
      "volume": 40027467,
      "vwap": 357.9071
    }
  ],
  "count": 1,
  "date": "2026-11-13",
  "market": "stocks",
  "total": 12564
}
```

### Get daily open and close

Get one day's open, high, low, close and volume for a ticker, with its pre-market and after-hours prices.

**Inputs**

- Ticker (`ticker`, text, required): The ticker, such as AAPL. Crypto is X:BTCUSD and forex is C:EURUSD; use 'Search tickers' to find one from a name.
- Day (`date`, date, required): The trading day. Weekends and holidays have none.
- Adjust for splits (`adjusted`, true/false): Adjust prices for stock splits. On by default. Default: `true`.

**Outputs**

- `after_hours` (number): The after-hours closing price
- `close` (number): The closing price
- `date` (text): The day, YYYY-MM-DD
- `high` (number): The highest price
- `low` (number): The lowest price
- `open` (number): The opening price
- `pre_market` (number): The pre-market opening price
- `ticker` (text): The ticker
- `volume` (number): The trading volume

**Example output**

```json
{
  "after_hours": 355.4,
  "close": 356.27,
  "date": "2026-11-13",
  "high": 360.83,
  "low": 355.75,
  "open": 357.96,
  "pre_market": 356,
  "ticker": "AAPL",
  "volume": 40027467
}
```

### Get market status

Find out whether the US exchanges, crypto and forex are open right now.

**Inputs**: None.

**Outputs**

- `after_hours` (true/false): True during after-hours trading
- `crypto` (text): Crypto: open or closed
- `early_hours` (true/false): True during early (pre-market) trading hours
- `fx` (text): Forex: open or closed
- `market` (text): open, closed, extended-hours or early-hours
- `nasdaq` (text): Nasdaq: open, closed or extended-hours
- `nyse` (text): NYSE: open, closed or extended-hours
- `otc` (text): OTC: open, closed or extended-hours
- `server_time` (text): Massive's clock, as an ISO 8601 time

**Example output**

```json
{
  "after_hours": false,
  "crypto": "open",
  "early_hours": false,
  "fx": "open",
  "market": "open",
  "nasdaq": "open",
  "nyse": "open",
  "otc": "open",
  "server_time": "2026-11-17T09:30:00-05:00"
}
```

### Get previous close

Get the previous trading day's open, high, low, close and volume for a ticker.

**Inputs**

- Ticker (`ticker`, text, required): The ticker, such as AAPL. Crypto is X:BTCUSD and forex is C:EURUSD; use 'Search tickers' to find one from a name.
- Adjust for splits (`adjusted`, true/false): Adjust prices for stock splits. On by default. Default: `true`.

**Outputs**

- `close` (number): The last price in the bar
- `high` (number): The highest price in the bar
- `low` (number): The lowest price in the bar
- `open` (number): The first price in the bar
- `ticker` (text): The ticker
- `timestamp` (text): The start of the bar, as an ISO 8601 UTC time
- `transactions` (number): How many trades made up the bar
- `volume` (number): The trading volume in the bar
- `vwap` (number): The volume-weighted average price

**Example output**

```json
{
  "close": 356.27,
  "high": 360.83,
  "low": 355.75,
  "open": 357.96,
  "ticker": "AAPL",
  "timestamp": "2026-11-13T05:00:00Z",
  "transactions": 702541,
  "volume": 40027467,
  "vwap": 357.9071
}
```

### Get price bars

Get open, high, low, close, volume and VWAP bars for a ticker between two dates, by minute, hour, day, week, month, quarter or year. Works for stocks, crypto and forex.

**Inputs**

- Ticker (`ticker`, text, required): The ticker, such as AAPL. Crypto is X:BTCUSD and forex is C:EURUSD; use 'Search tickers' to find one from a name.
- Bar size (`multiplier`, number): How many time spans make one bar: 1 with Day gives daily bars, 5 with Minute gives 5-minute bars. Defaults to 1. From 1 to 1000.
- Time span (`timespan`, text): The unit of a bar. Defaults to day. One of: `minute`, `hour`, `day` (Day (default)), `week`, `month`, `quarter`, `year`.
- From (`from_date`, date, required): The first day to include.
- To (`to_date`, date, required): The last day to include.
- Adjust for splits (`adjusted`, true/false): Adjust prices for stock splits. On by default. Default: `true`.
- Order (`sort`, text): Sort by time. Defaults to oldest first. One of: `asc` (Oldest first (default)), `desc` (Newest first).
- How many (`limit`, number): How many to return, 1 to 50000. Defaults to 5000. From 1 to 50000.

**Outputs**

- `adjusted` (true/false): Whether prices are split-adjusted
- `bars` (list): The bars
- `count` (number): How many records are returned
- `ticker` (text): The ticker

**Example output**

```json
{
  "adjusted": true,
  "bars": [
    {
      "close": 356.27,
      "high": 360.83,
      "low": 355.75,
      "open": 357.96,
      "timestamp": "2026-11-13T05:00:00Z",
      "transactions": 702541,
      "volume": 40027467,
      "vwap": 357.9071
    }
  ],
  "count": 1,
  "ticker": "AAPL"
}
```

### Get related companies

Get the tickers Massive finds related to one, from news and returns.

**Inputs**

- Ticker (`ticker`, text, required): The ticker, such as AAPL. Crypto is X:BTCUSD and forex is C:EURUSD; use 'Search tickers' to find one from a name.

**Outputs**

- `count` (number): How many records are returned
- `related_tickers` (list): The related tickers
- `ticker` (text): The ticker asked about

**Example output**

```json
{
  "count": 5,
  "related_tickers": [
    "MSFT",
    "GOOGL",
    "AMZN",
    "NVDA",
    "TSLA"
  ],
  "ticker": "AAPL"
}
```

### Get short interest

Get how many of a stock's shares were sold short at each twice-monthly settlement.

**Inputs**

- Ticker (`ticker`, text, required): The stock, such as AAPL.
- Settled from (`settled_from`, date): On or after this day.
- Settled to (`settled_to`, date): On or before this day.
- Order (`order`, text): Which end to start from. Defaults to newest first. One of: `desc` (Newest first (default)), `asc` (Oldest first).
- How many (`limit`, number): How many to return, 1 to 1000. Defaults to 10. From 1 to 1000.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many records this page holds
- `next_cursor` (text): Give this as 'Next page cursor' to get the next page; empty on the last page
- `records` (list): The short interest records

**Example output**

```json
{
  "count": 1,
  "next_cursor": "",
  "records": [
    {
      "avg_daily_volume": 50000000,
      "days_to_cover": 2.2,
      "settlement_date": "2026-10-31",
      "short_interest": 110000000,
      "ticker": "AAPL"
    }
  ]
}
```

### Get short volume

Get how many of a stock's shares were sold short on each trading day.

**Inputs**

- Ticker (`ticker`, text, required): The stock, such as AAPL.
- From (`date_from`, date): On or after this day.
- To (`date_to`, date): On or before this day.
- Order (`order`, text): Which end to start from. Defaults to newest first. One of: `desc` (Newest first (default)), `asc` (Oldest first).
- How many (`limit`, number): How many to return, 1 to 1000. Defaults to 10. From 1 to 1000.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many records this page holds
- `next_cursor` (text): Give this as 'Next page cursor' to get the next page; empty on the last page
- `records` (list): The short volume records

**Example output**

```json
{
  "count": 1,
  "next_cursor": "",
  "records": [
    {
      "date": "2026-11-13",
      "exempt_volume": 67840,
      "non_exempt_volume": 5615873,
      "short_volume": 5683713,
      "short_volume_ratio": 34.95,
      "ticker": "AAPL",
      "total_volume": 16264662
    }
  ]
}
```

### Get technical indicator

Get a moving average (SMA or EMA), the relative strength index (RSI) or MACD for a ticker, computed from its price bars.

**Inputs**

- Indicator (`indicator`, text, required): Which indicator to compute. One of: `sma` (Simple moving average (SMA)), `ema` (Exponential moving average (EMA)), `rsi` (Relative strength index (RSI)), `macd`.
- Ticker (`ticker`, text, required): The ticker, such as AAPL. Crypto is X:BTCUSD and forex is C:EURUSD; use 'Search tickers' to find one from a name.
- Time span (`timespan`, text): The bar size it is computed over. Defaults to day. One of: `minute`, `hour`, `day` (Day (default)), `week`, `month`, `quarter`, `year`.
- Window (`window`, number): How many bars to average (SMA, EMA) or measure (RSI). Massive uses 50 when empty. Not used by MACD. At least 1.
- Price (`series_type`, text): Which price of each bar to use. Defaults to close. One of: `close` (Close (default)), `open`, `high`, `low`.
- MACD short window (`short_window`, number): MACD only: the short EMA's bars. Defaults to 12. At least 1.
- MACD long window (`long_window`, number): MACD only: the long EMA's bars. Defaults to 26. At least 1.
- MACD signal window (`signal_window`, number): MACD only: the signal line's bars. Defaults to 9. At least 1.
- From (`from_date`, date): Only values on or after this day.
- To (`to_date`, date): Only values on or before this day.
- Adjust for splits (`adjusted`, true/false): Adjust prices for stock splits. On by default. Default: `true`.
- Order (`order`, text): Which end to start from. Defaults to newest first. One of: `desc` (Newest first (default)), `asc` (Oldest first).
- How many (`limit`, number): How many to return, 1 to 5000. Defaults to 10. From 1 to 5000.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many records are returned
- `indicator` (text): The indicator computed
- `next_cursor` (text): The cursor for the next page; empty on the last
- `ticker` (text): The ticker
- `values` (list): The values

**Example output**

```json
{
  "count": 2,
  "indicator": "macd",
  "next_cursor": "",
  "ticker": "AAPL",
  "values": [
    {
      "histogram": 0.7041,
      "signal": 3.4527,
      "timestamp": "2026-11-16T05:00:00Z",
      "value": 4.1568
    },
    {
      "histogram": 0.8942,
      "signal": 3.2767,
      "timestamp": "2026-11-13T05:00:00Z",
      "value": 4.1709
    }
  ]
}
```

### Get ticker overview

Get a company's details: name, exchange, description, website, market cap, employees, industry, address and logo.

**Inputs**

- Ticker (`ticker`, text, required): The ticker, such as AAPL. Crypto is X:BTCUSD and forex is C:EURUSD; use 'Search tickers' to find one from a name.
- As of (`date`, date): Show the company as it was on this day. Defaults to the latest.

**Outputs**

- `overview` (object): The company's details

**Example output**

```json
{
  "overview": {
    "active": true,
    "address": {
      "address1": "ONE APPLE PARK WAY",
      "city": "CUPERTINO",
      "postal_code": "95014",
      "state": "CA"
    },
    "branding": {
      "icon_url": "https://api.massive.com/v1/reference/company-branding/icon.png",
      "logo_url": "https://api.massive.com/v1/reference/company-branding/logo.svg"
    },
    "cik": "0000320193",
    "composite_figi": "BBG000B9XRY4",
    "currency_name": "usd",
    "description": "Apple designs, manufactures and markets smartphones, personal computers, tablets, wearables and accessories.",
    "homepage_url": "https://www.apple.com",
    "last_updated_utc": "2026-11-17T07:10:15.800559102Z",
    "list_date": "1980-12-12",
    "locale": "us",
    "market": "stocks",
    "market_cap": 5126663165960,
    "name": "Apple Inc.",
    "phone_number": "(408) 996-1010",
    "primary_exchange": "XNAS",
    "round_lot": 100,
    "share_class_figi": "BBG001S5N8V8",
    "share_class_shares_outstanding": 14697926000,
    "sic_code": "3571",
    "sic_description": "ELECTRONIC COMPUTERS",
    "ticker": "AAPL",
    "ticker_root": "AAPL",
    "total_employees": 166000,
    "type": "CS",
    "weighted_shares_outstanding": 14697926000
  }
}
```

### List dividends

List dividends with their ex-dividend, record and pay dates, for one ticker or all.

**Inputs**

- Ticker (`ticker`, text): Only this ticker's dividends. Leave empty for every ticker.
- Ex-dividend from (`ex_dividend_from`, date): On or after this day.
- Ex-dividend to (`ex_dividend_to`, date): On or before this day.
- Type (`dividend_type`, text): Only this kind of dividend. One of: `CD` (Regular (cash dividend)), `SC` (Special cash), `LT` (Long-term capital gain), `ST` (Short-term capital gain).
- Order (`order`, text): Which end to start from. Defaults to newest first. One of: `desc` (Newest first (default)), `asc` (Oldest first).
- How many (`limit`, number): How many to return, 1 to 1000. Defaults to 10. From 1 to 1000.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many records this page holds
- `dividends` (list): The dividends
- `next_cursor` (text): Give this as 'Next page cursor' to get the next page; empty on the last page

**Example output**

```json
{
  "count": 1,
  "dividends": [
    {
      "cash_amount": 0.27,
      "currency": "USD",
      "declaration_date": "2026-11-02",
      "dividend_type": "CD",
      "ex_dividend_date": "2026-11-12",
      "frequency": 4,
      "id": "Efc26ecd4b3dcd7215ea595f126f9194832a57cb2e42487777b7527211617842c",
      "pay_date": "2026-11-16",
      "record_date": "2026-11-12",
      "ticker": "AAPL"
    }
  ],
  "next_cursor": ""
}
```

### List exchanges

List the exchanges Massive covers, with their MIC codes.

**Inputs**

- Asset class (`asset_class`, text): Only exchanges for this kind of asset. One of: `stocks`, `options`, `crypto`, `fx` (Forex).
- Region (`locale`, text): Only exchanges in this region. One of: `us` (United States), `global`.

**Outputs**

- `count` (number): How many records are returned
- `exchanges` (list): The exchanges

**Example output**

```json
{
  "count": 1,
  "exchanges": [
    {
      "acronym": "AMEX",
      "asset_class": "stocks",
      "id": 1,
      "locale": "us",
      "mic": "XASE",
      "name": "NYSE American, LLC",
      "operating_mic": "XNYS",
      "type": "exchange",
      "url": "https://www.nyse.com/markets/nyse-american"
    }
  ]
}
```

### List market holidays

List the upcoming days the US exchanges are closed or close early.

**Inputs**: None.

**Outputs**

- `count` (number): How many records are returned
- `holidays` (list): The holidays

**Example output**

```json
{
  "count": 2,
  "holidays": [
    {
      "close": "",
      "date": "2026-11-26",
      "exchange": "NYSE",
      "name": "Thanksgiving",
      "open": "",
      "status": "closed"
    },
    {
      "close": "2026-11-27T18:00:00.000Z",
      "date": "2026-11-27",
      "exchange": "NYSE",
      "name": "Thanksgiving",
      "open": "2026-11-27T14:30:00.000Z",
      "status": "early-close"
    }
  ]
}
```

### List news

List recent news articles, about one ticker or about any.

**Inputs**

- Ticker (`ticker`, text): Only articles that mention this ticker. Leave empty for all news.
- Published from (`published_from`, date): On or after this day.
- Published to (`published_to`, date): On or before this day.
- Order (`order`, text): Which end to start from. Defaults to newest first. One of: `desc` (Newest first (default)), `asc` (Oldest first).
- How many (`limit`, number): How many to return, 1 to 1000. Defaults to 10. From 1 to 1000.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `articles` (list): The articles
- `count` (number): How many records this page holds
- `next_cursor` (text): Give this as 'Next page cursor' to get the next page; empty on the last page

**Example output**

```json
{
  "articles": [
    {
      "article_url": "https://www.fool.com/investing/2026/11/16/example/",
      "author": "Jo Bloggs",
      "description": "A look at why Apple's suppliers are up this week.",
      "id": "56511660cf8a2ae963d96c022af778a2f2ddb85cbbb0c8af75994dfa677e44f1",
      "image_url": "https://example.com/image.jpg",
      "keywords": [
        "apple",
        "iphone"
      ],
      "published_utc": "2026-11-16T13:30:00Z",
      "publisher_name": "The Motley Fool",
      "tickers": [
        "AAPL"
      ],
      "title": "Apple supplier shares rise on strong iPhone demand"
    }
  ],
  "count": 1,
  "next_cursor": ""
}
```

### List options contracts

List options contracts, optionally for one stock, of one type, with one expiry day or strike price. Active contracts only unless you ask for expired ones.

**Inputs**

- Stock (`underlying_ticker`, text): The stock the options are on, such as AAPL.
- Type (`contract_type`, text): Calls or puts. Both by default. One of: `call`, `put`.
- Expires on (`expiration_date`, date): Only contracts that expire on this day.
- Strike price (`strike_price`, number): Only contracts with exactly this strike price.
- Expired contracts (`expired`, true/false): List contracts that have expired instead of active ones. Default: `false`.
- Order (`order`, text): Sorted by ticker. Defaults to A to Z. One of: `asc` (Oldest first (default)), `desc` (Newest first).
- How many (`limit`, number): How many to return, 1 to 1000. Defaults to 10. From 1 to 1000.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `contracts` (list): The options contracts
- `count` (number): How many records this page holds
- `next_cursor` (text): Give this as 'Next page cursor' to get the next page; empty on the last page

**Example output**

```json
{
  "contracts": [
    {
      "cfi": "OCASPS",
      "contract_type": "call",
      "exercise_style": "american",
      "expiration_date": "2026-12-18",
      "primary_exchange": "BATO",
      "shares_per_contract": 100,
      "strike_price": 300,
      "ticker": "O:AAPL261218C00300000",
      "underlying_ticker": "AAPL"
    }
  ],
  "count": 1,
  "next_cursor": ""
}
```

### List stock splits

List stock splits with their ratios, for one ticker or all.

**Inputs**

- Ticker (`ticker`, text): Only this ticker's splits. Leave empty for every ticker.
- Split from (`execution_from`, date): On or after this day.
- Split to (`execution_to`, date): On or before this day.
- Order (`order`, text): Which end to start from. Defaults to newest first. One of: `desc` (Newest first (default)), `asc` (Oldest first).
- How many (`limit`, number): How many to return, 1 to 1000. Defaults to 10. From 1 to 1000.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many records this page holds
- `next_cursor` (text): Give this as 'Next page cursor' to get the next page; empty on the last page
- `splits` (list): The splits

**Example output**

```json
{
  "count": 1,
  "next_cursor": "",
  "splits": [
    {
      "execution_date": "2020-08-31",
      "id": "E88b8b2b6bafd665a61276b4909bf17d919f09bb163b687bbca10e035c3c74a3a",
      "split_from": 1,
      "split_to": 4,
      "ticker": "AAPL"
    }
  ]
}
```

### List ticker types

List the asset types a ticker can have, with the codes 'Search tickers' filters by.

**Inputs**: None.

**Outputs**

- `count` (number): How many records are returned
- `types` (list): The types

**Example output**

```json
{
  "count": 2,
  "types": [
    {
      "asset_class": "stocks",
      "code": "CS",
      "description": "Common Stock",
      "locale": "us"
    },
    {
      "asset_class": "stocks",
      "code": "ETF",
      "description": "Exchange Traded Fund",
      "locale": "us"
    }
  ]
}
```

### List Treasury yields

List US Treasury yields by day, from 1 month to 30 years, in percent.

**Inputs**

- From (`date_from`, date): On or after this day.
- To (`date_to`, date): On or before this day.
- Order (`order`, text): Which end to start from. Defaults to newest first. One of: `desc` (Newest first (default)), `asc` (Oldest first).
- How many (`limit`, number): How many to return, 1 to 1000. Defaults to 10. From 1 to 1000.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many records this page holds
- `next_cursor` (text): Give this as 'Next page cursor' to get the next page; empty on the last page
- `yields` (list): The yields

**Example output**

```json
{
  "count": 1,
  "next_cursor": "",
  "yields": [
    {
      "date": "2026-11-14",
      "yield_10_year": 4.1,
      "yield_1_month": 4.2,
      "yield_1_year": 3.9,
      "yield_20_year": 4.5,
      "yield_2_year": 3.8,
      "yield_30_year": 4.6,
      "yield_3_month": 4.1,
      "yield_3_year": 3.8,
      "yield_5_year": 3.9,
      "yield_6_month": 4.0,
      "yield_7_year": 4.0
    }
  ]
}
```

### Search tickers

Find tickers by company name or symbol, A to Z, optionally narrowed to a market, an asset type or an exchange. Use it to find the ticker the other actions take.

**Inputs**

- Search for (`search`, text): Part of a name or ticker, such as apple or AAPL.
- Market (`market`, text): Only tickers in this market. One of: `stocks`, `crypto`, `fx` (Forex), `otc`, `indices`.
- Type (`ticker_type`, text): Only tickers of this type, such as common stock.
- Exchange (`exchange`, text): Only tickers listed on this exchange.
- Active only (`active`, true/false): Leave out tickers no longer traded. On by default. Default: `true`.
- How many (`limit`, number): How many to return, 1 to 1000. Defaults to 100. From 1 to 1000.
- Next page cursor (`cursor`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many records this page holds
- `next_cursor` (text): Give this as 'Next page cursor' to get the next page; empty on the last page
- `tickers` (list): The matching tickers

**Example output**

```json
{
  "count": 1,
  "next_cursor": "YXA9JTVCJTIyQVBQTCUyMiU1RA",
  "tickers": [
    {
      "active": true,
      "cik": "0000320193",
      "composite_figi": "BBG000B9XRY4",
      "currency_name": "usd",
      "last_updated_utc": "2026-11-17T07:10:15.800559102Z",
      "locale": "us",
      "market": "stocks",
      "name": "Apple Inc.",
      "primary_exchange": "XNAS",
      "share_class_figi": "BBG001S5N8V8",
      "ticker": "AAPL",
      "type": "CS"
    }
  ]
}
```
