lusid-sdk 2.0.470__py3-none-any.whl → 2.0.481__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/configuration.py +1 -1
- lusid/extensions/api_client_factory.py +4 -1
- lusid/models/instrument_event_configuration.py +8 -2
- lusid/models/order_graph_block_order_synopsis.py +9 -2
- lusid/models/order_graph_block_placement_synopsis.py +9 -2
- lusid/models/transaction_property_map.py +9 -8
- {lusid_sdk-2.0.470.dist-info → lusid_sdk-2.0.481.dist-info}/METADATA +4 -5
- {lusid_sdk-2.0.470.dist-info → lusid_sdk-2.0.481.dist-info}/RECORD +9 -9
- {lusid_sdk-2.0.470.dist-info → lusid_sdk-2.0.481.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.6428\n"\
|
|
377
377
|
"SDK Package Version: {package_version}".\
|
|
378
378
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
|
379
379
|
|
|
@@ -184,6 +184,7 @@ class ApiClientFactory:
|
|
|
184
184
|
A list of aiohttp TraceConfigs, used to set up request tracing.
|
|
185
185
|
by default None
|
|
186
186
|
"""
|
|
187
|
+
is_owner = True
|
|
187
188
|
api_config = get_api_configuration(config_loaders=config_loaders)
|
|
188
189
|
api_client_config = api_config.build_api_client_config(
|
|
189
190
|
tcp_keep_alive=tcp_keep_alive,
|
|
@@ -197,6 +198,7 @@ class ApiClientFactory:
|
|
|
197
198
|
try:
|
|
198
199
|
if client_session is not None:
|
|
199
200
|
connector = client_session.connector
|
|
201
|
+
is_owner = False
|
|
200
202
|
# by default take explicitly passed trace_config param
|
|
201
203
|
# otherwise copy from session.
|
|
202
204
|
trace_configs = trace_configs or client_session.trace_configs
|
|
@@ -209,7 +211,8 @@ class ApiClientFactory:
|
|
|
209
211
|
rc.pool_manager = ClientSession(
|
|
210
212
|
connector=connector,
|
|
211
213
|
trust_env=True,
|
|
212
|
-
trace_configs=trace_configs
|
|
214
|
+
trace_configs=trace_configs,
|
|
215
|
+
connector_owner=is_owner
|
|
213
216
|
)
|
|
214
217
|
except AttributeError:
|
|
215
218
|
logger.exception("client_session must be an aiohttp.ClientSession"
|
|
@@ -20,13 +20,15 @@ import json
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, List, Optional
|
|
22
22
|
from pydantic import BaseModel, Field, StrictStr, conlist
|
|
23
|
+
from lusid.models.resource_id import ResourceId
|
|
23
24
|
|
|
24
25
|
class InstrumentEventConfiguration(BaseModel):
|
|
25
26
|
"""
|
|
26
27
|
InstrumentEventConfiguration
|
|
27
28
|
"""
|
|
28
29
|
transaction_template_scopes: Optional[conlist(StrictStr)] = Field(None, alias="transactionTemplateScopes")
|
|
29
|
-
|
|
30
|
+
recipe_id: Optional[ResourceId] = Field(None, alias="recipeId")
|
|
31
|
+
__properties = ["transactionTemplateScopes", "recipeId"]
|
|
30
32
|
|
|
31
33
|
class Config:
|
|
32
34
|
"""Pydantic configuration"""
|
|
@@ -52,6 +54,9 @@ class InstrumentEventConfiguration(BaseModel):
|
|
|
52
54
|
exclude={
|
|
53
55
|
},
|
|
54
56
|
exclude_none=True)
|
|
57
|
+
# override the default output from pydantic by calling `to_dict()` of recipe_id
|
|
58
|
+
if self.recipe_id:
|
|
59
|
+
_dict['recipeId'] = self.recipe_id.to_dict()
|
|
55
60
|
# set to None if transaction_template_scopes (nullable) is None
|
|
56
61
|
# and __fields_set__ contains the field
|
|
57
62
|
if self.transaction_template_scopes is None and "transaction_template_scopes" in self.__fields_set__:
|
|
@@ -69,6 +74,7 @@ class InstrumentEventConfiguration(BaseModel):
|
|
|
69
74
|
return InstrumentEventConfiguration.parse_obj(obj)
|
|
70
75
|
|
|
71
76
|
_obj = InstrumentEventConfiguration.parse_obj({
|
|
72
|
-
"transaction_template_scopes": obj.get("transactionTemplateScopes")
|
|
77
|
+
"transaction_template_scopes": obj.get("transactionTemplateScopes"),
|
|
78
|
+
"recipe_id": ResourceId.from_dict(obj.get("recipeId")) if obj.get("recipeId") is not None else None
|
|
73
79
|
})
|
|
74
80
|
return _obj
|
|
@@ -18,7 +18,7 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import Any, Dict, List, Union
|
|
21
|
+
from typing import Any, Dict, List, Optional, Union
|
|
22
22
|
from pydantic import BaseModel, Field, StrictFloat, StrictInt, conlist
|
|
23
23
|
from lusid.models.order_graph_block_order_detail import OrderGraphBlockOrderDetail
|
|
24
24
|
|
|
@@ -27,8 +27,9 @@ class OrderGraphBlockOrderSynopsis(BaseModel):
|
|
|
27
27
|
OrderGraphBlockOrderSynopsis
|
|
28
28
|
"""
|
|
29
29
|
quantity: Union[StrictFloat, StrictInt] = Field(..., description="Total number of units ordered.")
|
|
30
|
+
quantity_by_state: Optional[Dict[str, Union[StrictFloat, StrictInt]]] = Field(None, alias="quantityByState", description="Total number of units placed.")
|
|
30
31
|
details: conlist(OrderGraphBlockOrderDetail) = Field(..., description="Identifiers and other info for each order in this block.")
|
|
31
|
-
__properties = ["quantity", "details"]
|
|
32
|
+
__properties = ["quantity", "quantityByState", "details"]
|
|
32
33
|
|
|
33
34
|
class Config:
|
|
34
35
|
"""Pydantic configuration"""
|
|
@@ -61,6 +62,11 @@ class OrderGraphBlockOrderSynopsis(BaseModel):
|
|
|
61
62
|
if _item:
|
|
62
63
|
_items.append(_item.to_dict())
|
|
63
64
|
_dict['details'] = _items
|
|
65
|
+
# set to None if quantity_by_state (nullable) is None
|
|
66
|
+
# and __fields_set__ contains the field
|
|
67
|
+
if self.quantity_by_state is None and "quantity_by_state" in self.__fields_set__:
|
|
68
|
+
_dict['quantityByState'] = None
|
|
69
|
+
|
|
64
70
|
return _dict
|
|
65
71
|
|
|
66
72
|
@classmethod
|
|
@@ -74,6 +80,7 @@ class OrderGraphBlockOrderSynopsis(BaseModel):
|
|
|
74
80
|
|
|
75
81
|
_obj = OrderGraphBlockOrderSynopsis.parse_obj({
|
|
76
82
|
"quantity": obj.get("quantity"),
|
|
83
|
+
"quantity_by_state": obj.get("quantityByState"),
|
|
77
84
|
"details": [OrderGraphBlockOrderDetail.from_dict(_item) for _item in obj.get("details")] if obj.get("details") is not None else None
|
|
78
85
|
})
|
|
79
86
|
return _obj
|
|
@@ -18,7 +18,7 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import Any, Dict, List, Union
|
|
21
|
+
from typing import Any, Dict, List, Optional, Union
|
|
22
22
|
from pydantic import BaseModel, Field, StrictFloat, StrictInt, conlist
|
|
23
23
|
from lusid.models.order_graph_block_placement_detail import OrderGraphBlockPlacementDetail
|
|
24
24
|
|
|
@@ -27,8 +27,9 @@ class OrderGraphBlockPlacementSynopsis(BaseModel):
|
|
|
27
27
|
OrderGraphBlockPlacementSynopsis
|
|
28
28
|
"""
|
|
29
29
|
quantity: Union[StrictFloat, StrictInt] = Field(..., description="Total number of units placed.")
|
|
30
|
+
quantity_by_state: Optional[Dict[str, Union[StrictFloat, StrictInt]]] = Field(None, alias="quantityByState", description="Total number of units placed.")
|
|
30
31
|
details: conlist(OrderGraphBlockPlacementDetail) = Field(..., description="Identifiers for each placement in this block.")
|
|
31
|
-
__properties = ["quantity", "details"]
|
|
32
|
+
__properties = ["quantity", "quantityByState", "details"]
|
|
32
33
|
|
|
33
34
|
class Config:
|
|
34
35
|
"""Pydantic configuration"""
|
|
@@ -61,6 +62,11 @@ class OrderGraphBlockPlacementSynopsis(BaseModel):
|
|
|
61
62
|
if _item:
|
|
62
63
|
_items.append(_item.to_dict())
|
|
63
64
|
_dict['details'] = _items
|
|
65
|
+
# set to None if quantity_by_state (nullable) is None
|
|
66
|
+
# and __fields_set__ contains the field
|
|
67
|
+
if self.quantity_by_state is None and "quantity_by_state" in self.__fields_set__:
|
|
68
|
+
_dict['quantityByState'] = None
|
|
69
|
+
|
|
64
70
|
return _dict
|
|
65
71
|
|
|
66
72
|
@classmethod
|
|
@@ -74,6 +80,7 @@ class OrderGraphBlockPlacementSynopsis(BaseModel):
|
|
|
74
80
|
|
|
75
81
|
_obj = OrderGraphBlockPlacementSynopsis.parse_obj({
|
|
76
82
|
"quantity": obj.get("quantity"),
|
|
83
|
+
"quantity_by_state": obj.get("quantityByState"),
|
|
77
84
|
"details": [OrderGraphBlockPlacementDetail.from_dict(_item) for _item in obj.get("details")] if obj.get("details") is not None else None
|
|
78
85
|
})
|
|
79
86
|
return _obj
|
|
@@ -19,16 +19,15 @@ import json
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
from typing import Any, Dict, Optional
|
|
22
|
-
from pydantic import BaseModel, Field, StrictStr
|
|
23
|
-
from lusid.models.property_value import PropertyValue
|
|
22
|
+
from pydantic import BaseModel, Field, StrictStr, constr
|
|
24
23
|
|
|
25
24
|
class TransactionPropertyMap(BaseModel):
|
|
26
25
|
"""
|
|
27
26
|
TransactionPropertyMap
|
|
28
27
|
"""
|
|
29
28
|
property_key: Optional[StrictStr] = Field(None, alias="propertyKey", description="The key that uniquely identifies the property. It has the format {domain}/{scope}/{code}.")
|
|
30
|
-
|
|
31
|
-
__properties = ["propertyKey", "
|
|
29
|
+
value: Optional[constr(strict=True, max_length=1024, min_length=0)] = None
|
|
30
|
+
__properties = ["propertyKey", "value"]
|
|
32
31
|
|
|
33
32
|
class Config:
|
|
34
33
|
"""Pydantic configuration"""
|
|
@@ -54,14 +53,16 @@ class TransactionPropertyMap(BaseModel):
|
|
|
54
53
|
exclude={
|
|
55
54
|
},
|
|
56
55
|
exclude_none=True)
|
|
57
|
-
# override the default output from pydantic by calling `to_dict()` of property_value
|
|
58
|
-
if self.property_value:
|
|
59
|
-
_dict['propertyValue'] = self.property_value.to_dict()
|
|
60
56
|
# set to None if property_key (nullable) is None
|
|
61
57
|
# and __fields_set__ contains the field
|
|
62
58
|
if self.property_key is None and "property_key" in self.__fields_set__:
|
|
63
59
|
_dict['propertyKey'] = None
|
|
64
60
|
|
|
61
|
+
# set to None if value (nullable) is None
|
|
62
|
+
# and __fields_set__ contains the field
|
|
63
|
+
if self.value is None and "value" in self.__fields_set__:
|
|
64
|
+
_dict['value'] = None
|
|
65
|
+
|
|
65
66
|
return _dict
|
|
66
67
|
|
|
67
68
|
@classmethod
|
|
@@ -75,6 +76,6 @@ class TransactionPropertyMap(BaseModel):
|
|
|
75
76
|
|
|
76
77
|
_obj = TransactionPropertyMap.parse_obj({
|
|
77
78
|
"property_key": obj.get("propertyKey"),
|
|
78
|
-
"
|
|
79
|
+
"value": obj.get("value")
|
|
79
80
|
})
|
|
80
81
|
return _obj
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lusid-sdk
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.481
|
|
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.6428
|
|
33
|
+
- Package version: 2.0.481
|
|
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
|
|
|
@@ -86,8 +86,7 @@ FBN_LUSID_API_URL,
|
|
|
86
86
|
FBN_USERNAME,
|
|
87
87
|
FBN_PASSWORD,
|
|
88
88
|
FBN_CLIENT_ID,
|
|
89
|
-
FBN_CLIENT_SECRET
|
|
90
|
-
FBN_ACCESS_TOKEN
|
|
89
|
+
FBN_CLIENT_SECRET
|
|
91
90
|
```
|
|
92
91
|
|
|
93
92
|
To use a long lived Personal Access Token, you must provide the following environment variables:
|
|
@@ -64,11 +64,11 @@ 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=bjk0RG5cbeCu5XOl1TdRTAF86_BC34dNBL2ujcpEzi4,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
|
|
71
|
-
lusid/extensions/api_client_factory.py,sha256=
|
|
71
|
+
lusid/extensions/api_client_factory.py,sha256=qPlqYe8AMzXUZrQPMbO5YJrKWLYy01rWNdNcKZVi1Xg,9772
|
|
72
72
|
lusid/extensions/api_configuration.py,sha256=LbuhaM-PcrY0a4cZ-ff7GBP8UybSqI5Ys2WQOBcr_8I,8052
|
|
73
73
|
lusid/extensions/configuration_loaders.py,sha256=vrbsw3GqZ9ax5uoBPQL6skuA-0szU5ZxmrMb5PK1xsA,6760
|
|
74
74
|
lusid/extensions/proxy_config.py,sha256=UUHQhd8ub-mKVIVbzDbmNQYLLemPX1b209ZcDrCFOWw,2187
|
|
@@ -456,7 +456,7 @@ lusid/models/instrument_definition.py,sha256=wqYRBsCBBaBiWqr4R9OlYKdNVDhxJe4a-2-
|
|
|
456
456
|
lusid/models/instrument_definition_format.py,sha256=8I0_bIZQTxVHP5Yxot1lj0VHsswuoRSXioQJiIPW8TA,2851
|
|
457
457
|
lusid/models/instrument_delete_modes.py,sha256=pRnKhwXly5wA6KEnvvphzEBS6ThT-iuuhS4JFVEal3s,682
|
|
458
458
|
lusid/models/instrument_event.py,sha256=J91fRxCfwULqjX3yCX6IU7xAQfUgc_8GAGvA-_WTk44,6349
|
|
459
|
-
lusid/models/instrument_event_configuration.py,sha256=
|
|
459
|
+
lusid/models/instrument_event_configuration.py,sha256=SYQkJk9VNPEcvA4a12OlOWUzc9MF2Q97ZU_dDuSkEEc,2781
|
|
460
460
|
lusid/models/instrument_event_holder.py,sha256=ciUi2b3tLvDhESZgNSZ7vDvNttHyozC27ZxdZiWcQoI,6991
|
|
461
461
|
lusid/models/instrument_event_type.py,sha256=nqKY7ezNaYnrOXe6iHUPmbaXDi_yt8Rt1lNtICY4z3M,1552
|
|
462
462
|
lusid/models/instrument_id_type_descriptor.py,sha256=zUiyKyDjt55zEp9Uvf42s-S0af8-4u5wi84lygkdVFA,2566
|
|
@@ -546,9 +546,9 @@ lusid/models/order_graph_block_allocation_synopsis.py,sha256=9vnnwzlRwXb4-w7FxVn
|
|
|
546
546
|
lusid/models/order_graph_block_execution_detail.py,sha256=J6QWvSUB54f2vcKELfWGWTxp27rG_bUdOrDtHUq4QI8,2167
|
|
547
547
|
lusid/models/order_graph_block_execution_synopsis.py,sha256=RkxRE8hq_iOp6m3fEPbHv8xk6owSpIBBgzwsBK1iAZA,2749
|
|
548
548
|
lusid/models/order_graph_block_order_detail.py,sha256=xEKz8Wnzwl0YxZc7v-RN9aJnsZDTa1pP1cMzsx36zEw,4687
|
|
549
|
-
lusid/models/order_graph_block_order_synopsis.py,sha256=
|
|
549
|
+
lusid/models/order_graph_block_order_synopsis.py,sha256=RCUzGZzPp1muOQKNbzDWYxENXBfYpqBaHIbqVp3YFfw,3204
|
|
550
550
|
lusid/models/order_graph_block_placement_detail.py,sha256=jDNyAsJiA6B6Zm96WXrTeRdLyd0qovrWPLszC9fin_U,2167
|
|
551
|
-
lusid/models/order_graph_block_placement_synopsis.py,sha256=
|
|
551
|
+
lusid/models/order_graph_block_placement_synopsis.py,sha256=HkDGVaSrqfgloVrEYYeFfOdUjNuDxyhXITDtYp33dtc,3240
|
|
552
552
|
lusid/models/order_graph_placement.py,sha256=x5rnnGGebugWaKYZGRnkf1ql4c0EBt_iGbynoD0hHqs,5287
|
|
553
553
|
lusid/models/order_graph_placement_allocation_detail.py,sha256=I6kDWOsmKzJtxtq7dugmFpqtS1eJa8P3tStd4iY-yeM,2207
|
|
554
554
|
lusid/models/order_graph_placement_allocation_synopsis.py,sha256=EQFpRa0-3ThjNUEWM4D_Xz8Qhu9eQY8xQYl2h1GIqpo,2815
|
|
@@ -875,7 +875,7 @@ lusid/models/transaction_field_map.py,sha256=BL2JCbQQiQ7cEwr-Onxo8sp52pvakjl5lQf
|
|
|
875
875
|
lusid/models/transaction_price.py,sha256=nFHtBNXlIq2CrVpdSYjS3JoWA6-DAYPBntVeUyfBl78,2417
|
|
876
876
|
lusid/models/transaction_price_and_type.py,sha256=nWtKH171xwCcBQG1Xz6QdJXaptIHPzpmC_rZfkUENcg,2441
|
|
877
877
|
lusid/models/transaction_price_type.py,sha256=w12kLCHQhbnSisOXJLsSmY8rBCUTLcGc5AHWhG_AS7w,743
|
|
878
|
-
lusid/models/transaction_property_map.py,sha256=
|
|
878
|
+
lusid/models/transaction_property_map.py,sha256=8HyghjtekzcoMS1GmqTGp5ybIPc19inTgmE9jWI9nko,2604
|
|
879
879
|
lusid/models/transaction_property_mapping.py,sha256=GiZXqmaTqGU5xIrEwixkFq0ZKZfbKzSXqt3UHatWUvo,2819
|
|
880
880
|
lusid/models/transaction_property_mapping_request.py,sha256=83p_FSbOhv5ghYCZZBtDfHJgl55CVwZLB1cnX1aE_gA,2874
|
|
881
881
|
lusid/models/transaction_query_mode.py,sha256=q3QNcFSP-LwfdQF_yRUOZMd6ElemQm03yOEQdQrCjvE,699
|
|
@@ -1003,6 +1003,6 @@ lusid/models/weighted_instruments.py,sha256=M2Mr7KTAcMS40g309xatBHDhvYk3g61yigx0
|
|
|
1003
1003
|
lusid/models/yield_curve_data.py,sha256=i2MHEJe9kdTTgxQFti2a6BAU7ikE0wTPXsS_sMJhrDk,6327
|
|
1004
1004
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1005
1005
|
lusid/rest.py,sha256=gHQ76psf1vzmBJI14ZGVvb3f_Urp0zBBo3R5u3-kNIM,10032
|
|
1006
|
-
lusid_sdk-2.0.
|
|
1007
|
-
lusid_sdk-2.0.
|
|
1008
|
-
lusid_sdk-2.0.
|
|
1006
|
+
lusid_sdk-2.0.481.dist-info/METADATA,sha256=dF-m3B7UzctrqKqMe5qucDlBcYh3wh4DYTBOoc4TyF8,176601
|
|
1007
|
+
lusid_sdk-2.0.481.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
1008
|
+
lusid_sdk-2.0.481.dist-info/RECORD,,
|
|
File without changes
|