Skip to content

Latest commit

 

History

History
94 lines (64 loc) · 3.2 KB

DataPointApi.md

File metadata and controls

94 lines (64 loc) · 3.2 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

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
from intrinio_sdk.rest import ApiException
from pprint import pprint

intrinio_sdk.ApiClient().configuration.api_key['api_key'] = 'YOUR_API_KEY'

data_point_api = intrinio_sdk.DataPointApi()

identifier = 'AAPL' # str | An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID)
tag = 'marketcap' # str | An Intrinio data tag ID or code-name

try:
    api_response = data_point_api.get_data_point_number(identifier, tag)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DataPointApi->get_data_point_number: %s\n" % e)

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-name

Return type

float

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_data_point_text

str get_data_point_text(identifier, tag)

Data Point (Text)

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

Example

from __future__ import print_function
import time
import intrinio_sdk
from intrinio_sdk.rest import ApiException
from pprint import pprint

intrinio_sdk.ApiClient().configuration.api_key['api_key'] = 'YOUR_API_KEY'

data_point_api = intrinio_sdk.DataPointApi()

identifier = 'AAPL' # str | An identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID)
tag = 'marketcap' # str | An Intrinio data tag ID or code-name

try:
    api_response = data_point_api.get_data_point_text(identifier, tag)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DataPointApi->get_data_point_text: %s\n" % e)

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-name

Return type

str

[Back to top] [Back to API list] [Back to Model list] [Back to README]