Stock Prices by Security

Stock Prices by Security Python API Documentation

Return end-of-day stock prices for the Security with the given `identifier`

API Class:
SecurityApi
Instance Method:
get_security_stock_prices()

Stock Price Code Example

Use my API Key
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
identifier = 'AAPL'
start_date = '2018-01-01'
end_date = '2019-01-01'
frequency = 'daily'
page_size = 100
next_page = ''
response = intrinio.SecurityApi().get_security_stock_prices(identifier, start_date=start_date, end_date=end_date, frequency=frequency, page_size
  =page_size, next_page=next_page)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstrA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
start_datedateReturn prices on or after the date[optional]  
end_datedateReturn prices on or before the date[optional]  
frequencystrReturn stock prices in the given frequency[optional] [default to daily]  
page_sizeintThe number of results to return[optional] [default to 100]  
next_pagestrGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseSecurityStockPrices

Properties

NameTypeDescription
stock_priceslist[StockPriceSummary]The stock prices for the Security  
securitySecuritySummaryThe Security resolved from the given identifier  
next_pagestrThe token required to request the next page of the data. If null, no further results are available.  
object
StockPriceSummary

Properties

NameTypeDescription
datedateThe calendar date that the stock price represents. For non-daily stock prices, this represents the last day in the period (end of the week, month, quarter, year, etc)  
intraperiodboolIf True, the stock price represents an unfinished period (be it day, week, quarter, month, or year), meaning that the close price is the latest price available, not the official close price for the period  
frequencystrThe type of period that the stock price represents  
openfloatThe price at the beginning of the period  
highfloatThe highest price over the span of the period  
lowfloatThe lowest price over the span of the period  
closefloatThe price at the end of the period  
volumefloatThe number of shares exchanged during the period  
adj_openfloatThe price at the beginning of the period, adjusted for splits and dividends  
adj_highfloatThe highest price over the span of the period, adjusted for splits and dividends  
adj_lowfloatThe lowest price over the span of the period, adjusted for splits and dividends  
adj_closefloatThe price at the end of the period, adjusted for splits and dividends  
adj_volumefloatThe number of shares exchanged during the period, adjusted for splits and dividends  
factorfloatThe factor by which to multiply stock prices before this date, in order to calculate historically-adjusted stock prices.  
split_ratiofloatThe ratio of the stock split, if a stock split occurred.  
dividendfloatThe dividend amount, if a dividend was paid.  
changefloatThe difference in price from the last price for this frequency  
percent_changefloatThe percent difference in price from the last price for this frequency  
fifty_two_week_highfloatThe 52 week high price (daily only)  
fifty_two_week_lowfloatThe 52 week low price (daily only)  
object
SecuritySummary

Properties

NameTypeDescription
idstrThe Intrinio ID for Security  
company_idstrThe Intrinio ID for the Company for which the Security is issued  
exchangestrThe exchange's MIC  
exchange_micstrThe security's exchange MIC  
stock_exchange_idstrThe exchange's Intrinio ID  
namestrThe name of the Security  
codestrA 2-3 digit code classifying the Security (reference)  
currencystrThe currency in which the Security is traded on the exchange  
tickerstrThe common/local ticker of the Security  
composite_tickerstrThe country-composite ticker of the Security  
figistrThe OpenFIGI identifier  
composite_figistrThe country-composite OpenFIGI identifier  
share_class_figistrThe global-composite OpenFIGI identifier  
primary_listingboolIf True, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange