0.10.9 • Published 7 months ago

@factset/sdk-stocksapifordigitalportals v0.10.9

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

FactSet

Stocks API for Digital Portals client library for JavaScript

npm Apache-2 license

The Stocks API features a screener to search for equity instruments based on stock-specific parameters.

Parameters for up to three fiscal years might now be used in one request; data is available for the ten most recent completed fiscal years. Estimates are available for the current and two consecutive fiscal years. Search criteria also include benchmark-related attributes (beta, correlation, outperformance), and ESG parameters, based on FactSet’s Truvalue ESG scores.

A separate endpoint returns the possible values and value ranges for the parameters that the endpoint /stock/notation/screener/search accepts Application developers can request the values and value ranges only for a restricted set of notations that match predefined parameters. This functionality may be used to pre-fill the values and value ranges of the parameters of the /stock/notation/screener/search endpoint so that performing a search always leads to a non-empty set of notations.

The endpoint /stock/notation/ranking/intraday/list ranks stocks notations using intraday figures, for example to build a gainers/losers list.

Additional endpoints include end-of-day benchmark key figures, and selected fundamentals (as of end of fiscal year and with daily updates).

This API is fully integrated with the corresponding Quotes API, allowing access to detailed price and performance information of instruments, as well as basic security identifier cross-reference. For direct access to price histories, please refer to the Time Series API for Digital Portals.

Similar criteria based screener APIs exist for fixed income instruments and securitized derivatives: See the Bonds API and the Securitized Derivatives API for details.

See also the recipe \"Enrich Your Digital Portal with Flexible Equity Screening\".

This TypeScript/JavaScript package is automatically generated by the OpenAPI Generator project:

  • API version: 2
  • Package version: 0.10.9
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Requirements

  • Node.js >= 14

Installation

npm

npm install @factset/sdk-utils @factset/sdk-stocksapifordigitalportals@0.10.9

yarn

yarn add @factset/sdk-utils @factset/sdk-stocksapifordigitalportals@0.10.9

Usage

  1. Generate authentication credentials.
  2. Setup Node.js environment

    1. Install and activate Node.js >=14. If you're using nvm:

      nvm install 16
      nvm use 16
    2. (optional) Install yarn.

  3. Install dependencies.

  4. Run the following:
const { ApiClient, CompanyApi } = require('@factset/sdk-stocksapifordigitalportals');
const { ConfidentialClient } = require('@factset/sdk-utils');

const apiClient = ApiClient.instance;

// Examples for each supported authentication method are below,
// choose one that satisfies your use case.

// (Preferred) OAuth 2.0: FactSetOAuth2
// See https://github.com/FactSet/enterprise-sdk#oauth-20
// for information on how to create the app-config.json file
//
// The confidential client instance should be reused in production environments.
// See https://github.com/FactSet/enterprise-sdk-utils-typescript#authentication
// for more information on using the ConfidentialClient class
apiClient.factsetOauth2Client = new ConfidentialClient('/path/to/app-config.json');

// Basic authentication: FactSetApiKey
// See https://github.com/FactSet/enterprise-sdk#api-key
// for information how to create an API key
// const FactSetApiKey = apiClient.authentications['FactSetApiKey'];
// FactSetApiKey.username = 'USERNAME-SERIAL';
// FactSetApiKey.password = 'API-KEY';

const apiInstance = new CompanyApi();
const id = "id_example"; // String | 
const opts = {
  'attributes': ["null"], // [String] | Limit the attributes returned in the response to the specified set.
  'language': "language_example" // String | 
};

// Call api endpoint
apiInstance.getCompanyBoardListByInstrument(id, opts).then(
  data => {

    console.log('API called successfully. Returned data:');
    console.log(data);
  },
  error => {
    console.error(error);
  },
);

Documentation for API Endpoints

All URIs are relative to https://api.factset.com/wealth/v1

ClassMethodHTTP requestDescription
stocksapifordigitalportals.CompanyApigetCompanyBoardListByInstrumentGET /company/board/listByInstrumentList of boards for a company, with their officers.
stocksapifordigitalportals.CompanyApigetCompanyBoardOfficerFunctionDeliveryListGET /company/board/officer/function/delivery/listList of officer functions as provided by a delivery.
stocksapifordigitalportals.CompanyApigetCompanyBoardTypeListGET /company/board/type/listList of company board types.
stocksapifordigitalportals.CompanyApipostCompanyEstimatesListByInstrumentPOST /company/estimates/listByInstrumentEstimates for selected figures for a stock.
stocksapifordigitalportals.CompanyApipostCompanyKeyItemsCurrentGetByInstrumentPOST /company/keyItems/current/getByInstrumentFundamentals for a stock with potentially daily updates.
stocksapifordigitalportals.CompanyApipostCompanyKeyItemsFiscalYearListByInstrumentPOST /company/keyItems/fiscalYear/listByInstrumentSelected fundamentals for a stock with values as of the end of a fiscal year.
stocksapifordigitalportals.StockApigetStockCompositeProfileGetByNotationGET /stock/composite/profile/getByNotationProvides key elements of a stock profile together with the profile of the issuing company.
stocksapifordigitalportals.StockApigetStockDividendTypeListGET /stock/dividend/type/listList of dividend types.
stocksapifordigitalportals.StockApigetStockNotationKeyFiguresBenchmarkMonth1GetGET /stock/notation/keyFigures/benchmark/month/1/getEnd-of-day (EOD) benchmark key figures of a stock for the time range of one month.
stocksapifordigitalportals.StockApigetStockNotationKeyFiguresBenchmarkMonth3GetGET /stock/notation/keyFigures/benchmark/month/3/getEnd-of-day (EOD) benchmark key figures of a stock for the time range of three months.
stocksapifordigitalportals.StockApigetStockNotationKeyFiguresBenchmarkMonth6GetGET /stock/notation/keyFigures/benchmark/month/6/getEnd-of-day (EOD) benchmark key figures of a stock for the time range of six months.
stocksapifordigitalportals.StockApigetStockNotationKeyFiguresBenchmarkWeek1GetGET /stock/notation/keyFigures/benchmark/week/1/getEnd-of-day (EOD) benchmark key figures of a stock for the time range of one week.
stocksapifordigitalportals.StockApigetStockNotationKeyFiguresBenchmarkYear1GetGET /stock/notation/keyFigures/benchmark/year/1/getEnd-of-day (EOD) benchmark key figures of a stock for the time range of one year.
stocksapifordigitalportals.StockApigetStockNotationKeyFiguresBenchmarkYear3GetGET /stock/notation/keyFigures/benchmark/year/3/getEnd-of-day (EOD) benchmark key figures of a stock for the time range of three years.
stocksapifordigitalportals.StockApigetStockNotationKeyFiguresBenchmarkYear5GetGET /stock/notation/keyFigures/benchmark/year/5/getEnd-of-day (EOD) benchmark key figures of a stock for the time range of five years.
stocksapifordigitalportals.StockApigetStockOwnerListGET /stock/owner/listList of owners for a specific type of a company's shares.
stocksapifordigitalportals.StockApigetStockRecommendationAggregateGetGET /stock/recommendation/aggregate/getTarget price and aggregated recommendations for a stock.
stocksapifordigitalportals.StockApigetStockRecommendationAggregateHistoryListGET /stock/recommendation/aggregate/history/listCurrent and historical trade recommendations and target prices for a stock.
stocksapifordigitalportals.StockApipostStockDividendListPOST /stock/dividend/listList of dividends for a stock.
stocksapifordigitalportals.StockApipostStockNotationRankingIntradayListPOST /stock/notation/ranking/intraday/listRanking of stocks' notations using intraday figures.
stocksapifordigitalportals.StockApipostStockNotationScreenerSearchPOST /stock/notation/screener/searchScreener for stocks' notations based on stock-specific parameters.
stocksapifordigitalportals.StockApipostStockNotationScreenerValueRangesGetPOST /stock/notation/screener/valueRanges/getPossible values and value ranges for the parameters used in the endpoint `/stock/notation/screener/search`.

Documentation for Models

0.10.9

7 months ago

0.10.8

8 months ago

0.10.7

11 months ago

0.10.4

1 year ago

0.10.6

1 year ago

0.9.4

2 years ago

0.9.3

2 years ago

0.10.1

2 years ago

0.10.3

2 years ago

0.10.0

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.9.0

2 years ago