Portfolios

Handles all Portfolio related functionality on the Identity side

Hierarchy

Index

Properties

Methods

Properties

Protected context

context: Context

Inherited from void

Defined in src/api/entities/Namespace.ts:11arrow-up-right


Protected parent

parent: Identity

Inherited from void

Defined in src/api/entities/Namespace.ts:9arrow-up-right

Methods

delete

delete(args: object, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Identity/Portfolios.ts:164arrow-up-right

Delete a Portfolio by ID

note required role:

  • Portfolio Custodian

note this method is of type ProcedureMethodarrow-up-right, which means you can call delete.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

args: object

Name
Type

portfolio

BigNumber | NumberedPortfolio

Optional opts: ProcedureOptsarrow-up-right

Returns: Promise‹TransactionQueue‹void››


getCustodiedPortfolios

getCustodiedPortfolios(paginationOpts?: PaginationOptionsarrow-up-right): Promise‹ResultSetarrow-up-rightDefaultPortfolio | NumberedPortfolio››

Defined in src/api/entities/Identity/Portfolios.ts:77arrow-up-right

Retrieve all Portfolios custodied by this Identity. This only includes portfolios owned by a different Identity but custodied by this one. To fetch Portfolios owned by this Identity, use getPortfolios

note supports pagination

Parameters:

Name
Type

Returns: Promise‹ResultSetarrow-up-rightDefaultPortfolio | NumberedPortfolio››


getPortfolio

getPortfolio(): Promise‹DefaultPortfolio

Defined in src/api/entities/Identity/Portfolios.ts:124arrow-up-right

Retrieve a Numbered Portfolio or the Default Portfolio if Portfolio ID is not passed

Returns: Promise‹DefaultPortfolio

getPortfolio(args: object): Promise‹NumberedPortfolio

Defined in src/api/entities/Identity/Portfolios.ts:125arrow-up-right

Parameters:

args: object

Name
Type

portfolioId

BigNumber

Returns: Promise‹NumberedPortfolio


getPortfolios

getPortfolios(): Promise‹[]›

Defined in src/api/entities/Identity/Portfolios.ts:46arrow-up-right

Retrieve all the Portfolios owned by this Identity

Returns: Promise‹[]›

Last updated

Was this helpful?