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
- Sandbox environment
https://sandbox.upvest.co/accounts/{account_id}
- Live environment
https://api.upvest.co/accounts/{account_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://sandbox.upvest.co/accounts/{account_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
Sort the result by created_at
, updated_at§
.
Sort order of the result list if the sort
parameter is specified. Use ASC
for ascending or DESC
for descending sort order.
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 environment
https://sandbox.upvest.co/accounts
- Live environment
https://api.upvest.co/accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://sandbox.upvest.co/accounts?sort=created_at&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'
OK
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
Account type.
- TRADING - Orders in accounts of this type are created on a specific instrument basis.
- PORTFOLIO - Orders in accounts of this type are created on a portfolio basis and additional portfolio functionality is available.
The status of the account
- PENDING_APPROVAL - Account approval is pending - the account is visible through our API but cannot be acted on.
- ACTIVE - Account is active - full functionality of the Investment API is accessible.
- CLOSING - Account is closing - only sell orders or the transfer of positions out are permissible before the account is closed.
- CLOSED - Account is closed with zero balance successfully.
- LOCKED - Account is locked for all actions.
{ "meta": { "offset": 0, "limit": 100, "count": 1, "total_count": 1, "sort": "created_at", "order": "ASC" }, "data": [ { … } ] }
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
Account type.
- TRADING - Orders in accounts of this type are created on a specific instrument basis.
- PORTFOLIO - Orders in accounts of this type are created on a portfolio basis and additional portfolio functionality is available.
- Sandbox environment
https://sandbox.upvest.co/accounts
- Live environment
https://api.upvest.co/accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://sandbox.upvest.co/accounts \
-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": "413715f2-5401-4b97-8055-034a6b879f8c",
"account_group_id": "fa2414ed-8d62-46fd-85ed-565a340c81d6",
"type": "TRADING",
"name": "Main account"
}'
Account created.
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
Account type.
- TRADING - Orders in accounts of this type are created on a specific instrument basis.
- PORTFOLIO - Orders in accounts of this type are created on a portfolio basis and additional portfolio functionality is available.
The status of the account
- PENDING_APPROVAL - Account approval is pending - the account is visible through our API but cannot be acted on.
- ACTIVE - Account is active - full functionality of the Investment API is accessible.
- CLOSING - Account is closing - only sell orders or the transfer of positions out are permissible before the account is closed.
- CLOSED - Account is closed with zero balance successfully.
- LOCKED - Account is locked for all actions.
{ "id": "ad45b27f-c0e7-4cfb-b48c-a83670dbdfbd", "created_at": "2020-08-24T14:15:22Z", "updated_at": "2020-08-24T14:15:22Z", "account_group_id": "fa2414ed-8d62-46fd-85ed-565a340c81d6", "type": "TRADING", "users": [ { … } ], "account_number": 1, "name": "Main account", "status": "ACTIVE" }