lusid-sdk 2.0.482__py3-none-any.whl → 2.0.487__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lusid-sdk might be problematic. Click here for more details.
- lusid/__init__.py +8 -0
- lusid/api/funds_api.py +933 -54
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +8 -0
- lusid/models/upsert_valuation_point_request.py +135 -0
- lusid/models/valuation_point_data_query_parameters.py +73 -0
- lusid/models/valuation_point_data_request.py +76 -0
- lusid/models/valuation_point_data_response.py +107 -0
- lusid/rest.py +4 -1
- {lusid_sdk-2.0.482.dist-info → lusid_sdk-2.0.487.dist-info}/METADATA +13 -4
- {lusid_sdk-2.0.482.dist-info → lusid_sdk-2.0.487.dist-info}/RECORD +12 -8
- {lusid_sdk-2.0.482.dist-info → lusid_sdk-2.0.487.dist-info}/WHEEL +0 -0
lusid/configuration.py
CHANGED
|
@@ -373,7 +373,7 @@ class Configuration:
|
|
|
373
373
|
return "Python SDK Debug Report:\n"\
|
|
374
374
|
"OS: {env}\n"\
|
|
375
375
|
"Python Version: {pyversion}\n"\
|
|
376
|
-
"Version of the API: 0.11.
|
|
376
|
+
"Version of the API: 0.11.6434\n"\
|
|
377
377
|
"SDK Package Version: {package_version}".\
|
|
378
378
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
|
379
379
|
|
lusid/models/__init__.py
CHANGED
|
@@ -909,7 +909,11 @@ from lusid.models.upsert_structured_data_response import UpsertStructuredDataRes
|
|
|
909
909
|
from lusid.models.upsert_structured_result_data_request import UpsertStructuredResultDataRequest
|
|
910
910
|
from lusid.models.upsert_transaction_properties_response import UpsertTransactionPropertiesResponse
|
|
911
911
|
from lusid.models.upsert_translation_script_request import UpsertTranslationScriptRequest
|
|
912
|
+
from lusid.models.upsert_valuation_point_request import UpsertValuationPointRequest
|
|
912
913
|
from lusid.models.user import User
|
|
914
|
+
from lusid.models.valuation_point_data_query_parameters import ValuationPointDataQueryParameters
|
|
915
|
+
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
|
916
|
+
from lusid.models.valuation_point_data_response import ValuationPointDataResponse
|
|
913
917
|
from lusid.models.valuation_request import ValuationRequest
|
|
914
918
|
from lusid.models.valuation_schedule import ValuationSchedule
|
|
915
919
|
from lusid.models.valuations_reconciliation_request import ValuationsReconciliationRequest
|
|
@@ -1835,7 +1839,11 @@ __all__ = [
|
|
|
1835
1839
|
"UpsertStructuredResultDataRequest",
|
|
1836
1840
|
"UpsertTransactionPropertiesResponse",
|
|
1837
1841
|
"UpsertTranslationScriptRequest",
|
|
1842
|
+
"UpsertValuationPointRequest",
|
|
1838
1843
|
"User",
|
|
1844
|
+
"ValuationPointDataQueryParameters",
|
|
1845
|
+
"ValuationPointDataRequest",
|
|
1846
|
+
"ValuationPointDataResponse",
|
|
1839
1847
|
"ValuationRequest",
|
|
1840
1848
|
"ValuationSchedule",
|
|
1841
1849
|
"ValuationsReconciliationRequest",
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LUSID API
|
|
5
|
+
|
|
6
|
+
FINBOURNE Technology # noqa: E501
|
|
7
|
+
|
|
8
|
+
Contact: info@finbourne.com
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from datetime import datetime
|
|
21
|
+
from typing import Any, Dict, Optional
|
|
22
|
+
from pydantic import BaseModel, Field, constr, validator
|
|
23
|
+
from lusid.models.model_property import ModelProperty
|
|
24
|
+
|
|
25
|
+
class UpsertValuationPointRequest(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
A definition for the period you wish to close # noqa: E501
|
|
28
|
+
"""
|
|
29
|
+
diary_entry_code: Optional[constr(strict=True, max_length=64, min_length=1)] = Field(None, alias="diaryEntryCode", description="Unique code for the Valuation Point.")
|
|
30
|
+
name: Optional[constr(strict=True, max_length=512, min_length=1)] = Field(None, description="Identifiable Name assigned to the Valuation Point.")
|
|
31
|
+
effective_at: Optional[datetime] = Field(None, alias="effectiveAt", description="The effective time of the diary entry.")
|
|
32
|
+
query_as_at: Optional[datetime] = Field(None, alias="queryAsAt", description="The query time of the diary entry. Defaults to latest.")
|
|
33
|
+
properties: Optional[Dict[str, ModelProperty]] = Field(None, description="A set of properties for the diary entry.")
|
|
34
|
+
__properties = ["diaryEntryCode", "name", "effectiveAt", "queryAsAt", "properties"]
|
|
35
|
+
|
|
36
|
+
@validator('diary_entry_code')
|
|
37
|
+
def diary_entry_code_validate_regular_expression(cls, value):
|
|
38
|
+
"""Validates the regular expression"""
|
|
39
|
+
if value is None:
|
|
40
|
+
return value
|
|
41
|
+
|
|
42
|
+
if not re.match(r"^[a-zA-Z0-9\-_]+$", value):
|
|
43
|
+
raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9\-_]+$/")
|
|
44
|
+
return value
|
|
45
|
+
|
|
46
|
+
@validator('name')
|
|
47
|
+
def name_validate_regular_expression(cls, value):
|
|
48
|
+
"""Validates the regular expression"""
|
|
49
|
+
if value is None:
|
|
50
|
+
return value
|
|
51
|
+
|
|
52
|
+
if not re.match(r"^[\s\S]*$", value):
|
|
53
|
+
raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
|
|
54
|
+
return value
|
|
55
|
+
|
|
56
|
+
class Config:
|
|
57
|
+
"""Pydantic configuration"""
|
|
58
|
+
allow_population_by_field_name = True
|
|
59
|
+
validate_assignment = True
|
|
60
|
+
|
|
61
|
+
def to_str(self) -> str:
|
|
62
|
+
"""Returns the string representation of the model using alias"""
|
|
63
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
64
|
+
|
|
65
|
+
def to_json(self) -> str:
|
|
66
|
+
"""Returns the JSON representation of the model using alias"""
|
|
67
|
+
return json.dumps(self.to_dict())
|
|
68
|
+
|
|
69
|
+
@classmethod
|
|
70
|
+
def from_json(cls, json_str: str) -> UpsertValuationPointRequest:
|
|
71
|
+
"""Create an instance of UpsertValuationPointRequest from a JSON string"""
|
|
72
|
+
return cls.from_dict(json.loads(json_str))
|
|
73
|
+
|
|
74
|
+
def to_dict(self):
|
|
75
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
76
|
+
_dict = self.dict(by_alias=True,
|
|
77
|
+
exclude={
|
|
78
|
+
},
|
|
79
|
+
exclude_none=True)
|
|
80
|
+
# override the default output from pydantic by calling `to_dict()` of each value in properties (dict)
|
|
81
|
+
_field_dict = {}
|
|
82
|
+
if self.properties:
|
|
83
|
+
for _key in self.properties:
|
|
84
|
+
if self.properties[_key]:
|
|
85
|
+
_field_dict[_key] = self.properties[_key].to_dict()
|
|
86
|
+
_dict['properties'] = _field_dict
|
|
87
|
+
# set to None if diary_entry_code (nullable) is None
|
|
88
|
+
# and __fields_set__ contains the field
|
|
89
|
+
if self.diary_entry_code is None and "diary_entry_code" in self.__fields_set__:
|
|
90
|
+
_dict['diaryEntryCode'] = None
|
|
91
|
+
|
|
92
|
+
# set to None if name (nullable) is None
|
|
93
|
+
# and __fields_set__ contains the field
|
|
94
|
+
if self.name is None and "name" in self.__fields_set__:
|
|
95
|
+
_dict['name'] = None
|
|
96
|
+
|
|
97
|
+
# set to None if effective_at (nullable) is None
|
|
98
|
+
# and __fields_set__ contains the field
|
|
99
|
+
if self.effective_at is None and "effective_at" in self.__fields_set__:
|
|
100
|
+
_dict['effectiveAt'] = None
|
|
101
|
+
|
|
102
|
+
# set to None if query_as_at (nullable) is None
|
|
103
|
+
# and __fields_set__ contains the field
|
|
104
|
+
if self.query_as_at is None and "query_as_at" in self.__fields_set__:
|
|
105
|
+
_dict['queryAsAt'] = None
|
|
106
|
+
|
|
107
|
+
# set to None if properties (nullable) is None
|
|
108
|
+
# and __fields_set__ contains the field
|
|
109
|
+
if self.properties is None and "properties" in self.__fields_set__:
|
|
110
|
+
_dict['properties'] = None
|
|
111
|
+
|
|
112
|
+
return _dict
|
|
113
|
+
|
|
114
|
+
@classmethod
|
|
115
|
+
def from_dict(cls, obj: dict) -> UpsertValuationPointRequest:
|
|
116
|
+
"""Create an instance of UpsertValuationPointRequest from a dict"""
|
|
117
|
+
if obj is None:
|
|
118
|
+
return None
|
|
119
|
+
|
|
120
|
+
if not isinstance(obj, dict):
|
|
121
|
+
return UpsertValuationPointRequest.parse_obj(obj)
|
|
122
|
+
|
|
123
|
+
_obj = UpsertValuationPointRequest.parse_obj({
|
|
124
|
+
"diary_entry_code": obj.get("diaryEntryCode"),
|
|
125
|
+
"name": obj.get("name"),
|
|
126
|
+
"effective_at": obj.get("effectiveAt"),
|
|
127
|
+
"query_as_at": obj.get("queryAsAt"),
|
|
128
|
+
"properties": dict(
|
|
129
|
+
(_k, ModelProperty.from_dict(_v))
|
|
130
|
+
for _k, _v in obj.get("properties").items()
|
|
131
|
+
)
|
|
132
|
+
if obj.get("properties") is not None
|
|
133
|
+
else None
|
|
134
|
+
})
|
|
135
|
+
return _obj
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LUSID API
|
|
5
|
+
|
|
6
|
+
FINBOURNE Technology # noqa: E501
|
|
7
|
+
|
|
8
|
+
Contact: info@finbourne.com
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
from typing import Any, Dict, Optional
|
|
22
|
+
from pydantic import BaseModel
|
|
23
|
+
from lusid.models.date_or_diary_entry import DateOrDiaryEntry
|
|
24
|
+
|
|
25
|
+
class ValuationPointDataQueryParameters(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
The parameters used in getting the ValuationPointData. # noqa: E501
|
|
28
|
+
"""
|
|
29
|
+
end: Optional[DateOrDiaryEntry] = None
|
|
30
|
+
__properties = ["end"]
|
|
31
|
+
|
|
32
|
+
class Config:
|
|
33
|
+
"""Pydantic configuration"""
|
|
34
|
+
allow_population_by_field_name = True
|
|
35
|
+
validate_assignment = True
|
|
36
|
+
|
|
37
|
+
def to_str(self) -> str:
|
|
38
|
+
"""Returns the string representation of the model using alias"""
|
|
39
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
40
|
+
|
|
41
|
+
def to_json(self) -> str:
|
|
42
|
+
"""Returns the JSON representation of the model using alias"""
|
|
43
|
+
return json.dumps(self.to_dict())
|
|
44
|
+
|
|
45
|
+
@classmethod
|
|
46
|
+
def from_json(cls, json_str: str) -> ValuationPointDataQueryParameters:
|
|
47
|
+
"""Create an instance of ValuationPointDataQueryParameters from a JSON string"""
|
|
48
|
+
return cls.from_dict(json.loads(json_str))
|
|
49
|
+
|
|
50
|
+
def to_dict(self):
|
|
51
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
52
|
+
_dict = self.dict(by_alias=True,
|
|
53
|
+
exclude={
|
|
54
|
+
},
|
|
55
|
+
exclude_none=True)
|
|
56
|
+
# override the default output from pydantic by calling `to_dict()` of end
|
|
57
|
+
if self.end:
|
|
58
|
+
_dict['end'] = self.end.to_dict()
|
|
59
|
+
return _dict
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_dict(cls, obj: dict) -> ValuationPointDataQueryParameters:
|
|
63
|
+
"""Create an instance of ValuationPointDataQueryParameters from a dict"""
|
|
64
|
+
if obj is None:
|
|
65
|
+
return None
|
|
66
|
+
|
|
67
|
+
if not isinstance(obj, dict):
|
|
68
|
+
return ValuationPointDataQueryParameters.parse_obj(obj)
|
|
69
|
+
|
|
70
|
+
_obj = ValuationPointDataQueryParameters.parse_obj({
|
|
71
|
+
"end": DateOrDiaryEntry.from_dict(obj.get("end")) if obj.get("end") is not None else None
|
|
72
|
+
})
|
|
73
|
+
return _obj
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LUSID API
|
|
5
|
+
|
|
6
|
+
FINBOURNE Technology # noqa: E501
|
|
7
|
+
|
|
8
|
+
Contact: info@finbourne.com
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
from typing import Any, Dict
|
|
22
|
+
from pydantic import BaseModel, Field, constr, validator
|
|
23
|
+
|
|
24
|
+
class ValuationPointDataRequest(BaseModel):
|
|
25
|
+
"""
|
|
26
|
+
The ValuationPointDataRequest. # noqa: E501
|
|
27
|
+
"""
|
|
28
|
+
diary_entry_code: constr(strict=True, max_length=64, min_length=1) = Field(..., alias="diaryEntryCode", description="Unique code for the Valuation Point.")
|
|
29
|
+
__properties = ["diaryEntryCode"]
|
|
30
|
+
|
|
31
|
+
@validator('diary_entry_code')
|
|
32
|
+
def diary_entry_code_validate_regular_expression(cls, value):
|
|
33
|
+
"""Validates the regular expression"""
|
|
34
|
+
if not re.match(r"^[a-zA-Z0-9\-_]+$", value):
|
|
35
|
+
raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9\-_]+$/")
|
|
36
|
+
return value
|
|
37
|
+
|
|
38
|
+
class Config:
|
|
39
|
+
"""Pydantic configuration"""
|
|
40
|
+
allow_population_by_field_name = True
|
|
41
|
+
validate_assignment = True
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> ValuationPointDataRequest:
|
|
53
|
+
"""Create an instance of ValuationPointDataRequest from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self):
|
|
57
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
58
|
+
_dict = self.dict(by_alias=True,
|
|
59
|
+
exclude={
|
|
60
|
+
},
|
|
61
|
+
exclude_none=True)
|
|
62
|
+
return _dict
|
|
63
|
+
|
|
64
|
+
@classmethod
|
|
65
|
+
def from_dict(cls, obj: dict) -> ValuationPointDataRequest:
|
|
66
|
+
"""Create an instance of ValuationPointDataRequest from a dict"""
|
|
67
|
+
if obj is None:
|
|
68
|
+
return None
|
|
69
|
+
|
|
70
|
+
if not isinstance(obj, dict):
|
|
71
|
+
return ValuationPointDataRequest.parse_obj(obj)
|
|
72
|
+
|
|
73
|
+
_obj = ValuationPointDataRequest.parse_obj({
|
|
74
|
+
"diary_entry_code": obj.get("diaryEntryCode")
|
|
75
|
+
})
|
|
76
|
+
return _obj
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LUSID API
|
|
5
|
+
|
|
6
|
+
FINBOURNE Technology # noqa: E501
|
|
7
|
+
|
|
8
|
+
Contact: info@finbourne.com
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
from typing import Any, Dict, List, Optional, Union
|
|
22
|
+
from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, constr
|
|
23
|
+
from lusid.models.link import Link
|
|
24
|
+
|
|
25
|
+
class ValuationPointDataResponse(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
The Valuation Point Data Response for the Fund and specified date. # noqa: E501
|
|
28
|
+
"""
|
|
29
|
+
href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
|
|
30
|
+
type: constr(strict=True, min_length=1) = Field(..., description="The Type of the associated Diary Entry ('PeriodBoundary','ValuationPoint','Other' or 'Adhoc' when a diary Entry wasn't used).")
|
|
31
|
+
status: constr(strict=True, min_length=1) = Field(..., description="The Status of the associated Diary Entry ('Estimate','Final','Candidate' or 'Unofficial').")
|
|
32
|
+
backout: Dict[str, Union[StrictFloat, StrictInt]] = Field(..., description="Bucket of detail for the Valuation Point, where data points have been 'backed out'.")
|
|
33
|
+
dealing: Dict[str, Union[StrictFloat, StrictInt]] = Field(..., description="Bucket of detail for any 'Dealing' that has occured inside the queried period.")
|
|
34
|
+
pn_l: Dict[str, Union[StrictFloat, StrictInt]] = Field(..., alias="pnL", description="Bucket of detail for 'PnL' that has occured inside the queried period.")
|
|
35
|
+
gav: Union[StrictFloat, StrictInt] = Field(..., description="The Gross Asset Value of the Fund at the Period end. This is effectively a summation of all Trial balance entries linked to accounts of types 'Asset' and 'Liabilities'.")
|
|
36
|
+
fees: Dict[str, Union[StrictFloat, StrictInt]] = Field(..., description="Bucket of detail for any 'Fees' that have been charged in the selected period.")
|
|
37
|
+
nav: Union[StrictFloat, StrictInt] = Field(..., description="The Net Asset Value of the Fund at the Period end. This represents the GAV with any fees applied in the period.")
|
|
38
|
+
previous_nav: Union[StrictFloat, StrictInt] = Field(..., alias="previousNav", description="The Net Asset Value of the Fund at the End of the last Period.")
|
|
39
|
+
links: Optional[conlist(Link)] = None
|
|
40
|
+
__properties = ["href", "type", "status", "backout", "dealing", "pnL", "gav", "fees", "nav", "previousNav", "links"]
|
|
41
|
+
|
|
42
|
+
class Config:
|
|
43
|
+
"""Pydantic configuration"""
|
|
44
|
+
allow_population_by_field_name = True
|
|
45
|
+
validate_assignment = True
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
return json.dumps(self.to_dict())
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_json(cls, json_str: str) -> ValuationPointDataResponse:
|
|
57
|
+
"""Create an instance of ValuationPointDataResponse from a JSON string"""
|
|
58
|
+
return cls.from_dict(json.loads(json_str))
|
|
59
|
+
|
|
60
|
+
def to_dict(self):
|
|
61
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
62
|
+
_dict = self.dict(by_alias=True,
|
|
63
|
+
exclude={
|
|
64
|
+
},
|
|
65
|
+
exclude_none=True)
|
|
66
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
|
67
|
+
_items = []
|
|
68
|
+
if self.links:
|
|
69
|
+
for _item in self.links:
|
|
70
|
+
if _item:
|
|
71
|
+
_items.append(_item.to_dict())
|
|
72
|
+
_dict['links'] = _items
|
|
73
|
+
# set to None if href (nullable) is None
|
|
74
|
+
# and __fields_set__ contains the field
|
|
75
|
+
if self.href is None and "href" in self.__fields_set__:
|
|
76
|
+
_dict['href'] = None
|
|
77
|
+
|
|
78
|
+
# set to None if links (nullable) is None
|
|
79
|
+
# and __fields_set__ contains the field
|
|
80
|
+
if self.links is None and "links" in self.__fields_set__:
|
|
81
|
+
_dict['links'] = None
|
|
82
|
+
|
|
83
|
+
return _dict
|
|
84
|
+
|
|
85
|
+
@classmethod
|
|
86
|
+
def from_dict(cls, obj: dict) -> ValuationPointDataResponse:
|
|
87
|
+
"""Create an instance of ValuationPointDataResponse from a dict"""
|
|
88
|
+
if obj is None:
|
|
89
|
+
return None
|
|
90
|
+
|
|
91
|
+
if not isinstance(obj, dict):
|
|
92
|
+
return ValuationPointDataResponse.parse_obj(obj)
|
|
93
|
+
|
|
94
|
+
_obj = ValuationPointDataResponse.parse_obj({
|
|
95
|
+
"href": obj.get("href"),
|
|
96
|
+
"type": obj.get("type"),
|
|
97
|
+
"status": obj.get("status"),
|
|
98
|
+
"backout": obj.get("backout"),
|
|
99
|
+
"dealing": obj.get("dealing"),
|
|
100
|
+
"pn_l": obj.get("pnL"),
|
|
101
|
+
"gav": obj.get("gav"),
|
|
102
|
+
"fees": obj.get("fees"),
|
|
103
|
+
"nav": obj.get("nav"),
|
|
104
|
+
"previous_nav": obj.get("previousNav"),
|
|
105
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
|
106
|
+
})
|
|
107
|
+
return _obj
|
lusid/rest.py
CHANGED
|
@@ -116,7 +116,10 @@ class RESTClientObject:
|
|
|
116
116
|
|
|
117
117
|
if 'Content-Type' not in headers:
|
|
118
118
|
headers['Content-Type'] = 'application/json'
|
|
119
|
-
|
|
119
|
+
|
|
120
|
+
for content in headers:
|
|
121
|
+
headers[content] = str(headers[content])
|
|
122
|
+
|
|
120
123
|
args = {
|
|
121
124
|
"method": method,
|
|
122
125
|
"url": url,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lusid-sdk
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.487
|
|
4
4
|
Summary: LUSID API
|
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
|
6
6
|
License: MIT
|
|
@@ -29,8 +29,8 @@ FINBOURNE Technology
|
|
|
29
29
|
|
|
30
30
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
31
31
|
|
|
32
|
-
- API version: 0.11.
|
|
33
|
-
- Package version: 2.0.
|
|
32
|
+
- API version: 0.11.6434
|
|
33
|
+
- Package version: 2.0.487
|
|
34
34
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
35
35
|
For more information, please visit [https://www.finbourne.com](https://www.finbourne.com)
|
|
36
36
|
|
|
@@ -387,12 +387,17 @@ Class | Method | HTTP request | Description
|
|
|
387
387
|
*ExecutionsApi* | [**get_execution**](docs/ExecutionsApi.md#get_execution) | **GET** /api/executions/{scope}/{code} | [EARLY ACCESS] GetExecution: Get Execution
|
|
388
388
|
*ExecutionsApi* | [**list_executions**](docs/ExecutionsApi.md#list_executions) | **GET** /api/executions | [EARLY ACCESS] ListExecutions: List Executions
|
|
389
389
|
*ExecutionsApi* | [**upsert_executions**](docs/ExecutionsApi.md#upsert_executions) | **POST** /api/executions | [EARLY ACCESS] UpsertExecutions: Upsert Execution
|
|
390
|
+
*FundsApi* | [**accept_estimate_point**](docs/FundsApi.md#accept_estimate_point) | **POST** /api/funds/{scope}/{code}/valuationpoints/$acceptestimate | [EXPERIMENTAL] AcceptEstimatePoint: Accepts an Estimate Valuation Point.
|
|
390
391
|
*FundsApi* | [**create_fund**](docs/FundsApi.md#create_fund) | **POST** /api/funds/{scope} | [EXPERIMENTAL] CreateFund: Create a Fund.
|
|
391
392
|
*FundsApi* | [**delete_fund**](docs/FundsApi.md#delete_fund) | **DELETE** /api/funds/{scope}/{code} | [EXPERIMENTAL] DeleteFund: Delete a Fund.
|
|
393
|
+
*FundsApi* | [**delete_valuation_point**](docs/FundsApi.md#delete_valuation_point) | **DELETE** /api/funds/{scope}/{code}/valuationpoints/{diaryEntryCode} | [EXPERIMENTAL] DeleteValuationPoint: Delete a Valuation Point.
|
|
394
|
+
*FundsApi* | [**finalise_candidate_valuation**](docs/FundsApi.md#finalise_candidate_valuation) | **POST** /api/funds/{scope}/{code}/valuationpoints/$finalisecandidate | [EXPERIMENTAL] FinaliseCandidateValuation: Finalise Candidate.
|
|
392
395
|
*FundsApi* | [**get_fund**](docs/FundsApi.md#get_fund) | **GET** /api/funds/{scope}/{code} | [EXPERIMENTAL] GetFund: Get a Fund.
|
|
396
|
+
*FundsApi* | [**get_valuation_point_data**](docs/FundsApi.md#get_valuation_point_data) | **POST** /api/funds/{scope}/{code}/valuationpoints | [EXPERIMENTAL] GetValuationPointData: Get Valuation Point Data for a Fund.
|
|
393
397
|
*FundsApi* | [**list_funds**](docs/FundsApi.md#list_funds) | **GET** /api/funds | [EXPERIMENTAL] ListFunds: List Funds.
|
|
394
398
|
*FundsApi* | [**set_share_class_instruments**](docs/FundsApi.md#set_share_class_instruments) | **POST** /api/funds/{scope}/{code}/shareclasses | [EXPERIMENTAL] SetShareClassInstruments: Set the ShareClass Instruments on a fund.
|
|
395
|
-
*FundsApi* | [**upsert_fund_properties**](docs/FundsApi.md#upsert_fund_properties) | **POST** /api/funds/{scope}/{code}/properties/$upsert | [EXPERIMENTAL] UpsertFundProperties: Upsert Fund properties
|
|
399
|
+
*FundsApi* | [**upsert_fund_properties**](docs/FundsApi.md#upsert_fund_properties) | **POST** /api/funds/{scope}/{code}/properties/$upsert | [EXPERIMENTAL] UpsertFundProperties: Upsert Fund properties.
|
|
400
|
+
*FundsApi* | [**upsert_valuation_point**](docs/FundsApi.md#upsert_valuation_point) | **POST** /api/funds/{scope}/{code}/valuationpoints/$upsert | [EXPERIMENTAL] UpsertValuationPoint: Upsert Valuation Point.
|
|
396
401
|
*InstrumentEventTypesApi* | [**create_transaction_template**](docs/InstrumentEventTypesApi.md#create_transaction_template) | **POST** /api/instrumenteventtypes/{instrumentEventType}/transactiontemplates/{instrumentType}/{scope} | [EXPERIMENTAL] CreateTransactionTemplate: Create Transaction Template
|
|
397
402
|
*InstrumentEventTypesApi* | [**delete_transaction_template**](docs/InstrumentEventTypesApi.md#delete_transaction_template) | **DELETE** /api/instrumenteventtypes/{instrumentEventType}/transactiontemplates/{instrumentType}/{scope} | [EXPERIMENTAL] DeleteTransactionTemplate: Delete Transaction Template
|
|
398
403
|
*InstrumentEventTypesApi* | [**get_transaction_template**](docs/InstrumentEventTypesApi.md#get_transaction_template) | **GET** /api/instrumenteventtypes/{instrumentEventType}/transactiontemplates/{instrumentType}/{scope} | [EXPERIMENTAL] GetTransactionTemplate: Get Transaction Template
|
|
@@ -1604,7 +1609,11 @@ Class | Method | HTTP request | Description
|
|
|
1604
1609
|
- [UpsertStructuredResultDataRequest](docs/UpsertStructuredResultDataRequest.md)
|
|
1605
1610
|
- [UpsertTransactionPropertiesResponse](docs/UpsertTransactionPropertiesResponse.md)
|
|
1606
1611
|
- [UpsertTranslationScriptRequest](docs/UpsertTranslationScriptRequest.md)
|
|
1612
|
+
- [UpsertValuationPointRequest](docs/UpsertValuationPointRequest.md)
|
|
1607
1613
|
- [User](docs/User.md)
|
|
1614
|
+
- [ValuationPointDataQueryParameters](docs/ValuationPointDataQueryParameters.md)
|
|
1615
|
+
- [ValuationPointDataRequest](docs/ValuationPointDataRequest.md)
|
|
1616
|
+
- [ValuationPointDataResponse](docs/ValuationPointDataResponse.md)
|
|
1608
1617
|
- [ValuationRequest](docs/ValuationRequest.md)
|
|
1609
1618
|
- [ValuationSchedule](docs/ValuationSchedule.md)
|
|
1610
1619
|
- [ValuationsReconciliationRequest](docs/ValuationsReconciliationRequest.md)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
lusid/__init__.py,sha256=
|
|
1
|
+
lusid/__init__.py,sha256=5jCa4rnYJuDEF8Llsl5xSnADSpJE-pYFHD8iG6sG248,102826
|
|
2
2
|
lusid/api/__init__.py,sha256=YLItLvUuZfBp40i0JAN__zT6iZVl_lW3wDCU1HGd6-M,5283
|
|
3
3
|
lusid/api/abor_api.py,sha256=c7jUtAQLrgCgnkNCLLTkelIoU-Yd674I3-4kVDnIJlc,149936
|
|
4
4
|
lusid/api/abor_configuration_api.py,sha256=SBpk45BSb-XcS06xkpycyg6Q2U4hpiuftgmF4v9L7x0,64027
|
|
@@ -23,7 +23,7 @@ lusid/api/data_types_api.py,sha256=EQ3yzW21xj7Dgxf_BGNqd6BMUIyjCsKIaXLjwHZuAB0,7
|
|
|
23
23
|
lusid/api/derived_transaction_portfolios_api.py,sha256=hncRVE3KtxoHSHGZOFf0GGPD9TWSVmcgLa5WNMI4CWQ,20221
|
|
24
24
|
lusid/api/entities_api.py,sha256=W2uFKv2Z20p-n1JJwpYqW7gaUt0jsGQAJFUgBZcsBSc,10437
|
|
25
25
|
lusid/api/executions_api.py,sha256=bkZ17d5H6cNvw38fPalxVr5OiTR3ZV0yLp16AFYTjrk,44429
|
|
26
|
-
lusid/api/funds_api.py,sha256=
|
|
26
|
+
lusid/api/funds_api.py,sha256=BBvJ8oQlvyUvijpvoOkvbMg2HeQxBm-Ff0uLmCZ_esA,122383
|
|
27
27
|
lusid/api/instrument_event_types_api.py,sha256=h-cToquxz4MOrs5wTaiDMPXiCryv0mSw0s1MdJCd2GQ,81540
|
|
28
28
|
lusid/api/instrument_events_api.py,sha256=oF1UskrI1z8Rox-55dsgmHIOD10WyPoAI9hApsk5kT8,45405
|
|
29
29
|
lusid/api/instruments_api.py,sha256=_dEsRxGdTF-4lG6AVCYh8zgb_pdDmHNOK2lg5nAC_6o,281327
|
|
@@ -64,7 +64,7 @@ lusid/api/transaction_portfolios_api.py,sha256=Q-RvuNmYL4drz4LeytNHRCmvrWwxfnPnT
|
|
|
64
64
|
lusid/api/translation_api.py,sha256=8_YL07_CYCI-FV4jMdiq7zlsDXqvkPMFQPyT6NL4jvU,20086
|
|
65
65
|
lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
|
|
66
66
|
lusid/api_response.py,sha256=uCehWdXXDnAO2HAHGKe0SgpQ_mJiGDbcu-BHDF3n_IM,852
|
|
67
|
-
lusid/configuration.py,sha256=
|
|
67
|
+
lusid/configuration.py,sha256=yDlMcW9MRQU_-vSSQu8fmA65wud1qk9U2l01u35_6UI,14404
|
|
68
68
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
|
69
69
|
lusid/extensions/__init__.py,sha256=DeUuQP7yTcklJH7LT-bw9wQhKEggcs1KwQbPbFcOlhw,560
|
|
70
70
|
lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
|
|
@@ -77,7 +77,7 @@ lusid/extensions/rest.py,sha256=tjVCu-cRrYcjp-ttB975vebPKtBNyBWaeoAdO3QXG2I,1269
|
|
|
77
77
|
lusid/extensions/retry.py,sha256=orBJ1uF1iT1IncjWX1iGHVqsCgTh0SBe9rtiV_sPnwk,11564
|
|
78
78
|
lusid/extensions/socket_keep_alive.py,sha256=NGlqsv-E25IjJOLGZhXZY6kUdx51nEF8qCQyVdzayRk,1653
|
|
79
79
|
lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
|
|
80
|
-
lusid/models/__init__.py,sha256=
|
|
80
|
+
lusid/models/__init__.py,sha256=_tAdedyeuHL-wX4Aa6Hl-EuEJgJivfsJ-bUY2NXm6fY,96585
|
|
81
81
|
lusid/models/a2_b_breakdown.py,sha256=MmG2do_CuV3zyMZJP0BORoG_jTe0G308IjBYhSZbpUw,2944
|
|
82
82
|
lusid/models/a2_b_category.py,sha256=DKiB3y93L3-MXpqRqGo93PeFlvD4ZjnQfH489NRLQVc,2722
|
|
83
83
|
lusid/models/a2_b_data_record.py,sha256=Xey2yvdCY9D-oBM_0Z5QIxboMAIzxKAgHcrvKie7Ypk,9734
|
|
@@ -973,7 +973,11 @@ lusid/models/upsert_structured_data_response.py,sha256=_1vouo8XP_qKjPZ-B_MFvQnQH
|
|
|
973
973
|
lusid/models/upsert_structured_result_data_request.py,sha256=XRAPMteX8fiILXyhV3lUIdmoC88ZRXwN-G9ycEsScWM,2693
|
|
974
974
|
lusid/models/upsert_transaction_properties_response.py,sha256=JI1k5psSx2bryYGXg_KVmxzc-Wzh13_EaWgmp_PkJ0M,4342
|
|
975
975
|
lusid/models/upsert_translation_script_request.py,sha256=jX0wErJT5VbrIbYogQyqKh7No51wmU172ROSESuQEgw,2414
|
|
976
|
+
lusid/models/upsert_valuation_point_request.py,sha256=of31wlrBqlkAQJNUhisNZoqe0YJSfIdr0-sgR4C2kyc,5320
|
|
976
977
|
lusid/models/user.py,sha256=eHGHaBm9RGx579A3-0pqfdEnIiv4EfpSI8q6_QuXQv4,2025
|
|
978
|
+
lusid/models/valuation_point_data_query_parameters.py,sha256=6rJm7-xawktQhNu_7GKPDXiSvHls-j2lvg6OM-18VFw,2268
|
|
979
|
+
lusid/models/valuation_point_data_request.py,sha256=v6H5am-Daen1iu0eL-6mrbMio0oq6nUsqQKP5YJZoY8,2391
|
|
980
|
+
lusid/models/valuation_point_data_response.py,sha256=FBNGWspI3H9SiCgA-g43jrTAdnQ1FLgAjSdKo3RkRkM,5078
|
|
977
981
|
lusid/models/valuation_request.py,sha256=bQ7xRlDje8baOlf0GjeQR54epHc5mIk9I91E46kTxMk,10572
|
|
978
982
|
lusid/models/valuation_schedule.py,sha256=4qh8Aw6QO1RXxxTnpLPzMgYQRkBWmvJTMnfbwBzjv94,6151
|
|
979
983
|
lusid/models/valuations_reconciliation_request.py,sha256=vKYYyWWBIoCyD3c7TL-XexSuvVirtXwYnQkPh5lnR64,4998
|
|
@@ -1002,7 +1006,7 @@ lusid/models/weighted_instrument_in_line_lookup_identifiers.py,sha256=fxxd33EAvj
|
|
|
1002
1006
|
lusid/models/weighted_instruments.py,sha256=M2Mr7KTAcMS40g309xatBHDhvYk3g61yigx0QcO7Uuw,2540
|
|
1003
1007
|
lusid/models/yield_curve_data.py,sha256=i2MHEJe9kdTTgxQFti2a6BAU7ikE0wTPXsS_sMJhrDk,6327
|
|
1004
1008
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1005
|
-
lusid/rest.py,sha256=
|
|
1006
|
-
lusid_sdk-2.0.
|
|
1007
|
-
lusid_sdk-2.0.
|
|
1008
|
-
lusid_sdk-2.0.
|
|
1009
|
+
lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
|
|
1010
|
+
lusid_sdk-2.0.487.dist-info/METADATA,sha256=F6oYlKuUU3tCV9M5Ozjd8BsCv2AqMqz2zUbPuDm0hoQ,177989
|
|
1011
|
+
lusid_sdk-2.0.487.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
1012
|
+
lusid_sdk-2.0.487.dist-info/RECORD,,
|
|
File without changes
|