Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion auto-generated-sdk/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ docs/NPOOptimizerApi.md
docs/NPOOptimizerStrategy.md
docs/NPOOptimizerStrategyOverrides.md
docs/ObjectRoot.md
docs/OneOfQuantDates.md
docs/OneOfQuantFormulas.md
docs/OneOfQuantFormulasArray.md
docs/OneOfQuantUniverse.md
docs/OptimalPortfolio.md
docs/Optimization.md
docs/OptimizerAccount.md
Expand Down Expand Up @@ -320,6 +324,10 @@ fds/analyticsapi/engines/model/npo_optimization_parameters_root.py
fds/analyticsapi/engines/model/npo_optimizer_strategy.py
fds/analyticsapi/engines/model/npo_optimizer_strategy_overrides.py
fds/analyticsapi/engines/model/object_root.py
fds/analyticsapi/engines/model/one_of_quant_dates.py
fds/analyticsapi/engines/model/one_of_quant_formulas.py
fds/analyticsapi/engines/model/one_of_quant_formulas_array.py
fds/analyticsapi/engines/model/one_of_quant_universe.py
fds/analyticsapi/engines/model/optimal_portfolio.py
fds/analyticsapi/engines/model/optimization.py
fds/analyticsapi/engines/model/optimizer_account.py
Expand Down Expand Up @@ -412,7 +420,6 @@ fds/analyticsapi/engines/model/vault_date_parameters.py
fds/analyticsapi/engines/model/vault_identifier.py
fds/analyticsapi/engines/model_utils.py
fds/analyticsapi/engines/models/__init__.py
fds/analyticsapi/engines/models/__init__.py
fds/analyticsapi/engines/rest.py
git_push.sh
requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion auto-generated-sdk/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.1.0
5.3.1
4 changes: 4 additions & 0 deletions auto-generated-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ Class | Method | HTTP request | Description
- [NPOOptimizerStrategy](docs/NPOOptimizerStrategy.md)
- [NPOOptimizerStrategyOverrides](docs/NPOOptimizerStrategyOverrides.md)
- [ObjectRoot](docs/ObjectRoot.md)
- [OneOfQuantDates](docs/OneOfQuantDates.md)
- [OneOfQuantFormulas](docs/OneOfQuantFormulas.md)
- [OneOfQuantFormulasArray](docs/OneOfQuantFormulasArray.md)
- [OneOfQuantUniverse](docs/OneOfQuantUniverse.md)
- [OptimalPortfolio](docs/OptimalPortfolio.md)
- [Optimization](docs/Optimization.md)
- [OptimizerAccount](docs/OptimizerAccount.md)
Expand Down
2 changes: 1 addition & 1 deletion auto-generated-sdk/docs/AFIOptimizationParametersRoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**AFIOptimizationParameters**](AFIOptimizationParameters.md) | | [optional]
**meta** | **bool, date, datetime, dict, float, int, list, str** | | [optional]
**meta** | **dict** | | [optional]

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**AxiomaEquityOptimizationParameters**](AxiomaEquityOptimizationParameters.md) | | [optional]
**meta** | **bool, date, datetime, dict, float, int, list, str** | | [optional]
**meta** | **dict** | | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion auto-generated-sdk/docs/BPMOptimizationParametersRoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**BPMOptimizationParameters**](BPMOptimizationParameters.md) | | [optional]
**meta** | **bool, date, datetime, dict, float, int, list, str** | | [optional]
**meta** | **dict** | | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion auto-generated-sdk/docs/FPOOptimizationParametersRoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**FPOOptimizationParameters**](FPOOptimizationParameters.md) | | [optional]
**meta** | **bool, date, datetime, dict, float, int, list, str** | | [optional]
**meta** | **dict** | | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion auto-generated-sdk/docs/NPOOptimizationParametersRoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**NPOOptimizationParameters**](NPOOptimizationParameters.md) | | [optional]
**meta** | **bool, date, datetime, dict, float, int, list, str** | | [optional]
**meta** | **dict** | | [optional]

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

Expand Down
14 changes: 14 additions & 0 deletions auto-generated-sdk/docs/OneOfQuantDates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# OneOfQuantDates


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source** | **str** | |
**frequency** | **str** | | [optional]
**calendar** | **str** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[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 changes: 11 additions & 0 deletions auto-generated-sdk/docs/OneOfQuantFormulas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# OneOfQuantFormulas


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | [**[OneOfQuantFormulasArray]**](OneOfQuantFormulasArray.md) | |

[[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 changes: 12 additions & 0 deletions auto-generated-sdk/docs/OneOfQuantFormulasArray.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# OneOfQuantFormulasArray


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source** | **str** | |
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[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 changes: 12 additions & 0 deletions auto-generated-sdk/docs/OneOfQuantUniverse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# OneOfQuantUniverse


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source** | **str** | |
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

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


2 changes: 1 addition & 1 deletion auto-generated-sdk/docs/OptimizerOutputTypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**trades** | [**OptimizerTradesList**](OptimizerTradesList.md) | | [optional]
**optimal** | [**OptimizerOptimalHoldings**](OptimizerOptimalHoldings.md) | | [optional]
**account** | [**OptimalPortfolio**](OptimalPortfolio.md) | | [optional]
**stats** | **bool, date, datetime, dict, float, int, list, str** | | [optional]
**stats** | **dict** | | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion auto-generated-sdk/docs/PubCalculationParametersRoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**{str: (PubCalculationParameters,)}**](PubCalculationParameters.md) | List of calculation parameters. | [optional]
**meta** | **bool, date, datetime, dict, float, int, list, str** | | [optional]
**meta** | **dict** | | [optional]

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

Expand Down
6 changes: 3 additions & 3 deletions auto-generated-sdk/docs/QuantCalculationParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**universe** | **object** | | [optional]
**dates** | **object** | | [optional]
**formulas** | **[object]** | | [optional]
**universe** | [**OneOfQuantUniverse**](OneOfQuantUniverse.md) | | [optional]
**dates** | [**OneOfQuantDates**](OneOfQuantDates.md) | | [optional]
**formulas** | [**OneOfQuantFormulas**](OneOfQuantFormulas.md) | | [optional]

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

Expand Down
34 changes: 10 additions & 24 deletions auto-generated-sdk/docs/QuantCalculationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,18 +515,11 @@ with fds.analyticsapi.engines.ApiClient(configuration) as api_client:
quant_calculation_parameters_root = QuantCalculationParametersRoot(
data={
"key": QuantCalculationParameters(
universe=
universe_type="Equity",
identifiers=[
"identifiers_example",
],
,
dates=
dates=[],
,
formulas=[
,
],
universe=OneOfQuantUniverse(None),
dates=OneOfQuantDates(None),
formulas=OneOfQuantFormulas([
OneOfQuantFormulasArray(None),
]),
),
},
meta=QuantCalculationMeta(
Expand Down Expand Up @@ -639,18 +632,11 @@ with fds.analyticsapi.engines.ApiClient(configuration) as api_client:
quant_calculation_parameters_root = QuantCalculationParametersRoot(
data={
"key": QuantCalculationParameters(
universe=
universe_type="Equity",
identifiers=[
"identifiers_example",
],
,
dates=
dates=[],
,
formulas=[
,
],
universe=OneOfQuantUniverse(None),
dates=OneOfQuantDates(None),
formulas=OneOfQuantFormulas([
OneOfQuantFormulasArray(None),
]),
),
},
meta=QuantCalculationMeta(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
file_type,
none_type,
validate_get_composed_info,
OpenApiModel
)
from fds.analyticsapi.engines.exceptions import ApiAttributeError



class AccountDirectories(ModelNormal):
Expand Down Expand Up @@ -87,8 +90,86 @@ def discriminator():
'directories': 'directories', # noqa: E501
}

read_only_vars = {
}

_composed_schemas = {}

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
"""AccountDirectories - a model defined in OpenAPI

Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
raised if the wrong type is input.
Defaults to True
_path_to_item (tuple/list): This is a list of keys or values to
drill down to the model in received_data
when deserializing a response
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_configuration (Configuration): the instance to use when
deserializing a file_type parameter.
If passed, type conversion is attempted
If omitted no type conversion is done.
_visited_composed_classes (tuple): This stores a tuple of
classes that we have traveled through so that
if we see that class again we will not use its
discriminator again.
When traveling through a discriminator, the
composed schema that is
is traveled through is added to this set.
For example if Animal has a discriminator
petType and we pass in "Dog", and the class Dog
allOf includes Animal, we move through Animal
once using the discriminator, and pick Dog.
Then in Dog, we will make an instance of the
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
accounts ([str]): List of account and composite files.. [optional] # noqa: E501
directories ([str]): List of directories.. [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())

self = super(OpenApiModel, cls).__new__(cls)

if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)

self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
return self

required_properties = set([
'_data_store',
'_check_type',
Expand Down Expand Up @@ -168,3 +249,6 @@ def __init__(self, *args, **kwargs): # noqa: E501
# discard variable.
continue
setattr(self, var_name, var_value)
if var_name in self.read_only_vars:
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
f"class with read only attributes.")
Loading