Upvest Investment API.
- Cancel portfolios order
Upvest Investment API (1.77.0)
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 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'Portfolios order
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
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 -
{ "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": [ { … }, { … } ] }
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 'authorization: Bearer c2VjcmV0Cg==' \
-H 'signature: string' \
-H 'signature-input: string' \
-H 'upvest-api-version: 1' \
-H 'upvest-client-id: ebabcf4d-61c3-4942-875c-e265a7c2d062'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 'authorization: Bearer c2VjcmV0Cg==' \
-H 'signature: string' \
-H 'signature-input: string' \
-H 'upvest-api-version: 1' \
-H 'upvest-client-id: ebabcf4d-61c3-4942-875c-e265a7c2d062'{ "meta": { "offset": 0, "limit": 100, "count": 1, "total_count": 1, "sort": "id", "order": "ASC" }, "data": [ { … } ] }