LUSID C# SDK
Public Member Functions | List of all members
Lusid.Sdk.Api.IPortfoliosApiAsync Interface Reference

Represents a collection of functions to interact with the API endpoints More...

Inheritance diagram for Lusid.Sdk.Api.IPortfoliosApiAsync:
Inheritance graph
[legend]

Public Member Functions

System.Threading.Tasks.Task< DeletedEntityResponseDeletePortfolioAsync (string scope, string code, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Delete portfolio More...
 
System.Threading.Tasks.Task< ApiResponse< DeletedEntityResponse > > DeletePortfolioWithHttpInfoAsync (string scope, string code, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Delete portfolio More...
 
System.Threading.Tasks.Task< DeletedEntityResponseDeletePortfolioPropertiesAsync (string scope, string code, List< string > propertyKeys, DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Delete portfolio properties More...
 
System.Threading.Tasks.Task< ApiResponse< DeletedEntityResponse > > DeletePortfolioPropertiesWithHttpInfoAsync (string scope, string code, List< string > propertyKeys, DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Delete portfolio properties More...
 
System.Threading.Tasks.Task< PortfolioGetPortfolioAsync (string scope, string code, DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), DateTimeOffset? asAt=default(DateTimeOffset?), List< string > propertyKeys=default(List< string >), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Get portfolio More...
 
System.Threading.Tasks.Task< ApiResponse< Portfolio > > GetPortfolioWithHttpInfoAsync (string scope, string code, DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), DateTimeOffset? asAt=default(DateTimeOffset?), List< string > propertyKeys=default(List< string >), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Get portfolio More...
 
System.Threading.Tasks.Task< ResourceListOfProcessedCommandGetPortfolioCommandsAsync (string scope, string code, DateTimeOffset? fromAsAt=default(DateTimeOffset?), DateTimeOffset? toAsAt=default(DateTimeOffset?), string filter=default(string), string page=default(string), int? limit=default(int?), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Get portfolio commands More...
 
System.Threading.Tasks.Task< ApiResponse< ResourceListOfProcessedCommand > > GetPortfolioCommandsWithHttpInfoAsync (string scope, string code, DateTimeOffset? fromAsAt=default(DateTimeOffset?), DateTimeOffset? toAsAt=default(DateTimeOffset?), string filter=default(string), string page=default(string), int? limit=default(int?), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Get portfolio commands More...
 
System.Threading.Tasks.Task< PortfolioPropertiesGetPortfolioPropertiesAsync (string scope, string code, DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), DateTimeOffset? asAt=default(DateTimeOffset?), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Get portfolio properties More...
 
System.Threading.Tasks.Task< ApiResponse< PortfolioProperties > > GetPortfolioPropertiesWithHttpInfoAsync (string scope, string code, DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), DateTimeOffset? asAt=default(DateTimeOffset?), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Get portfolio properties More...
 
System.Threading.Tasks.Task< ResourceListOfPerformanceReturnGetPortfolioReturnsAsync (string scope, string code, string returnScope, string returnCode, DateTimeOrCutLabel fromEffectiveAt=default(DateTimeOrCutLabel), DateTimeOrCutLabel toEffectiveAt=default(DateTimeOrCutLabel), string period=default(string), DateTimeOffset? asAt=default(DateTimeOffset?), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Get Returns More...
 
System.Threading.Tasks.Task< ApiResponse< ResourceListOfPerformanceReturn > > GetPortfolioReturnsWithHttpInfoAsync (string scope, string code, string returnScope, string returnCode, DateTimeOrCutLabel fromEffectiveAt=default(DateTimeOrCutLabel), DateTimeOrCutLabel toEffectiveAt=default(DateTimeOrCutLabel), string period=default(string), DateTimeOffset? asAt=default(DateTimeOffset?), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Get Returns More...
 
System.Threading.Tasks.Task< ResourceListOfPortfolioListPortfoliosAsync (DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), DateTimeOffset? asAt=default(DateTimeOffset?), string page=default(string), int? start=default(int?), int? limit=default(int?), string filter=default(string), string query=default(string), List< string > propertyKeys=default(List< string >), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 List portfolios More...
 
System.Threading.Tasks.Task< ApiResponse< ResourceListOfPortfolio > > ListPortfoliosWithHttpInfoAsync (DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), DateTimeOffset? asAt=default(DateTimeOffset?), string page=default(string), int? start=default(int?), int? limit=default(int?), string filter=default(string), string query=default(string), List< string > propertyKeys=default(List< string >), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 List portfolios More...
 
System.Threading.Tasks.Task< ResourceListOfPortfolioListPortfoliosForScopeAsync (string scope, DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), DateTimeOffset? asAt=default(DateTimeOffset?), string page=default(string), int? start=default(int?), int? limit=default(int?), string filter=default(string), List< string > propertyKeys=default(List< string >), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 List portfolios for scope More...
 
System.Threading.Tasks.Task< ApiResponse< ResourceListOfPortfolio > > ListPortfoliosForScopeWithHttpInfoAsync (string scope, DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), DateTimeOffset? asAt=default(DateTimeOffset?), string page=default(string), int? start=default(int?), int? limit=default(int?), string filter=default(string), List< string > propertyKeys=default(List< string >), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 List portfolios for scope More...
 
System.Threading.Tasks.Task< PortfolioUpdatePortfolioAsync (string scope, string code, UpdatePortfolioRequest updatePortfolioRequest, DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Update portfolio More...
 
System.Threading.Tasks.Task< ApiResponse< Portfolio > > UpdatePortfolioWithHttpInfoAsync (string scope, string code, UpdatePortfolioRequest updatePortfolioRequest, DateTimeOrCutLabel effectiveAt=default(DateTimeOrCutLabel), System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Update portfolio More...
 
System.Threading.Tasks.Task< PortfolioPropertiesUpsertPortfolioPropertiesAsync (string scope, string code, Dictionary< string, Property > requestBody, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Upsert portfolio properties More...
 
System.Threading.Tasks.Task< ApiResponse< PortfolioProperties > > UpsertPortfolioPropertiesWithHttpInfoAsync (string scope, string code, Dictionary< string, Property > requestBody, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 Upsert portfolio properties More...
 
System.Threading.Tasks.Task< UpsertReturnsResponseUpsertPortfolioReturnsAsync (string scope, string code, string returnScope, string returnCode, List< PerformanceReturn > performanceReturn, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Upsert Returns More...
 
System.Threading.Tasks.Task< ApiResponse< UpsertReturnsResponse > > UpsertPortfolioReturnsWithHttpInfoAsync (string scope, string code, string returnScope, string returnCode, List< PerformanceReturn > performanceReturn, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken))
 [EARLY ACCESS] Upsert Returns More...
 
- Public Member Functions inherited from Lusid.Sdk.Client.IApiAccessor
String GetBasePath ()
 Gets the base path of the API client. More...
 

Additional Inherited Members

- Properties inherited from Lusid.Sdk.Client.IApiAccessor
IReadableConfiguration Configuration [get, set]
 Gets or sets the configuration object More...
 
ExceptionFactory ExceptionFactory [get, set]
 Provides a factory method hook for the creation of exceptions. More...
 

Detailed Description

Represents a collection of functions to interact with the API endpoints

Member Function Documentation

◆ DeletePortfolioAsync()

System.Threading.Tasks.Task<DeletedEntityResponse> Lusid.Sdk.Api.IPortfoliosApiAsync.DeletePortfolioAsync ( string  scope,
string  code,
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Delete portfolio

Delete a particular portfolio. The deletion will take effect from the portfolio&#39;s creation datetime. This means that the portfolio will no longer exist at any effective datetime, as per the asAt datetime of deletion.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
cancellationTokenCancellation Token to cancel the request.
Returns
Task of DeletedEntityResponse

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ DeletePortfolioPropertiesAsync()

System.Threading.Tasks.Task<DeletedEntityResponse> Lusid.Sdk.Api.IPortfoliosApiAsync.DeletePortfolioPropertiesAsync ( string  scope,
string  code,
List< string >  propertyKeys,
DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Delete portfolio properties

Delete one or more properties from a particular portfolio. If the properties are time-variant then an effective datetime from which to delete properties must be specified. If the properties are perpetual then it is invalid to specify an effective datetime for deletion.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
propertyKeysThe property keys of the properties to delete. These must take the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. Each property must be from the &#39;Portfolio&#39; domain.
effectiveAtThe effective datetime or cut label at which to delete time-variant properties. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of DeletedEntityResponse

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ DeletePortfolioPropertiesWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<DeletedEntityResponse> > Lusid.Sdk.Api.IPortfoliosApiAsync.DeletePortfolioPropertiesWithHttpInfoAsync ( string  scope,
string  code,
List< string >  propertyKeys,
DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Delete portfolio properties

Delete one or more properties from a particular portfolio. If the properties are time-variant then an effective datetime from which to delete properties must be specified. If the properties are perpetual then it is invalid to specify an effective datetime for deletion.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
propertyKeysThe property keys of the properties to delete. These must take the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. Each property must be from the &#39;Portfolio&#39; domain.
effectiveAtThe effective datetime or cut label at which to delete time-variant properties. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (DeletedEntityResponse)

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ DeletePortfolioWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<DeletedEntityResponse> > Lusid.Sdk.Api.IPortfoliosApiAsync.DeletePortfolioWithHttpInfoAsync ( string  scope,
string  code,
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Delete portfolio

Delete a particular portfolio. The deletion will take effect from the portfolio&#39;s creation datetime. This means that the portfolio will no longer exist at any effective datetime, as per the asAt datetime of deletion.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (DeletedEntityResponse)

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ GetPortfolioAsync()

System.Threading.Tasks.Task<Portfolio> Lusid.Sdk.Api.IPortfoliosApiAsync.GetPortfolioAsync ( string  scope,
string  code,
DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
DateTimeOffset?  asAt = default(DateTimeOffset?),
List< string >  propertyKeys = default(List< string >),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Get portfolio

Retrieve the definition of a particular portfolio.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
effectiveAtThe effective datetime or cut label at which to retrieve the portfolio definition. Defaults to the current LUSID system datetime if not specified. (optional)
asAtThe asAt datetime at which to retrieve the portfolio definition. Defaults to returning the latest version of the portfolio definition if not specified. (optional)
propertyKeysA list of property keys from the &#39;Portfolio&#39; domain to decorate onto the portfolio. These must take the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of Portfolio

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ GetPortfolioCommandsAsync()

System.Threading.Tasks.Task<ResourceListOfProcessedCommand> Lusid.Sdk.Api.IPortfoliosApiAsync.GetPortfolioCommandsAsync ( string  scope,
string  code,
DateTimeOffset?  fromAsAt = default(DateTimeOffset?),
DateTimeOffset?  toAsAt = default(DateTimeOffset?),
string  filter = default(string),
string  page = default(string),
int?  limit = default(int?),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Get portfolio commands

Get all the commands that modified a particular portfolio, including any input transactions.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
fromAsAtThe lower bound asAt datetime (inclusive) from which to retrieve commands. There is no lower bound if this is not specified. (optional)
toAsAtThe upper bound asAt datetime (inclusive) from which to retrieve commands. There is no upper bound if this is not specified. (optional)
filterExpression to filter the results. For example, to filter on the User ID, specify &quot;userId.id eq &#39;string&#39;&quot;. For more information about filtering, see https://support.lusid.com/knowledgebase/article/KA-01914. (optional)
pageThe pagination token to use to continue listing commands; this value is returned from the previous call. (optional)
limitWhen paginating, limit the results to this number. Defaults to 500 if not specified. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ResourceListOfProcessedCommand

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ GetPortfolioCommandsWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<ResourceListOfProcessedCommand> > Lusid.Sdk.Api.IPortfoliosApiAsync.GetPortfolioCommandsWithHttpInfoAsync ( string  scope,
string  code,
DateTimeOffset?  fromAsAt = default(DateTimeOffset?),
DateTimeOffset?  toAsAt = default(DateTimeOffset?),
string  filter = default(string),
string  page = default(string),
int?  limit = default(int?),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Get portfolio commands

Get all the commands that modified a particular portfolio, including any input transactions.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
fromAsAtThe lower bound asAt datetime (inclusive) from which to retrieve commands. There is no lower bound if this is not specified. (optional)
toAsAtThe upper bound asAt datetime (inclusive) from which to retrieve commands. There is no upper bound if this is not specified. (optional)
filterExpression to filter the results. For example, to filter on the User ID, specify &quot;userId.id eq &#39;string&#39;&quot;. For more information about filtering, see https://support.lusid.com/knowledgebase/article/KA-01914. (optional)
pageThe pagination token to use to continue listing commands; this value is returned from the previous call. (optional)
limitWhen paginating, limit the results to this number. Defaults to 500 if not specified. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (ResourceListOfProcessedCommand)

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ GetPortfolioPropertiesAsync()

System.Threading.Tasks.Task<PortfolioProperties> Lusid.Sdk.Api.IPortfoliosApiAsync.GetPortfolioPropertiesAsync ( string  scope,
string  code,
DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
DateTimeOffset?  asAt = default(DateTimeOffset?),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Get portfolio properties

List all the properties of a particular portfolio.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
effectiveAtThe effective datetime or cut label at which to list the portfolio&#39;s properties. Defaults to the current LUSID system datetime if not specified. (optional)
asAtThe asAt datetime at which to list the portfolio&#39;s properties. Defaults to returning the latest version of each property if not specified. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of PortfolioProperties

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ GetPortfolioPropertiesWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<PortfolioProperties> > Lusid.Sdk.Api.IPortfoliosApiAsync.GetPortfolioPropertiesWithHttpInfoAsync ( string  scope,
string  code,
DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
DateTimeOffset?  asAt = default(DateTimeOffset?),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Get portfolio properties

List all the properties of a particular portfolio.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
effectiveAtThe effective datetime or cut label at which to list the portfolio&#39;s properties. Defaults to the current LUSID system datetime if not specified. (optional)
asAtThe asAt datetime at which to list the portfolio&#39;s properties. Defaults to returning the latest version of each property if not specified. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (PortfolioProperties)

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ GetPortfolioReturnsAsync()

System.Threading.Tasks.Task<ResourceListOfPerformanceReturn> Lusid.Sdk.Api.IPortfoliosApiAsync.GetPortfolioReturnsAsync ( string  scope,
string  code,
string  returnScope,
string  returnCode,
DateTimeOrCutLabel  fromEffectiveAt = default(DateTimeOrCutLabel),
DateTimeOrCutLabel  toEffectiveAt = default(DateTimeOrCutLabel),
string  period = default(string),
DateTimeOffset?  asAt = default(DateTimeOffset?),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Get Returns

Get Returns which are on the specified portfolio.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the Portfolio.
codeThe code of the Portfolio.
returnScopeThe scope of the Returns.
returnCodeThe code of the Returns.
fromEffectiveAtThe start date from which to get the Returns. (optional)
toEffectiveAtThe end date from which to get the Returns. (optional)
periodShow the Returns on a Daily or Monthly period. (optional)
asAtThe asAt datetime at which to retrieve the Returns. Defaults to the latest. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ResourceListOfPerformanceReturn

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ GetPortfolioReturnsWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<ResourceListOfPerformanceReturn> > Lusid.Sdk.Api.IPortfoliosApiAsync.GetPortfolioReturnsWithHttpInfoAsync ( string  scope,
string  code,
string  returnScope,
string  returnCode,
DateTimeOrCutLabel  fromEffectiveAt = default(DateTimeOrCutLabel),
DateTimeOrCutLabel  toEffectiveAt = default(DateTimeOrCutLabel),
string  period = default(string),
DateTimeOffset?  asAt = default(DateTimeOffset?),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Get Returns

Get Returns which are on the specified portfolio.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the Portfolio.
codeThe code of the Portfolio.
returnScopeThe scope of the Returns.
returnCodeThe code of the Returns.
fromEffectiveAtThe start date from which to get the Returns. (optional)
toEffectiveAtThe end date from which to get the Returns. (optional)
periodShow the Returns on a Daily or Monthly period. (optional)
asAtThe asAt datetime at which to retrieve the Returns. Defaults to the latest. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (ResourceListOfPerformanceReturn)

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ GetPortfolioWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<Portfolio> > Lusid.Sdk.Api.IPortfoliosApiAsync.GetPortfolioWithHttpInfoAsync ( string  scope,
string  code,
DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
DateTimeOffset?  asAt = default(DateTimeOffset?),
List< string >  propertyKeys = default(List< string >),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Get portfolio

Retrieve the definition of a particular portfolio.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
effectiveAtThe effective datetime or cut label at which to retrieve the portfolio definition. Defaults to the current LUSID system datetime if not specified. (optional)
asAtThe asAt datetime at which to retrieve the portfolio definition. Defaults to returning the latest version of the portfolio definition if not specified. (optional)
propertyKeysA list of property keys from the &#39;Portfolio&#39; domain to decorate onto the portfolio. These must take the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (Portfolio)

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ ListPortfoliosAsync()

System.Threading.Tasks.Task<ResourceListOfPortfolio> Lusid.Sdk.Api.IPortfoliosApiAsync.ListPortfoliosAsync ( DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
DateTimeOffset?  asAt = default(DateTimeOffset?),
string  page = default(string),
int?  start = default(int?),
int?  limit = default(int?),
string  filter = default(string),
string  query = default(string),
List< string >  propertyKeys = default(List< string >),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

List portfolios

List all the portfolios matching particular criteria.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
effectiveAtThe effective datetime or cut label at which to list the portfolios. Defaults to the current LUSID system datetime if not specified. (optional)
asAtThe asAt datetime at which to list the portfolios. Defaults to returning the latest version of each portfolio if not specified. (optional)
pageThe pagination token to use to continue listing portfolios; 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. Also, if set, a start value cannot be provided. (optional)
startWhen paginating, skip this number of results. (optional)
limitWhen paginating, limit the results to this number. Defaults to 65,535 if not specified. (optional)
filterExpression to filter the results. For example, to filter on the transaction type, specify &quot;type eq &#39;Transaction&#39;&quot;. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914. (optional)
queryExpression specifying the criteria that the returned portfolios must meet. For example, to see which portfolios have holdings in instruments with a LusidInstrumentId (LUID) of &#39;LUID_PPA8HI6M&#39; or a Figi of &#39;BBG000BLNNH6&#39;, specify &quot;instrument.identifiers in ((&#39;LusidInstrumentId&#39;, &#39;LUID_PPA8HI6M&#39;), (&#39;Figi&#39;, &#39;BBG000BLNNH6&#39;))&quot;. (optional)
propertyKeysA list of property keys from the &#39;Portfolio&#39; domain to decorate onto each portfolio. These must take the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ResourceListOfPortfolio

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ ListPortfoliosForScopeAsync()

System.Threading.Tasks.Task<ResourceListOfPortfolio> Lusid.Sdk.Api.IPortfoliosApiAsync.ListPortfoliosForScopeAsync ( string  scope,
DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
DateTimeOffset?  asAt = default(DateTimeOffset?),
string  page = default(string),
int?  start = default(int?),
int?  limit = default(int?),
string  filter = default(string),
List< string >  propertyKeys = default(List< string >),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

List portfolios for scope

List all the portfolios in a particular scope.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope whose portfolios to list.
effectiveAtThe effective datetime or cut label at which to list the portfolios. Defaults to the current LUSID system datetime if not specified. (optional)
asAtThe asAt datetime at which to list the portfolios. Defaults to returning the latest version of each portfolio if not specified. (optional)
pageThe pagination token to use to continue listing portfolios. 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. Also, if set, a start value cannot be provided. (optional)
startWhen paginating, skip this number of results. (optional)
limitWhen paginating, limit the results to this number. Defaults to 65,535 if not specified. (optional)
filterExpression to filter the results. For example, to return only transactions with a transaction type of &#39;Buy&#39;, specify &quot;type eq &#39;Buy&#39;&quot;. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914. (optional)
propertyKeysA list of property keys from the &#39;Portfolio&#39; domain to decorate onto each portfolio. These must take the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ResourceListOfPortfolio

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ ListPortfoliosForScopeWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<ResourceListOfPortfolio> > Lusid.Sdk.Api.IPortfoliosApiAsync.ListPortfoliosForScopeWithHttpInfoAsync ( string  scope,
DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
DateTimeOffset?  asAt = default(DateTimeOffset?),
string  page = default(string),
int?  start = default(int?),
int?  limit = default(int?),
string  filter = default(string),
List< string >  propertyKeys = default(List< string >),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

List portfolios for scope

List all the portfolios in a particular scope.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope whose portfolios to list.
effectiveAtThe effective datetime or cut label at which to list the portfolios. Defaults to the current LUSID system datetime if not specified. (optional)
asAtThe asAt datetime at which to list the portfolios. Defaults to returning the latest version of each portfolio if not specified. (optional)
pageThe pagination token to use to continue listing portfolios. 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. Also, if set, a start value cannot be provided. (optional)
startWhen paginating, skip this number of results. (optional)
limitWhen paginating, limit the results to this number. Defaults to 65,535 if not specified. (optional)
filterExpression to filter the results. For example, to return only transactions with a transaction type of &#39;Buy&#39;, specify &quot;type eq &#39;Buy&#39;&quot;. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914. (optional)
propertyKeysA list of property keys from the &#39;Portfolio&#39; domain to decorate onto each portfolio. These must take the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (ResourceListOfPortfolio)

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ ListPortfoliosWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<ResourceListOfPortfolio> > Lusid.Sdk.Api.IPortfoliosApiAsync.ListPortfoliosWithHttpInfoAsync ( DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
DateTimeOffset?  asAt = default(DateTimeOffset?),
string  page = default(string),
int?  start = default(int?),
int?  limit = default(int?),
string  filter = default(string),
string  query = default(string),
List< string >  propertyKeys = default(List< string >),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

List portfolios

List all the portfolios matching particular criteria.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
effectiveAtThe effective datetime or cut label at which to list the portfolios. Defaults to the current LUSID system datetime if not specified. (optional)
asAtThe asAt datetime at which to list the portfolios. Defaults to returning the latest version of each portfolio if not specified. (optional)
pageThe pagination token to use to continue listing portfolios; 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. Also, if set, a start value cannot be provided. (optional)
startWhen paginating, skip this number of results. (optional)
limitWhen paginating, limit the results to this number. Defaults to 65,535 if not specified. (optional)
filterExpression to filter the results. For example, to filter on the transaction type, specify &quot;type eq &#39;Transaction&#39;&quot;. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914. (optional)
queryExpression specifying the criteria that the returned portfolios must meet. For example, to see which portfolios have holdings in instruments with a LusidInstrumentId (LUID) of &#39;LUID_PPA8HI6M&#39; or a Figi of &#39;BBG000BLNNH6&#39;, specify &quot;instrument.identifiers in ((&#39;LusidInstrumentId&#39;, &#39;LUID_PPA8HI6M&#39;), (&#39;Figi&#39;, &#39;BBG000BLNNH6&#39;))&quot;. (optional)
propertyKeysA list of property keys from the &#39;Portfolio&#39; domain to decorate onto each portfolio. These must take the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (ResourceListOfPortfolio)

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ UpdatePortfolioAsync()

System.Threading.Tasks.Task<Portfolio> Lusid.Sdk.Api.IPortfoliosApiAsync.UpdatePortfolioAsync ( string  scope,
string  code,
UpdatePortfolioRequest  updatePortfolioRequest,
DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Update portfolio

Update the definition of a particular portfolio. Note that not all elements of a portfolio definition are modifiable due to the potential implications for data already stored.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
updatePortfolioRequestThe updated portfolio definition.
effectiveAtThe effective datetime or cut label at which to update the definition. Defaults to the current LUSID system datetime if not specified. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of Portfolio

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ UpdatePortfolioWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<Portfolio> > Lusid.Sdk.Api.IPortfoliosApiAsync.UpdatePortfolioWithHttpInfoAsync ( string  scope,
string  code,
UpdatePortfolioRequest  updatePortfolioRequest,
DateTimeOrCutLabel  effectiveAt = default(DateTimeOrCutLabel),
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Update portfolio

Update the definition of a particular portfolio. Note that not all elements of a portfolio definition are modifiable due to the potential implications for data already stored.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
updatePortfolioRequestThe updated portfolio definition.
effectiveAtThe effective datetime or cut label at which to update the definition. Defaults to the current LUSID system datetime if not specified. (optional)
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (Portfolio)

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ UpsertPortfolioPropertiesAsync()

System.Threading.Tasks.Task<PortfolioProperties> Lusid.Sdk.Api.IPortfoliosApiAsync.UpsertPortfolioPropertiesAsync ( string  scope,
string  code,
Dictionary< string, Property requestBody,
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Upsert portfolio properties

Create or update one or more properties for a particular portfolio. A property is updated if it already exists and created if it does not. All properties must be from the &#39;Portfolio&#39; domain. Properties have an <i>effectiveFrom</i> datetime from which the property is valid, and an <i>effectiveUntil</i> datetime until which it is valid. Not supplying an <i>effectiveUntil</i> datetime results in the property being valid indefinitely, or until the next <i>effectiveFrom</i> datetime of the property.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
requestBodyThe properties to be created or updated. Each property in the request must be keyed by its unique property key. This has the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;.
cancellationTokenCancellation Token to cancel the request.
Returns
Task of PortfolioProperties

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ UpsertPortfolioPropertiesWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<PortfolioProperties> > Lusid.Sdk.Api.IPortfoliosApiAsync.UpsertPortfolioPropertiesWithHttpInfoAsync ( string  scope,
string  code,
Dictionary< string, Property requestBody,
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

Upsert portfolio properties

Create or update one or more properties for a particular portfolio. A property is updated if it already exists and created if it does not. All properties must be from the &#39;Portfolio&#39; domain. Properties have an <i>effectiveFrom</i> datetime from which the property is valid, and an <i>effectiveUntil</i> datetime until which it is valid. Not supplying an <i>effectiveUntil</i> datetime results in the property being valid indefinitely, or until the next <i>effectiveFrom</i> datetime of the property.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the portfolio.
codeThe code of the portfolio. Together with the scope this uniquely identifies the portfolio.
requestBodyThe properties to be created or updated. Each property in the request must be keyed by its unique property key. This has the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;.
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (PortfolioProperties)

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ UpsertPortfolioReturnsAsync()

System.Threading.Tasks.Task<UpsertReturnsResponse> Lusid.Sdk.Api.IPortfoliosApiAsync.UpsertPortfolioReturnsAsync ( string  scope,
string  code,
string  returnScope,
string  returnCode,
List< PerformanceReturn performanceReturn,
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Upsert Returns

Update or insert returns into the specified portfolio.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the Portfolio.
codeThe code of the Portfolio.
returnScopeThe scope of the Returns.
returnCodeThe code of the Returns.
performanceReturnThis contains the Returns which need to be upsert.
cancellationTokenCancellation Token to cancel the request.
Returns
Task of UpsertReturnsResponse

Implemented in Lusid.Sdk.Api.PortfoliosApi.

◆ UpsertPortfolioReturnsWithHttpInfoAsync()

System.Threading.Tasks.Task<ApiResponse<UpsertReturnsResponse> > Lusid.Sdk.Api.IPortfoliosApiAsync.UpsertPortfolioReturnsWithHttpInfoAsync ( string  scope,
string  code,
string  returnScope,
string  returnCode,
List< PerformanceReturn performanceReturn,
System.Threading.CancellationToken  cancellationToken = default(System.Threading.CancellationToken) 
)

[EARLY ACCESS] Upsert Returns

Update or insert returns into the specified portfolio.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeThe scope of the Portfolio.
codeThe code of the Portfolio.
returnScopeThe scope of the Returns.
returnCodeThe code of the Returns.
performanceReturnThis contains the Returns which need to be upsert.
cancellationTokenCancellation Token to cancel the request.
Returns
Task of ApiResponse (UpsertReturnsResponse)

Implemented in Lusid.Sdk.Api.PortfoliosApi.


The documentation for this interface was generated from the following file: