sdk.lusid.api.simple_position_portfolios_api.SimplePositionPortfoliosApi

class SimplePositionPortfoliosApi(api_client=None)[source]

NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech

Do not edit the class manually.

Methods

create_simple_position_portfolio

[EARLY ACCESS] CreateSimplePositionPortfolio: Create simple position portfolio # noqa: E501

create_simple_position_portfolio_with_http_info

[EARLY ACCESS] CreateSimplePositionPortfolio: Create simple position portfolio # noqa: E501

create_simple_position_portfolio(scope, create_simple_position_portfolio_request, async_req=None, **kwargs)[source]

[EARLY ACCESS] CreateSimplePositionPortfolio: Create simple position portfolio # noqa: E501

Create a simple position portfolio in a particular scope. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.create_simple_position_portfolio(scope, create_simple_position_portfolio_request, async_req=True)
>>> result = thread.get()
Parameters:
  • scope (str) – The scope in which to create the simple position portfolio. (required)

  • create_simple_position_portfolio_request (CreateSimplePositionPortfolioRequest) – The definition of the simple position portfolio. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

Portfolio

create_simple_position_portfolio_with_http_info(scope, create_simple_position_portfolio_request, **kwargs)[source]

[EARLY ACCESS] CreateSimplePositionPortfolio: Create simple position portfolio # noqa: E501

Create a simple position portfolio in a particular scope. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.create_simple_position_portfolio_with_http_info(scope, create_simple_position_portfolio_request, async_req=True)
>>> result = thread.get()
Parameters:
  • scope (str) – The scope in which to create the simple position portfolio. (required)

  • create_simple_position_portfolio_request (CreateSimplePositionPortfolioRequest) – The definition of the simple position portfolio. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(Portfolio, status_code(int), headers(HTTPHeaderDict))