#!/usr/bin/env python # coding: utf-8 # In[1]: import pynasdaq as nas; # # Stock # #### Current price of a stock # In[2]: nas.currentPrice("AMZN") # #### Stock summary quote # In[3]: nas.stockSummaryQuote("IBM") # #### Historical stock prices # In[4]: nas.historicalStockQuote('ibm',fromdate='2019-08-16',todate='2019-09-16') # #### Batch quotes # In[5]: nas.batchQuotes(['AAPL','GOOG',"FB","IBM"]) # # Dividend # #### Dividend calendar for a given date # In[6]: nas.dividendCalendar(date="2019-09-17").head() # #### Dividend history for a company given the symbol # In[7]: nas.dividendHistory("AAPL").head()