Investment advisors often have use cases which require trading once on behalf of many customers. DriveWealth can facilitate this via APIs specifically designed for managing money.

Accounts that use this flow must be setup as managed by an advisor:

Refer to [Opening accounts](🔗) to learn more about the Account creation process.

## Step-by-step

### **Step 1: Getting the Beginning of Day file (optional)**

Many advisors need to know all of their customers’ positions at the start of the day. This is usually piped into Portfolio Management Software or other advisor tools. If you need this, refer to the [Get Beginning of Day API](🔗).

### **Step 2: Place a block trade**

Placing a block trade follows the same workflows described in [Creating an order](🔗). However, rather than specifying a customer’s Account, DriveWealth will provide you the details for a unique **Master Trading Account**. This Account is in your firm’s name, and does not need to be separately funded.

### **Step 3: Allocating the execution**

After the trade has been executed, you must now indicate which customers participated in that trade. You do so by creating an Allocation:

All customers receive the same unit price. They will also receive a Trade Confirmation, Order, and Transaction posted to each Account.

## Step 4: Cleanup

All trades done in the Master Trading Account need to be allocated somewhere. This Account won’t permanently hold any cash or securities.

To aid in finding unallocated trades, use the [Advisor List All Orders API](🔗). This is similar to listing all Orders for an Account, but also shows whether these Orders are fully allocated to customers.

Sometimes, some quantity of shares will not be allocated by the advisor, purposely. This can happen when customers participated in a trade equally, but the amount of shares purchased or sold was not evenly divisible. Each day, DriveWealth will look for unallocated shares from the previous day, and if it finds any, will automatically allocate them to a unique **Cleanup Account**. This is another Account in the firm’s name that can permanently hold assets.

By default, DriveWealth will also automatically liquidate any securities held in the Cleanup Account each day, to avoid long term exposure.