Skip to content

Latest commit

 

History

History
164 lines (94 loc) · 3.91 KB

DataPointApi.md

File metadata and controls

164 lines (94 loc) · 3.91 KB

intrinio_sdk.DataPointApi

All URIs are relative to https://api-v2.intrinio.com

Method HTTP request Description
get_data_point_number GET /data_point/{identifier}/{tag}/number Data Point (Number)
get_data_point_text GET /data_point/{identifier}/{tag}/text Data Point (Text)

get_data_point_number

View Intrinio API Documentation

float get_data_point_number(identifier, tag)

Data Point (Number)

Returns a numeric value for the given tag and the entity with the given identifier

Example

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'
tag = 'marketcap'

response = intrinio.DataPointApi().get_data_point_number(identifier, tag)
print(response)
    
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict) 

Parameters

Name Type Description Notes
identifier str An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID)  
tag str An Intrinio data tag ID or code (<a href='https://data.intrinio.com/data-tags&#39;&gt;reference&lt;/a>)  

Return type

float

get_data_point_text

View Intrinio API Documentation

str get_data_point_text(identifier, tag)

Data Point (Text)

Returns a text value for the given tag for the Security with the given identifier

Example

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'
tag = 'ceo'

response = intrinio.DataPointApi().get_data_point_text(identifier, tag)
print(response)
    
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict) 

Parameters

Name Type Description Notes
identifier str An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID)  
tag str An Intrinio data tag ID or code (<a href='https://data.intrinio.com/data-tags&#39;&gt;reference&lt;/a>)  

Return type

str