@infosel-sdk/funds-holdings
v0.1.1
Published
Funds Holdings SDK for Infosel
Maintainers
Readme
Funds Holdings SDK
Funds Holdings SDK for Infosel provides access to fund holdings, decomposition, and participation data.
Features
- Holdings: Get fund holdings with pagination support
- Fund Decomposition: Decompose funds to analyze their composition
- Holdings Participation: Analyze equity and fixed income weight distribution
Installation
npm install @infosel-sdk/funds-holdingsUsage
import { FundsHoldingsSDK } from '@infosel-sdk/funds-holdings';
import { InfoselSdkManager } from '@infosel-sdk/core';
const sdkManager = InfoselSdkManager.init({
mode: 'qa',
authProviderConfig: {
type: 'key-cloak',
credentials: {
grant_type: 'client_credentials',
client_id: 'your-client-id',
client_secret: 'your-client-secret',
},
},
});
const fundsHoldingsSDK = new FundsHoldingsSDK(sdkManager);
// Get holdings
const holdings = await fundsHoldingsSDK.getHoldings({
issuer: 'GOLD2+',
limit: 10,
offset: 0
});
// Decompose fund
const decomposition = await fundsHoldingsSDK.decomposeFund({
issuer: 'GOLD2+',
limit: 5,
offset: 0
});
// Get decomposed holdings
const decomposedHoldings = await fundsHoldingsSDK.getDecomposedHoldings({
issuer: 'GOLD2+',
limit: 5
});
// Get holdings participation
const participation = await fundsHoldingsSDK.getHoldingsParticipation({
issuer: 'GOLD2+',
limit: 5,
offset: 0
});API Endpoints
GET /holdings- Retrieve fund holdingsPOST /fund-decomposition/decompose- Decompose a fundGET /fund-decomposition/decomposed-holdings- Get decomposed holdingsGET /fund-decomposition/holdings-participation- Get holdings participation analysis
License
MIT
