Getting Started
This guide walks you through creating sell orders using the Rime API. You’ll make your first successful API call to place a sell order and understand how to help your customers redeem their asset holdings.Prerequisites
Before creating sell orders, ensure you have:- Authentication token - Follow our authentication guide to get your access token
- Customer account - The
account_idfor the account that the sell order is placed for - Existing holdings - The provided account must own shares of the asset that should be sold
Order Structure
Sell orders are structured with the following key attributes: Required parameters:- Order side (
side) - Set toSELLfor liquidation orders - Market type (
market) -PRIMARYfor redemptions,SECONDARYfor trading - Amount of units (
amount_of_units) - Number of share units to sell - Currency (
currency) - Currency for the transaction (onlyEURis currently supported) - Share class (
isin) - The ISIN code of the asset to sell from - Account ID (
account_id) - Your customer’s account
Step-by-Step Implementation
Step 1: Create a sell order
Place a sell order for your customer to liquidate fund shares:Step 2: Handle the response
A successful sell order creation returns a201 Created status with the order details:
201
Order Processing
Sell orders start with “PLACED” status and progress through processing stages.
Monitor order status to track completion.
Troubleshooting
404 Not Found - Share Class Not Found
404 Not Found - Share Class Not Found
400 Bad Request - Insufficient Holdings
400 Bad Request - Insufficient Holdings
Cause: Customer doesn’t own enough shares to fulfill the sell orderSolution: Verify your customer has sufficient holdings in the fund or reduce the order value
400 Bad Request - Shares Locked
400 Bad Request - Shares Locked
422 Validation Error - Invalid Order Parameters
422 Validation Error - Invalid Order Parameters
Cause: Missing required fields or invalid data typesSolution: Check all required parameters are provided with correct data types
Next Steps
After creating sell orders for your customers:- Get portfolio information - View the updated portfolio after liquidation
- Buy shares - Help customers reinvest in different funds
- Retrieve fund information - Research alternative investment options