Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@factset/sdk-stocksapifordigitalportals

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@factset/sdk-stocksapifordigitalportals

Stocks API for Digital Portals client library for JavaScript

  • 0.11.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

FactSet

Stocks API for Digital Portals client library for JavaScript

API Version 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
  • SDK version: 0.11.0
  • Build package: com.factset.sdk.codegen.FactSetJavascriptClientCodegen

Requirements

  • Node.js >= 18

Installation

npm

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

yarn

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

Usage

  1. Generate authentication credentials.
  2. Setup Node.js environment
    1. Install and activate Node.js >=18. If you're using nvm:

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

  3. Install dependencies.
  4. Run the following:

[!IMPORTANT] The parameter variables defined below are just examples and may potentially contain non valid values. Please replace them with valid values.

Example Code

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);
  },
);

Using a Proxy

To add a HTTP proxy for the API client, you can set the proxyUrl for the ApiClient instance:

const { ApiClient } = require('@factset/sdk-stocksapifordigitalportals');

const apiClient = ApiClient.instance;
apiClient.setProxyUrl('http://username:password@proxy.example.com:8080');

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

Documentation for Authorization

FactSetApiKey

  • Type: HTTP basic authentication

FactSetOAuth2

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes: N/A

Contributing

Please refer to the contributing guide.

Copyright 2022 FactSet Research Systems Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Keywords

FAQs

Package last updated on 01 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc