lusid-sdk 2.3.7__py3-none-any.whl → 2.3.9__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.
- lusid/api/portfolios_api.py +64 -16
- lusid/configuration.py +1 -1
- lusid/models/upsert_valuation_point_request.py +4 -2
- {lusid_sdk-2.3.7.dist-info → lusid_sdk-2.3.9.dist-info}/METADATA +1 -1
- {lusid_sdk-2.3.7.dist-info → lusid_sdk-2.3.9.dist-info}/RECORD +6 -6
- {lusid_sdk-2.3.7.dist-info → lusid_sdk-2.3.9.dist-info}/WHEEL +0 -0
lusid/api/portfolios_api.py
CHANGED
|
@@ -1546,22 +1546,22 @@ class PortfoliosApi:
|
|
|
1546
1546
|
|
|
1547
1547
|
|
|
1548
1548
|
@overload
|
|
1549
|
-
async def get_instrument_event_instruction(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], instrument_event_instruction_id : Annotated[StrictStr, Field(..., description="The id of the instruction to be retrieved.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instruction. Defaults to return the latest version of the instruction if not specified.")] = None, **kwargs) -> InstrumentEventInstruction: # noqa: E501
|
|
1549
|
+
async def get_instrument_event_instruction(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], instrument_event_instruction_id : Annotated[StrictStr, Field(..., description="The id of the instruction to be retrieved.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instruction. Defaults to return the latest version of the instruction if not specified.")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.")] = None, **kwargs) -> InstrumentEventInstruction: # noqa: E501
|
|
1550
1550
|
...
|
|
1551
1551
|
|
|
1552
1552
|
@overload
|
|
1553
|
-
def get_instrument_event_instruction(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], instrument_event_instruction_id : Annotated[StrictStr, Field(..., description="The id of the instruction to be retrieved.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instruction. Defaults to return the latest version of the instruction if not specified.")] = None, async_req: Optional[bool]=True, **kwargs) -> InstrumentEventInstruction: # noqa: E501
|
|
1553
|
+
def get_instrument_event_instruction(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], instrument_event_instruction_id : Annotated[StrictStr, Field(..., description="The id of the instruction to be retrieved.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instruction. Defaults to return the latest version of the instruction if not specified.")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.")] = None, async_req: Optional[bool]=True, **kwargs) -> InstrumentEventInstruction: # noqa: E501
|
|
1554
1554
|
...
|
|
1555
1555
|
|
|
1556
1556
|
@validate_arguments
|
|
1557
|
-
def get_instrument_event_instruction(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], instrument_event_instruction_id : Annotated[StrictStr, Field(..., description="The id of the instruction to be retrieved.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instruction. Defaults to return the latest version of the instruction if not specified.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[InstrumentEventInstruction, Awaitable[InstrumentEventInstruction]]: # noqa: E501
|
|
1557
|
+
def get_instrument_event_instruction(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], instrument_event_instruction_id : Annotated[StrictStr, Field(..., description="The id of the instruction to be retrieved.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instruction. Defaults to return the latest version of the instruction if not specified.")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[InstrumentEventInstruction, Awaitable[InstrumentEventInstruction]]: # noqa: E501
|
|
1558
1558
|
"""[EARLY ACCESS] GetInstrumentEventInstruction: Get Instrument Event Instruction # noqa: E501
|
|
1559
1559
|
|
|
1560
1560
|
Get a particular instruction for a particular portfolio # noqa: E501
|
|
1561
1561
|
This method makes a synchronous HTTP request by default. To make an
|
|
1562
1562
|
asynchronous HTTP request, please pass async_req=True
|
|
1563
1563
|
|
|
1564
|
-
>>> thread = api.get_instrument_event_instruction(scope, code, instrument_event_instruction_id, portfolio_effective_at, as_at, async_req=True)
|
|
1564
|
+
>>> thread = api.get_instrument_event_instruction(scope, code, instrument_event_instruction_id, portfolio_effective_at, as_at, timeline_scope, timeline_code, closed_period_id, async_req=True)
|
|
1565
1565
|
>>> result = thread.get()
|
|
1566
1566
|
|
|
1567
1567
|
:param scope: The scope of the portfolio. (required)
|
|
@@ -1574,6 +1574,12 @@ class PortfoliosApi:
|
|
|
1574
1574
|
:type portfolio_effective_at: str
|
|
1575
1575
|
:param as_at: The asAt datetime at which to retrieve the instruction. Defaults to return the latest version of the instruction if not specified.
|
|
1576
1576
|
:type as_at: datetime
|
|
1577
|
+
:param timeline_scope: The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.
|
|
1578
|
+
:type timeline_scope: str
|
|
1579
|
+
:param timeline_code: The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.
|
|
1580
|
+
:type timeline_code: str
|
|
1581
|
+
:param closed_period_id: The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.
|
|
1582
|
+
:type closed_period_id: str
|
|
1577
1583
|
:param async_req: Whether to execute the request asynchronously.
|
|
1578
1584
|
:type async_req: bool, optional
|
|
1579
1585
|
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
|
@@ -1590,17 +1596,17 @@ class PortfoliosApi:
|
|
|
1590
1596
|
raise ValueError(message)
|
|
1591
1597
|
if async_req is not None:
|
|
1592
1598
|
kwargs['async_req'] = async_req
|
|
1593
|
-
return self.get_instrument_event_instruction_with_http_info(scope, code, instrument_event_instruction_id, portfolio_effective_at, as_at, **kwargs) # noqa: E501
|
|
1599
|
+
return self.get_instrument_event_instruction_with_http_info(scope, code, instrument_event_instruction_id, portfolio_effective_at, as_at, timeline_scope, timeline_code, closed_period_id, **kwargs) # noqa: E501
|
|
1594
1600
|
|
|
1595
1601
|
@validate_arguments
|
|
1596
|
-
def get_instrument_event_instruction_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], instrument_event_instruction_id : Annotated[StrictStr, Field(..., description="The id of the instruction to be retrieved.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instruction. Defaults to return the latest version of the instruction if not specified.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
1602
|
+
def get_instrument_event_instruction_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], instrument_event_instruction_id : Annotated[StrictStr, Field(..., description="The id of the instruction to be retrieved.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instruction. Defaults to return the latest version of the instruction if not specified.")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
1597
1603
|
"""[EARLY ACCESS] GetInstrumentEventInstruction: Get Instrument Event Instruction # noqa: E501
|
|
1598
1604
|
|
|
1599
1605
|
Get a particular instruction for a particular portfolio # noqa: E501
|
|
1600
1606
|
This method makes a synchronous HTTP request by default. To make an
|
|
1601
1607
|
asynchronous HTTP request, please pass async_req=True
|
|
1602
1608
|
|
|
1603
|
-
>>> thread = api.get_instrument_event_instruction_with_http_info(scope, code, instrument_event_instruction_id, portfolio_effective_at, as_at, async_req=True)
|
|
1609
|
+
>>> thread = api.get_instrument_event_instruction_with_http_info(scope, code, instrument_event_instruction_id, portfolio_effective_at, as_at, timeline_scope, timeline_code, closed_period_id, async_req=True)
|
|
1604
1610
|
>>> result = thread.get()
|
|
1605
1611
|
|
|
1606
1612
|
:param scope: The scope of the portfolio. (required)
|
|
@@ -1613,6 +1619,12 @@ class PortfoliosApi:
|
|
|
1613
1619
|
:type portfolio_effective_at: str
|
|
1614
1620
|
:param as_at: The asAt datetime at which to retrieve the instruction. Defaults to return the latest version of the instruction if not specified.
|
|
1615
1621
|
:type as_at: datetime
|
|
1622
|
+
:param timeline_scope: The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.
|
|
1623
|
+
:type timeline_scope: str
|
|
1624
|
+
:param timeline_code: The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.
|
|
1625
|
+
:type timeline_code: str
|
|
1626
|
+
:param closed_period_id: The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.
|
|
1627
|
+
:type closed_period_id: str
|
|
1616
1628
|
:param async_req: Whether to execute the request asynchronously.
|
|
1617
1629
|
:type async_req: bool, optional
|
|
1618
1630
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -1644,7 +1656,10 @@ class PortfoliosApi:
|
|
|
1644
1656
|
'code',
|
|
1645
1657
|
'instrument_event_instruction_id',
|
|
1646
1658
|
'portfolio_effective_at',
|
|
1647
|
-
'as_at'
|
|
1659
|
+
'as_at',
|
|
1660
|
+
'timeline_scope',
|
|
1661
|
+
'timeline_code',
|
|
1662
|
+
'closed_period_id'
|
|
1648
1663
|
]
|
|
1649
1664
|
_all_params.extend(
|
|
1650
1665
|
[
|
|
@@ -1694,6 +1709,15 @@ class PortfoliosApi:
|
|
|
1694
1709
|
else:
|
|
1695
1710
|
_query_params.append(('asAt', _params['as_at']))
|
|
1696
1711
|
|
|
1712
|
+
if _params.get('timeline_scope') is not None: # noqa: E501
|
|
1713
|
+
_query_params.append(('timelineScope', _params['timeline_scope']))
|
|
1714
|
+
|
|
1715
|
+
if _params.get('timeline_code') is not None: # noqa: E501
|
|
1716
|
+
_query_params.append(('timelineCode', _params['timeline_code']))
|
|
1717
|
+
|
|
1718
|
+
if _params.get('closed_period_id') is not None: # noqa: E501
|
|
1719
|
+
_query_params.append(('closedPeriodId', _params['closed_period_id']))
|
|
1720
|
+
|
|
1697
1721
|
# process the header parameters
|
|
1698
1722
|
_header_params = dict(_params.get('_headers', {}))
|
|
1699
1723
|
# process the form parameters
|
|
@@ -3957,22 +3981,22 @@ class PortfoliosApi:
|
|
|
3957
3981
|
|
|
3958
3982
|
|
|
3959
3983
|
@overload
|
|
3960
|
-
async def list_instrument_event_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instructions. Defaults to latest if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing instructions; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[List[StrictStr]], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, **kwargs) -> PagedResourceListOfInstrumentEventInstruction: # noqa: E501
|
|
3984
|
+
async def list_instrument_event_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instructions. Defaults to latest if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing instructions; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[List[StrictStr]], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.")] = None, **kwargs) -> PagedResourceListOfInstrumentEventInstruction: # noqa: E501
|
|
3961
3985
|
...
|
|
3962
3986
|
|
|
3963
3987
|
@overload
|
|
3964
|
-
def list_instrument_event_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instructions. Defaults to latest if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing instructions; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[List[StrictStr]], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, async_req: Optional[bool]=True, **kwargs) -> PagedResourceListOfInstrumentEventInstruction: # noqa: E501
|
|
3988
|
+
def list_instrument_event_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instructions. Defaults to latest if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing instructions; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[List[StrictStr]], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.")] = None, async_req: Optional[bool]=True, **kwargs) -> PagedResourceListOfInstrumentEventInstruction: # noqa: E501
|
|
3965
3989
|
...
|
|
3966
3990
|
|
|
3967
3991
|
@validate_arguments
|
|
3968
|
-
def list_instrument_event_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instructions. Defaults to latest if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing instructions; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[List[StrictStr]], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PagedResourceListOfInstrumentEventInstruction, Awaitable[PagedResourceListOfInstrumentEventInstruction]]: # noqa: E501
|
|
3992
|
+
def list_instrument_event_instructions(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instructions. Defaults to latest if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing instructions; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[List[StrictStr]], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PagedResourceListOfInstrumentEventInstruction, Awaitable[PagedResourceListOfInstrumentEventInstruction]]: # noqa: E501
|
|
3969
3993
|
"""[EARLY ACCESS] ListInstrumentEventInstructions: List Instrument Event Instructions # noqa: E501
|
|
3970
3994
|
|
|
3971
3995
|
Lists all instructions for a particular portfolio # noqa: E501
|
|
3972
3996
|
This method makes a synchronous HTTP request by default. To make an
|
|
3973
3997
|
asynchronous HTTP request, please pass async_req=True
|
|
3974
3998
|
|
|
3975
|
-
>>> thread = api.list_instrument_event_instructions(scope, code, portfolio_effective_at, as_at, page, limit, filter, sort_by, async_req=True)
|
|
3999
|
+
>>> thread = api.list_instrument_event_instructions(scope, code, portfolio_effective_at, as_at, page, limit, filter, sort_by, timeline_scope, timeline_code, closed_period_id, async_req=True)
|
|
3976
4000
|
>>> result = thread.get()
|
|
3977
4001
|
|
|
3978
4002
|
:param scope: The scope of the portfolio. (required)
|
|
@@ -3991,6 +4015,12 @@ class PortfoliosApi:
|
|
|
3991
4015
|
:type filter: str
|
|
3992
4016
|
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".
|
|
3993
4017
|
:type sort_by: List[str]
|
|
4018
|
+
:param timeline_scope: The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.
|
|
4019
|
+
:type timeline_scope: str
|
|
4020
|
+
:param timeline_code: The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.
|
|
4021
|
+
:type timeline_code: str
|
|
4022
|
+
:param closed_period_id: The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.
|
|
4023
|
+
:type closed_period_id: str
|
|
3994
4024
|
:param async_req: Whether to execute the request asynchronously.
|
|
3995
4025
|
:type async_req: bool, optional
|
|
3996
4026
|
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
|
@@ -4007,17 +4037,17 @@ class PortfoliosApi:
|
|
|
4007
4037
|
raise ValueError(message)
|
|
4008
4038
|
if async_req is not None:
|
|
4009
4039
|
kwargs['async_req'] = async_req
|
|
4010
|
-
return self.list_instrument_event_instructions_with_http_info(scope, code, portfolio_effective_at, as_at, page, limit, filter, sort_by, **kwargs) # noqa: E501
|
|
4040
|
+
return self.list_instrument_event_instructions_with_http_info(scope, code, portfolio_effective_at, as_at, page, limit, filter, sort_by, timeline_scope, timeline_code, closed_period_id, **kwargs) # noqa: E501
|
|
4011
4041
|
|
|
4012
4042
|
@validate_arguments
|
|
4013
|
-
def list_instrument_event_instructions_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instructions. Defaults to latest if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing instructions; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[List[StrictStr]], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
4043
|
+
def list_instrument_event_instructions_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], portfolio_effective_at : Annotated[Optional[StrictStr], Field( description="The effective date at which the portfolio will be resolved. Defaults to current time if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the instructions. Defaults to latest if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing instructions; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the results. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[List[StrictStr]], Field(description="A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
4014
4044
|
"""[EARLY ACCESS] ListInstrumentEventInstructions: List Instrument Event Instructions # noqa: E501
|
|
4015
4045
|
|
|
4016
4046
|
Lists all instructions for a particular portfolio # noqa: E501
|
|
4017
4047
|
This method makes a synchronous HTTP request by default. To make an
|
|
4018
4048
|
asynchronous HTTP request, please pass async_req=True
|
|
4019
4049
|
|
|
4020
|
-
>>> thread = api.list_instrument_event_instructions_with_http_info(scope, code, portfolio_effective_at, as_at, page, limit, filter, sort_by, async_req=True)
|
|
4050
|
+
>>> thread = api.list_instrument_event_instructions_with_http_info(scope, code, portfolio_effective_at, as_at, page, limit, filter, sort_by, timeline_scope, timeline_code, closed_period_id, async_req=True)
|
|
4021
4051
|
>>> result = thread.get()
|
|
4022
4052
|
|
|
4023
4053
|
:param scope: The scope of the portfolio. (required)
|
|
@@ -4036,6 +4066,12 @@ class PortfoliosApi:
|
|
|
4036
4066
|
:type filter: str
|
|
4037
4067
|
:param sort_by: A list of field names to sort by, each suffixed by \" ASC\" or \" DESC\".
|
|
4038
4068
|
:type sort_by: List[str]
|
|
4069
|
+
:param timeline_scope: The scope of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineCode must also be provided.
|
|
4070
|
+
:type timeline_scope: str
|
|
4071
|
+
:param timeline_code: The code of the Timeline, used to override the AsAt, and fetch post close activity data. If this is provided, timelineScope must also be provided.
|
|
4072
|
+
:type timeline_code: str
|
|
4073
|
+
:param closed_period_id: The code of the ClosedPeriod attached to the timeline, used to override the AsAt, and fetch post close activity data. If this field is left empty and the timelineScope and timelineCode fields are filled out, the portfolioEffectiveAt will be used to resolve the relevant closed period.
|
|
4074
|
+
:type closed_period_id: str
|
|
4039
4075
|
:param async_req: Whether to execute the request asynchronously.
|
|
4040
4076
|
:type async_req: bool, optional
|
|
4041
4077
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -4070,7 +4106,10 @@ class PortfoliosApi:
|
|
|
4070
4106
|
'page',
|
|
4071
4107
|
'limit',
|
|
4072
4108
|
'filter',
|
|
4073
|
-
'sort_by'
|
|
4109
|
+
'sort_by',
|
|
4110
|
+
'timeline_scope',
|
|
4111
|
+
'timeline_code',
|
|
4112
|
+
'closed_period_id'
|
|
4074
4113
|
]
|
|
4075
4114
|
_all_params.extend(
|
|
4076
4115
|
[
|
|
@@ -4130,6 +4169,15 @@ class PortfoliosApi:
|
|
|
4130
4169
|
_query_params.append(('sortBy', _params['sort_by']))
|
|
4131
4170
|
_collection_formats['sortBy'] = 'multi'
|
|
4132
4171
|
|
|
4172
|
+
if _params.get('timeline_scope') is not None: # noqa: E501
|
|
4173
|
+
_query_params.append(('timelineScope', _params['timeline_scope']))
|
|
4174
|
+
|
|
4175
|
+
if _params.get('timeline_code') is not None: # noqa: E501
|
|
4176
|
+
_query_params.append(('timelineCode', _params['timeline_code']))
|
|
4177
|
+
|
|
4178
|
+
if _params.get('closed_period_id') is not None: # noqa: E501
|
|
4179
|
+
_query_params.append(('closedPeriodId', _params['closed_period_id']))
|
|
4180
|
+
|
|
4133
4181
|
# process the header parameters
|
|
4134
4182
|
_header_params = dict(_params.get('_headers', {}))
|
|
4135
4183
|
# process the form parameters
|
lusid/configuration.py
CHANGED
|
@@ -445,7 +445,7 @@ class Configuration:
|
|
|
445
445
|
return "Python SDK Debug Report:\n"\
|
|
446
446
|
"OS: {env}\n"\
|
|
447
447
|
"Python Version: {pyversion}\n"\
|
|
448
|
-
"Version of the API: 0.11.
|
|
448
|
+
"Version of the API: 0.11.8717\n"\
|
|
449
449
|
"SDK Package Version: {package_version}".\
|
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
|
451
451
|
|
|
@@ -35,7 +35,8 @@ class UpsertValuationPointRequest(BaseModel):
|
|
|
35
35
|
query_as_at: Optional[datetime] = Field(default=None, description="The query time of the diary entry. Defaults to latest.", alias="queryAsAt")
|
|
36
36
|
properties: Optional[Dict[str, ModelProperty]] = Field(default=None, description="A set of properties for the diary entry.")
|
|
37
37
|
apply_clear_down: Optional[StrictBool] = Field(default=None, description="Defaults to false. Set to true if you want that the closed period to have the clear down applied.", alias="applyClearDown")
|
|
38
|
-
|
|
38
|
+
update_inclusion_date_nav_adjustments: Optional[StrictBool] = Field(default=None, description="Defaults to false. Set to true if you have the required licence and want the InclusionDate property values to be used to determine whether items should be automatically included in the post close activities.", alias="updateInclusionDateNavAdjustments")
|
|
39
|
+
__properties = ["diaryEntryCode", "diaryEntryVariant", "name", "effectiveAt", "queryAsAt", "properties", "applyClearDown", "updateInclusionDateNavAdjustments"]
|
|
39
40
|
|
|
40
41
|
class Config:
|
|
41
42
|
"""Pydantic configuration"""
|
|
@@ -119,7 +120,8 @@ class UpsertValuationPointRequest(BaseModel):
|
|
|
119
120
|
)
|
|
120
121
|
if obj.get("properties") is not None
|
|
121
122
|
else None,
|
|
122
|
-
"apply_clear_down": obj.get("applyClearDown")
|
|
123
|
+
"apply_clear_down": obj.get("applyClearDown"),
|
|
124
|
+
"update_inclusion_date_nav_adjustments": obj.get("updateInclusionDateNavAdjustments")
|
|
123
125
|
})
|
|
124
126
|
return _obj
|
|
125
127
|
|
|
@@ -48,7 +48,7 @@ lusid/api/participations_api.py,sha256=nhxFeLpX1_hymwN4-LRzWDsJ-eiQ1-rbMf_r8euPN
|
|
|
48
48
|
lusid/api/persons_api.py,sha256=ia_Ysgm3c8bloLy7BrTedGmayGQVyv6ETYbw4afnAMk,249840
|
|
49
49
|
lusid/api/placements_api.py,sha256=EOPVILTFTlp8S90kZ1Q5P8u76q-UY7TyYw2EmwHMul8,45400
|
|
50
50
|
lusid/api/portfolio_groups_api.py,sha256=_omAwy3WNmY_Pf4BhmQaTw1QK4xUIFGy5HJ-DrFuQ0g,372403
|
|
51
|
-
lusid/api/portfolios_api.py,sha256
|
|
51
|
+
lusid/api/portfolios_api.py,sha256=-yAS-uT8PIX0EtZJZy1FOVWWe8ygWfCCbkSrLZP80OU,428313
|
|
52
52
|
lusid/api/property_definitions_api.py,sha256=MHUqUioZxHG0a0cSmJHffezPi5QKlrhCtgGuYV7Cb38,148811
|
|
53
53
|
lusid/api/queryable_keys_api.py,sha256=hsgx-JSjncobRaQlDKynpC6MzBeaiMHCAt8Hl-AEK1Q,10275
|
|
54
54
|
lusid/api/quotes_api.py,sha256=oP797hPdQopIgi-cxiv-Zuwwc3MOK6uPd0xQw-AeJdQ,112757
|
|
@@ -81,7 +81,7 @@ lusid/api/translation_api.py,sha256=ykq--aAObjON30cqkCgtlvNVN_X9o1kCFHBuhx0TqOY,
|
|
|
81
81
|
lusid/api/workspace_api.py,sha256=cIVlsVXulKjrNIF1NMaEH11-YRF3gOmLN6KaXVeECnk,120530
|
|
82
82
|
lusid/api_client.py,sha256=9ShwOKmMJEOUj82dVLKP8CIkwu0aGV2H5qwGxTVJp7w,31170
|
|
83
83
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
|
84
|
-
lusid/configuration.py,sha256=
|
|
84
|
+
lusid/configuration.py,sha256=U1tafqjpLHuQ8aI3WxvXwIAArqwVDZX2rlBHV_IsnU8,17980
|
|
85
85
|
lusid/exceptions.py,sha256=lYAJyHpruxMPUtZ95NwiYJvqzInY8S0yhRE0-JFYCww,5873
|
|
86
86
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
|
87
87
|
lusid/extensions/api_client.py,sha256=cq0kCulu3hsJ7jMPQfsE8B6FIa8ppTSXqneHo19RrXQ,30973
|
|
@@ -1389,7 +1389,7 @@ lusid/models/upsert_structured_data_response.py,sha256=mSngI1s3Bo_r1GsNE4-0OU6CO
|
|
|
1389
1389
|
lusid/models/upsert_structured_result_data_request.py,sha256=X9y1QMtJbMACFXHHm4nODBbxDgiEvujG79_yLSCop-I,3156
|
|
1390
1390
|
lusid/models/upsert_transaction_properties_response.py,sha256=2mHWGRSA5Ku7DYliDeSxdTLnWIivs6bRnGuvW7rAK6E,4806
|
|
1391
1391
|
lusid/models/upsert_translation_script_request.py,sha256=huEybnVm1KecVBtRcBvuEX8xdFTS2K2NVCeubaAAp3A,2848
|
|
1392
|
-
lusid/models/upsert_valuation_point_request.py,sha256=
|
|
1392
|
+
lusid/models/upsert_valuation_point_request.py,sha256=1LspxDLVOmpZUTARhNwUCnn_Wg5JAQlDqMBpDfFY2yM,5828
|
|
1393
1393
|
lusid/models/user.py,sha256=dZ1qu8ZinkMTdY7_qSZpwBTAj07R_R6RkWIgPLdKzkI,2474
|
|
1394
1394
|
lusid/models/valuation_point_data_query_parameters.py,sha256=AJaTAtOgJDGzodMblzKotCkNPCj6PQwKJFe8vxQoC0o,3506
|
|
1395
1395
|
lusid/models/valuation_point_data_request.py,sha256=lv7Zs-o7WdFNBKRB2GgW2TzXIVNa3aMr61-CEne9wYU,3050
|
|
@@ -1438,6 +1438,6 @@ lusid/models/year_month_day.py,sha256=H4OeBzWuMg6mwiOAHFfAvrzjd3QrFCqx1ldsB4L9YQ
|
|
|
1438
1438
|
lusid/models/yield_curve_data.py,sha256=_BmEhhFXrGpBb7qL9WZJpVPeat4twES7nSQggts6_WI,10457
|
|
1439
1439
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1440
1440
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
|
1441
|
-
lusid_sdk-2.3.
|
|
1442
|
-
lusid_sdk-2.3.
|
|
1443
|
-
lusid_sdk-2.3.
|
|
1441
|
+
lusid_sdk-2.3.9.dist-info/METADATA,sha256=-yj089Vk3kU-s_UXzNN9sz6TFT9QdH5dRGr1e1lHzcw,241784
|
|
1442
|
+
lusid_sdk-2.3.9.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
1443
|
+
lusid_sdk-2.3.9.dist-info/RECORD,,
|
|
File without changes
|