lusid-sdk 2.1.967__py3-none-any.whl → 2.1.969__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.
@@ -602,30 +602,28 @@ class ComplexMarketDataApi:
602
602
 
603
603
 
604
604
  @overload
605
- async def upsert_append_complex_market_data(self, scope : Annotated[StrictStr, Field(..., description="The scope of the complex market data to append.")], append_complex_market_data_request : Annotated[AppendComplexMarketDataRequest, Field(..., description="Request definition of the point to append.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime at which to retrieve the complex market data. Defaults to the current LUSID system datetime if not specified. Must match the effectiveAt of the ComplexMarketDataId given in the request body.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the complex market data. Defaults to return the latest version if not specified.")] = None, **kwargs) -> UpsertSingleStructuredDataResponse: # noqa: E501
605
+ async def upsert_append_complex_market_data(self, scope : Annotated[StrictStr, Field(..., description="The scope of the complex market data to append.")], append_complex_market_data_request : Annotated[AppendComplexMarketDataRequest, Field(..., description="Request definition of the point to append.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the complex market data. Defaults to return the latest version if not specified.")] = None, **kwargs) -> UpsertSingleStructuredDataResponse: # noqa: E501
606
606
  ...
607
607
 
608
608
  @overload
609
- def upsert_append_complex_market_data(self, scope : Annotated[StrictStr, Field(..., description="The scope of the complex market data to append.")], append_complex_market_data_request : Annotated[AppendComplexMarketDataRequest, Field(..., description="Request definition of the point to append.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime at which to retrieve the complex market data. Defaults to the current LUSID system datetime if not specified. Must match the effectiveAt of the ComplexMarketDataId given in the request body.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the complex market data. Defaults to return the latest version if not specified.")] = None, async_req: Optional[bool]=True, **kwargs) -> UpsertSingleStructuredDataResponse: # noqa: E501
609
+ def upsert_append_complex_market_data(self, scope : Annotated[StrictStr, Field(..., description="The scope of the complex market data to append.")], append_complex_market_data_request : Annotated[AppendComplexMarketDataRequest, Field(..., description="Request definition of the point to append.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the complex market data. Defaults to return the latest version if not specified.")] = None, async_req: Optional[bool]=True, **kwargs) -> UpsertSingleStructuredDataResponse: # noqa: E501
610
610
  ...
611
611
 
612
612
  @validate_arguments
613
- def upsert_append_complex_market_data(self, scope : Annotated[StrictStr, Field(..., description="The scope of the complex market data to append.")], append_complex_market_data_request : Annotated[AppendComplexMarketDataRequest, Field(..., description="Request definition of the point to append.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime at which to retrieve the complex market data. Defaults to the current LUSID system datetime if not specified. Must match the effectiveAt of the ComplexMarketDataId given in the request body.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the complex market data. Defaults to return the latest version if not specified.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[UpsertSingleStructuredDataResponse, Awaitable[UpsertSingleStructuredDataResponse]]: # noqa: E501
613
+ def upsert_append_complex_market_data(self, scope : Annotated[StrictStr, Field(..., description="The scope of the complex market data to append.")], append_complex_market_data_request : Annotated[AppendComplexMarketDataRequest, Field(..., description="Request definition of the point to append.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the complex market data. Defaults to return the latest version if not specified.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[UpsertSingleStructuredDataResponse, Awaitable[UpsertSingleStructuredDataResponse]]: # noqa: E501
614
614
  """[EARLY ACCESS] UpsertAppendComplexMarketData: Appends a new point to the end of a ComplexMarketData definition. # noqa: E501
615
615
 
616
616
  Update a complex market data item in a single scope by appending a new point onto the end. NOTE: This operation is only supported for FX curves with one of the following data types: FxForwardCurveByQuoteReference, FxForwardCurveData, FxForwardPipsCurveData, FxForwardTenorCurveData, FxForwardTenorPipsCurveData # noqa: E501
617
617
  This method makes a synchronous HTTP request by default. To make an
618
618
  asynchronous HTTP request, please pass async_req=True
619
619
 
620
- >>> thread = api.upsert_append_complex_market_data(scope, append_complex_market_data_request, effective_at, as_at, async_req=True)
620
+ >>> thread = api.upsert_append_complex_market_data(scope, append_complex_market_data_request, as_at, async_req=True)
621
621
  >>> result = thread.get()
622
622
 
623
623
  :param scope: The scope of the complex market data to append. (required)
624
624
  :type scope: str
625
625
  :param append_complex_market_data_request: Request definition of the point to append. (required)
626
626
  :type append_complex_market_data_request: AppendComplexMarketDataRequest
627
- :param effective_at: The effective datetime at which to retrieve the complex market data. Defaults to the current LUSID system datetime if not specified. Must match the effectiveAt of the ComplexMarketDataId given in the request body.
628
- :type effective_at: str
629
627
  :param as_at: The asAt datetime at which to retrieve the complex market data. Defaults to return the latest version if not specified.
630
628
  :type as_at: datetime
631
629
  :param async_req: Whether to execute the request asynchronously.
@@ -644,25 +642,23 @@ class ComplexMarketDataApi:
644
642
  raise ValueError(message)
645
643
  if async_req is not None:
646
644
  kwargs['async_req'] = async_req
647
- return self.upsert_append_complex_market_data_with_http_info(scope, append_complex_market_data_request, effective_at, as_at, **kwargs) # noqa: E501
645
+ return self.upsert_append_complex_market_data_with_http_info(scope, append_complex_market_data_request, as_at, **kwargs) # noqa: E501
648
646
 
649
647
  @validate_arguments
650
- def upsert_append_complex_market_data_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the complex market data to append.")], append_complex_market_data_request : Annotated[AppendComplexMarketDataRequest, Field(..., description="Request definition of the point to append.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime at which to retrieve the complex market data. Defaults to the current LUSID system datetime if not specified. Must match the effectiveAt of the ComplexMarketDataId given in the request body.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the complex market data. Defaults to return the latest version if not specified.")] = None, **kwargs) -> ApiResponse: # noqa: E501
648
+ def upsert_append_complex_market_data_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the complex market data to append.")], append_complex_market_data_request : Annotated[AppendComplexMarketDataRequest, Field(..., description="Request definition of the point to append.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the complex market data. Defaults to return the latest version if not specified.")] = None, **kwargs) -> ApiResponse: # noqa: E501
651
649
  """[EARLY ACCESS] UpsertAppendComplexMarketData: Appends a new point to the end of a ComplexMarketData definition. # noqa: E501
652
650
 
653
651
  Update a complex market data item in a single scope by appending a new point onto the end. NOTE: This operation is only supported for FX curves with one of the following data types: FxForwardCurveByQuoteReference, FxForwardCurveData, FxForwardPipsCurveData, FxForwardTenorCurveData, FxForwardTenorPipsCurveData # noqa: E501
654
652
  This method makes a synchronous HTTP request by default. To make an
655
653
  asynchronous HTTP request, please pass async_req=True
656
654
 
657
- >>> thread = api.upsert_append_complex_market_data_with_http_info(scope, append_complex_market_data_request, effective_at, as_at, async_req=True)
655
+ >>> thread = api.upsert_append_complex_market_data_with_http_info(scope, append_complex_market_data_request, as_at, async_req=True)
658
656
  >>> result = thread.get()
659
657
 
660
658
  :param scope: The scope of the complex market data to append. (required)
661
659
  :type scope: str
662
660
  :param append_complex_market_data_request: Request definition of the point to append. (required)
663
661
  :type append_complex_market_data_request: AppendComplexMarketDataRequest
664
- :param effective_at: The effective datetime at which to retrieve the complex market data. Defaults to the current LUSID system datetime if not specified. Must match the effectiveAt of the ComplexMarketDataId given in the request body.
665
- :type effective_at: str
666
662
  :param as_at: The asAt datetime at which to retrieve the complex market data. Defaults to return the latest version if not specified.
667
663
  :type as_at: datetime
668
664
  :param async_req: Whether to execute the request asynchronously.
@@ -694,7 +690,6 @@ class ComplexMarketDataApi:
694
690
  _all_params = [
695
691
  'scope',
696
692
  'append_complex_market_data_request',
697
- 'effective_at',
698
693
  'as_at'
699
694
  ]
700
695
  _all_params.extend(
@@ -730,9 +725,6 @@ class ComplexMarketDataApi:
730
725
 
731
726
  # process the query parameters
732
727
  _query_params = []
733
- if _params.get('effective_at') is not None: # noqa: E501
734
- _query_params.append(('effectiveAt', _params['effective_at']))
735
-
736
728
  if _params.get('as_at') is not None: # noqa: E501
737
729
  if isinstance(_params['as_at'], datetime):
738
730
  _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))