-
Notifications
You must be signed in to change notification settings - Fork 11
api.entities.Identity.Portfolios.Portfolios
api/entities/Identity/Portfolios.Portfolios
Handles all Portfolio related functionality on the Identity side
-
Namespace
<Identity
>↳
Portfolios
▸ delete(args
, opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Delete a Portfolio by ID
Name | Type |
---|---|
args |
Object |
args.portfolio |
BigNumber | NumberedPortfolio
|
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
Note
required role:
- Portfolio Custodian
Note
this method is of type ProcedureMethod, which means you can call delete.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
api/entities/Identity/Portfolios.ts:213
▸ getCustodiedPortfolios(paginationOpts?
): Promise
<ResultSet
<NumberedPortfolio
| DefaultPortfolio
>>
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
Name | Type |
---|---|
paginationOpts? |
PaginationOptions |
Promise
<ResultSet
<NumberedPortfolio
| DefaultPortfolio
>>
Note
supports pagination
api/entities/Identity/Portfolios.ts:92
▸ getPortfolio(): Promise
<DefaultPortfolio
>
Retrieve a Numbered Portfolio or the Default Portfolio if Portfolio ID is not passed
Promise
<DefaultPortfolio
>
api/entities/Identity/Portfolios.ts:139
▸ getPortfolio(args
): Promise
<NumberedPortfolio
>
Name | Type |
---|---|
args |
Object |
args.portfolioId |
BigNumber |
Promise
<NumberedPortfolio
>
api/entities/Identity/Portfolios.ts:140
▸ getPortfolioByName(args
): Promise
<NumberedPortfolio
>
Retrieve a Numbered Portfolio by its name
Name | Type |
---|---|
args |
Object |
args.name |
string |
Promise
<NumberedPortfolio
>
Throws
if no Portfolio exists with the given name
api/entities/Identity/Portfolios.ts:175
▸ getPortfolios(): Promise
<[DefaultPortfolio
, ...NumberedPortfolio[]]>
Retrieve all the Portfolios owned by this Identity
Promise
<[DefaultPortfolio
, ...NumberedPortfolio[]]>
api/entities/Identity/Portfolios.ts:61
▸ getTransactionHistory(filters?
): Promise
<HistoricSettlement
[]>
Retrieve a list of transactions where this identity was involved. Can be filtered using parameters
Name | Type | Description |
---|---|---|
filters |
Object |
- |
filters.account? |
string |
Account involved in the settlement |
filters.assetId? |
string |
- |
filters.ticker? |
string |
ticker involved in the transaction |
Promise
<HistoricSettlement
[]>
Note
uses the middlewareV2
Entities
- Account
- Asset
- Authorization Request
- Checkpoint
- Checkpoint Schedule
- Corporate Action
- Corporate Action Base
- Custom Permission Group
- Default Portfolio
- Default Trusted Claim Issuer
- Dividend Distribution
- Entity
- Identity
- Instruction
- Known Permission Group
- Metadata Entry
- Multi Sig Proposal
- Numbered Portfolio
- Offering
- Permission Group
- Portfolio
- Subsidies
- Subsidy
- Ticker Reservation
- Venue
- Authorizations
- Types