Getting Started
This guide walks you through retrieving portfolio information using the Rime API. You’ll make your first successful API call to access portfolio data and understand how to view your customers’ complete investment positions on your platform.Prerequisites
Before retrieving portfolio information, ensure you have:- Authentication token - Follow our authentication guide to get your access token
- Account information - The
account_id
for your customer’s portfolio you want to retrieve
Step-by-Step Implementation
Step 1: Get portfolio holdings for an account
Retrieve all holdings in a portfolio for a specific customer account using theaccount_id
:
Step 2: Handle the response
A successful portfolio retrieval returns a200 OK
status with an aggregated array of holdings:
200
Portfolio Data Usage
Use the portfolio information to display your customers’ investment positions, calculate totals, and provide account statements for your platform.
Understanding Portfolio Structure
Portfolio Structure
The portfolio response contains aggregated holdings grouped by fund and lock period: Fund Position (top level):units
- Total number of fund shares held across all lock periodsisin
- ISIN code identifying the specific fund investmentholdings
- Array of individual holdings with different lock periods
units
- The number of fund shares held for this specific lock periodlocked_until
- Date when these specific units become available for trading
isin
and locked_until
date are automatically aggregated together.
Troubleshooting
404 Not Found - Account Not Found
404 Not Found - Account Not Found
Cause: Invalid
account_id
or account has no portfolio holdingsSolution: Verify the account_id
is correct and the account exists with holdings403 Forbidden - Access Denied
403 Forbidden - Access Denied
Cause: Insufficient permissions to access the specified account’s portfolioSolution: Ensure you have access to this account or verify the account belongs to your distributor organization.
422 Validation Error - Invalid Account ID
422 Validation Error - Invalid Account ID
Cause: Malformed
account_id
parameterSolution: Ensure the account_id
is a valid UUID formatNext Steps
After retrieving portfolio information, you can:- Buy shares - Add new positions to your customers’ portfolios
- Sell shares - Help your customers liquidate existing holdings
- Retrieve fund information - Get details about funds in your customers’ portfolios