Upvest Investment API.
- List portfolios allocation accounts
Upvest Investment API (1.86.0)
Request
Cancel portfolios order. Cancellations may not be possible - in rare situations, some individual orders within portfolios order may already have been filled. In this case, cancellation could result in a mix of cancelled and filled orders.
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 environmenthttps://sandbox.upvest.co/portfolios/orders/{portfolio_order_id}
- Live environmenthttps://api.upvest.co/portfolios/orders/{portfolio_order_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://sandbox.upvest.co/portfolios/orders/{portfolio_order_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'signature: string' \
-H 'signature-input: string' \
-H 'upvest-api-version: 1' \
-H 'upvest-client-id: 363f3305-7ab0-4e82-a158-f9d382ad08b6'No contentSort 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.
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 environmenthttps://sandbox.upvest.co/portfolios/allocations/{allocation_id}/accounts
- Live environmenthttps://api.upvest.co/portfolios/allocations/{allocation_id}/accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://sandbox.upvest.co/portfolios/allocations/{allocation_id}/accounts?sort=id&order=ASC&offset=0&limit=100' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'signature: string' \
-H 'signature-input: string' \
-H 'upvest-api-version: 1' \
-H 'upvest-client-id: 363f3305-7ab0-4e82-a158-f9d382ad08b6'{ "meta": { "offset": 0, "limit": 100, "count": 1, "total_count": 1, "sort": "id", "order": "ASC" }, "data": [ { … } ] }
Date and time when the event was created. RFC 3339-5, ISO8601 UTC
Event type
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
Alphabetic three-letter ISO 4217 currency code.
- EUR - Euro
- GBP - Pound Sterling
Execution status of the Portfolio Order.
- NEW -
- PROCESSING -
- FILLED -
- SETTLED -
- CANCELLED -
What triggered the order creation .
- API -
- SAVINGS_PLAN -
Orders associated with this portfolio order
Explains the reason why the order was cancelled .
- ACCOUNT_IS_EMPTY -
- CANCELLED_BY_CLIENT -
- CANCELLED_BY_UPVEST -
- PORTFOLIO_IS_BALANCED -
- SELL_LIMIT_EXCEEDED -
- Sandbox environmenthttps://sandbox.upvest.co/Portfolio orders events
- Live environmenthttps://api.upvest.co/Portfolio orders events
{ "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": [ … ] }, "webhook_id": "cd2e4183-4e62-4e0f-981b-44b594d14610" }