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 orders

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

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

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

Example: end_date=2022-10-14T10:10:10Z
allocation_idstring(uuid)

Filters portfolio orders containing the allocation id

Example: allocation_id=f96eaefd-b4c6-477a-9bbe-c744bf26172f
account_idstring(uuid)

Filters portfolio orders containing the account id

Example: account_id=2c865aab-6737-4b0e-9154-69a4622b2727
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/orders?sort=id&order=ASC&offset=0&limit=100&start_date=2022-10-14T10%3A10%3A10Z&end_date=2022-10-14T10%3A10%3A10Z&allocation_id=f96eaefd-b4c6-477a-9bbe-c744bf26172f&account_id=2c865aab-6737-4b0e-9154-69a4622b2727' \
  -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 orders

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

account_idstring(uuid)required

Account unique identifier.

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

Alphabetic three-letter ISO 4217 currency code.

  • EUR - Euro
Default "EUR"
Value"EUR"
statusstringrequired

Execution status of the Portfolio Order.

  • NEW -
  • PROCESSING -
  • FILLED -
  • SETTLED -
  • CANCELLED -
Enum"NEW""PROCESSING""FILLED""SETTLED""CANCELLED"
post_taxbooleanrequired

Cash amount is post-tax value

Default false
client_referencestringrequired
initiation_flowstringrequired

What triggered the order creation .

  • API -
  • SAVINGS_PLAN -
Enum"API""SAVINGS_PLAN"
ordersArray of objectsrequired

Orders associated with this portfolio order

idstring(uuid)required
sidestringrequired

Side of the portfolio order.

  • BUY -
  • SELL -
Enum"BUY""SELL"
statusstringrequired

The execution status of the order.

  • NEW -
  • PROCESSING -
  • FILLED -
  • CANCELLED -
Enum"NEW""PROCESSING""FILLED""CANCELLED"
user_idstring(uuid)

User unique identifier.

allocation_idstring(uuid)
typestring

Type of the Portfolio Order.

  • BUY -
  • SELL -
  • REBALANCING -
Enum"BUY""SELL""REBALANCING"
cancellation_reasonstring

Explains the reason why the order was cancelled .

  • ACCOUNT_IS_EMPTY -
  • CANCELLED_BY_CLIENT -
  • CANCELLED_BY_UPVEST -
  • PORTFOLIO_IS_BALANCED -
  • SELL_LIMIT_EXCEEDED -
Enum"ACCOUNT_IS_EMPTY""CANCELLED_BY_CLIENT""CANCELLED_BY_UPVEST""PORTFOLIO_IS_BALANCED""SELL_LIMIT_EXCEEDED"
cancellation_detailsstring
Response
application/json
{ "meta": { "offset": 0, "limit": 100, "count": 1, "total_count": 1, "sort": "id", "order": "ASC" }, "data": [ { … } ] }

Request

Create portfolios order

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
user_idstring(uuid)required

User unique identifier.

account_idstring(uuid)required

Account unique identifier.

sidestringrequired

Side of the portfolio order.

  • BUY -
  • SELL -
Enum"BUY""SELL"
cash_amountstring^[0-9]{0,63}(\.[0-9]{1,27})?$required
currencystringrequired

Alphabetic three-letter ISO 4217 currency code.

  • EUR - Euro
Default "EUR"
Value"EUR"
post_taxboolean

Cash amount is post-tax value

Default false
curl -i -X POST \
  https://sandbox.upvest.co/portfolios/orders \
  -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 '{
    "user_id": "4b9732bd-7496-4e91-8a5f-6360479d7fed",
    "account_id": "00ef0be8-d564-43af-b3c7-11b7a2188030",
    "cash_amount": "100.00",
    "currency": "EUR",
    "side": "BUY"
  }'

Responses

Portfolios order

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

account_idstring(uuid)required

Account unique identifier.

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

Alphabetic three-letter ISO 4217 currency code.

  • EUR - Euro
Default "EUR"
Value"EUR"
statusstringrequired

Execution status of the Portfolio Order.

  • NEW -
  • PROCESSING -
  • FILLED -
  • SETTLED -
  • CANCELLED -
Enum"NEW""PROCESSING""FILLED""SETTLED""CANCELLED"
post_taxbooleanrequired

Cash amount is post-tax value

Default false
client_referencestringrequired
initiation_flowstringrequired

What triggered the order creation .

  • API -
  • SAVINGS_PLAN -
Enum"API""SAVINGS_PLAN"
ordersArray of objectsrequired

Orders associated with this portfolio order

idstring(uuid)required
sidestringrequired

Side of the portfolio order.

  • BUY -
  • SELL -
Enum"BUY""SELL"
statusstringrequired

The execution status of the order.

  • NEW -
  • PROCESSING -
  • FILLED -
  • CANCELLED -
Enum"NEW""PROCESSING""FILLED""CANCELLED"
user_idstring(uuid)

User unique identifier.

allocation_idstring(uuid)
typestring

Type of the Portfolio Order.

  • BUY -
  • SELL -
  • REBALANCING -
Enum"BUY""SELL""REBALANCING"
cancellation_reasonstring

Explains the reason why the order was cancelled .

  • ACCOUNT_IS_EMPTY -
  • CANCELLED_BY_CLIENT -
  • CANCELLED_BY_UPVEST -
  • PORTFOLIO_IS_BALANCED -
  • SELL_LIMIT_EXCEEDED -
Enum"ACCOUNT_IS_EMPTY""CANCELLED_BY_CLIENT""CANCELLED_BY_UPVEST""PORTFOLIO_IS_BALANCED""SELL_LIMIT_EXCEEDED"
cancellation_detailsstring
Response
application/json
{ "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": [] }

Request

Retrieve portfolios order

Security
oauth-client-credentials
Path
portfolio_order_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/orders/{portfolio_order_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 order

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

account_idstring(uuid)required

Account unique identifier.

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

Alphabetic three-letter ISO 4217 currency code.

  • EUR - Euro
Default "EUR"
Value"EUR"
statusstringrequired

Execution status of the Portfolio Order.

  • NEW -
  • PROCESSING -
  • FILLED -
  • SETTLED -
  • CANCELLED -
Enum"NEW""PROCESSING""FILLED""SETTLED""CANCELLED"
post_taxbooleanrequired

Cash amount is post-tax value

Default false
client_referencestringrequired
initiation_flowstringrequired

What triggered the order creation .

  • API -
  • SAVINGS_PLAN -
Enum"API""SAVINGS_PLAN"
ordersArray of objectsrequired

Orders associated with this portfolio order

idstring(uuid)required
sidestringrequired

Side of the portfolio order.

  • BUY -
  • SELL -
Enum"BUY""SELL"
statusstringrequired

The execution status of the order.

  • NEW -
  • PROCESSING -
  • FILLED -
  • CANCELLED -
Enum"NEW""PROCESSING""FILLED""CANCELLED"
user_idstring(uuid)

User unique identifier.

allocation_idstring(uuid)
typestring

Type of the Portfolio Order.

  • BUY -
  • SELL -
  • REBALANCING -
Enum"BUY""SELL""REBALANCING"
cancellation_reasonstring

Explains the reason why the order was cancelled .

  • ACCOUNT_IS_EMPTY -
  • CANCELLED_BY_CLIENT -
  • CANCELLED_BY_UPVEST -
  • PORTFOLIO_IS_BALANCED -
  • SELL_LIMIT_EXCEEDED -
Enum"ACCOUNT_IS_EMPTY""CANCELLED_BY_CLIENT""CANCELLED_BY_UPVEST""PORTFOLIO_IS_BALANCED""SELL_LIMIT_EXCEEDED"
cancellation_detailsstring
Response
application/json
{ "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": [ { … }, { … } ] }

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