Skip to content

Latest commit

 

History

History
172 lines (96 loc) · 4.02 KB

DataPointApi.md

File metadata and controls

172 lines (96 loc) · 4.02 KB

intrinioSDK.DataPointApi

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

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

getDataPointNumber

View Intrinio API Documentation

'Number' getDataPointNumber(identifier, tag)

Data Point (Number)

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

Example

var intrinioSDK = require('intrinio-sdk');
intrinioSDK.ApiClient.instance.authentications['ApiKeyAuth'].apiKey = "YOUR_API_KEY";
intrinioSDK.ApiClient.instance.enableRetries = true;

var dataPoint = new intrinioSDK.DataPointApi();

var identifier = "AAPL";
var tag = "marketcap";


dataPoint.getDataPointNumber(identifier, tag).then(function(data) {
  data = JSON.stringify(data, null, 2)
  console.log(data);
}, function(error) {
  console.error(error);
});

Parameters

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

Return type

'Number'

getDataPointText

View Intrinio API Documentation

'String' getDataPointText(identifier, tag)

Data Point (Text)

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

Example

var intrinioSDK = require('intrinio-sdk');
intrinioSDK.ApiClient.instance.authentications['ApiKeyAuth'].apiKey = "YOUR_API_KEY";
intrinioSDK.ApiClient.instance.enableRetries = true;

var dataPoint = new intrinioSDK.DataPointApi();

var identifier = "AAPL";
var tag = "ceo";


dataPoint.getDataPointText(identifier, tag).then(function(data) {
  data = JSON.stringify(data, null, 2)
  console.log(data);
}, function(error) {
  console.error(error);
});

Parameters

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

Return type

'String'