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_idfor 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: Fund Position (top level):units_total- Total number of fund shares held across all lock periodsunits_redeemable- Units currently available for redemptionunits_locked- Units currently in lock-up periodisin- ISIN code identifying the specific fund investmentbreakdown- Array of individual holdings with lock period and monetary value details
units- The number of fund shares held for this specific holdingamount- The monetary value of this holding in micro-units (1 EUR = 10,000 units)locked_until- Date when these specific units become available for trading (null if not locked)created_at- Date when this holding was createdis_locked- Whether these units are currently locked from redemption
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