Skip to content

Upvest Investment API (1.75.0)

Upvest Investment API.

Download OpenAPI description
Overview
URL

https://docs.upvest.co

Upvest API Support

api@upvest.co

License

Apache 2.0

Languages
Servers
Sandbox environment

https://sandbox.upvest.co/

Live environment

https://api.upvest.co/

Access Tokens

All authentication related paths.

Operations
OperationsWebhooks

User Identifiers

All user identifiers related paths.

Operations

User Checks

All user checks related paths.

OperationsWebhooks

Accounts

All accounts related paths

OperationsWebhooks

Account Groups

All account groups related paths

OperationsWebhooks

Tax Residencies

All tax residencies related paths.

Operations

Corporate Actions

All Corporate Action related paths.

Webhooks

Tax Exemptions

All tax exemptions related paths

OperationsWebhooks

Tax Collections

All tax collections related paths

Webhooks

Tax Wrappers

All tax wrappers related paths

OperationsWebhooks

Instruments

All instrument related paths.

OperationsWebhooks

Price Data

All price data related paths.

Operations
OperationsWebhooks

Portfolios

All portfolios related paths.

Operations

Request

List portfolios allocations

Security
oauth-client-credentials
Query
sortstring

Sort the result by id.

Default "id"
Value"id"
orderstring

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

Default "ASC"
Value"ASC"
offsetinteger(int32)>= 0

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

limitinteger(int32)[ 0 .. 1000 ]

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

Default 100
start_datestring

Returns portfolio allocations with dates starting from and including this date (UTC)

Example: start_date=2022-10-14T10:10:10Z
end_datestring

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

Example: end_date=2022-10-14T10:10:10Z
instrument_idsstring

Filters portfolio allocations containing the instruments ID's

Example: instrument_ids=bf72bdc1-b342-494f-9739-b27ae9011b86,dcbe2cf4-4f37-4fe5-9393-4fb52bb87fab
Headers
upvest-client-idstring(uuid)required

Tenant Client ID

Example: ebabcf4d-61c3-4942-875c-e265a7c2d062
authorizationstring^Bearer [a-zA-Z0-9\-\._~+/]*=*required

Bearer (access) token from the OAuth flow with correct scopes. https://datatracker.ietf.org/doc/html/rfc6750

Example: Bearer c2VjcmV0Cg==
signaturestringrequired

https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-http-header

signature-inputstringrequired

https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-input-http-he

upvest-api-versionstring

Upvest API version (Note: Do not include quotation marks)

Default 1
Value"1"
Example: 1
curl -i -X GET \
  'https://sandbox.upvest.co/portfolios/allocations?sort=id&order=ASC&offset=0&limit=100&start_date=2022-10-14T10%3A10%3A10Z&end_date=2022-10-14T10%3A10%3A10Z&instrument_ids=bf72bdc1-b342-494f-9739-b27ae9011b86%2Cdcbe2cf4-4f37-4fe5-9393-4fb52bb87fab' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'authorization: Bearer c2VjcmV0Cg==' \
  -H 'signature: string' \
  -H 'signature-input: string' \
  -H 'upvest-api-version: 1' \
  -H 'upvest-client-id: ebabcf4d-61c3-4942-875c-e265a7c2d062'

Responses

Portfolios allocations

Headers
upvest-request-idstring(uuid)required
Example: "169ae4c7-ebd7-4041-94da-25369653eba7"
Bodyapplication/json
metaobjectrequired
offsetintegerrequired

Amount of resource to offset in the response.

limitintegerrequired

Total limit of the response.

countintegerrequired

Count of the resources returned in the response.

total_countintegerrequired

Total count of all the resources.

sortstring

The field that the list is sorted by.

orderstring

The ordering of the response.

  • ASC - Ascending order
  • DESC - Descending order
Enum"ASC""DESC"
dataArray of objectsrequired
idstring(uuid)required
created_atstring(date-time)required

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

updated_atstring(date-time)required

Date and time when the resource was last updated. RFC 3339-5, ISO8601 UTC

namestringrequired

Allocation name

allocationArray of objectsrequired

List of portfolios allocations

instrument_idstringrequired
One of:

International securities identification number defined by ISO 6166.

string^[A-Z]{2}[A-Z0-9]{9}[0-9]$
instrument_id_typestringrequired

The type of the ID used in the request.

  • ISIN - International Securities Identification Number
  • UPVEST - UPVEST's unique instrument identifier
Default "ISIN"
Enum"ISIN""UPVEST"
weightstring^(100|[0-9]{1,2}(\.[0-9]{1,5})?)$required

Instrument allocation weight

Response
application/json
{ "meta": { "offset": 0, "limit": 100, "count": 1, "total_count": 1, "sort": "id", "order": "ASC" }, "data": [ { … } ] }

Request

Create portfolios allocation

Security
oauth-client-credentials
Headers
upvest-client-idstring(uuid)required

Tenant Client ID

Example: ebabcf4d-61c3-4942-875c-e265a7c2d062
authorizationstring^Bearer [a-zA-Z0-9\-\._~+/]*=*required

Bearer (access) token from the OAuth flow with correct scopes. https://datatracker.ietf.org/doc/html/rfc6750

Example: Bearer c2VjcmV0Cg==
signaturestringrequired

https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-http-header

signature-inputstringrequired

https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-input-http-he

idempotency-keystring(uuid)^[0-9a-fA-F]{8}-?[0-9a-fA-F]{4}-?[0-5][0-9a-f...required

A UUID to be used as an idempotency key. This prevents a duplicate request from being replayed. https://docs.upvest.co/documentation/concepts/api_concepts/idempotency

Example: ccb07f42-4104-44ad-8e1f-c660bb7b269c
upvest-api-versionstring

Upvest API version (Note: Do not include quotation marks)

Default 1
Value"1"
Example: 1
Bodyapplication/json
allocationArray of objectsrequired

List of portfolios allocations

instrument_idstringrequired
One of:

International securities identification number defined by ISO 6166.

string^[A-Z]{2}[A-Z0-9]{9}[0-9]$
instrument_id_typestringrequired

The type of the ID used in the request.

  • ISIN - International Securities Identification Number
  • UPVEST - UPVEST's unique instrument identifier
Default "ISIN"
Enum"ISIN""UPVEST"
weightstring^(100|[0-9]{1,2}(\.[0-9]{1,5})?)$required

Instrument allocation weight

namestring

Allocation name

curl -i -X POST \
  https://sandbox.upvest.co/portfolios/allocations \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'authorization: Bearer c2VjcmV0Cg==' \
  -H 'idempotency-key: ccb07f42-4104-44ad-8e1f-c660bb7b269c' \
  -H 'signature: string' \
  -H 'signature-input: string' \
  -H 'upvest-api-version: 1' \
  -H 'upvest-client-id: ebabcf4d-61c3-4942-875c-e265a7c2d062' \
  -d '{
    "name": "Allocation 1",
    "allocation": [
      {
        "instrument_id": "IE00B0M62Q58",
        "instrument_id_type": "ISIN",
        "weight": "0.7"
      },
      {
        "instrument_id": "US0378331005",
        "instrument_id_type": "ISIN",
        "weight": "0.3"
      }
    ]
  }'

Responses

Portfolios allocation

Headers
upvest-request-idstring(uuid)required
Example: "169ae4c7-ebd7-4041-94da-25369653eba7"
Bodyapplication/json
idstring(uuid)required
created_atstring(date-time)required

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

updated_atstring(date-time)required

Date and time when the resource was last updated. RFC 3339-5, ISO8601 UTC

namestringrequired

Allocation name

allocationArray of objectsrequired

List of portfolios allocations

instrument_idstringrequired
One of:

International securities identification number defined by ISO 6166.

string^[A-Z]{2}[A-Z0-9]{9}[0-9]$
instrument_id_typestringrequired

The type of the ID used in the request.

  • ISIN - International Securities Identification Number
  • UPVEST - UPVEST's unique instrument identifier
Default "ISIN"
Enum"ISIN""UPVEST"
weightstring^(100|[0-9]{1,2}(\.[0-9]{1,5})?)$required

Instrument allocation weight

Response
application/json
{ "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": [ { … }, { … } ] }

Request

Retrieve portfolios allocation

Security
oauth-client-credentials
Path
allocation_idstring(uuid)required
Headers
upvest-client-idstring(uuid)required

Tenant Client ID

Example: ebabcf4d-61c3-4942-875c-e265a7c2d062
authorizationstring^Bearer [a-zA-Z0-9\-\._~+/]*=*required

Bearer (access) token from the OAuth flow with correct scopes. https://datatracker.ietf.org/doc/html/rfc6750

Example: Bearer c2VjcmV0Cg==
signaturestringrequired

https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-http-header

signature-inputstringrequired

https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-input-http-he

upvest-api-versionstring

Upvest API version (Note: Do not include quotation marks)

Default 1
Value"1"
Example: 1
curl -i -X GET \
  'https://sandbox.upvest.co/portfolios/allocations/{allocation_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'authorization: Bearer c2VjcmV0Cg==' \
  -H 'signature: string' \
  -H 'signature-input: string' \
  -H 'upvest-api-version: 1' \
  -H 'upvest-client-id: ebabcf4d-61c3-4942-875c-e265a7c2d062'

Responses

Portfolios allocation

Headers
upvest-request-idstring(uuid)required
Example: "169ae4c7-ebd7-4041-94da-25369653eba7"
Bodyapplication/json
idstring(uuid)required
created_atstring(date-time)required

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

updated_atstring(date-time)required

Date and time when the resource was last updated. RFC 3339-5, ISO8601 UTC

namestringrequired

Allocation name

allocationArray of objectsrequired

List of portfolios allocations

instrument_idstringrequired
One of:

International securities identification number defined by ISO 6166.

string^[A-Z]{2}[A-Z0-9]{9}[0-9]$
instrument_id_typestringrequired

The type of the ID used in the request.

  • ISIN - International Securities Identification Number
  • UPVEST - UPVEST's unique instrument identifier
Default "ISIN"
Enum"ISIN""UPVEST"
weightstring^(100|[0-9]{1,2}(\.[0-9]{1,5})?)$required

Instrument allocation weight

Response
application/json
{ "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": [ { … }, { … } ] }

Portfolios Rebalancing

All portfolios rebalancing related paths.

OperationsWebhooks

Savings Plans

All savings plans related paths.

OperationsWebhooks

Liquidations

All accounts liquidations related paths.

OperationsWebhooks

Direct Debits

All direct debits related paths

OperationsWebhooks
OperationsWebhooks

Withdrawals

All withdrawals related paths

OperationsWebhooks

Reference Accounts

All reference account related paths

Operations

Mandates

All direct debit mandates related paths

Operations

Cash Balances

All cash balance related paths

OperationsWebhooks

Positions

All positions related paths.

OperationsWebhooks

Valuations

All valuations related paths.

OperationsWebhooks

Returns

All accounts returns related paths.

OperationsWebhooks

Virtual Cash Balances

All virtual cash balances related paths

OperationsWebhooks
OperationsWebhooks

Fees Configurations

All fees configurations related paths.

Operations
OperationsWebhooks

Treasury Reports

All treasury reports related paths.

Webhooks

Transactions

All transactions related paths.

OperationsWebhooks
Operations

Webhook Subscriptions

All webhook subscriptions related paths.

Operations

Virtual Bank Accounts

All virtual bank accounts related paths

OperationsWebhooks
Operations