Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@factset/sdk-stocksapifordigitalportals
Advanced tools
Stocks API for Digital Portals client library for JavaScript
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:
npm install @factset/sdk-utils @factset/sdk-stocksapifordigitalportals@0.11.0
yarn add @factset/sdk-utils @factset/sdk-stocksapifordigitalportals@0.11.0
Install and activate Node.js >=18. If you're using nvm:
nvm install 18
nvm use 18
(optional) Install yarn.
[!IMPORTANT] The parameter variables defined below are just examples and may potentially contain non valid values. Please replace them with valid values.
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);
},
);
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');
All URIs are relative to https://api.factset.com/wealth/v1
Class | Method | HTTP request | Description |
---|---|---|---|
stocksapifordigitalportals.CompanyApi | getCompanyBoardListByInstrument | GET /company/board/listByInstrument | List of boards for a company, with their officers. |
stocksapifordigitalportals.CompanyApi | getCompanyBoardOfficerFunctionDeliveryList | GET /company/board/officer/function/delivery/list | List of officer functions as provided by a delivery. |
stocksapifordigitalportals.CompanyApi | getCompanyBoardTypeList | GET /company/board/type/list | List of company board types. |
stocksapifordigitalportals.CompanyApi | postCompanyEstimatesListByInstrument | POST /company/estimates/listByInstrument | Estimates for selected figures for a stock. |
stocksapifordigitalportals.CompanyApi | postCompanyKeyItemsCurrentGetByInstrument | POST /company/keyItems/current/getByInstrument | Fundamentals for a stock with potentially daily updates. |
stocksapifordigitalportals.CompanyApi | postCompanyKeyItemsFiscalYearListByInstrument | POST /company/keyItems/fiscalYear/listByInstrument | Selected fundamentals for a stock with values as of the end of a fiscal year. |
stocksapifordigitalportals.StockApi | getStockCompositeProfileGetByNotation | GET /stock/composite/profile/getByNotation | Provides key elements of a stock profile together with the profile of the issuing company. |
stocksapifordigitalportals.StockApi | getStockDividendTypeList | GET /stock/dividend/type/list | List of dividend types. |
stocksapifordigitalportals.StockApi | getStockNotationKeyFiguresBenchmarkMonth1Get | GET /stock/notation/keyFigures/benchmark/month/1/get | End-of-day (EOD) benchmark key figures of a stock for the time range of one month. |
stocksapifordigitalportals.StockApi | getStockNotationKeyFiguresBenchmarkMonth3Get | GET /stock/notation/keyFigures/benchmark/month/3/get | End-of-day (EOD) benchmark key figures of a stock for the time range of three months. |
stocksapifordigitalportals.StockApi | getStockNotationKeyFiguresBenchmarkMonth6Get | GET /stock/notation/keyFigures/benchmark/month/6/get | End-of-day (EOD) benchmark key figures of a stock for the time range of six months. |
stocksapifordigitalportals.StockApi | getStockNotationKeyFiguresBenchmarkWeek1Get | GET /stock/notation/keyFigures/benchmark/week/1/get | End-of-day (EOD) benchmark key figures of a stock for the time range of one week. |
stocksapifordigitalportals.StockApi | getStockNotationKeyFiguresBenchmarkYear1Get | GET /stock/notation/keyFigures/benchmark/year/1/get | End-of-day (EOD) benchmark key figures of a stock for the time range of one year. |
stocksapifordigitalportals.StockApi | getStockNotationKeyFiguresBenchmarkYear3Get | GET /stock/notation/keyFigures/benchmark/year/3/get | End-of-day (EOD) benchmark key figures of a stock for the time range of three years. |
stocksapifordigitalportals.StockApi | getStockNotationKeyFiguresBenchmarkYear5Get | GET /stock/notation/keyFigures/benchmark/year/5/get | End-of-day (EOD) benchmark key figures of a stock for the time range of five years. |
stocksapifordigitalportals.StockApi | getStockOwnerList | GET /stock/owner/list | List of owners for a specific type of a company's shares. |
stocksapifordigitalportals.StockApi | getStockRecommendationAggregateGet | GET /stock/recommendation/aggregate/get | Target price and aggregated recommendations for a stock. |
stocksapifordigitalportals.StockApi | getStockRecommendationAggregateHistoryList | GET /stock/recommendation/aggregate/history/list | Current and historical trade recommendations and target prices for a stock. |
stocksapifordigitalportals.StockApi | postStockDividendList | POST /stock/dividend/list | List of dividends for a stock. |
stocksapifordigitalportals.StockApi | postStockNotationRankingIntradayList | POST /stock/notation/ranking/intraday/list | Ranking of stocks' notations using intraday figures. |
stocksapifordigitalportals.StockApi | postStockNotationScreenerSearch | POST /stock/notation/screener/search | Screener for stocks' notations based on stock-specific parameters. |
stocksapifordigitalportals.StockApi | postStockNotationScreenerValueRangesGet | POST /stock/notation/screener/valueRanges/get | Possible values and value ranges for the parameters used in the endpoint `/stock/notation/screener/search`. |
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.
FAQs
Stocks API for Digital Portals client library for JavaScript
The npm package @factset/sdk-stocksapifordigitalportals receives a total of 0 weekly downloads. As such, @factset/sdk-stocksapifordigitalportals popularity was classified as not popular.
We found that @factset/sdk-stocksapifordigitalportals demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.