A Portfolio encapsulates a set of assets and aggregates their performance over time. This document will guide you on how to create, update and get ortfolio details.
To create an account:
Make a POST
request to
/portfolio
If you need to change an portfolio’s details:
Make a PUT
request to /portfolio
Refer to Assets documentation to learn how to add an asset to a portfolio.
Portfolios with an accountId
were automatically created by the Pipevest system.
Wherein there is no accountId
, the Portfolio was manually created via the API and does not have an associated Account.
When requesting portfolio details you can do so either by getting:
Make a GET
request to /portfolio.
Make a GET
request to /portfolio/{portfolioId}
Property | Definition |
---|---|
portfolioId | Unique portfolio identifier |
customerId | Unique customer identifier |
currency | Associated currency |
investmentAmount | The total amount invested into an asset or group of assets |
marketValue | The current market value of an asset or group of assets |
performance | The performance of all the assets under the portfolio |
status | Current status of the portfolio |
investmentType | Investment type associated with the account |
createdAt | Created at unix timestamp |
updatedAt | Updated at unix timestamp |
Property | Definition |
---|---|
accountId | Unique account identifier |
Name | Definition |
---|---|
ACTIVE | Portfolio is currently active and able to trade |
SUSPENDED | Portfolio has been temporarily suspended, and is unable to trade. |
CLOSED | Portfolio has been permanently prevented from trading |
Subscription | Definition | Domain |
---|---|---|
PORTFOLIO | Only events that deal with portfolio | Portfolios |
PORTFOLIO.CREATED | Triggered when a portfolio is created | Portfolios |
PORTFOLIO.UPDATED | Triggered when a portfolio is updated | Portfolios |
A Portfolio encapsulates a set of assets and aggregates their performance over time. This document will guide you on how to create, update and get ortfolio details.
To create an account:
Make a POST
request to
/portfolio
If you need to change an portfolio’s details:
Make a PUT
request to /portfolio
Refer to Assets documentation to learn how to add an asset to a portfolio.
Portfolios with an accountId
were automatically created by the Pipevest system.
Wherein there is no accountId
, the Portfolio was manually created via the API and does not have an associated Account.
When requesting portfolio details you can do so either by getting:
Make a GET
request to /portfolio.
Make a GET
request to /portfolio/{portfolioId}
Property | Definition |
---|---|
portfolioId | Unique portfolio identifier |
customerId | Unique customer identifier |
currency | Associated currency |
investmentAmount | The total amount invested into an asset or group of assets |
marketValue | The current market value of an asset or group of assets |
performance | The performance of all the assets under the portfolio |
status | Current status of the portfolio |
investmentType | Investment type associated with the account |
createdAt | Created at unix timestamp |
updatedAt | Updated at unix timestamp |
Property | Definition |
---|---|
accountId | Unique account identifier |
Name | Definition |
---|---|
ACTIVE | Portfolio is currently active and able to trade |
SUSPENDED | Portfolio has been temporarily suspended, and is unable to trade. |
CLOSED | Portfolio has been permanently prevented from trading |
Subscription | Definition | Domain |
---|---|---|
PORTFOLIO | Only events that deal with portfolio | Portfolios |
PORTFOLIO.CREATED | Triggered when a portfolio is created | Portfolios |
PORTFOLIO.UPDATED | Triggered when a portfolio is updated | Portfolios |