0.10.5 • Published 7 months ago

@factset/sdk-etfprofileandprices v0.10.5

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

FactSet

ETF Profile and Prices client library for JavaScript

npm Apache-2 license

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

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

  • API version: v1
  • Package version: 0.10.5
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Requirements

  • Node.js >= 14

Installation

npm

npm install @factset/sdk-utils @factset/sdk-etfprofileandprices@0.10.5

yarn

yarn add @factset/sdk-utils @factset/sdk-etfprofileandprices@0.10.5

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, FactsetApi } = require('@factset/sdk-etfprofileandprices');
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 FactsetApi();
const symbol = "symbol_example"; // String | Market symbol of ETP defined by FactSet.
const opts = {
  'attributes': ["null"], // [String] | Limit the attributes returned in the response to the specified set.
  'paginationOffset': 0.0, // Number | Non-negative number of entries to skip, or 0 (default).
  'paginationLimit': 20.0 // Number | Non-negative maximum number of entries to return.
};

// Call api endpoint
apiInstance.getFactsetEtfAllocationAssetListBySymbol(symbol, 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
etfprofileandprices.FactsetApigetFactsetEtfAllocationAssetListBySymbolGET /factset/etf/allocation/asset/listBySymbolThis endpoint returns selected ETP's asset allocations.
etfprofileandprices.FactsetApigetFactsetEtfAllocationCountryListBySymbolGET /factset/etf/allocation/country/listBySymbolThis endpoint returns selected ETP's country allocations.
etfprofileandprices.FactsetApigetFactsetEtfAllocationCurrencyListBySymbolGET /factset/etf/allocation/currency/listBySymbolThis endpoint returns selected ETP's currency allocations.
etfprofileandprices.FactsetApigetFactsetEtfAllocationEconomicDevelopmentListBySymbolGET /factset/etf/allocation/economicDevelopment/listBySymbolList of allocations classified by a holding's economic development status.
etfprofileandprices.FactsetApigetFactsetEtfAllocationExchangeListBySymbolGET /factset/etf/allocation/exchange/listBySymbolThis endpoint returns selected ETP's exchange allocations.
etfprofileandprices.FactsetApigetFactsetEtfAllocationIndustryListBySymbolGET /factset/etf/allocation/industry/listBySymbolThis endpoint returns selected ETP's industry allocations.
etfprofileandprices.FactsetApigetFactsetEtfAllocationMarketCapitalizationListBySymbolGET /factset/etf/allocation/marketCapitalization/listBySymbolList of allocations classified by a holding's total market capitalization.
etfprofileandprices.FactsetApigetFactsetEtfAllocationRegionListBySymbolGET /factset/etf/allocation/region/listBySymbolThis endpoint returns selected ETP's region allocations.
etfprofileandprices.FactsetApigetFactsetEtfAllocationSectorListBySymbolGET /factset/etf/allocation/sector/listBySymbolThis endpoint returns selected ETP's sector allocations.
etfprofileandprices.FactsetApigetFactsetEtfAnalyticsGetBySymbolGET /factset/etf/analytics/getBySymbolFactSet proprietary analytics datapoints for ETPs.
etfprofileandprices.FactsetApigetFactsetEtfAnalyticsHoldingsStatisticsGetBySymbolGET /factset/etf/analytics/holdings/statistics/getBySymbolFactSet's portfolio statistics for ETPs.
etfprofileandprices.FactsetApigetFactsetEtfAnalyticsScoreGetBySymbolGET /factset/etf/analytics/score/getBySymbolFactSet proprietary ETP rankings.
etfprofileandprices.FactsetApigetFactsetEtfAnalyticsTradeGetBySymbolGET /factset/etf/analytics/trade/getBySymbolTrade statistics for specific ETP.
etfprofileandprices.FactsetApigetFactsetEtfCharacteristicsGetBySymbolGET /factset/etf/characteristics/getBySymbolRetrieve basic characteristic information for a specified ETP.
etfprofileandprices.FactsetApigetFactsetEtfClassCategoryBroadListGET /factset/etf/class/category/broad/listList of ETP class broad categories.
etfprofileandprices.FactsetApigetFactsetEtfClassCategoryFocusListGET /factset/etf/class/category/focus/listList of ETP class focus categories.
etfprofileandprices.FactsetApigetFactsetEtfClassCategoryNicheListGET /factset/etf/class/category/niche/listList of ETP class niche categories.
etfprofileandprices.FactsetApigetFactsetEtfClassGeographyListGET /factset/etf/class/geography/listList of ETP class geographies.
etfprofileandprices.FactsetApigetFactsetEtfClassGetBySymbolGET /factset/etf/class/getBySymbolRetrieve an ETP's classification specific to asset class, geography, or investment strategy.
etfprofileandprices.FactsetApigetFactsetEtfCompetitorsListBySymbolGET /factset/etf/competitors/listBySymbolFactSet's proprietary list of competing companies.
etfprofileandprices.FactsetApigetFactsetEtfDistributionGetBySymbolGET /factset/etf/distribution/getBySymbolRetrieve an ETP's current distribution details.
etfprofileandprices.FactsetApigetFactsetEtfFundFlowsGetBySymbolGET /factset/etf/fundFlows/getBySymbolRetrieve an ETP's cash inflow/outflows for various time periods.
etfprofileandprices.FactsetApigetFactsetEtfGetBySymbolGET /factset/etf/getBySymbolRetrieve basic profile information for a specified ETP.
etfprofileandprices.FactsetApigetFactsetEtfGrowthOfTenKListBySymbolGET /factset/etf/growthOfTenK/listBySymbolThis endpoint returns selected ETP's Growth of 10K calculated values.
etfprofileandprices.FactsetApigetFactsetEtfHoldingsListBySymbolGET /factset/etf/holdings/listBySymbolHoldings details for an individual ETP.
etfprofileandprices.FactsetApigetFactsetEtfMarketAggregatesGetBySymbolGET /factset/etf/marketAggregates/getBySymbolMarket aggregate data for ETPs.
etfprofileandprices.FactsetApigetFactsetEtfPremiumDiscountSummaryListBySymbolGET /factset/etf/premiumDiscount/summary/listBySymbolSummary of ETP premium discount data.
etfprofileandprices.FactsetApigetFactsetEtfPriceGetBySymbolGET /factset/etf/price/getBySymbolRetrieve historical ETP NAV values.
etfprofileandprices.FactsetApigetFactsetEtfReturnsGetBySymbolGET /factset/etf/returns/getBySymbolRetrieve total return data for a specified ETP.
etfprofileandprices.FactsetApigetFactsetEtfStrategyGetBySymbolGET /factset/etf/strategy/getBySymbolRetrieve various classification details for a specified ETP.
etfprofileandprices.FactsetApigetFactsetEtfStrategySegmentListGET /factset/etf/strategy/segment/listRetrieve a list of ETP strategy segments.
etfprofileandprices.FactsetApigetFactsetEtfStructureGetBySymbolGET /factset/etf/structure/getBySymbolRetrieve the basic structure information for a specified ETP.
etfprofileandprices.FactsetApigetFactsetEtfTaxesAndFeesUsGetBySymbolGET /factset/etf/taxesAndFees/us/getBySymbolRetrieve the tax and fee related information for a specified ETP.
etfprofileandprices.FactsetApigetFactsetEtfTimeSeriesListBySymbolGET /factset/etf/timeSeries/listBySymbolRetrieve historical NAV data for a specified ETP.

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

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.

0.10.4

8 months ago

0.10.5

7 months ago

0.10.3

11 months ago

0.10.1

2 years ago

0.10.2

2 years ago

0.10.0

2 years ago

0.9.1

2 years ago

0.9.0

2 years ago