All URIs are relative to https://api-sandbox.factset.com
Method | HTTP request | Description |
---|---|---|
getFIABCalculationById | GET /analytics/engines/fiab/v1/calculations/{id} | Get FIAB calculation by id |
getFIABCalculationStatusSummaries | GET /analytics/engines/fiab/v1/calculations | Get all FIAB calculation summaries |
runFIABCalculation | POST /analytics/engines/fiab/v1/calculations | Run FIAB calculation |
FIABCalculationStatus getFIABCalculationById(id)
Get FIAB calculation by id
This is the endpoint to check on the progress of a previously requested calculation.
Important
The parameter variables defined below are just examples and may potentially contain non valid values. Please replace them with valid values.
const { ApiClient, FIABCalculationsApi } = require('@factset/sdk-fixedincomeanalyticsbatcher');
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 FIABCalculationsApi();
const id = "id_example"; // String | from url, provided from the location header in the Run FIAB Calculation endpoint
// Call api endpoint
apiInstance.getFIABCalculationById(id).then(
data => {
console.log('API called successfully. Returned data:');
console.log(data);
},
error => {
console.error(error);
},
);
Name | Type | Description | Notes |
---|---|---|---|
id | String | from url, provided from the location header in the Run FIAB Calculation endpoint |
- Content-Type: Not defined
- Accept: application/json
{String: FIABCalculationStatusSummary} getFIABCalculationStatusSummaries()
Get all FIAB calculation summaries
This endpoints returns all FIAB calculation requests.
Important
The parameter variables defined below are just examples and may potentially contain non valid values. Please replace them with valid values.
const { ApiClient, FIABCalculationsApi } = require('@factset/sdk-fixedincomeanalyticsbatcher');
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 FIABCalculationsApi();
// Call api endpoint
apiInstance.getFIABCalculationStatusSummaries().then(
data => {
console.log('API called successfully. Returned data:');
console.log(data);
},
error => {
console.error(error);
},
);
This endpoint does not need any parameter.
{String: FIABCalculationStatusSummary}
- Content-Type: Not defined
- Accept: application/json
runFIABCalculation(opts)
Run FIAB calculation
This endpoint creates a new FIAB calculation. This must be used first before get status or cancelling endpoints with a calculation id. A successful response will contain the URL to check the status of the calculation request. Remarks: * Any settings in POST body will act as a one-time override over the settings saved in the FIAB template.
Important
The parameter variables defined below are just examples and may potentially contain non valid values. Please replace them with valid values.
const { ApiClient, FIABCalculationsApi } = require('@factset/sdk-fixedincomeanalyticsbatcher');
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 FIABCalculationsApi();
const opts = {
'fIABCalculationParameters': {"account":{"id":"CLIENT:TEST.ACCT"},"dates":{"startdate":"20200501","enddate":"20200515"}} // FIABCalculationParameters |
};
// Call api endpoint
apiInstance.runFIABCalculation(opts).then(
() => {
console.log('API called successfully.');
},
error => {
console.error(error);
},
);
Name | Type | Description | Notes |
---|---|---|---|
fIABCalculationParameters | FIABCalculationParameters | [optional] |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined