Portfolios

Download Spec

All portfolios related paths.

List portfolios allocations

get /portfolios/allocations

List portfolios allocations

sort

string

Sort the result by id.

Default
"id"
Enum
  • id

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 portfolio allocations with dates starting from and including this date (UTC)

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

end_date

string

Returns portfolio allocations with dates up until this date (UTC)

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

instrument_ids

string

Filters portfolio allocations containing the instruments ID's

Example
"bf72bdc1-b342-494f-9739-b27ae9011b86,dcbe2cf4-4f37-4fe5-9393-4fb52bb87fab"

Response

ExamplesSchema

Portfolios allocations

{
  "meta": {
    "offset": 0,
    "limit": 100,
    "count": 1,
    "total_count": 1,
    "sort": "id",
    "order": "ASC"
  },
  "data": [
    {
      "id": "c27c1fdc-b129-4d7a-95ac-c8a4f05d2804",
      "created_at": "2021-07-21T14:10:00.00Z",
      "updated_at": "2021-07-21T14:10:00.00Z",
      "name": "Allocation 1",
      "allocation": [
        {
          "instrument_id": "IE00B0M62Q58",
          "instrument_id_type": "ISIN",
          "weight": "0.7"
        },
        {
          "instrument_id": "US0378331005",
          "instrument_id_type": "ISIN",
          "weight": "0.3"
        }
      ]
    }
  ]
}

Create portfolios allocation

post /portfolios/allocations

Create portfolios allocation

name

string

Allocation name

allocation

array[object]

required

List of portfolios allocations

Request

{
  "name": "Allocation 1",
  "allocation": [
    {
      "instrument_id": "IE00B0M62Q58",
      "instrument_id_type": "ISIN",
      "weight": "0.7"
    },
    {
      "instrument_id": "US0378331005",
      "instrument_id_type": "ISIN",
      "weight": "0.3"
    }
  ]
}

Response

ExamplesSchema

Portfolios allocation

{
  "id": "436244bb-4afd-4002-b53b-b1d7a3bca032",
  "created_at": "2021-07-21T14:10:00.00Z",
  "updated_at": "2021-07-21T14:10:00.00Z",
  "name": "Allocation 1",
  "allocation": [
    {
      "instrument_id": "IE00B0M62Q58",
      "instrument_id_type": "ISIN",
      "weight": "0.7"
    },
    {
      "instrument_id": "US0378331005",
      "instrument_id_type": "ISIN",
      "weight": "0.3"
    }
  ]
}

Retrieve portfolios allocation

get /portfolios/allocations/{allocation_id}

Retrieve portfolios allocation

allocation_id

string

uuid

required

Response

ExamplesSchema

Portfolios allocation

{
  "id": "bf5f2676-4535-403d-bc66-06ec38cc70af",
  "created_at": "2021-07-21T14:10:00.00Z",
  "updated_at": "2021-07-21T14:10:00.00Z",
  "name": "Allocation 1",
  "allocation": [
    {
      "instrument_id": "IE00B0M62Q58",
      "instrument_id_type": "ISIN",
      "weight": "0.7"
    },
    {
      "instrument_id": "US0378331005",
      "instrument_id_type": "ISIN",
      "weight": "0.3"
    }
  ]
}

Update portfolios allocation

put /portfolios/allocations/{allocation_id}

Update portfolios allocation

name

string

Allocation name

allocation

array[object]

required

List of portfolios allocations

Request

{
  "allocation": [
    {
      "instrument_id": "IE00B0M62Q58",
      "instrument_id_type": "ISIN",
      "weight": "0.6"
    },
    {
      "instrument_id": "US0378331005",
      "instrument_id_type": "ISIN",
      "weight": "0.4"
    }
  ]
}

Response

ExamplesSchema

Portfolios allocation

{
  "id": "436244bb-4afd-4002-b53b-b1d7a3bca032",
  "created_at": "2021-07-21T14:10:00.00Z",
  "updated_at": "2021-07-22T15:10:00.00Z",
  "name": "Allocation 1",
  "allocation": [
    {
      "instrument_id": "IE00B0M62Q58",
      "instrument_id_type": "ISIN",
      "weight": "0.6"
    },
    {
      "instrument_id": "US0378331005",
      "instrument_id_type": "ISIN",
      "weight": "0.4"
    }
  ]
}

List portfolios configurations

get /portfolios/configurations

List portfolios configurations

sort

string

Sort the result by account_id.

Default
"account_id"
Enum
  • account_id

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 portfolio configurations with dates starting from and including this date (UTC)

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

end_date

string

Returns portfolio configurations with dates up until this date (UTC)

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

account_id

string

Filters portfolio configurations by account ID

Example
"3ada8e9e-82c4-4c78-a43d-a691b1636509"

allocation_id

string

Filters portfolio configurations by allocation ID

Example
"f6c2b02a-3214-4a40-82ae-6c76df50bc8c"

Response

ExamplesSchema

Portfolios configurations

{
  "meta": {
    "offset": 0,
    "limit": 100,
    "count": 1,
    "total_count": 1,
    "sort": "account_id",
    "order": "ASC"
  },
  "data": [
    {
      "created_at": "2021-07-21T14:10:00.00Z",
      "updated_at": "2021-07-21T14:10:00.00Z",
      "account_id": "4ca934ae-66b2-4494-86f9-df6ab89351f1",
      "allocation_id": "65c69f95-c7b9-4c93-9943-a8c7fe4f7aef",
      "rebalancing_strategy_ids": [
        "7a7322f5-b45d-4aba-aae4-c12797938c93",
        "d7b4291b-5a26-40c2-a8dd-235bd904a2ed"
      ]
    },
    {
      "created_at": "2021-07-21T14:10:00.00Z",
      "updated_at": "2021-07-21T14:10:00.00Z",
      "account_id": "a46c4531-ec90-4ac3-ac6b-356d743a3859",
      "allocation_id": "a4117e26-7c31-43ad-af47-0784a4957da9",
      "rebalancing_strategy_ids": [
        "7a7322f5-b45d-4aba-aae4-c12797938c93",
        "692e318a-d6d0-43ac-999a-b84a82dbe304"
      ]
    }
  ]
}

Create portfolios configuration

post /portfolios/configurations

Create portfolios configuration

account_id

string

uuid

required

Account unique identifier.

allocation_id

string

uuid

required

rebalancing_strategy_ids

array[string]

List of rebalancing strategy ids

Request

{
  "account_id": "f2f7d2c7-d79b-4de2-ae9b-d01646259f9e",
  "allocation_id": "eb68abce-29f4-483f-a384-7f243e77851f",
  "rebalancing_strategy_ids": [
    "7a7322f5-b45d-4aba-aae4-c12797938c93",
    "fd8e5363-a89c-4a2f-b3c6-5f857721625f"
  ]
}

Response

ExamplesSchema

Portfolios configuration

{
  "created_at": "2021-07-21T14:10:00.00Z",
  "updated_at": "2021-07-21T14:10:00.00Z",
  "account_id": "f2f7d2c7-d79b-4de2-ae9b-d01646259f9e",
  "allocation_id": "eb68abce-29f4-483f-a384-7f243e77851f",
  "rebalancing_strategy_ids": [
    "7a7322f5-b45d-4aba-aae4-c12797938c93",
    "fd8e5363-a89c-4a2f-b3c6-5f857721625f"
  ]
}

Retrieve portfolios configuration

get /portfolios/configurations/{account_id}

Retrieve portfolios configuration

account_id

string

uuid

required

Account unique identifier.

Response

ExamplesSchema

Portfolios

{
  "created_at": "2021-07-21T14:10:00.00Z",
  "updated_at": "2021-07-21T14:10:00.00Z",
  "account_id": "f2f7d2c7-d79b-4de2-ae9b-d01646259f9e",
  "allocation_id": "eb68abce-29f4-483f-a384-7f243e77851f",
  "rebalancing_strategy_ids": [
    "7a7322f5-b45d-4aba-aae4-c12797938c93",
    "fd8e5363-a89c-4a2f-b3c6-5f857721625f"
  ]
}

Update portfolios configuration

patch /portfolios/configurations/{account_id}

Update portfolios configuration

allocation_id

string

uuid

rebalancing_strategy_ids

array[string]

List of rebalancing strategy ids

Request

{
  "allocation_id": "359e9c9e-b91c-4853-8674-e6657af609fc"
}

Response

ExamplesSchema

Portfolio

{
  "created_at": "2021-07-21T14:10:00.00Z",
  "updated_at": "2021-07-22T15:10:00.00Z",
  "account_id": "f2f7d2c7-d79b-4de2-ae9b-d01646259f9e",
  "allocation_id": "359e9c9e-b91c-4853-8674-e6657af609fc",
  "rebalancing_strategy_ids": [
    "7a7322f5-b45d-4aba-aae4-c12797938c93",
    "fd8e5363-a89c-4a2f-b3c6-5f857721625f"
  ]
}

List portfolios orders

get /portfolios/orders

List portfolios orders

sort

string

Sort the result by id.

Default
"id"
Enum
  • id

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 portfolio orders with dates starting from and including this date (UTC)

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

end_date

string

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

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

allocation_id

string

uuid

Filters portfolio orders containing the allocation id

Example
"f96eaefd-b4c6-477a-9bbe-c744bf26172f"

account_id

string

uuid

Filters portfolio orders containing the account id

Example
"2c865aab-6737-4b0e-9154-69a4622b2727"

Response

ExamplesSchema

Portfolios orders

{
  "meta": {
    "offset": 0,
    "limit": 100,
    "count": 1,
    "total_count": 1,
    "sort": "id",
    "order": "ASC"
  },
  "data": [
    {
      "id": "eb5ba93f-5dfe-4bf1-8571-4da0caacc80c",
      "created_at": "2021-07-21T14:10:00.000Z",
      "updated_at": "2021-07-21T14:10:00.000Z",
      "account_id": "debf2026-f2da-4ff0-bb84-92e45babb1e3",
      "allocation_id": "eb68abce-29f4-483f-a384-7f243e77851f",
      "cash_amount": "1000",
      "currency": "EUR",
      "status": "PROCESSING",
      "type": "SELL",
      "post_tax": false,
      "client_reference": "",
      "initiation_flow": "API",
      "orders": [
        {
          "id": "b291d8a4-21f5-4c52-8590-4f90ce54d0b1",
          "side": "SELL",
          "status": "NEW"
        },
        {
          "id": "81d02bd9-7b9d-443d-bbfa-31df4d543f7d",
          "side": "SELL",
          "status": "PROCESSING"
        },
        {
          "id": "e97fb564-ebb4-4f37-930a-bda49c09a2e4",
          "side": "SELL",
          "status": "FILLED"
        }
      ]
    }
  ]
}

Create portfolios order

post /portfolios/orders

Create portfolios order

user_id

string

uuid

required

User unique identifier.

account_id

string

uuid

required

Account unique identifier.

cash_amount

string

^[0-9]{0,63}(\.[0-9]{1,27})?$

required

currency

string

required

Alphabetic three-letter ISO 4217 currency code.

  • EUR - Euro
Default
"EUR"
Enum
  • EUR

side

string

required

Side of the portfolio order.

  • BUY -
  • SELL -
Enum
  • BUY
  • SELL

post_tax

boolean

Cash amount is post-tax value

Default
false

Request

{
  "user_id": "4b9732bd-7496-4e91-8a5f-6360479d7fed",
  "account_id": "00ef0be8-d564-43af-b3c7-11b7a2188030",
  "cash_amount": "100.00",
  "currency": "EUR",
  "side": "BUY"
}

Response

ExamplesSchema

Portfolios order

{
  "id": "eb5ba93f-5dfe-4bf1-8571-4da0caacc80c",
  "created_at": "2021-07-21T14:10:00.000Z",
  "updated_at": "2021-07-21T14:10:00.000Z",
  "account_id": "debf2026-f2da-4ff0-bb84-92e45babb1e3",
  "allocation_id": "eb68abce-29f4-483f-a384-7f243e77851f",
  "cash_amount": "1000",
  "currency": "EUR",
  "status": "NEW",
  "type": "BUY",
  "post_tax": false,
  "client_reference": "",
  "initiation_flow": "API",
  "orders": []
}

Retrieve portfolios order

get /portfolios/orders/{portfolio_order_id}

Retrieve portfolios order

portfolio_order_id

string

uuid

required

Response

ExamplesSchema

Portfolios order

{
  "id": "29bc9a26-a6ee-47a3-b609-47d30a737afc",
  "created_at": "2021-07-21T14:10:00.00Z",
  "updated_at": "2021-07-21T14:10:00.00Z",
  "user_id": "4b9732bd-7496-4e91-8a5f-6360479d7fed",
  "account_id": "f2f7d2c7-d79b-4de2-ae9b-d01646259f9e",
  "allocation_id": "19a902ac-1c01-4c45-bd5d-62fd496805c8",
  "cash_amount": "100.00",
  "currency": "EUR",
  "status": "PROCESSING",
  "type": "BUY",
  "client_reference": "fd1ae99e-772a-11ee-b962-0242ac120002",
  "initiation_flow": "SAVINGS_PLAN",
  "post_tax": false,
  "orders": [
    {
      "id": "79f2c816-13ed-4588-85e6-f3398b0b5825",
      "side": "BUY",
      "status": "NEW"
    },
    {
      "id": "44f50a4e-7ce8-4eae-a078-f4b3d8ab4708",
      "side": "BUY",
      "status": "NEW"
    }
  ]
}

Cancel portfolios order

delete /portfolios/orders/{portfolio_order_id}

Cancel portfolios order

portfolio_order_id

string

uuid

required

Response

ExamplesSchema

The request has been successfully accepted and will be processed asynchronously.

Empty response

List portfolios allocation accounts

get /portfolios/allocations/{allocation_id}/accounts

List portfolios allocation accounts

sort

string

Sort the result by id.

Default
"id"
Enum
  • id

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

Response

ExamplesSchema

Portfolios allocation accounts

{
  "meta": {
    "offset": 0,
    "limit": 100,
    "count": 1,
    "total_count": 1,
    "sort": "id",
    "order": "ASC"
  },
  "data": [
    {
      "id": "81d6e710-37e6-4a5a-9877-ef5bb6d717e3"
    }
  ]
}

Portfolios orders events

webhook

Portfolios orders events

id

string

uuid

required

Event unique identifier

created_at

string

date-time

required

Date and time when the event was created. RFC 3339-5, ISO8601 UTC

type

string

required

Event type

Enum
  • PORTFOLIO_ORDER.NEW
  • PORTFOLIO_ORDER.PROCESSING
  • PORTFOLIO_ORDER.FILLED
  • PORTFOLIO_ORDER.SETTLED
  • PORTFOLIO_ORDER.CANCELLED

object

object (object)

required

webhook_id

string

uuid

required

Webhook unique identifier.

Request

{
  "id": "54b8d84f-5bd0-4e43-bf0f-164388cb4c23",
  "created_at": "2021-07-21T14:10:00.00Z",
  "type": "PORTFOLIO_ORDER.NEW",
  "object": {
    "id": "eb5ba93f-5dfe-4bf1-8571-4da0caacc80c",
    "created_at": "2021-07-21T14:10:00.000Z",
    "updated_at": "2021-07-21T14:10:00.000Z",
    "account_id": "debf2026-f2da-4ff0-bb84-92e45babb1e3",
    "allocation_id": "debf2026-f2da-4ff0-bb84-92e45babb1e3",
    "cash_amount": "1000",
    "currency": "EUR",
    "status": "PROCESSING",
    "type": "SELL",
    "post_tax": false,
    "client_reference": "",
    "initiation_flow": "API",
    "orders": [
      {
        "id": "e7aecb80-5e84-4bf7-984b-b39ab77eb0a8",
        "side": "SELL",
        "status": "NEW"
      },
      {
        "id": "eb5ba93f-5dfe-4bf1-8571-4da0caacc80c",
        "side": "SELL",
        "status": "PROCESSING"
      },
      {
        "id": "d8a85120-2941-4ed6-8d57-e80401a4779c",
        "side": "SELL",
        "status": "FILLED"
      }
    ]
  },
  "webhook_id": "cd2e4183-4e62-4e0f-981b-44b594d14610"
}

Response

ExamplesSchema

Request has been processed successfully.

Empty response

Portfolio rebalancing execution orders events

webhook

Portfolio rebalancing execution orders events

id

string

uuid

required

Event unique identifier

created_at

string

date-time

required

Date and time when the event was created. RFC 3339-5, ISO8601 UTC

type

string

required

Event type

Enum
  • REBALANCING_EXECUTION_ORDER.NEW
  • REBALANCING_EXECUTION_ORDER.PROCESSING
  • REBALANCING_EXECUTION_ORDER.CANCELLED
  • REBALANCING_EXECUTION_ORDER.FILLED

object

object (object)

required

webhook_id

string

uuid

required

Webhook unique identifier.

Request

{
  "id": "54b8d84f-5bd0-4e43-bf0f-164388cb4c23",
  "created_at": "2021-07-21T14:10:00.00Z",
  "type": "REBALANCING_EXECUTION_ORDER.NEW",
  "object": {
    "id": "eb5ba93f-5dfe-4bf1-8571-4da0caacc80c",
    "execution_id": "760abce7-e6b5-440b-bdf3-88e35ed6417a",
    "created_at": "2021-07-21T14:10:00.000Z",
    "updated_at": "2021-07-21T14:10:00.000Z",
    "account_id": "debf2026-f2da-4ff0-bb84-92e45babb1e3",
    "portfolio_order_id": "4f2f5db9-ef4e-4dbf-80a1-bffc71985d6c",
    "status": "PROCESSING"
  },
  "webhook_id": "cd2e4183-4e62-4e0f-981b-44b594d14610"
}

Response

ExamplesSchema

Request has been processed successfully.

Empty response

Portfolios allocations events

webhook

Portfolios allocations events

id

string

uuid

required

Event unique identifier

created_at

string

date-time

required

Date and time when the event was created. RFC 3339-5, ISO8601 UTC

type

string

required

Event type

Enum
  • PORTFOLIO_ALLOCATION.CREATED
  • PORTFOLIO_ALLOCATION.CHANGED

object

object (object)

required

webhook_id

string

uuid

required

Webhook unique identifier.

Request

{
  "id": "54b8d84f-5bd0-4e43-bf0f-164388cb4c23",
  "created_at": "2021-07-21T14:10:00.00Z",
  "type": "PORTFOLIO_ALLOCATION.CREATED",
  "object": {
    "id": "436244bb-4afd-4002-b53b-b1d7a3bca032",
    "created_at": "2021-07-21T14:10:00.00Z",
    "updated_at": "2021-07-21T14:10:00.00Z",
    "name": "Allocation 1",
    "allocation": [
      {
        "instrument_id": "IE00B0M62Q58",
        "instrument_id_type": "ISIN",
        "weight": "0.7"
      },
      {
        "instrument_id": "US0378331005",
        "instrument_id_type": "ISIN",
        "weight": "0.3"
      }
    ]
  },
  "webhook_id": "cd2e4183-4e62-4e0f-981b-44b594d14610"
}

Response

ExamplesSchema

Request has been processed successfully.

Empty response

Was this page helpful?