End of Day Index Prices By Identifier

End of Day Index Prices By Identifier Ruby API Documentation

API Class:
Intrinio::IndexApi
Instance Method:
get_eod_index_price_by_id()

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
index_api = Intrinio::IndexApi.new
identifier = "SPX"
opts = {
page_size: 100,
start_date: nil,
end_date: nil
}
result = index_api.get_eod_index_price_by_id(identifier, opts)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringThe index symbol 
page_sizeIntegerThe number of results to return[optional] [default to 100]  
start_dateDateLimit prices to those on or after this date[optional]  
end_dateDateLimit prices to those on or before this date[optional]  

Return Type

object
Intrinio::ApiResponseEodIndexPrices

Properties

NameTypeDescription
pricesArray 
indexApiResponseIndexThe index  
next_pageStringThe token required to request the next page of the data. If null, no further results are available.  
object
Intrinio::EodIndexPriceSummary

Properties

NameTypeDescription
closeFloatThe close price  
openFloatThe open price  
highFloatThe high price  
lowFloatThe low price  
volumeIntegerThe volume  
dateDateThe date of the pricing data.  
object
Intrinio::ApiResponseIndex

Properties

NameTypeDescription
symbolStringThe index symbol  
nameStringThe index name