This page discusses features principally used when DriveWealth’s [Account Management product](🔗) is enabled. Partners managing customers on their own won’t have these workflows available.

DriveWealth supports automated trading and robo-advisory experiences through a series of features called **AutoPilot**. AutoPilot handles all aspects of automated trading, from portfolio construction to automatically placing buy and sell orders for your customers account based on predefined market conditions.

AutoPilot is designed to trade automatically and in bulk across multiple customers. It’s important to consider if your regulatory licenses allow you to act in this manner.

## Portfolio composition

AutoPilot defines two new entities to use in determining trading activity: Funds and Portfolios.

  1. **Funds** - Funds are composed of one or more individual securities.

  2. **Portfolios** - Portfolios are collections of one or more Funds.


It's important to note that portfolios are linked directly to customer accounts: each managed account must be linked to an individual portfolio. However, single portfolios can be assigned to many customer accounts. For example:

Acme Advisor creates a portfolio called “The Balanced Portfolio”. The Balanced Portfolio is composed of two funds: 90% Capital Preservation Fund (containing some ETF’s and Stocks), and 10% Speculative Stocks Fund (containing 4 individual tech stocks). Garrett’s account is linked to The Balanced Portfolio, and he deposits $100. Justin also creates an account, which is also linked to The Balanced portfolio based on his suitability. Justin deposits $200. Both Garrett and Justin are invested in the same allocations, but can invest in these allocations at their own desired cadence.

Both Funds and Portfolios can be created and updated via API, or DriveHub. To create a Fund in DriveHub, navigate to your assigned RIA Page and select the "Funds" tab. Similar to Funds, you can create a Portfolio by navigating to the “Portfolios” tab. Whether you create a Portfolio or Fund by API or by DriveHub, parameters will need to be set at both the portfolio level and the fund level.

Note that each Instrument declared as part of a Fund utilizes DriveWealths internal instrument identifier, not the stock symbol, to ensure that corporate actions do not affect the composition of the Fund.

Upon successful creation of the fund, you will immediately receive a Fund ID that can be used in the composition of a Portfolio.

Cash reserve

Cash reserve is an available Fund at the Portfolio level, that allows you to keep a portion of the customers Portfolio in cash. The cash reserve Fund utilizes the same rebalance parameters that a normal Fund does, and will replenish when low. Cash reserves are commonly utilized to deduct AUM Fees without liquidating positions.

## Rebalance capabilities

Over time, as the market value of all securities are constantly changing, the market value of your customers' positions will change as well. The implication of this market movement is that the actual weights of your defined Portfolios and Funds can become misaligned with the target weights specified. **Drift** refers to parameters that AutoPilot will use when evaluating whether a customer account needs to be rebalanced.

Currently, there are two different Drift Parameters available to define:

  1. **Holding Drift**: refers to how far individual securities within a Fund, or Funds within a Portfolio, may drift from their target allocations.

  2. **Maximum Drift**: refers to the aggregate percentage of how far the entire Fund or Portfolio has drifted (calculated by summing each individual holding's percentage change).

AutoPilot evaluates your customers' eligibility for a rebalance based on the frequency defined by the partner in DriveHub. If any drift parameters are breached, across the entire Portfolio, the customer's account will be rebalanced.

## Investing in an Autopilot-enabled account

To begin investing in a managed account, the first step is to assign the customer Account to a Portfolio that you have created via API or DriveHub. Each Portfolio available will have a corresponding Portfolio ID that can be assigned to an account. To assign a Portfolio to a customer Account, simply set the `riaPortfolioID` on Account creation or update:

Extra fields required

`riaUserID` and `riaProductID` are created and assigned during partner integration, by DriveWealths partner onboarding team. While DriveWealth can provision more than one `riaUserID` or `riaProductId`, the typical integration only utilizes one `riaUserId` and one `riaProductId`.

Once a Portfolio has been linked to the customer account, the customer may begin investing in their Portfolio by simply triggering a deposit into their account. Because a deposit is required to trigger AutoPilot investments, [Cashless accounts](🔗) are not supported.

AutoPilot scans for available cash in a customer's Account every day at 10:00AM EST. If funds are available in the Account, AutoPilot will automatically invest the funds into the underlying portfolio. Note that AutoPilot deposits are smart enough to see which securities are underweight based on the market value of the holding, and will attempt to buy more of an underweight security in an attempt to avoid a future rebalance.

When creating a Withdrawal in an AutoPilot-enabled Account, AutoPilot will automatically create a series of sell orders to generate the requested amount of cash to be withdrawn. All sell orders will take place at approximately 10AM EST at the next available AutoPilot trading window. Note that AutoPilots Sell methodology is First in, First Out (FIFO).

To learn more about creating Withdrawals, read [Withdrawing](🔗).

When attempting to completely liquidate an AutoPilot-enabled account, use the `liquidate` field to express this:

Whether you submit a Withdrawal through bulk funding or individual funding, the API returns a trackable `redemptionID`. When a Withdrawal is first created, its status will reflect as “pending”. After DriveWealth runs basic validation on the redemption request (ex: checking to see if the customer account has a market value greater than the requested amount), the status will automatically move to “Approved”. AutoPilot will create sell orders at the next given trade window only for approved requests. Once the sell orders have completed, and the transfer is initiated, the redemption status will be marked as “Successful”.

## Automated fee deductions

Many RIAs wish to include an AUM fee deduction in their investment offering. DriveWealth helps partners automate this process.

To charge a fee to an Account, use the [Create Withdrawal](🔗) API by setting type to `AUM_FEE`. When the fee is deducted from the Account, Transactions will automatically reflect that a fee was deducted.

When a fee is charged to an Account, AutoPilot will look to liquidate the cash balance of the Account before liquidating any Positions to generate cash.