Intraday Stock Prices for Security

Intraday Stock Prices for Security Ruby API Documentation

Deprecated. Return intraday stock prices for the Security with the given `identifier`

API Class:
Intrinio::SecurityApi
Instance Method:
get_security_intraday_prices()

Stock Price Code Example

Use my API Key
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
security_api = Intrinio::SecurityApi.new
identifier = "AAPL"
opts = {
source: nil,
start_date: Date.parse("2018-01-01"),
start_time: nil,
end_date: Date.parse("2019-01-01"),
end_time: nil,
page_size: 100,
next_page: nil
}
result = security_api.get_security_intraday_prices(identifier, opts)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
sourceStringReturn intraday prices from the specified data source[optional]  
start_dateDateReturn intraday prices starting at the specified date[optional]  
start_timeStringReturn intraday prices starting at the specified time on the `start_date` (24-hour in ‘hh:mm' format, UTC timezone)[optional]  
end_dateDateReturn intraday prices stopping at the specified date[optional]  
end_timeStringReturn intraday prices stopping at the specified time on the `end_date` (24-hour in ‘hh:mm' format, UTC timezone)[optional]  
page_sizeIntegerThe number of results to return[optional] [default to 100]  
next_pageStringGets the next page of data from a previous API call[optional]  

Return Type

object
Intrinio::ApiResponseSecurityIntradayPrices

Properties

NameTypeDescription
intraday_pricesArrayThe intraday stock prices for the Security  
securitySecuritySummaryThe Security resolved from the given identifier  
sourceStringThe source of the data  
next_pageStringThe token required to request the next page of the data. If null, no further results are available.  
object
Intrinio::IntradayStockPrice

Properties

NameTypeDescription
timeDateTimeThe timestamp that the `last_price` represents.  
last_priceFloatThe price of the last trade.  
ask_priceFloatThe price of the top ask order.  
ask_sizeFloatThe size of the top ask order.  
bid_priceFloatThe price of the top bid order.  
bid_sizeFloatThe size of the top bid order.  
volumeFloatThe number of shares exchanged during the trading day on the exchange.  
sourceStringThe source of the data.  
object
Intrinio::SecuritySummary

Properties

NameTypeDescription
idStringThe Intrinio ID for Security  
company_idStringThe Intrinio ID for the Company for which the Security is issued  
exchangeStringThe exchange's MIC  
exchange_micStringThe security's exchange MIC  
stock_exchange_idStringThe exchange's Intrinio ID  
nameStringThe name of the Security  
codeStringA 2-3 digit code classifying the Security (reference)  
currencyStringThe currency in which the Security is traded on the exchange  
tickerStringThe common/local ticker of the Security  
composite_tickerStringThe country-composite ticker of the Security  
figiStringThe OpenFIGI identifier  
composite_figiStringThe country-composite OpenFIGI identifier  
share_class_figiStringThe global-composite OpenFIGI identifier  
primary_listingBOOLEANIf true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange