Skip to content

Commit 9612ebd

Browse files
feat(sdk): Auto-created from 'analyticsapi-engines-sdk-generator' repository PR 48 for SDK version v5.4.0 (#88)
* added tests for FI discount curves * updated FI tests with ratePath * updated Quant tests with overrideUniversalScreenCalendar
1 parent 80ac020 commit 9612ebd

38 files changed

+923
-14
lines changed

auto-generated-sdk/.openapi-generator/FILES

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ docs/CurrencyRoot.md
5353
docs/DateParametersSummary.md
5454
docs/DateParametersSummaryRoot.md
5555
docs/DatesApi.md
56+
docs/DiscountCurvesApi.md
5657
docs/DocumentDirectories.md
5758
docs/DocumentDirectoriesRoot.md
5859
docs/DocumentsApi.md
@@ -68,8 +69,11 @@ docs/FIABIdentifier.md
6869
docs/FICalculationParameters.md
6970
docs/FICalculationParametersRoot.md
7071
docs/FICalculationsApi.md
72+
docs/FIDiscountCurveInfo.md
73+
docs/FIDiscountCurveInfoRoot.md
7174
docs/FIJobSettings.md
7275
docs/FILoss.md
76+
docs/FIMarketEnvironment.md
7377
docs/FIPrepay.md
7478
docs/FIReferencePrepay.md
7579
docs/FIReferenceSecurity.md
@@ -217,6 +221,7 @@ fds/analyticsapi/engines/api/components_api.py
217221
fds/analyticsapi/engines/api/configurations_api.py
218222
fds/analyticsapi/engines/api/currencies_api.py
219223
fds/analyticsapi/engines/api/dates_api.py
224+
fds/analyticsapi/engines/api/discount_curves_api.py
220225
fds/analyticsapi/engines/api/documents_api.py
221226
fds/analyticsapi/engines/api/fi_calculations_api.py
222227
fds/analyticsapi/engines/api/fiab_calculations_api.py
@@ -284,8 +289,11 @@ fds/analyticsapi/engines/model/error_source.py
284289
fds/analyticsapi/engines/model/event_summary.py
285290
fds/analyticsapi/engines/model/fi_calculation_parameters.py
286291
fds/analyticsapi/engines/model/fi_calculation_parameters_root.py
292+
fds/analyticsapi/engines/model/fi_discount_curve_info.py
293+
fds/analyticsapi/engines/model/fi_discount_curve_info_root.py
287294
fds/analyticsapi/engines/model/fi_job_settings.py
288295
fds/analyticsapi/engines/model/fi_loss.py
296+
fds/analyticsapi/engines/model/fi_market_environment.py
289297
fds/analyticsapi/engines/model/fi_prepay.py
290298
fds/analyticsapi/engines/model/fi_reference_prepay.py
291299
fds/analyticsapi/engines/model/fi_reference_security.py

auto-generated-sdk/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Allow clients to fetch Analytics through APIs.
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab]
7-
- Package version: 5.3.0
7+
- Package version: 5.4.0
88
- Build package: CustomPythonClientCodegen
99
For more information, please visit [https://developer.factset.com/contact](https://developer.factset.com/contact)
1010

@@ -131,6 +131,7 @@ Class | Method | HTTP request | Description
131131
*CurrenciesApi* | [**get_currencies**](docs/CurrenciesApi.md#get_currencies) | **GET** /analytics/lookups/v3/currencies | Get currencies
132132
*DatesApi* | [**convert_pa_dates_to_absolute_format**](docs/DatesApi.md#convert_pa_dates_to_absolute_format) | **GET** /analytics/engines/pa/v3/dates | Convert PA dates to absolute format
133133
*DatesApi* | [**convert_vault_dates_to_absolute_format**](docs/DatesApi.md#convert_vault_dates_to_absolute_format) | **GET** /analytics/engines/vault/v3/dates | Convert Vault dates to absolute format
134+
*DiscountCurvesApi* | [**get_all_fi_discount_curves**](docs/DiscountCurvesApi.md#get_all_fi_discount_curves) | **GET** /analytics/engines/fi/v3/discount-curves | Get Discount Curves
134135
*DocumentsApi* | [**get_pa3_documents**](docs/DocumentsApi.md#get_pa3_documents) | **GET** /analytics/engines/pa/v3/documents/{path} | Get PA3 documents and sub-directories in a directory
135136
*DocumentsApi* | [**get_pub_documents**](docs/DocumentsApi.md#get_pub_documents) | **GET** /analytics/engines/pub/v3/documents/{path} | Gets Publisher documents and sub-directories in a directory
136137
*DocumentsApi* | [**get_spar3_documents**](docs/DocumentsApi.md#get_spar3_documents) | **GET** /analytics/engines/spar/v3/documents/{path} | Gets SPAR3 documents and sub-directories in a directory
@@ -268,8 +269,11 @@ Class | Method | HTTP request | Description
268269
- [FIABIdentifier](docs/FIABIdentifier.md)
269270
- [FICalculationParameters](docs/FICalculationParameters.md)
270271
- [FICalculationParametersRoot](docs/FICalculationParametersRoot.md)
272+
- [FIDiscountCurveInfo](docs/FIDiscountCurveInfo.md)
273+
- [FIDiscountCurveInfoRoot](docs/FIDiscountCurveInfoRoot.md)
271274
- [FIJobSettings](docs/FIJobSettings.md)
272275
- [FILoss](docs/FILoss.md)
276+
- [FIMarketEnvironment](docs/FIMarketEnvironment.md)
273277
- [FIPrepay](docs/FIPrepay.md)
274278
- [FIReferencePrepay](docs/FIReferencePrepay.md)
275279
- [FIReferenceSecurity](docs/FIReferenceSecurity.md)
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
2+
# fds.analyticsapi.engines.DiscountCurvesApi
3+
4+
All URIs are relative to *https://api.factset.com*
5+
6+
Method | HTTP request | Description
7+
------------- | ------------- | -------------
8+
[**get_all_fi_discount_curves**](DiscountCurvesApi.md#get_all_fi_discount_curves) | **GET** /analytics/engines/fi/v3/discount-curves | Get Discount Curves
9+
10+
11+
# **get_all_fi_discount_curves**
12+
> FIDiscountCurveInfoRoot get_all_fi_discount_curves()
13+
14+
Get Discount Curves
15+
16+
This endpoint lists all the discount curves that can be applied to a FI calculation.
17+
18+
### Example
19+
20+
* Basic Authentication (Basic):
21+
* Bearer Authentication (Bearer):
22+
```python
23+
import time
24+
import fds.analyticsapi.engines
25+
from fds.analyticsapi.engines.api import discount_curves_api
26+
from fds.analyticsapi.engines.model.fi_discount_curve_info_root import FIDiscountCurveInfoRoot
27+
from fds.analyticsapi.engines.model.client_error_response import ClientErrorResponse
28+
from pprint import pprint
29+
# Defining the host is optional and defaults to https://api.factset.com
30+
# See configuration.py for a list of all supported configuration parameters.
31+
configuration = fds.analyticsapi.engines.Configuration(
32+
host = "https://api.factset.com"
33+
)
34+
35+
# The client must configure the authentication and authorization parameters
36+
# in accordance with the API server security policy.
37+
# Examples for each auth method are provided below, use the example that
38+
# satisfies your auth use case.
39+
40+
# Configure HTTP basic authorization: Basic
41+
configuration = fds.analyticsapi.engines.Configuration(
42+
username = 'YOUR_USERNAME',
43+
password = 'YOUR_PASSWORD'
44+
)
45+
46+
# Configure Bearer authorization: Bearer
47+
configuration = fds.analyticsapi.engines.Configuration(
48+
access_token = 'YOUR_BEARER_TOKEN'
49+
)
50+
51+
# Enter a context with an instance of the API client
52+
with fds.analyticsapi.engines.ApiClient(configuration) as api_client:
53+
# Create an instance of the API class
54+
api_instance = discount_curves_api.DiscountCurvesApi(api_client)
55+
currency = "currency_example" # str | (optional)
56+
57+
# example passing only required values which don't have defaults set
58+
# and optional values
59+
try:
60+
# Get Discount Curves
61+
api_response = api_instance.get_all_fi_discount_curves(currency=currency)
62+
pprint(api_response)
63+
except fds.analyticsapi.engines.ApiException as e:
64+
print("Exception when calling DiscountCurvesApi->get_all_fi_discount_curves: %s\n" % e)
65+
```
66+
67+
68+
### Parameters
69+
70+
Name | Type | Description | Notes
71+
------------- | ------------- | ------------- | -------------
72+
**currency** | **str**| | [optional]
73+
74+
### Return type
75+
76+
- A tuple with response data, HTTP status code and response headers.
77+
- **Response datatype**: [**FIDiscountCurveInfoRoot**](FIDiscountCurveInfoRoot.md)
78+
79+
### Authorization
80+
81+
[Basic](../README.md#Basic), [Bearer](../README.md#Bearer)
82+
83+
### HTTP request headers
84+
85+
- **Content-Type**: Not defined
86+
- **Accept**: application/json
87+
88+
89+
### HTTP response details
90+
| Status code | Description | Response headers |
91+
|-------------|-------------|------------------|
92+
**200** | Expected response, returns a list of FI discount curves. | * X-DataDirect-Request-Key - FactSet&#39;s request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> |
93+
**404** | Not found | * X-DataDirect-Request-Key - FactSet&#39;s request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> |
94+
**401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet&#39;s request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> |
95+
**403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet&#39;s request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> |
96+
**406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet&#39;s request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> |
97+
**429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet&#39;s request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> |
98+
**500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet&#39;s request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> |
99+
**503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet&#39;s request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> |
100+
101+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
102+

auto-generated-sdk/docs/FICalculationsApi.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,9 @@ with fds.analyticsapi.engines.ApiClient(configuration) as api_client:
463463
call_method="No Call",
464464
settlement="settlement_example",
465465
calc_from_method="calc_from_method_example",
466+
market_environment=FIMarketEnvironment(
467+
rate_path="FLAT & FORWARD",
468+
),
466469
),
467470
),
468471
meta=CalculationMeta(
@@ -615,6 +618,9 @@ with fds.analyticsapi.engines.ApiClient(configuration) as api_client:
615618
call_method="No Call",
616619
settlement="settlement_example",
617620
calc_from_method="calc_from_method_example",
621+
market_environment=FIMarketEnvironment(
622+
rate_path="FLAT & FORWARD",
623+
),
618624
),
619625
),
620626
meta=CalculationMeta(
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# FIDiscountCurveInfo
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**category** | **str** | | [optional]
8+
**name** | **str** | | [optional]
9+
**currency** | **str** | | [optional]
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
13+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# FIDiscountCurveInfoRoot
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**data** | [**{str: (FIDiscountCurveInfo,)}**](FIDiscountCurveInfo.md) | |
8+
**meta** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

auto-generated-sdk/docs/FIJobSettings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**call_method** | **str** | Call Method | [optional]
1010
**settlement** | **str** | Settlement Date | [optional]
1111
**calc_from_method** | **str** | Calculation Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix | [optional]
12+
**market_environment** | [**FIMarketEnvironment**](FIMarketEnvironment.md) | | [optional]
1213

1314
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1415

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# FIMarketEnvironment
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**rate_path** | **str** | | [optional] if omitted the server will use the default value of "FLAT & FORWARD"
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

auto-generated-sdk/docs/QuantDate.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**source** | **str** | |
88
**frequency** | **str** | |
99
**calendar** | **str** | |
10+
**override_universal_screen_calendar** | **bool** | | [optional]
1011

1112
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1213

auto-generated-sdk/docs/QuantDateList.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**frequency** | **str** | |
99
**calendar** | **str** | |
1010
**dates** | **[str]** | | [optional]
11+
**override_universal_screen_calendar** | **bool** | | [optional]
1112

1213
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1314

0 commit comments

Comments
 (0)