Explorer
Get Portfolio Activity
Learn how to retrieve a user's portfolio activity using the Okto SDK.
The getPortfolioActivity
function retrieves the user's recent portfolio activity and transactions.
Method Overview
Method | Description |
---|---|
async getPortfolioActivity | Get user's portfolio activity |
Get Portfolio Activity
async getPortfolioActivity(oktoClient: OktoClient)
retrieves the user's recent portfolio activity.
Parameters
Parameter | Type | Description |
---|---|---|
oktoClient | OktoClient | Instance of OktoClient obtained from useOkto hook |
Response
Success Response
Field Name | Type | Description |
---|---|---|
activity | Promise<ActivityData[]> | Array of portfolio activities |
Example
Note
In case of errors, debug the error using the error code and refer to the SDK errors and warnings documentation for more details.