Title: | 'FactSet' Engines API Client |
---|---|
Description: | Allow clients to fetch 'analytics' through API for Portfolio 'Analytics'('PA'), Style Performance Risk('SPAR') and 'Vault' products of 'FactSet'. Visit <https://github.com/factset/analyticsapi-engines-r-sdk/tree/master/Engines> for more information on the usage of package. Visit <https://developer.factset.com/> for more information on products. |
Authors: | Analytics API Support [aut], Akshay Sheth [cre] |
Maintainer: | Akshay Sheth <[email protected]> |
License: | Apache License 2.0 |
Version: | 3.0.1 |
Built: | 2024-11-11 07:29:37 UTC |
Source: | CRAN |
AccountDirectories Class
An R6Class
generator object
accounts
list( character ) [optional]
directories
list( character ) [optional]
new()
AccountDirectories$new(accounts = NULL, directories = NULL, ...)
toJSON()
AccountDirectories$toJSON()
fromJSON()
AccountDirectories$fromJSON(AccountDirectoriesJson)
toJSONString()
AccountDirectories$toJSONString()
fromJSONString()
AccountDirectories$fromJSONString(AccountDirectoriesJson)
clone()
The objects of this class are cloneable with this method.
AccountDirectories$clone(deep = FALSE)
deep
Whether to make a deep clone.
factset.analyticsapi.engines.Accounts
An R6Class
generator object
GetAccounts Get accounts and sub-directories in a directory This endpoint looks up all ACCT and ACTM files and sub-directories in a given directory.
@param path character
@returnType AccountDirectories
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of accounts and directories
return type : AccountDirectories
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid query parameter or value provided
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Path not found
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in some time
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
apiClient
Handles the client-server communication.
new()
AccountsApi$new(apiClient)
GetAccounts()
AccountsApi$GetAccounts(path, ...)
GetAccountsWithHttpInfo()
AccountsApi$GetAccountsWithHttpInfo(path, ...)
clone()
The objects of this class are cloneable with this method.
AccountsApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### GetAccounts #################### library(factset.analyticsapi.engines) var.path <- 'path_example' # character | The directory to get the accounts and sub-directories in #Get accounts and sub-directories in a directory api.instance <- AccountsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetAccounts(var.path), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### GetAccounts #################### library(factset.analyticsapi.engines) var.path <- 'path_example' # character | The directory to get the accounts and sub-directories in #Get accounts and sub-directories in a directory api.instance <- AccountsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetAccounts(var.path), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
ApiClient Class
An R6Class
generator object
ApiClient Class
Generic API client for OpenAPI client library builds. OpenAPI generic API client. This client handles the client- server communication, and is invariant across implementations. Specifics of the methods and models for each application are generated from the OpenAPI Generator templates.
NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). Ref: https://openapi-generator.tech Do not edit the class manually.
basePath
Base url
userAgent
Default user agent
username
Username for HTTP basic authentication
password
Password for HTTP basic authentication
timeout
Default timeout in seconds
new()
ApiClient$new( basePath = NULL, userAgent = NULL, defaultHeaders = NULL, username = NULL, password = NULL, apiKeys = NULL, accessToken = NULL, timeout = NULL )
CallApi()
ApiClient$CallApi(url, method, queryParams, headerParams, body, ...)
deserialize()
ApiClient$deserialize(resp, returnType, pkgEnv)
deserializeObj()
ApiClient$deserializeObj(obj, returnType, pkgEnv)
clone()
The objects of this class are cloneable with this method.
ApiClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
ApiException Class
An R6Class
generator object
status
Status of the ApiException
reason
Reason of the ApiException
body
Body of the http response
headers
Headers of the http response
new()
ApiException$new(status = NULL, reason = NULL, http_response = NULL)
toString()
ApiException$toString()
clone()
The objects of this class are cloneable with this method.
ApiException$clone(deep = FALSE)
deep
Whether to make a deep clone.
ApiResponse Class
An R6Class
generator object
content
The deserialized response body.
response
The raw response from the endpoint.
new()
ApiResponse$new(content, response)
clone()
The objects of this class are cloneable with this method.
ApiResponse$clone(deep = FALSE)
deep
Whether to make a deep clone.
Calculation Class
An R6Class
generator object
pa
named list( PACalculationParameters ) [optional]
spar
named list( SPARCalculationParameters ) [optional]
vault
named list( VaultCalculationParameters ) [optional]
new()
Calculation$new(pa = NULL, spar = NULL, vault = NULL, ...)
toJSON()
Calculation$toJSON()
fromJSON()
Calculation$fromJSON(CalculationJson)
toJSONString()
Calculation$toJSONString()
fromJSONString()
Calculation$fromJSONString(CalculationJson)
clone()
The objects of this class are cloneable with this method.
Calculation$clone(deep = FALSE)
deep
Whether to make a deep clone.
factset.analyticsapi.engines.Calculations
An R6Class
generator object
CancelCalculationById Cancel calculation by id This is the endpoint to cancel a previously submitted calculation request. Instead of doing a GET on the getCalculationById URL, cancel the calculation by doing a DELETE. All individual calculation units within the calculation will be canceled if they have not already finished.
@param id character
On encountering errors, an error of subclass ApiException will be thrown.
status code : 204 | Expected response, request was cancelled successfully.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid identifier provided.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | There was no request for the identifier provided, or the request was already canceled for the provided identifier.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetCalculationStatusById Get calculation status by id This is the endpoint to check on the progress of a previous calculation request. Response body contains status information of the entire request and each individual calculation unit.
@param id character
@returnType CalculationStatus
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns status information of the entire calculation and each individual calculation unit.
return type : CalculationStatus
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
Cache-Control | Standard HTTP header. Header will specify max-age in seconds. Polling can be adjusted based on the max-age value. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid identifier provided.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
Cache-Control | Standard HTTP header. Header will specify max-age in seconds. Polling can be adjusted based on the max-age value. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
Cache-Control | Standard HTTP header. Header will specify max-age in seconds. Polling can be adjusted based on the max-age value. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
Cache-Control | Standard HTTP header. Header will specify max-age in seconds. Polling can be adjusted based on the max-age value. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Provided identifier was not a request, or the request was cancelled.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
Cache-Control | Standard HTTP header. Header will specify max-age in seconds. Polling can be adjusted based on the max-age value. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
Cache-Control | Standard HTTP header. Header will specify max-age in seconds. Polling can be adjusted based on the max-age value. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
Cache-Control | Standard HTTP header. Header will specify max-age in seconds. Polling can be adjusted based on the max-age value. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
Cache-Control | Standard HTTP header. Header will specify max-age in seconds. Polling can be adjusted based on the max-age value. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetCalculationStatusSummaries Get all calculation statuses This endpoints returns all active calculation requests.
@returnType named list( CalculationStatusSummary )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | List of active calculation requests.
return type : map(CalculationStatusSummary)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
RunCalculation Run calculation This endpoint creates a new calculation and runs the set of calculation units specified in the POST body. 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: * Maximum 25 points allowed per calculation and maximum 500 points allowed across all simultaneous calculations. (Refer API documentation for more information) * Any settings in POST body will act as a one-time override over the settings saved in the PA/SPAR/Vault template.
@param calculation Calculation
On encountering errors, an error of subclass ApiException will be thrown.
status code : 202 | Expected response, contains the URL in the Location header to check the status of the calculation.
response headers :
X-FactSet-Api-Points-Limit | Maximum points limit across all batches. |
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-FactSet-Api-Points-Remaining | Number of points remaining till points limit reached. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
Location | URL to check status of the request. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid POST body.
response headers :
X-FactSet-Api-Points-Limit | Maximum points limit across all batches. |
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-FactSet-Api-Points-Remaining | Number of points remaining till points limit reached. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
Location | URL to check status of the request. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-FactSet-Api-Points-Limit | Maximum points limit across all batches. |
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-FactSet-Api-Points-Remaining | Number of points remaining till points limit reached. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
Location | URL to check status of the request. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials.
response headers :
X-FactSet-Api-Points-Limit | Maximum points limit across all batches. |
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-FactSet-Api-Points-Remaining | Number of points remaining till points limit reached. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
Location | URL to check status of the request. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 415 | Missing/Invalid Content-Type header. Header needs to be set to application/json.
response headers :
X-FactSet-Api-Points-Limit | Maximum points limit across all batches. |
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-FactSet-Api-Points-Remaining | Number of points remaining till points limit reached. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
Location | URL to check status of the request. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 429 | Rate limit reached. Cancel older requests using Cancel Calculation endpoint or wait for older requests to finish / expire.
response headers :
X-FactSet-Api-Points-Limit | Maximum points limit across all batches. |
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-FactSet-Api-Points-Remaining | Number of points remaining till points limit reached. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
Location | URL to check status of the request. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-FactSet-Api-Points-Limit | Maximum points limit across all batches. |
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-FactSet-Api-Points-Remaining | Number of points remaining till points limit reached. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
Location | URL to check status of the request. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-FactSet-Api-Points-Limit | Maximum points limit across all batches. |
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-FactSet-Api-Points-Remaining | Number of points remaining till points limit reached. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
Location | URL to check status of the request. |
X-DataDirect-Request-Key | FactSet's request key header. |
apiClient
Handles the client-server communication.
new()
CalculationsApi$new(apiClient)
CancelCalculationById()
CalculationsApi$CancelCalculationById(id, ...)
CancelCalculationByIdWithHttpInfo()
CalculationsApi$CancelCalculationByIdWithHttpInfo(id, ...)
GetCalculationStatusById()
CalculationsApi$GetCalculationStatusById(id, ...)
GetCalculationStatusByIdWithHttpInfo()
CalculationsApi$GetCalculationStatusByIdWithHttpInfo(id, ...)
GetCalculationStatusSummaries()
CalculationsApi$GetCalculationStatusSummaries(...)
GetCalculationStatusSummariesWithHttpInfo()
CalculationsApi$GetCalculationStatusSummariesWithHttpInfo(...)
RunCalculation()
CalculationsApi$RunCalculation(calculation = NULL, ...)
RunCalculationWithHttpInfo()
CalculationsApi$RunCalculationWithHttpInfo(calculation = NULL, ...)
clone()
The objects of this class are cloneable with this method.
CalculationsApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### CancelCalculationById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | From url, provided from the location # header in the Run Multiple Calculations endpoint. #Cancel calculation by id api.instance <- CalculationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$CancelCalculationById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetCalculationStatusById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | From url, provided from the location # header in the Run Multiple Calculations endpoint. #Get calculation status by id api.instance <- CalculationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetCalculationStatusById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetCalculationStatusSummaries #################### library(factset.analyticsapi.engines) #Get all calculation statuses api.instance <- CalculationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetCalculationStatusSummaries(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### RunCalculation #################### library(factset.analyticsapi.engines) var.calculation <- Calculation$new() # Calculation | #Run calculation api.instance <- CalculationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$RunCalculation(calculation=var.calculation), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### CancelCalculationById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | From url, provided from the location # header in the Run Multiple Calculations endpoint. #Cancel calculation by id api.instance <- CalculationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$CancelCalculationById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetCalculationStatusById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | From url, provided from the location # header in the Run Multiple Calculations endpoint. #Get calculation status by id api.instance <- CalculationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetCalculationStatusById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetCalculationStatusSummaries #################### library(factset.analyticsapi.engines) #Get all calculation statuses api.instance <- CalculationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetCalculationStatusSummaries(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### RunCalculation #################### library(factset.analyticsapi.engines) var.calculation <- Calculation$new() # Calculation | #Run calculation api.instance <- CalculationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$RunCalculation(calculation=var.calculation), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
CalculationStatus Class
An R6Class
generator object
status
character [optional]
points
integer [optional]
pa
named list( CalculationUnitStatus ) [optional]
spar
named list( CalculationUnitStatus ) [optional]
vault
named list( CalculationUnitStatus ) [optional]
new()
CalculationStatus$new( status = NULL, points = NULL, pa = NULL, spar = NULL, vault = NULL, ... )
toJSON()
CalculationStatus$toJSON()
fromJSON()
CalculationStatus$fromJSON(CalculationStatusJson)
toJSONString()
CalculationStatus$toJSONString()
fromJSONString()
CalculationStatus$fromJSONString(CalculationStatusJson)
clone()
The objects of this class are cloneable with this method.
CalculationStatus$clone(deep = FALSE)
deep
Whether to make a deep clone.
CalculationStatusSummary Class
An R6Class
generator object
status
character [optional]
points
integer [optional]
requestTime
character [optional]
lastPollTime
character [optional]
new()
CalculationStatusSummary$new( status = NULL, points = NULL, requestTime = NULL, lastPollTime = NULL, ... )
toJSON()
CalculationStatusSummary$toJSON()
fromJSON()
CalculationStatusSummary$fromJSON(CalculationStatusSummaryJson)
toJSONString()
CalculationStatusSummary$toJSONString()
fromJSONString()
CalculationStatusSummary$fromJSONString(CalculationStatusSummaryJson)
clone()
The objects of this class are cloneable with this method.
CalculationStatusSummary$clone(deep = FALSE)
deep
Whether to make a deep clone.
CalculationUnitStatus Class
An R6Class
generator object
status
character [optional]
points
integer [optional]
error
character [optional]
result
character [optional]
new()
CalculationUnitStatus$new( status = NULL, points = NULL, error = NULL, result = NULL, ... )
toJSON()
CalculationUnitStatus$toJSON()
fromJSON()
CalculationUnitStatus$fromJSON(CalculationUnitStatusJson)
toJSONString()
CalculationUnitStatus$toJSONString()
fromJSONString()
CalculationUnitStatus$fromJSONString(CalculationUnitStatusJson)
clone()
The objects of this class are cloneable with this method.
CalculationUnitStatus$clone(deep = FALSE)
deep
Whether to make a deep clone.
Column Class
An R6Class
generator object
defaultstatisticsids
list( character ) [optional]
name
character [optional]
directory
character [optional]
category
character [optional]
new()
Column$new( defaultstatisticsids = NULL, name = NULL, directory = NULL, category = NULL, ... )
toJSON()
Column$toJSON()
fromJSON()
Column$fromJSON(ColumnJson)
toJSONString()
Column$toJSONString()
fromJSONString()
Column$fromJSONString(ColumnJson)
clone()
The objects of this class are cloneable with this method.
Column$clone(deep = FALSE)
deep
Whether to make a deep clone.
factset.analyticsapi.engines.Columns
An R6Class
generator object
GetPAColumnById Get PA column settings This endpoint returns the default settings of a PA column.
@param id character
@returnType Column
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns settings of a PA column.
return type : Column
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
Age | Standard HTTP header. Header will specify the age of columns list cached response. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid column Id.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Column not found.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetPAColumns Get PA columns This endpoint lists all the PA columns that can be applied to a calculation.
@param name character
@param category character
@param directory character
@returnType named list( ColumnSummary )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of PA columns
return type : map(ColumnSummary)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
Age | Standard HTTP header. Header will specify the age of columns list cached response. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
apiClient
Handles the client-server communication.
new()
ColumnsApi$new(apiClient)
GetPAColumnById()
ColumnsApi$GetPAColumnById(id, ...)
GetPAColumnByIdWithHttpInfo()
ColumnsApi$GetPAColumnByIdWithHttpInfo(id, ...)
GetPAColumns()
ColumnsApi$GetPAColumns(name = NULL, category = NULL, directory = NULL, ...)
GetPAColumnsWithHttpInfo()
ColumnsApi$GetPAColumnsWithHttpInfo( name = NULL, category = NULL, directory = NULL, ... )
clone()
The objects of this class are cloneable with this method.
ColumnsApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### GetPAColumnById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | Unique identifier for a column #Get PA column settings api.instance <- ColumnsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAColumnById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetPAColumns #################### library(factset.analyticsapi.engines) var.name <- 'name_example' # character | var.category <- 'category_example' # character | var.directory <- 'directory_example' # character | #Get PA columns api.instance <- ColumnsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAColumns(name=var.name, category=var.category, directory=var.directory), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### GetPAColumnById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | Unique identifier for a column #Get PA column settings api.instance <- ColumnsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAColumnById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetPAColumns #################### library(factset.analyticsapi.engines) var.name <- 'name_example' # character | var.category <- 'category_example' # character | var.directory <- 'directory_example' # character | #Get PA columns api.instance <- ColumnsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAColumns(name=var.name, category=var.category, directory=var.directory), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
ColumnStatistic Class
An R6Class
generator object
name
character [optional]
new()
ColumnStatistic$new(name = NULL, ...)
toJSON()
ColumnStatistic$toJSON()
fromJSON()
ColumnStatistic$fromJSON(ColumnStatisticJson)
toJSONString()
ColumnStatistic$toJSONString()
fromJSONString()
ColumnStatistic$fromJSONString(ColumnStatisticJson)
clone()
The objects of this class are cloneable with this method.
ColumnStatistic$clone(deep = FALSE)
deep
Whether to make a deep clone.
factset.analyticsapi.engines.ColumnStatistics
An R6Class
generator object
GetPAColumnStatistics Get PA column statistics This endpoint lists all the column statistics that can be applied to a PA column.
@returnType named list( ColumnStatistic )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of PA column statistics
return type : map(ColumnStatistic)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
apiClient
Handles the client-server communication.
new()
ColumnStatisticsApi$new(apiClient)
GetPAColumnStatistics()
ColumnStatisticsApi$GetPAColumnStatistics(...)
GetPAColumnStatisticsWithHttpInfo()
ColumnStatisticsApi$GetPAColumnStatisticsWithHttpInfo(...)
clone()
The objects of this class are cloneable with this method.
ColumnStatisticsApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### GetPAColumnStatistics #################### library(factset.analyticsapi.engines) #Get PA column statistics api.instance <- ColumnStatisticsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAColumnStatistics(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### GetPAColumnStatistics #################### library(factset.analyticsapi.engines) #Get PA column statistics api.instance <- ColumnStatisticsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAColumnStatistics(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
ColumnSummary Class
An R6Class
generator object
name
character [optional]
directory
character [optional]
category
character [optional]
new()
ColumnSummary$new(name = NULL, directory = NULL, category = NULL, ...)
toJSON()
ColumnSummary$toJSON()
fromJSON()
ColumnSummary$fromJSON(ColumnSummaryJson)
toJSONString()
ColumnSummary$toJSONString()
fromJSONString()
ColumnSummary$fromJSONString(ColumnSummaryJson)
clone()
The objects of this class are cloneable with this method.
ColumnSummary$clone(deep = FALSE)
deep
Whether to make a deep clone.
ComponentAccount Class
An R6Class
generator object
id
character [optional]
name
character [optional]
holdingsmode
character [optional]
new()
ComponentAccount$new(id = NULL, name = NULL, holdingsmode = NULL, ...)
toJSON()
ComponentAccount$toJSON()
fromJSON()
ComponentAccount$fromJSON(ComponentAccountJson)
toJSONString()
ComponentAccount$toJSONString()
fromJSONString()
ComponentAccount$fromJSONString(ComponentAccountJson)
clone()
The objects of this class are cloneable with this method.
ComponentAccount$clone(deep = FALSE)
deep
Whether to make a deep clone.
ComponentBenchmark Class
An R6Class
generator object
id
character [optional]
name
character [optional]
holdingsmode
character [optional]
new()
ComponentBenchmark$new(id = NULL, name = NULL, holdingsmode = NULL, ...)
toJSON()
ComponentBenchmark$toJSON()
fromJSON()
ComponentBenchmark$fromJSON(ComponentBenchmarkJson)
toJSONString()
ComponentBenchmark$toJSONString()
fromJSONString()
ComponentBenchmark$fromJSONString(ComponentBenchmarkJson)
clone()
The objects of this class are cloneable with this method.
ComponentBenchmark$clone(deep = FALSE)
deep
Whether to make a deep clone.
factset.analyticsapi.engines.Components
An R6Class
generator object
GetPAComponentById Get PA component by id This endpoint returns the default settings of a PA component.
@param id character
@returnType PAComponent
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns the default settings of a PA component.
return type : PAComponent
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid PA component id.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Component not found.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetPAComponents Get PA components This endpoint returns the list of PA components in a given PA document.
@param document character
@returnType named list( ComponentSummary )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of PA components.
return type : map(ComponentSummary)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid query parameter provided or Invalid PA document name.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Document not found.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetSPARComponents Get SPAR components This endpoint returns the list of SPAR components in a given SPAR document.
@param document character
@returnType named list( ComponentSummary )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of SPAR components.
return type : map(ComponentSummary)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid query parameter provided or Invalid SPAR document name.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | SPAR Document not found.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetVaultComponentById Get Vault component by id This endpoint returns the default settings of a Vault component.
@param id character
@returnType VaultComponent
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns the default settings of a Vault component.
return type : VaultComponent
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid Vault component id.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Vault Component not found.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetVaultComponents Get Vault components This endpoint returns the list of Vault components in a given Vault document.
@param document character
@returnType named list( ComponentSummary )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of Vault components.
return type : map(ComponentSummary)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid query parameter provided or invalid Vault document name.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Vault Document not found.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
apiClient
Handles the client-server communication.
new()
ComponentsApi$new(apiClient)
GetPAComponentById()
ComponentsApi$GetPAComponentById(id, ...)
GetPAComponentByIdWithHttpInfo()
ComponentsApi$GetPAComponentByIdWithHttpInfo(id, ...)
GetPAComponents()
ComponentsApi$GetPAComponents(document, ...)
GetPAComponentsWithHttpInfo()
ComponentsApi$GetPAComponentsWithHttpInfo(document, ...)
GetSPARComponents()
ComponentsApi$GetSPARComponents(document, ...)
GetSPARComponentsWithHttpInfo()
ComponentsApi$GetSPARComponentsWithHttpInfo(document, ...)
GetVaultComponentById()
ComponentsApi$GetVaultComponentById(id, ...)
GetVaultComponentByIdWithHttpInfo()
ComponentsApi$GetVaultComponentByIdWithHttpInfo(id, ...)
GetVaultComponents()
ComponentsApi$GetVaultComponents(document, ...)
GetVaultComponentsWithHttpInfo()
ComponentsApi$GetVaultComponentsWithHttpInfo(document, ...)
clone()
The objects of this class are cloneable with this method.
ComponentsApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### GetPAComponentById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | Unique identifier for a PA component #Get PA component by id api.instance <- ComponentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAComponentById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetPAComponents #################### library(factset.analyticsapi.engines) var.document <- 'document_example' # character | Document Name #Get PA components api.instance <- ComponentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAComponents(var.document), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetSPARComponents #################### library(factset.analyticsapi.engines) var.document <- 'document_example' # character | Document Name #Get SPAR components api.instance <- ComponentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetSPARComponents(var.document), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetVaultComponentById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | Unique identifier for a vault component #Get Vault component by id api.instance <- ComponentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultComponentById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetVaultComponents #################### library(factset.analyticsapi.engines) var.document <- 'document_example' # character | Document Name #Get Vault components api.instance <- ComponentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultComponents(var.document), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### GetPAComponentById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | Unique identifier for a PA component #Get PA component by id api.instance <- ComponentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAComponentById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetPAComponents #################### library(factset.analyticsapi.engines) var.document <- 'document_example' # character | Document Name #Get PA components api.instance <- ComponentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAComponents(var.document), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetSPARComponents #################### library(factset.analyticsapi.engines) var.document <- 'document_example' # character | Document Name #Get SPAR components api.instance <- ComponentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetSPARComponents(var.document), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetVaultComponentById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | Unique identifier for a vault component #Get Vault component by id api.instance <- ComponentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultComponentById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetVaultComponents #################### library(factset.analyticsapi.engines) var.document <- 'document_example' # character | Document Name #Get Vault components api.instance <- ComponentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultComponents(var.document), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
ComponentSummary Class
An R6Class
generator object
name
character [optional]
category
character [optional]
new()
ComponentSummary$new(name = NULL, category = NULL, ...)
toJSON()
ComponentSummary$toJSON()
fromJSON()
ComponentSummary$fromJSON(ComponentSummaryJson)
toJSONString()
ComponentSummary$toJSONString()
fromJSONString()
ComponentSummary$fromJSONString(ComponentSummaryJson)
clone()
The objects of this class are cloneable with this method.
ComponentSummary$clone(deep = FALSE)
deep
Whether to make a deep clone.
ConfigurationAccount Class
An R6Class
generator object
benchmarkCode
character [optional]
benchmarkName
character [optional]
maxEndDate
character [optional]
minStartDate
character [optional]
lockingDate
character [optional]
name
character [optional]
new()
ConfigurationAccount$new( benchmarkCode = NULL, benchmarkName = NULL, maxEndDate = NULL, minStartDate = NULL, lockingDate = NULL, name = NULL, ... )
toJSON()
ConfigurationAccount$toJSON()
fromJSON()
ConfigurationAccount$fromJSON(ConfigurationAccountJson)
toJSONString()
ConfigurationAccount$toJSONString()
fromJSONString()
ConfigurationAccount$fromJSONString(ConfigurationAccountJson)
clone()
The objects of this class are cloneable with this method.
ConfigurationAccount$clone(deep = FALSE)
deep
Whether to make a deep clone.
factset.analyticsapi.engines.Configurations
An R6Class
generator object
GetVaultConfigurationById Get Vault configuration by id This endpoint returns details for a Vault configuration as well as a list of accounts it is used in.
@param id character
@returnType VaultConfiguration
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns details for a Vault configuration.
return type : VaultConfiguration
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid vault configuration code.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Vault configuration id not found.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetVaultConfigurations Get Vault configurations This endpoint returns all the Vault configurations saved in the provided account.
@param account character
@returnType named list( VaultConfigurationSummary )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a dictionary of Vault configurations.
return type : map(VaultConfigurationSummary)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid account.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Account not found.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
apiClient
Handles the client-server communication.
new()
ConfigurationsApi$new(apiClient)
GetVaultConfigurationById()
ConfigurationsApi$GetVaultConfigurationById(id, ...)
GetVaultConfigurationByIdWithHttpInfo()
ConfigurationsApi$GetVaultConfigurationByIdWithHttpInfo(id, ...)
GetVaultConfigurations()
ConfigurationsApi$GetVaultConfigurations(account, ...)
GetVaultConfigurationsWithHttpInfo()
ConfigurationsApi$GetVaultConfigurationsWithHttpInfo(account, ...)
clone()
The objects of this class are cloneable with this method.
ConfigurationsApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### GetVaultConfigurationById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | Vault configuration id to get the details of #Get Vault configuration by id api.instance <- ConfigurationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultConfigurationById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetVaultConfigurations #################### library(factset.analyticsapi.engines) var.account <- 'account_example' # character | Required account query parameter to # filter configurations for a specific account #Get Vault configurations api.instance <- ConfigurationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultConfigurations(var.account), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### GetVaultConfigurationById #################### library(factset.analyticsapi.engines) var.id <- 'id_example' # character | Vault configuration id to get the details of #Get Vault configuration by id api.instance <- ConfigurationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultConfigurationById(var.id), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetVaultConfigurations #################### library(factset.analyticsapi.engines) var.account <- 'account_example' # character | Required account query parameter to # filter configurations for a specific account #Get Vault configurations api.instance <- ConfigurationsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultConfigurations(var.account), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
factset.analyticsapi.engines.Currencies
An R6Class
generator object
GetPACurrencies Get PA currencies This endpoint lists all the PA currencies that can be applied to a calculation.
@returnType named list( Currency )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of PA currencies.
return type : map(Currency)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
apiClient
Handles the client-server communication.
new()
CurrenciesApi$new(apiClient)
GetPACurrencies()
CurrenciesApi$GetPACurrencies(...)
GetPACurrenciesWithHttpInfo()
CurrenciesApi$GetPACurrenciesWithHttpInfo(...)
clone()
The objects of this class are cloneable with this method.
CurrenciesApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### GetPACurrencies #################### library(factset.analyticsapi.engines) #Get PA currencies api.instance <- CurrenciesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPACurrencies(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### GetPACurrencies #################### library(factset.analyticsapi.engines) #Get PA currencies api.instance <- CurrenciesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPACurrencies(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
Currency Class
An R6Class
generator object
name
character [optional]
new()
Currency$new(name = NULL, ...)
toJSON()
Currency$toJSON()
fromJSON()
Currency$fromJSON(CurrencyJson)
toJSONString()
Currency$toJSONString()
fromJSONString()
Currency$fromJSONString(CurrencyJson)
clone()
The objects of this class are cloneable with this method.
Currency$clone(deep = FALSE)
deep
Whether to make a deep clone.
DateParametersSummary Class
An R6Class
generator object
startdate
character [optional]
enddate
character [optional]
new()
DateParametersSummary$new(startdate = NULL, enddate = NULL, ...)
toJSON()
DateParametersSummary$toJSON()
fromJSON()
DateParametersSummary$fromJSON(DateParametersSummaryJson)
toJSONString()
DateParametersSummary$toJSONString()
fromJSONString()
DateParametersSummary$fromJSONString(DateParametersSummaryJson)
clone()
The objects of this class are cloneable with this method.
DateParametersSummary$clone(deep = FALSE)
deep
Whether to make a deep clone.
factset.analyticsapi.engines.Dates
An R6Class
generator object
ConvertPADatesToAbsoluteFormat Convert PA dates to absolute format This endpoint converts the given start and end dates to yyyymmdd format for a PA calculation.
@param enddate character
@param componentid character
@param account character
@param startdate character
@returnType DateParametersSummary
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns the converted dates in yyyymmdd format.
return type : DateParametersSummary
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid query parameter or value is provided.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Document or account not found.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
ConvertVaultDatesToAbsoluteFormat Convert Vault dates to absolute format This endpoint converts the given start and end dates to yyyymmdd format for a Vault calculation.
@param enddate character
@param componentid character
@param account character
@param startdate character
@returnType DateParametersSummary
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns the converted dates in yyyymmdd format.
return type : DateParametersSummary
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid query parameter or value is provided.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | vault Document or account not found.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
apiClient
Handles the client-server communication.
new()
DatesApi$new(apiClient)
ConvertPADatesToAbsoluteFormat()
DatesApi$ConvertPADatesToAbsoluteFormat( enddate, componentid, account, startdate = NULL, ... )
ConvertPADatesToAbsoluteFormatWithHttpInfo()
DatesApi$ConvertPADatesToAbsoluteFormatWithHttpInfo( enddate, componentid, account, startdate = NULL, ... )
ConvertVaultDatesToAbsoluteFormat()
DatesApi$ConvertVaultDatesToAbsoluteFormat( enddate, componentid, account, startdate = NULL, ... )
ConvertVaultDatesToAbsoluteFormatWithHttpInfo()
DatesApi$ConvertVaultDatesToAbsoluteFormatWithHttpInfo( enddate, componentid, account, startdate = NULL, ... )
clone()
The objects of this class are cloneable with this method.
DatesApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### ConvertPADatesToAbsoluteFormat #################### library(factset.analyticsapi.engines) var.enddate <- 'enddate_example' # character | End Date var.componentid <- 'componentid_example' # character | Component Id var.account <- 'account_example' # character | Account var.startdate <- 'startdate_example' # character | Start Date #Convert PA dates to absolute format api.instance <- DatesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$ConvertPADatesToAbsoluteFormat(var.enddate, var.componentid, var.account, startdate=var.startdate), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### ConvertVaultDatesToAbsoluteFormat #################### library(factset.analyticsapi.engines) var.enddate <- 'enddate_example' # character | End Date var.componentid <- 'componentid_example' # character | Vault Component Id var.account <- 'account_example' # character | Account var.startdate <- 'startdate_example' # character | Start Date #Convert Vault dates to absolute format api.instance <- DatesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$ConvertVaultDatesToAbsoluteFormat(var.enddate, var.componentid, var.account, startdate=var.startdate), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### ConvertPADatesToAbsoluteFormat #################### library(factset.analyticsapi.engines) var.enddate <- 'enddate_example' # character | End Date var.componentid <- 'componentid_example' # character | Component Id var.account <- 'account_example' # character | Account var.startdate <- 'startdate_example' # character | Start Date #Convert PA dates to absolute format api.instance <- DatesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$ConvertPADatesToAbsoluteFormat(var.enddate, var.componentid, var.account, startdate=var.startdate), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### ConvertVaultDatesToAbsoluteFormat #################### library(factset.analyticsapi.engines) var.enddate <- 'enddate_example' # character | End Date var.componentid <- 'componentid_example' # character | Vault Component Id var.account <- 'account_example' # character | Account var.startdate <- 'startdate_example' # character | Start Date #Convert Vault dates to absolute format api.instance <- DatesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$ConvertVaultDatesToAbsoluteFormat(var.enddate, var.componentid, var.account, startdate=var.startdate), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
DocumentDirectories Class
An R6Class
generator object
documents
list( character ) [optional]
directories
list( character ) [optional]
new()
DocumentDirectories$new(documents = NULL, directories = NULL, ...)
toJSON()
DocumentDirectories$toJSON()
fromJSON()
DocumentDirectories$fromJSON(DocumentDirectoriesJson)
toJSONString()
DocumentDirectories$toJSONString()
fromJSONString()
DocumentDirectories$fromJSONString(DocumentDirectoriesJson)
clone()
The objects of this class are cloneable with this method.
DocumentDirectories$clone(deep = FALSE)
deep
Whether to make a deep clone.
factset.analyticsapi.engines.Documents
An R6Class
generator object
GetPA3Documents Get PA3 documents and sub-directories in a directory This endpoint looks up all PA3 documents and sub-directories in a given directory.
@param path character
@returnType DocumentDirectories
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of PA3 documents and directories
return type : DocumentDirectories
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid query parameter or value provided
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Path not found
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in some time
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetSPAR3Documents Gets SPAR3 documents and sub-directories in a directory This endpoint looks up all SPAR3 documents and sub-directories in a given directory.
@param path character
@returnType DocumentDirectories
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of SPAR3 documents and directories
return type : DocumentDirectories
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid query parameter or value provided
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Path not found
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in some time
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetVaultDocuments Get Vault documents and sub-directories in a directory This endpoint looks up all Vault documents and sub-directories in a given directory.
@param path character
@returnType DocumentDirectories
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of Vault documents and directories
return type : DocumentDirectories
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 400 | Invalid query parameter or value provided
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 404 | Path not found
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in some time
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
apiClient
Handles the client-server communication.
new()
DocumentsApi$new(apiClient)
GetPA3Documents()
DocumentsApi$GetPA3Documents(path, ...)
GetPA3DocumentsWithHttpInfo()
DocumentsApi$GetPA3DocumentsWithHttpInfo(path, ...)
GetSPAR3Documents()
DocumentsApi$GetSPAR3Documents(path, ...)
GetSPAR3DocumentsWithHttpInfo()
DocumentsApi$GetSPAR3DocumentsWithHttpInfo(path, ...)
GetVaultDocuments()
DocumentsApi$GetVaultDocuments(path, ...)
GetVaultDocumentsWithHttpInfo()
DocumentsApi$GetVaultDocumentsWithHttpInfo(path, ...)
clone()
The objects of this class are cloneable with this method.
DocumentsApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### GetPA3Documents #################### library(factset.analyticsapi.engines) var.path <- 'path_example' # character | The directory to get the documents and sub-directories in #Get PA3 documents and sub-directories in a directory api.instance <- DocumentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPA3Documents(var.path), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetSPAR3Documents #################### library(factset.analyticsapi.engines) var.path <- 'path_example' # character | The directory to get the documents in #Gets SPAR3 documents and sub-directories in a directory api.instance <- DocumentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetSPAR3Documents(var.path), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetVaultDocuments #################### library(factset.analyticsapi.engines) var.path <- 'path_example' # character | The directory to get the documents in #Get Vault documents and sub-directories in a directory api.instance <- DocumentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultDocuments(var.path), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### GetPA3Documents #################### library(factset.analyticsapi.engines) var.path <- 'path_example' # character | The directory to get the documents and sub-directories in #Get PA3 documents and sub-directories in a directory api.instance <- DocumentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPA3Documents(var.path), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetSPAR3Documents #################### library(factset.analyticsapi.engines) var.path <- 'path_example' # character | The directory to get the documents in #Gets SPAR3 documents and sub-directories in a directory api.instance <- DocumentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetSPAR3Documents(var.path), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetVaultDocuments #################### library(factset.analyticsapi.engines) var.path <- 'path_example' # character | The directory to get the documents in #Get Vault documents and sub-directories in a directory api.instance <- DocumentsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultDocuments(var.path), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
factset.analyticsapi.engines.Frequencies
An R6Class
generator object
GetPAFrequencies Get PA frequencies This endpoint lists all the frequencies that can be applied to a PA calculation.
@returnType named list( Frequency )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of PA frequencies.
return type : map(Frequency)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetSPARFrequencies Get SPAR frequencies This endpoint lists all the frequencies that can be applied to a SPAR calculation.
@returnType named list( Frequency )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of SPAR frequencies.
return type : map(Frequency)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
GetVaultFrequencies Get Vault frequencies This endpoint lists all the frequencies that can be applied to a Vault calculation.
@returnType named list( Frequency )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of Vault frequencies.
return type : map(Frequency)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
apiClient
Handles the client-server communication.
new()
FrequenciesApi$new(apiClient)
GetPAFrequencies()
FrequenciesApi$GetPAFrequencies(...)
GetPAFrequenciesWithHttpInfo()
FrequenciesApi$GetPAFrequenciesWithHttpInfo(...)
GetSPARFrequencies()
FrequenciesApi$GetSPARFrequencies(...)
GetSPARFrequenciesWithHttpInfo()
FrequenciesApi$GetSPARFrequenciesWithHttpInfo(...)
GetVaultFrequencies()
FrequenciesApi$GetVaultFrequencies(...)
GetVaultFrequenciesWithHttpInfo()
FrequenciesApi$GetVaultFrequenciesWithHttpInfo(...)
clone()
The objects of this class are cloneable with this method.
FrequenciesApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### GetPAFrequencies #################### library(factset.analyticsapi.engines) #Get PA frequencies api.instance <- FrequenciesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAFrequencies(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetSPARFrequencies #################### library(factset.analyticsapi.engines) #Get SPAR frequencies api.instance <- FrequenciesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetSPARFrequencies(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetVaultFrequencies #################### library(factset.analyticsapi.engines) #Get Vault frequencies api.instance <- FrequenciesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultFrequencies(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### GetPAFrequencies #################### library(factset.analyticsapi.engines) #Get PA frequencies api.instance <- FrequenciesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAFrequencies(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetSPARFrequencies #################### library(factset.analyticsapi.engines) #Get SPAR frequencies api.instance <- FrequenciesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetSPARFrequencies(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } #################### GetVaultFrequencies #################### library(factset.analyticsapi.engines) #Get Vault frequencies api.instance <- FrequenciesApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetVaultFrequencies(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
Frequency Class
An R6Class
generator object
name
character [optional]
new()
Frequency$new(name = NULL, ...)
toJSON()
Frequency$toJSON()
fromJSON()
Frequency$fromJSON(FrequencyJson)
toJSONString()
Frequency$toJSONString()
fromJSONString()
Frequency$fromJSONString(FrequencyJson)
clone()
The objects of this class are cloneable with this method.
Frequency$clone(deep = FALSE)
deep
Whether to make a deep clone.
Group Class
An R6Class
generator object
name
character [optional]
directory
character [optional]
category
character [optional]
new()
Group$new(name = NULL, directory = NULL, category = NULL, ...)
toJSON()
Group$toJSON()
fromJSON()
Group$fromJSON(GroupJson)
toJSONString()
Group$toJSONString()
fromJSONString()
Group$fromJSONString(GroupJson)
clone()
The objects of this class are cloneable with this method.
Group$clone(deep = FALSE)
deep
Whether to make a deep clone.
factset.analyticsapi.engines.Groups
An R6Class
generator object
GetPAGroups Get PA groups This endpoint lists all the PA groups that can be applied to a PA calculation.
@returnType named list( Group )
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response, returns a list of PA groups
return type : map(Group)
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
Age | Standard HTTP header. Header will specify the age of groupings list cached response. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 406 | Unsupported Accept header. Header needs to be set to application/json.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-RateLimit-Remaining | Number of requests left for the time window. |
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-RateLimit-Reset | Number of seconds remaining till rate limit resets. |
X-RateLimit-Limit | Number of allowed requests for the time window. |
X-DataDirect-Request-Key | FactSet's request key header. |
apiClient
Handles the client-server communication.
new()
GroupsApi$new(apiClient)
GetPAGroups()
GroupsApi$GetPAGroups(...)
GetPAGroupsWithHttpInfo()
GroupsApi$GetPAGroupsWithHttpInfo(...)
clone()
The objects of this class are cloneable with this method.
GroupsApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### GetPAGroups #################### library(factset.analyticsapi.engines) #Get PA groups api.instance <- GroupsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAGroups(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### GetPAGroups #################### library(factset.analyticsapi.engines) #Get PA groups api.instance <- GroupsApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetPAGroups(), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
PACalculationColumn Class
An R6Class
generator object
id
character [optional]
statistics
list( character ) [optional]
new()
PACalculationColumn$new(id = NULL, statistics = NULL, ...)
toJSON()
PACalculationColumn$toJSON()
fromJSON()
PACalculationColumn$fromJSON(PACalculationColumnJson)
toJSONString()
PACalculationColumn$toJSONString()
fromJSONString()
PACalculationColumn$fromJSONString(PACalculationColumnJson)
clone()
The objects of this class are cloneable with this method.
PACalculationColumn$clone(deep = FALSE)
deep
Whether to make a deep clone.
PACalculationGroup Class
An R6Class
generator object
id
character [optional]
new()
PACalculationGroup$new(id = NULL, ...)
toJSON()
PACalculationGroup$toJSON()
fromJSON()
PACalculationGroup$fromJSON(PACalculationGroupJson)
toJSONString()
PACalculationGroup$toJSONString()
fromJSONString()
PACalculationGroup$fromJSONString(PACalculationGroupJson)
clone()
The objects of this class are cloneable with this method.
PACalculationGroup$clone(deep = FALSE)
deep
Whether to make a deep clone.
PACalculationParameters Class
An R6Class
generator object
componentid
character
accounts
list( PAIdentifier ) [optional]
benchmarks
list( PAIdentifier ) [optional]
dates
PADateParameters [optional]
groups
list( PACalculationGroup ) [optional]
currencyisocode
character [optional]
columns
list( PACalculationColumn ) [optional]
new()
PACalculationParameters$new( componentid, accounts = NULL, benchmarks = NULL, dates = NULL, groups = NULL, currencyisocode = NULL, columns = NULL, ... )
toJSON()
PACalculationParameters$toJSON()
fromJSON()
PACalculationParameters$fromJSON(PACalculationParametersJson)
toJSONString()
PACalculationParameters$toJSONString()
fromJSONString()
PACalculationParameters$fromJSONString(PACalculationParametersJson)
clone()
The objects of this class are cloneable with this method.
PACalculationParameters$clone(deep = FALSE)
deep
Whether to make a deep clone.
PAComponent Class
An R6Class
generator object
id
character [optional]
accounts
list( PAIdentifier ) [optional]
benchmarks
list( PAIdentifier ) [optional]
currencyisocode
character [optional]
dates
PADateParameters [optional]
snapshot
character [optional]
name
character [optional]
category
character [optional]
new()
PAComponent$new( id = NULL, accounts = NULL, benchmarks = NULL, currencyisocode = NULL, dates = NULL, snapshot = NULL, name = NULL, category = NULL, ... )
toJSON()
PAComponent$toJSON()
fromJSON()
PAComponent$fromJSON(PAComponentJson)
toJSONString()
PAComponent$toJSONString()
fromJSONString()
PAComponent$fromJSONString(PAComponentJson)
clone()
The objects of this class are cloneable with this method.
PAComponent$clone(deep = FALSE)
deep
Whether to make a deep clone.
PADateParameters Class
An R6Class
generator object
startdate
character [optional]
enddate
character
frequency
character
new()
PADateParameters$new(enddate, frequency, startdate = NULL, ...)
toJSON()
PADateParameters$toJSON()
fromJSON()
PADateParameters$fromJSON(PADateParametersJson)
toJSONString()
PADateParameters$toJSONString()
fromJSONString()
PADateParameters$fromJSONString(PADateParametersJson)
clone()
The objects of this class are cloneable with this method.
PADateParameters$clone(deep = FALSE)
deep
Whether to make a deep clone.
PAIdentifier Class
An R6Class
generator object
id
character
holdingsmode
character [optional]
new()
PAIdentifier$new(id, holdingsmode = NULL, ...)
toJSON()
PAIdentifier$toJSON()
fromJSON()
PAIdentifier$fromJSON(PAIdentifierJson)
toJSONString()
PAIdentifier$toJSONString()
fromJSONString()
PAIdentifier$fromJSONString(PAIdentifierJson)
clone()
The objects of this class are cloneable with this method.
PAIdentifier$clone(deep = FALSE)
deep
Whether to make a deep clone.
SPARCalculationParameters Class
An R6Class
generator object
componentid
character
accounts
list( SPARIdentifier ) [optional]
benchmark
SPARIdentifier [optional]
dates
SPARDateParameters [optional]
new()
SPARCalculationParameters$new( componentid, accounts = NULL, benchmark = NULL, dates = NULL, ... )
toJSON()
SPARCalculationParameters$toJSON()
fromJSON()
SPARCalculationParameters$fromJSON(SPARCalculationParametersJson)
toJSONString()
SPARCalculationParameters$toJSONString()
fromJSONString()
SPARCalculationParameters$fromJSONString(SPARCalculationParametersJson)
clone()
The objects of this class are cloneable with this method.
SPARCalculationParameters$clone(deep = FALSE)
deep
Whether to make a deep clone.
SPARDateParameters Class
An R6Class
generator object
startdate
character
enddate
character
frequency
character
new()
SPARDateParameters$new(startdate, enddate, frequency, ...)
toJSON()
SPARDateParameters$toJSON()
fromJSON()
SPARDateParameters$fromJSON(SPARDateParametersJson)
toJSONString()
SPARDateParameters$toJSONString()
fromJSONString()
SPARDateParameters$fromJSONString(SPARDateParametersJson)
clone()
The objects of this class are cloneable with this method.
SPARDateParameters$clone(deep = FALSE)
deep
Whether to make a deep clone.
SPARIdentifier Class
An R6Class
generator object
id
character
returntype
character [optional]
prefix
character [optional]
new()
SPARIdentifier$new(id, returntype = NULL, prefix = NULL, ...)
toJSON()
SPARIdentifier$toJSON()
fromJSON()
SPARIdentifier$fromJSON(SPARIdentifierJson)
toJSONString()
SPARIdentifier$toJSONString()
fromJSONString()
SPARIdentifier$fromJSONString(SPARIdentifierJson)
clone()
The objects of this class are cloneable with this method.
SPARIdentifier$clone(deep = FALSE)
deep
Whether to make a deep clone.
factset.analyticsapi.engines
An R6Class
generator object
GetByUrl Url of the GET endpoint This function can be used to fetch data from any Get endpoint.
@param url character
@returnType raw
On encountering errors, an error of subclass ApiException will be thrown.
status code : 200 | Expected response once the request is successful. Response body will contain the data.
return type : raw
response headers :
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-DataDirect-Request-Key | FactSet’s request key header. |
status code : 400 | Invalid identifier provided.
response headers :
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-DataDirect-Request-Key | FactSet’s request key header. |
status code : 401 | Missing or invalid authentication.
response headers :
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-DataDirect-Request-Key | FactSet’s request key header. |
status code : 403 | User is forbidden with current credentials
response headers :
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-DataDirect-Request-Key | FactSet’s request key header. |
status code : 406 | Unsupported Accept header.
response headers :
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-DataDirect-Request-Key | FactSet’s request key header. |
status code : 500 | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting.
response headers :
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-DataDirect-Request-Key | FactSet’s request key header. |
status code : 503 | Request timed out. Retry the request in sometime.
response headers :
X-FactSet-Api-Request-Key | Key to uniquely identify an Analytics API request. Only available after successful authentication. |
X-DataDirect-Request-Key | FactSet’s request key header. |
apiClient
Handles the client-server communication.
new()
UtilityApi$new(apiClient)
GetByUrl()
UtilityApi$GetByUrl(url, ...)
GetByUrlWithHttpInfo()
UtilityApi$GetByUrlWithHttpInfo(url, ...)
clone()
The objects of this class are cloneable with this method.
UtilityApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### GetByUrl #################### library(factset.analyticsapi.engines) var.url <- url # character | Url of the GET endpoint # Get by url api.instance <- UtilityApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetByUrl(url = var.url), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
## Not run: #################### GetByUrl #################### library(factset.analyticsapi.engines) var.url <- url # character | Url of the GET endpoint # Get by url api.instance <- UtilityApi$new() #Configure HTTP basic authorization: Basic # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- tryCatch( api.instance$GetByUrl(url = var.url), ApiException = function(ex) ex ) # In case of error, print the error object if(!is.null(result$ApiException)) { cat(result$ApiException$toString()) } else { # deserialized response object response.object <- result$content # response headers response.headers <- result$response$headers # response status code response.status.code <- result$response$status_code } ## End(Not run)
VaultCalculationParameters Class
An R6Class
generator object
componentid
character
account
dates
VaultDateParameters [optional]
configid
character
new()
VaultCalculationParameters$new( componentid, account, configid, dates = NULL, ... )
toJSON()
VaultCalculationParameters$toJSON()
fromJSON()
VaultCalculationParameters$fromJSON(VaultCalculationParametersJson)
toJSONString()
VaultCalculationParameters$toJSONString()
fromJSONString()
VaultCalculationParameters$fromJSONString(VaultCalculationParametersJson)
clone()
The objects of this class are cloneable with this method.
VaultCalculationParameters$clone(deep = FALSE)
deep
Whether to make a deep clone.
VaultComponent Class
An R6Class
generator object
id
character [optional]
account
VaultIdentifier [optional]
benchmark
VaultIdentifier [optional]
currencyisocode
character [optional]
dates
VaultDateParameters [optional]
snapshot
character [optional]
name
character [optional]
category
character [optional]
new()
VaultComponent$new( id = NULL, account = NULL, benchmark = NULL, currencyisocode = NULL, dates = NULL, snapshot = NULL, name = NULL, category = NULL, ... )
toJSON()
VaultComponent$toJSON()
fromJSON()
VaultComponent$fromJSON(VaultComponentJson)
toJSONString()
VaultComponent$toJSONString()
fromJSONString()
VaultComponent$fromJSONString(VaultComponentJson)
clone()
The objects of this class are cloneable with this method.
VaultComponent$clone(deep = FALSE)
deep
Whether to make a deep clone.
VaultConfiguration Class
An R6Class
generator object
name
character [optional]
accounts
named list( ConfigurationAccount ) [optional]
new()
VaultConfiguration$new(name = NULL, accounts = NULL, ...)
toJSON()
VaultConfiguration$toJSON()
fromJSON()
VaultConfiguration$fromJSON(VaultConfigurationJson)
toJSONString()
VaultConfiguration$toJSONString()
fromJSONString()
VaultConfiguration$fromJSONString(VaultConfigurationJson)
clone()
The objects of this class are cloneable with this method.
VaultConfiguration$clone(deep = FALSE)
deep
Whether to make a deep clone.
VaultConfigurationSummary Class
An R6Class
generator object
name
character [optional]
new()
VaultConfigurationSummary$new(name = NULL, ...)
toJSON()
VaultConfigurationSummary$toJSON()
fromJSON()
VaultConfigurationSummary$fromJSON(VaultConfigurationSummaryJson)
toJSONString()
VaultConfigurationSummary$toJSONString()
fromJSONString()
VaultConfigurationSummary$fromJSONString(VaultConfigurationSummaryJson)
clone()
The objects of this class are cloneable with this method.
VaultConfigurationSummary$clone(deep = FALSE)
deep
Whether to make a deep clone.
VaultDateParameters Class
An R6Class
generator object
startdate
character [optional]
enddate
character
frequency
character
new()
VaultDateParameters$new(enddate, frequency, startdate = NULL, ...)
toJSON()
VaultDateParameters$toJSON()
fromJSON()
VaultDateParameters$fromJSON(VaultDateParametersJson)
toJSONString()
VaultDateParameters$toJSONString()
fromJSONString()
VaultDateParameters$fromJSONString(VaultDateParametersJson)
clone()
The objects of this class are cloneable with this method.
VaultDateParameters$clone(deep = FALSE)
deep
Whether to make a deep clone.
VaultIdentifier Class
An R6Class
generator object
id
character
new()
VaultIdentifier$new(id, ...)
toJSON()
VaultIdentifier$toJSON()
fromJSON()
VaultIdentifier$fromJSON(VaultIdentifierJson)
toJSONString()
VaultIdentifier$toJSONString()
fromJSONString()
VaultIdentifier$fromJSONString(VaultIdentifierJson)
clone()
The objects of this class are cloneable with this method.
VaultIdentifier$clone(deep = FALSE)
deep
Whether to make a deep clone.