Portfolios Rebalancing

Download Spec

All portfolios rebalancing related paths.

Trigger portfolio rebalancing

post /portfolios/rebalancings/executions

Trigger portfolio rebalancing

Trigger portfolio rebalancing - Request

One Of

Request

{
  "accounts": [
    "43801b85-bbcf-41c7-8389-b018082a5ec5",
    "20151679-c159-4f16-b8a2-267b3d968c6f"
  ]
}

Response

ExamplesSchema

Portfolio

{
  "id": "735381ce-8380-4b07-9e42-97e2b6d3643e"
}

Retrieve portfolios rebalancing execution

get /portfolios/rebalancings/executions/{execution_id}

Retrieve portfolios rebalancing execution

execution_id

string

uuid

required

Response

ExamplesSchema

Portfolios

{
  "id": "735381ce-8380-4b07-9e42-97e2b6d3643e",
  "created_at": "2021-07-21T14:10:00.00Z",
  "updated_at": "2021-07-21T14:10:00.00Z",
  "accounts": [
    "43801b85-bbcf-41c7-8389-b018082a5ec5",
    "20151679-c159-4f16-b8a2-267b3d968c6f"
  ],
  "allocations": []
}

List portfolio rebalancing execution orders

get /portfolios/rebalancings/executions/{execution_id}/orders

List portfolio rebalancing execution orders

sort

string

Sort the result by status.

Default
"status"
Enum
  • status

order

string

Sort order of the result list if the sort parameter is specified. By default, only ASC for ascending sort.

Default
"ASC"
Enum
  • ASC

offset

int

i32

Use the offset argument to specify where in the list of results to start when returning items for a particular query.

Min
0

limit

int

i32

Use the limit argument to specify the maximum number of items returned.

Default
100
Min
0
Max
1000

start_date

string

Returns rebalancing orders with dates starting from and including this date (UTC)

Example
"2022-10-14T00:00:00Z"

end_date

string

Returns rebalancing orders with dates up until this date (UTC)

Example
"2022-10-14T00:00:00Z"

Response

ExamplesSchema

Portfolios

{
  "meta": {
    "count": 2,
    "limit": 10,
    "offset": 0,
    "order": "ASC",
    "sort": "state",
    "total_count": 2
  },
  "data": [
    {
      "id": "adf706aa-4fac-4e1d-878b-5b225f7b7354",
      "created_at": "2022-09-28T09:14:02Z",
      "updated_at": "2022-09-28T09:14:02Z",
      "execution_id": "edc74b48-a377-4b93-84fb-543b1137de05",
      "account_id": "100bb408-149c-4e6f-8697-837c2a144a29",
      "portfolio_order_id": "b31723e0-8c8c-4bd0-a962-8bd26c5aee4d",
      "status": "FILLED"
    },
    {
      "id": "1dd8cede-a326-43b3-a54c-9d2d0e80edb5",
      "created_at": "2022-09-28T09:14:02Z",
      "updated_at": "2022-09-28T09:14:02Z",
      "execution_id": "f678fe2b-ffd8-4b99-844f-a8f78a67e528",
      "account_id": "98b21a45-5ea0-481f-bb1e-880aab0d154d",
      "portfolio_order_id": "411c625e-b2f4-4af4-ac21-e17846fb6bcc",
      "status": "PROCESSING"
    },
    {
      "id": "1bf46252-ad90-4e22-8717-9586d2b86327",
      "created_at": "2022-09-28T09:14:02Z",
      "updated_at": "2022-09-28T09:14:02Z",
      "execution_id": "9275e08d-012f-40bd-80b7-58037bdc7ab6",
      "portfolio_order_id": null,
      "account_id": "98b21a45-5ea0-481f-bb1e-880aab0d154d",
      "status": "NEW"
    },
    {
      "id": "1bf46252-ad90-4e22-8717-9586d2b86327",
      "created_at": "2022-09-28T09:14:02Z",
      "updated_at": "2022-09-28T09:14:02Z",
      "execution_id": "9275e08d-012f-40bd-80b7-58037bdc7ab6",
      "portfolio_order_id": null,
      "account_id": "98b21a45-5ea0-481f-bb1e-880aab0d154d",
      "status": "CANCELLED",
      "cancellation_reason": "PORTFOLIO_IS_BALANCED",
      "cancellation_details": "Portfolio is balanced, no need to rebalance."
    }
  ]
}

Was this page helpful?