Explorer
Get Portfolio Activity
Learn how to retrieve portfolio activity using the Okto SDK.
The getPortfolioActivity
function retrieves the user's portfolio activity history, including transactions, trades, and other relevant activities across all supported chains.
Available on





To enable these chains for your application, please configure them in the Okto Dashboard.
Not available on
Example
Note
For error handling:
- Use the error code to debug issues. Check out the SDK errors and warnings documentation
- For help, navigate to the troubleshooting guide to contact support
Method Overview
Method | Description |
---|---|
async getPortfolioActivity | Get portfolio activity history |
Get Portfolio Activity
async getPortfolioActivity(oktoClient: OktoClient)
retrieves the user's portfolio activity history.
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
oktoClient | OktoClient | Instance of OktoClient obtained from useOkto hook | Yes |
Response
Success Response
Field Name | Type | Description |
---|---|---|
activities | Promise<UserPortfolioActivity[]> | Array of user's portfolio activities |