FrequenciesApi: Frequencies operations

Description Format Methods Public fields Methods Examples

Description

factset.analyticsapi.engines.Frequencies

Format

An R6Class generator object

Methods

GetPAFrequencies Get PA frequencies This endpoint lists all the frequencies that can be applied to a PA calculation.

GetSPARFrequencies Get SPAR frequencies This endpoint lists all the frequencies that can be applied to a SPAR calculation.

GetVaultFrequencies Get Vault frequencies This endpoint lists all the frequencies that can be applied to a Vault calculation.

Public fields

apiClient

Handles the client-server communication.

Methods

Public methods


Method new()

Usage
FrequenciesApi$new(apiClient)

Method GetPAFrequencies()

Usage
FrequenciesApi$GetPAFrequencies(...)

Method GetPAFrequenciesWithHttpInfo()

Usage
FrequenciesApi$GetPAFrequenciesWithHttpInfo(...)

Method GetSPARFrequencies()

Usage
FrequenciesApi$GetSPARFrequencies(...)

Method GetSPARFrequenciesWithHttpInfo()

Usage
FrequenciesApi$GetSPARFrequenciesWithHttpInfo(...)

Method GetVaultFrequencies()

Usage
FrequenciesApi$GetVaultFrequencies(...)

Method GetVaultFrequenciesWithHttpInfo()

Usage
FrequenciesApi$GetVaultFrequenciesWithHttpInfo(...)

Method clone()

The objects of this class are cloneable with this method.

Usage
FrequenciesApi$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
## 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)

factset.analyticsapi.engines documentation built on Feb. 2, 2020, 5:06 p.m.