End of Day Index Prices By Identifier

End of Day Index Prices By Identifier Python API Documentation

API Class:
IndexApi
Instance Method:
get_eod_index_price_by_id()

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 = 'SPX'
page_size = 100
start_date = ''
end_date = ''
response = intrinio.IndexApi().get_eod_index_price_by_id(identifier, page_size=page_size, start_date=start_date, end_date=end_date)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstrThe index symbol 
page_sizeintThe 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
ApiResponseEodIndexPrices

Properties

NameTypeDescription
priceslist[EodIndexPriceSummary] 
indexApiResponseIndexThe index  
next_pagestrThe token required to request the next page of the data. If null, no further results are available.  
object
EodIndexPriceSummary

Properties

NameTypeDescription
closefloatThe close price  
openfloatThe open price  
highfloatThe high price  
lowfloatThe low price  
volumeintThe volume  
datedateThe date of the pricing data.  
object
ApiResponseIndex

Properties

NameTypeDescription
symbolstrThe index symbol  
namestrThe index name