Upvest Investment API.
Upvest Investment API (1.75.0)
https://sandbox.upvest.co/
https://api.upvest.co/
Bearer (access) token from the OAuth flow with correct scopes. https://datatracker.ietf.org/doc/html/rfc6750
https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-http-header
https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-input-http-he
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
- Sandbox environment
https://sandbox.upvest.co/portfolios/rebalancings/executions
- Live environment
https://api.upvest.co/portfolios/rebalancings/executions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://sandbox.upvest.co/portfolios/rebalancings/executions \
-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 '{
"accounts": [
"43801b85-bbcf-41c7-8389-b018082a5ec5",
"20151679-c159-4f16-b8a2-267b3d968c6f"
]
}'
{ "id": "735381ce-8380-4b07-9e42-97e2b6d3643e" }
Bearer (access) token from the OAuth flow with correct scopes. https://datatracker.ietf.org/doc/html/rfc6750
https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-http-header
https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-input-http-he
- Sandbox environment
https://sandbox.upvest.co/portfolios/rebalancings/executions/{execution_id}
- Live environment
https://api.upvest.co/portfolios/rebalancings/executions/{execution_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://sandbox.upvest.co/portfolios/rebalancings/executions/{execution_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'
Portfolios
Date and time when the resource was created. RFC 3339-5, ISO8601 UTC
Date and time when the resource was last updated. RFC 3339-5, ISO8601 UTC
{ "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": [] }
Sort order of the result list if the sort
parameter is specified. By default, only ASC for ascending sort.
Use the offset
argument to specify where in the list of results to start when returning items for a particular query.
Use the limit
argument to specify the maximum number of items returned.
Returns rebalancing orders with dates starting from and including this date (UTC)
Bearer (access) token from the OAuth flow with correct scopes. https://datatracker.ietf.org/doc/html/rfc6750
https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-http-header
https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-input-http-he
- Sandbox environment
https://sandbox.upvest.co/portfolios/rebalancings/executions/{execution_id}/orders
- Live environment
https://api.upvest.co/portfolios/rebalancings/executions/{execution_id}/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://sandbox.upvest.co/portfolios/rebalancings/executions/{execution_id}/orders?sort=status&order=ASC&offset=0&limit=100&start_date=2022-10-14T10%3A10%3A10Z&end_date=2022-10-14T10%3A10%3A10Z' \
-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'
Portfolios
Status of the Rebalancing Execution Order.
- NEW -
- PROCESSING -
- FILLED -
- CANCELLED -
Date and time when the resource was created. RFC 3339-5, ISO8601 UTC
Date and time when the resource was last updated. RFC 3339-5, ISO8601 UTC
Reason for Rebalancing Execution Order Cancellation. The field is present in case the Order has a status of CANCELLED.
- ACCOUNT_IS_EMPTY -
- ACCOUNT_NOT_FOUND -
- CANCELLED_BY_CLIENT -
- CANCELLED_BY_UPVEST -
- CONFIGURATION_IS_MISSING -
- INVALID_ACCOUNT_TYPE -
- PORTFOLIO_IS_BALANCED -
- UNKNOWN -
{ "meta": { "count": 2, "limit": 10, "offset": 0, "order": "ASC", "sort": "state", "total_count": 2 }, "data": [ { … }, { … }, { … }, { … } ] }