Upvest Investment API.
- Retrieve portfolios order
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/orders
- Live environment
https://api.upvest.co/portfolios/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
}'
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": "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": [] }
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/orders/{portfolio_order_id}
- Live environment
https://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 environment
https://sandbox.upvest.co/portfolios/orders/{portfolio_order_id}
- Live environment
https://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 content