Create Portfolio
POST {{baseUrl}}/v1/rebalancing/portfolios
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.
Request Body
{"name"=>"AAPL", "description"=>"apple stock", "weights"=>[{"type"=>"asset", "symbol"=>"AAPL", "percent"=>"30.00"}], "cooldown_days"=>"15", "rebalance_conditions"=>[{"type"=>"calendar", "sub_type"=>"weekly", "percent"=>"", "day"=>"Monday"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
[{"id":"asd123t1235sd123gsda123safd12","name":"AAPL","status":"","description":"apple stock","weights":[{"type":"asset","symbol":"AAPL","percent":"30"}],"cooldown_days":"15","rebalancing_conditions":"","created_at":"2020-09-27T10","updated_at":"2020-09-27T10"}]