List Companies with Largest Dividend on NASDAQ + NYSE using Python + Massive
Find large-cap NASDAQ and NYSE companies with the largest dividends using Python and Massive.
In this tutorial, we are going to write a Python script that finds the companies with the largest dividends on the NYSE and NASDAQ. This is useful if you want to scan large-cap companies and build your own dividend stock list.
This tutorial assumes you have a basic understanding of programming and Python. If you just want the list of companies as of Nov 2025, scroll to the bottom of the page.
Step 1: Create a Massive account
The first step is signing up for a new Massive account. We are going to use the free tier for pulling the stock data.
Massive was previously Polygon.io. You can sign up at massive.com.
Step 2: Choose the exchanges
We are going to call the "All Tickers" endpoint, which takes exchange as a query parameter.
Massive uses Market Identifier Code (MIC) values according to ISO 10383. In plain English, XNAS is Nasdaq and XNYS is NYSE.
exchanges = ['XNAS', 'XNYS']
Step 3: Plan around the API limits
Massive has a limitation of 5 requests per minute, which is fairly slow. The code below will make 5 requests to process a single company.
This will not be an efficient way of finding these stocks because we will scan all stocks to disqualify them. A better approach would be starting with a seeded list.
Step 4: Scaffold the Python script
Start with the API key, exchange list, and function placeholders:
api_key = ''
exchanges = ['XNAS', 'XNYS']
def get_page_of_tickers(offset):
return []
def find_all_dividend_stocks_on_market():
return []
def main():
for exchange in exchanges:
has_more = True
while has_more:
pass
main()
Conclusion
You now have the starting structure for scanning NASDAQ and NYSE tickers with Python and Massive to find large-cap dividend stocks.