Realtime Index Price By Identifier

Realtime Index Price By Identifier Ruby API Documentation

API Class:
Intrinio::IndexApi
Instance Method:
get_realtime_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"
result = index_api.get_realtime_index_price_by_id(identifier)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringThe index symbol 

Return Type

object
Intrinio::RealtimeIndexPrice

Properties

NameTypeDescription
last_priceFloatThe last price  
last_timeDateTimeThe timestamp of the last price  
indexRealtimeIndexPriceIndex 
object
Intrinio::RealtimeIndexPriceIndex

Properties

NameTypeDescription
symbolStringThe current ticker of the index