Portfolio Automation
A guide to automated portfolio rebalancing
This guide explains how to set up, manage, and customize automated portfolio rebalancing with the Glider API.
Overview
Glider’s portfolio automation enables your portfolio to maintain its target allocations through automatic rebalancing. This keeps your portfolio aligned with your investment strategy without requiring manual intervention.
The automation lifecycle includes:
- Starting automation
- Monitoring rebalance status
- Pausing/resuming as needed
- Triggering manual rebalances
- Customizing rebalance schedules
Setting Up Automation
1. Start Portfolio Automation
To start automation for a portfolio:
The interval
parameter specifies how often the portfolio should be checked for rebalancing:
every
: Time between checks in millisecondsoffset
: Optional offset in milliseconds from the start time
Common intervals:
- Daily: 86400000 ms
- Weekly: 604800000 ms
- Hourly: 3600000 ms
2. Check Automation Status
To check if automation is active and retrieve its current status:
The response includes details about:
- Current status (active, paused, etc.)
- Next scheduled rebalance time
- Last rebalance result
- Schedule configuration
Managing Automation
Pausing Automation
To temporarily pause automation:
Resuming Automation
To resume previously paused automation:
Triggering Manual Rebalance
To manually trigger a rebalance at any time:
Updating Schedule Interval
To change how frequently the portfolio is rebalanced:
Monitoring Rebalance Activity
Getting Rebalance Status
To check the status of all rebalance activities:
Getting Specific Workflow Status
To get detailed information about a specific rebalance workflow:
Customizing Rebalance Behavior
The rebalancing behavior is determined by the tradingSettings
in your portfolio template:
Threshold-Based Rebalancing
Rebalances when asset allocations drift beyond a specified percentage:
Calendar-Based Rebalancing
Rebalances on a fixed schedule regardless of drift:
Best Practices
- Start with sufficient funds: Ensure the portfolio has enough assets to cover gas fees for rebalancing
- Select appropriate intervals: Choose rebalancing frequency based on your portfolio’s volatility and size
- Monitor gas usage: Be aware that frequent rebalancing can lead to higher gas costs
- Set realistic thresholds: Too small a threshold may cause excessive rebalancing, while too large may defeat the purpose
- Use manual triggers sparingly: Reserve manual rebalancing for significant market events or portfolio changes
Next Steps
After setting up automation, consider:
- Monitoring portfolio performance to track how automated rebalancing affects returns
- Updating the portfolio template to fine-tune your allocation strategy
- Depositing additional assets to grow your portfolio