Rebalancing

Create Run

Creates a rebalance run.

Omit weights or provide an empty array to create a subscription-driven run using the account's active subscription. Provide a non-empty weights array to create a manual one-off run. A manual run is rejected if the account already has an active subscription.

The determination of a run's orders and the execution of a run take place during normal market hours. Runs can be initiated outside normal market hours but remain QUEUED until normal market hours.

Only one run in a non-terminal status is allowed at any time.

post/v1/rebalancing/runs

Request

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

Request body

account_idstring uuid required

The account to create the run for.

type'full_rebalance' | 'invest_cash' required

The kind of rebalance run to create.

Example request

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

Response

OK

Changes

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