Rebalancing

Create Portfolio

Creates a portfolio allocation containing securities and/or cash. Having no rebalancing conditions is allowed but the rebalance event would need to be triggered manually. Portfolios created with API may have multiple rebalance_conditions, but only one of type calendar.

post/v1/rebalancing/portfolios

Request

  • Base URL
    https://broker-api.giftcity.sandbox.in.alpaca.markets
  • URL
    https://broker-api.giftcity.sandbox.in.alpaca.markets/v1/rebalancing/portfolios
  • Auth
    HTTP basic

Request body

cooldown_daysinteger

Count of calendar days following a rebalance before a subscription is eligible to trigger another rebalance

descriptionstring

Text to describe portfolio

namestring

Name of portfolio

Example request

{
  "weights": [
    {
      "percent": "50"
    }
  ]
}

Response

OK

cooldown_daysinteger required

Count of calendar days following a rebalance before a subscription is eligible to trigger another rebalance

created_atstring

Portfolio creation timestamp

descriptionstring

Text to describe portfolio

idstring

Portfolio ID

namestring

Name of portfolio

rebalancing_conditionsstring

Rebalancing conditions for portfolio

status'active' | 'inactive' | 'needs_adjustment'

Current status of portfolio

updated_atstring

Portfolio updated timestamp

Changes

No recorded changes to this operation across all 1 revision of this API.