sdk.lusid.api.investment_accounts_api.InvestmentAccountsApi
- class InvestmentAccountsApi(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
[EXPERIMENTAL] DeleteInvestmentAccount: Delete Investment Account # noqa: E501
[EXPERIMENTAL] DeleteInvestmentAccountAccessMetadata: Delete an Investment Account Access Metadata entry.
[EXPERIMENTAL] DeleteInvestmentAccountAccessMetadata: Delete an Investment Account Access Metadata entry.
[EXPERIMENTAL] DeleteInvestmentAccount: Delete Investment Account # noqa: E501
[EXPERIMENTAL] GetAllInvestmentAccountAccessMetadata: Get Access Metadata rules for an Investment Account.
[EXPERIMENTAL] GetAllInvestmentAccountAccessMetadata: Get Access Metadata rules for an Investment Account.
[EXPERIMENTAL] GetInvestmentAccount: Get Investment Account # noqa: E501
[EARLY ACCESS] GetInvestmentAccountRelationships: Get Investment Account relationships # noqa: E501
[EARLY ACCESS] GetInvestmentAccountRelationships: Get Investment Account relationships # noqa: E501
[EXPERIMENTAL] GetInvestmentAccount: Get Investment Account # noqa: E501
[EXPERIMENTAL] ListAllInvestmentAccounts: List Investment Accounts # noqa: E501
[EXPERIMENTAL] ListAllInvestmentAccounts: List Investment Accounts # noqa: E501
[EXPERIMENTAL] PatchInvestmentAccountAccessMetadata: Patch Access Metadata rules for an Investment Account.
[EXPERIMENTAL] PatchInvestmentAccountAccessMetadata: Patch Access Metadata rules for an Investment Account.
[EXPERIMENTAL] UpsertInvestmentAccounts: Upsert Investment Accounts # noqa: E501
[EXPERIMENTAL] UpsertInvestmentAccounts: Upsert Investment Accounts # noqa: E501
- delete_investment_account(identifier_type, identifier_value, scope, identifier_scope, async_req=None, **kwargs)[source]
[EXPERIMENTAL] DeleteInvestmentAccount: Delete Investment Account # noqa: E501
Delete an investment account. Deletion will be valid from the investment account’s creation datetime. This means that the investment account will no longer exist at any effective datetime from the asAt datetime of deletion. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_investment_account(identifier_type, identifier_value, scope, identifier_scope, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (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:
- delete_investment_account_access_metadata(identifier_type, identifier_value, metadata_key, scope, identifier_scope, effective_at=None, effective_until=None, async_req=None, **kwargs)[source]
[EXPERIMENTAL] DeleteInvestmentAccountAccessMetadata: Delete an Investment Account Access Metadata entry. # noqa: E501
Deletes the Investment Account Access Metadata entry that exactly matches the provided identifier parts. It is important to always check to verify success (or failure). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_investment_account_access_metadata(identifier_type, identifier_value, metadata_key, scope, identifier_scope, effective_at, effective_until, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
metadata_key (str) – Key of the metadata entry to delete (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (required)
effective_at (str) – The effective date to delete at, if this is not supplied, it will delete all data found
effective_until (datetime) – The effective date until which the delete is valid. If not supplied this will be valid indefinitely, or until the next ‘effectiveAt’ date of the Access Metadata
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:
- delete_investment_account_access_metadata_with_http_info(identifier_type, identifier_value, metadata_key, scope, identifier_scope, effective_at=None, effective_until=None, **kwargs)[source]
[EXPERIMENTAL] DeleteInvestmentAccountAccessMetadata: Delete an Investment Account Access Metadata entry. # noqa: E501
Deletes the Investment Account Access Metadata entry that exactly matches the provided identifier parts. It is important to always check to verify success (or failure). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_investment_account_access_metadata_with_http_info(identifier_type, identifier_value, metadata_key, scope, identifier_scope, effective_at, effective_until, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
metadata_key (str) – Key of the metadata entry to delete (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (required)
effective_at (str) – The effective date to delete at, if this is not supplied, it will delete all data found
effective_until (datetime) – The effective date until which the delete is valid. If not supplied this will be valid indefinitely, or until the next ‘effectiveAt’ date of the Access Metadata
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(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))
- delete_investment_account_with_http_info(identifier_type, identifier_value, scope, identifier_scope, **kwargs)[source]
[EXPERIMENTAL] DeleteInvestmentAccount: Delete Investment Account # noqa: E501
Delete an investment account. Deletion will be valid from the investment account’s creation datetime. This means that the investment account will no longer exist at any effective datetime from the asAt datetime of deletion. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_investment_account_with_http_info(identifier_type, identifier_value, scope, identifier_scope, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (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(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))
- get_all_investment_account_access_metadata(identifier_type, identifier_value, scope, identifier_scope, effective_at=None, as_at=None, async_req=None, **kwargs)[source]
[EXPERIMENTAL] GetAllInvestmentAccountAccessMetadata: Get Access Metadata rules for an Investment Account. # noqa: E501
Pass the Scope and Code of the Investment Account identifier along with the identifier value parameter to retrieve the associated Access Metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_all_investment_account_access_metadata(identifier_type, identifier_value, scope, identifier_scope, effective_at, as_at, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (required)
effective_at (str) – The effectiveAt datetime at which to retrieve the Access Metadata
as_at (datetime) – The asAt datetime at which to retrieve the Access Metadata
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:
Dict[str, List[AccessMetadataValue]]
- get_all_investment_account_access_metadata_with_http_info(identifier_type, identifier_value, scope, identifier_scope, effective_at=None, as_at=None, **kwargs)[source]
[EXPERIMENTAL] GetAllInvestmentAccountAccessMetadata: Get Access Metadata rules for an Investment Account. # noqa: E501
Pass the Scope and Code of the Investment Account identifier along with the identifier value parameter to retrieve the associated Access Metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_all_investment_account_access_metadata_with_http_info(identifier_type, identifier_value, scope, identifier_scope, effective_at, as_at, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (required)
effective_at (str) – The effectiveAt datetime at which to retrieve the Access Metadata
as_at (datetime) – The asAt datetime at which to retrieve the Access Metadata
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(Dict[str, List[AccessMetadataValue]], status_code(int), headers(HTTPHeaderDict))
- get_investment_account(identifier_type, identifier_value, scope, identifier_scope, property_keys=None, effective_at=None, as_at=None, relationship_definition_ids=None, async_req=None, **kwargs)[source]
[EXPERIMENTAL] GetInvestmentAccount: Get Investment Account # noqa: E501
Retrieve the definition of an investment account. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_investment_account(identifier_type, identifier_value, scope, identifier_scope, property_keys, effective_at, as_at, relationship_definition_ids, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (required)
property_keys (List[str]) – A list of property keys or identifier types (as property keys) from the “InvestmentAccount” domain to include for found investment account, or from any domain that supports relationships to decorate onto related entities. These take the format {domain}/{scope}/{code} e.g. “InvestmentAccount/ContactDetails/Address”.
effective_at (str) – The effective datetime or cut label at which to retrieve the investment account. Defaults to the current LUSID system datetime if not specified.
as_at (datetime) – The asAt datetime at which to retrieve the investment account. Defaults to return the latest version of the investment account if not specified.
relationship_definition_ids (List[str]) – A list of relationship definitions that are used to decorate related entities onto the investment account in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.
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:
- get_investment_account_relationships(identifier_type, identifier_value, scope, identifier_scope, effective_at=None, as_at=None, filter=None, identifier_types=None, async_req=None, **kwargs)[source]
[EARLY ACCESS] GetInvestmentAccountRelationships: Get Investment Account relationships # noqa: E501
Get relationships for a particular Investment Account. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_investment_account_relationships(identifier_type, identifier_value, scope, identifier_scope, effective_at, as_at, filter, identifier_types, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (required)
effective_at (str) – The effective datetime or cut label at which to get relationships. Defaults to the current LUSID system datetime if not specified.
as_at (datetime) – The asAt datetime at which to retrieve relationships. Defaults to return the latest LUSID AsAt time if not specified.
filter (str) – Expression to filter relationships. Users should provide null or empty string for this field until further notice.
identifier_types (List[str]) – Identifier types (as property keys) used for referencing Persons or Legal Entities. These can be specified from the ‘Person’ or ‘LegalEntity’ domains and have the format {domain}/{scope}/{code}, for example ‘Person/CompanyDetails/Role’. An Empty array may be used to return all related Entities.
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:
- get_investment_account_relationships_with_http_info(identifier_type, identifier_value, scope, identifier_scope, effective_at=None, as_at=None, filter=None, identifier_types=None, **kwargs)[source]
[EARLY ACCESS] GetInvestmentAccountRelationships: Get Investment Account relationships # noqa: E501
Get relationships for a particular Investment Account. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_investment_account_relationships_with_http_info(identifier_type, identifier_value, scope, identifier_scope, effective_at, as_at, filter, identifier_types, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (required)
effective_at (str) – The effective datetime or cut label at which to get relationships. Defaults to the current LUSID system datetime if not specified.
as_at (datetime) – The asAt datetime at which to retrieve relationships. Defaults to return the latest LUSID AsAt time if not specified.
filter (str) – Expression to filter relationships. Users should provide null or empty string for this field until further notice.
identifier_types (List[str]) – Identifier types (as property keys) used for referencing Persons or Legal Entities. These can be specified from the ‘Person’ or ‘LegalEntity’ domains and have the format {domain}/{scope}/{code}, for example ‘Person/CompanyDetails/Role’. An Empty array may be used to return all related Entities.
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(ResourceListOfRelationship, status_code(int), headers(HTTPHeaderDict))
- get_investment_account_with_http_info(identifier_type, identifier_value, scope, identifier_scope, property_keys=None, effective_at=None, as_at=None, relationship_definition_ids=None, **kwargs)[source]
[EXPERIMENTAL] GetInvestmentAccount: Get Investment Account # noqa: E501
Retrieve the definition of an investment account. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_investment_account_with_http_info(identifier_type, identifier_value, scope, identifier_scope, property_keys, effective_at, as_at, relationship_definition_ids, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (required)
property_keys (List[str]) – A list of property keys or identifier types (as property keys) from the “InvestmentAccount” domain to include for found investment account, or from any domain that supports relationships to decorate onto related entities. These take the format {domain}/{scope}/{code} e.g. “InvestmentAccount/ContactDetails/Address”.
effective_at (str) – The effective datetime or cut label at which to retrieve the investment account. Defaults to the current LUSID system datetime if not specified.
as_at (datetime) – The asAt datetime at which to retrieve the investment account. Defaults to return the latest version of the investment account if not specified.
relationship_definition_ids (List[str]) – A list of relationship definitions that are used to decorate related entities onto the investment account in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.
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(InvestmentAccount, status_code(int), headers(HTTPHeaderDict))
- list_all_investment_accounts(effective_at=None, as_at=None, page=None, limit=None, filter=None, sort_by=None, property_keys=None, relationship_definition_ids=None, async_req=None, **kwargs)[source]
[EXPERIMENTAL] ListAllInvestmentAccounts: List Investment Accounts # noqa: E501
List all investment accounts which the user is entitled to see. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_all_investment_accounts(effective_at, as_at, page, limit, filter, sort_by, property_keys, relationship_definition_ids, async_req=True) >>> result = thread.get()
- Parameters:
effective_at (str) – The effective datetime or cut label at which to list the investment accounts. Defaults to the current LUSID system datetime if not specified.
as_at (datetime) – The asAt datetime at which to list the investment accounts. Defaults to return the latest version of each investment accounts if not specified.
page (str) – The pagination token to use to continue listing investment accounts from a previous call to list investment accounts. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.
limit (int) – When paginating, limit the number of returned results to this many. Defaults to 5000 if not specified.
filter (str) – Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
sort_by (List[str]) – A list of field names or properties to sort by, each suffixed by “ ASC” or “ DESC”.
property_keys (List[str]) – A list of property keys or identifier types (as property keys) from the “InvestmentAccount” domain to include for each investment account, or from any domain that supports relationships to decorate onto related entities. These take the format {domain}/{scope}/{code} e.g. “InvestmentAccount/ContactDetails/Address”.
relationship_definition_ids (List[str]) – A list of relationship definitions that are used to decorate related entities onto each investment account in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.
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:
- list_all_investment_accounts_with_http_info(effective_at=None, as_at=None, page=None, limit=None, filter=None, sort_by=None, property_keys=None, relationship_definition_ids=None, **kwargs)[source]
[EXPERIMENTAL] ListAllInvestmentAccounts: List Investment Accounts # noqa: E501
List all investment accounts which the user is entitled to see. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_all_investment_accounts_with_http_info(effective_at, as_at, page, limit, filter, sort_by, property_keys, relationship_definition_ids, async_req=True) >>> result = thread.get()
- Parameters:
effective_at (str) – The effective datetime or cut label at which to list the investment accounts. Defaults to the current LUSID system datetime if not specified.
as_at (datetime) – The asAt datetime at which to list the investment accounts. Defaults to return the latest version of each investment accounts if not specified.
page (str) – The pagination token to use to continue listing investment accounts from a previous call to list investment accounts. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.
limit (int) – When paginating, limit the number of returned results to this many. Defaults to 5000 if not specified.
filter (str) – Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
sort_by (List[str]) – A list of field names or properties to sort by, each suffixed by “ ASC” or “ DESC”.
property_keys (List[str]) – A list of property keys or identifier types (as property keys) from the “InvestmentAccount” domain to include for each investment account, or from any domain that supports relationships to decorate onto related entities. These take the format {domain}/{scope}/{code} e.g. “InvestmentAccount/ContactDetails/Address”.
relationship_definition_ids (List[str]) – A list of relationship definitions that are used to decorate related entities onto each investment account in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.
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(ResourceListOfInvestmentAccount, status_code(int), headers(HTTPHeaderDict))
- patch_investment_account_access_metadata(identifier_type, identifier_value, scope, identifier_scope, access_metadata_operation, effective_at=None, effective_until=None, async_req=None, **kwargs)[source]
[EXPERIMENTAL] PatchInvestmentAccountAccessMetadata: Patch Access Metadata rules for an Investment Account. # noqa: E501
Patch Investment Account Access Metadata Rules in a single scope. The behaviour is defined by the JSON Patch specification. Currently only ‘add’ is a supported operation on the patch document Currently only valid metadata keys are supported paths on the patch document The response will return any affected Investment Account Access Metadata rules or a failure message if unsuccessful. It is important to always check to verify success (or failure). Multiple rules for a metadataKey can exist with different effective at dates, when resources are accessed the rule that is active for the current time will be fetched. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_investment_account_access_metadata(identifier_type, identifier_value, scope, identifier_scope, access_metadata_operation, effective_at, effective_until, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (required)
access_metadata_operation (List[AccessMetadataOperation]) – The Json Patch document (required)
effective_at (str) – The effectiveAt datetime at which to upsert the Access Metadata
effective_until (datetime) – The effective datetime until which the Access Metadata is valid. If not supplied this will be valid indefinitely, or until the next ‘effectiveAt’ datetime of the Access Metadata
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:
Dict[str, List[AccessMetadataValue]]
- patch_investment_account_access_metadata_with_http_info(identifier_type, identifier_value, scope, identifier_scope, access_metadata_operation, effective_at=None, effective_until=None, **kwargs)[source]
[EXPERIMENTAL] PatchInvestmentAccountAccessMetadata: Patch Access Metadata rules for an Investment Account. # noqa: E501
Patch Investment Account Access Metadata Rules in a single scope. The behaviour is defined by the JSON Patch specification. Currently only ‘add’ is a supported operation on the patch document Currently only valid metadata keys are supported paths on the patch document The response will return any affected Investment Account Access Metadata rules or a failure message if unsuccessful. It is important to always check to verify success (or failure). Multiple rules for a metadataKey can exist with different effective at dates, when resources are accessed the rule that is active for the current time will be fetched. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_investment_account_access_metadata_with_http_info(identifier_type, identifier_value, scope, identifier_scope, access_metadata_operation, effective_at, effective_until, async_req=True) >>> result = thread.get()
- Parameters:
identifier_type (str) – Code of the investment account identifier type. (required)
identifier_value (str) – Code of the investment account under specified identifier type’s scope and code. (required)
scope (str) – The scope of the investment account entity. (required)
identifier_scope (str) – Scope of the investment account identifier type. (required)
access_metadata_operation (List[AccessMetadataOperation]) – The Json Patch document (required)
effective_at (str) – The effectiveAt datetime at which to upsert the Access Metadata
effective_until (datetime) – The effective datetime until which the Access Metadata is valid. If not supplied this will be valid indefinitely, or until the next ‘effectiveAt’ datetime of the Access Metadata
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(Dict[str, List[AccessMetadataValue]], status_code(int), headers(HTTPHeaderDict))
- upsert_investment_accounts(success_mode, request_body, async_req=None, **kwargs)[source]
[EXPERIMENTAL] UpsertInvestmentAccounts: Upsert Investment Accounts # noqa: E501
Creates or updates a collection of Investment Accounts # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.upsert_investment_accounts(success_mode, request_body, async_req=True) >>> result = thread.get()
- Parameters:
success_mode (str) – Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial (required)
request_body (Dict[str, UpsertInvestmentAccountRequest]) – A collection of requests to create or update Investment Accounts. (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:
- upsert_investment_accounts_with_http_info(success_mode, request_body, **kwargs)[source]
[EXPERIMENTAL] UpsertInvestmentAccounts: Upsert Investment Accounts # noqa: E501
Creates or updates a collection of Investment Accounts # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.upsert_investment_accounts_with_http_info(success_mode, request_body, async_req=True) >>> result = thread.get()
- Parameters:
success_mode (str) – Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial (required)
request_body (Dict[str, UpsertInvestmentAccountRequest]) – A collection of requests to create or update Investment Accounts. (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(UpsertInvestmentAccountsResponse, status_code(int), headers(HTTPHeaderDict))