POST
/
v1
/
portfolio
/
:portfolioId
/
rebalance
/
schedule
/
start
curl --request POST \
  --url 'https://api.glider.fi/v1/portfolio/port_abc123/rebalance/schedule/start' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: your_api_key_here' \
  --data '{
    "runRebalanceImmediately": true,
    "initializeScheduleAutomatically": true,
    "interval": 21600000
  }'
{
  "success": true,
  "data": {
    "portfolioId": "port_abc123",
    "rebalanceScheduleId": "sched_abc123",
    "status": "started",
    "message": "Portfolio automation started successfully",
    "runRebalanceImmediately": true,
    "isAutomated": true,
    "intervalMs": 21600000
  },
  "correlationId": "corr_abc123",
  "requestId": "req_xyz789",
  "timestamp": "2023-05-21T13:45:12.345Z"
}

Starts automated rebalancing for a portfolio.

portfolioId
string
required

The unique identifier of the portfolio

runRebalanceImmediately
boolean
default:"false"

Whether to run an initial rebalance immediately after starting

initializeScheduleAutomatically
boolean
default:"true"

Set to false for manual-only rebalancing without a schedule

interval
number
default:"21600000"

Rebalance interval in milliseconds (default: 6 hours)

X-API-KEY
string
required

Your API key for authentication

Content-Type
string
default:"application/json"

The format of the request body

curl --request POST \
  --url 'https://api.glider.fi/v1/portfolio/port_abc123/rebalance/schedule/start' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: your_api_key_here' \
  --data '{
    "runRebalanceImmediately": true,
    "initializeScheduleAutomatically": true,
    "interval": 21600000
  }'
{
  "success": true,
  "data": {
    "portfolioId": "port_abc123",
    "rebalanceScheduleId": "sched_abc123",
    "status": "started",
    "message": "Portfolio automation started successfully",
    "runRebalanceImmediately": true,
    "isAutomated": true,
    "intervalMs": 21600000
  },
  "correlationId": "corr_abc123",
  "requestId": "req_xyz789",
  "timestamp": "2023-05-21T13:45:12.345Z"
}