Getting Started
This guide walks you through creating buy orders using the Rime API. You’ll make your first successful API call to place a buy order and understand how to help your customers subscribe to assets.Prerequisites
Before creating buy orders, ensure you have:- Authentication token - Follow our authentication guide to get your access token
- Customer account - The
account_id
for the account that the order is placed for - Asset information - The
isin
for the asset the order should be placed for
Order Structure
Buy orders are structured with the following key attributes: Required parameters:- Order side (
side
) - Set toBUY
for purchase orders - Market type (
market
) -PRIMARY
for new issuances,SECONDARY
for existing shares - Amount of units (
amount_of_units
) - Number of share units to purchase - Currency (
currency
) - Currency for the transaction (onlyEUR
is currently supported) - Settlement type (
settlement_type
) -bearer
orclaimable
- Share class (
isin
) - The ISIN code of the asset to invest in - Account ID (
account_id
) - Your customer’s account
- Custom offering ID (
custom_offering_id
) - If you have a custom fee arrangement for this asset with us, provide the ID here if you want make an order for it under these special conditions. - Payment Method Details (
sender_payment_method_details
) - If you want to use a different payment method than the primary one, provide the details here. If not provided, primary payment method of the account will be used. - Wallet Address (
recipient_wallet_address
) - If you want to use a different wallet than the primary one, provide the address here. The wallet must be registered under the account and whitelisted. If not provided, primary wallet of the account will be used.
Step-by-Step Implementation
Step 1: Create a buy order
Place a buy order for your customer to purchase fund shares:Step 2: Handle the response
A successful buy order creation returns a201 Created
status with the order details:
201
Order Processing
Buy 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 Account Balance
400 Bad Request - Insufficient Account Balance
Cause: Customer account doesn’t have sufficient funds for the purchaseSolution: Ensure your customer has adequate account balance or reduce the order value
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 buy orders for your customers:- Get portfolio information - View the updated portfolio with new holdings
- Sell shares - Help customers liquidate positions when needed
- Retrieve fund information - Research additional investment options