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
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" }
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
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.
- Sandbox environment
https://sandbox.upvest.co/Account events
- Live environment
https://api.upvest.co/Account events
{ "id": "56510309-d9de-4730-9b5b-4a0ed047f3a9", "created_at": "2021-07-21T14:10:00.00Z", "type": "ACCOUNT.CREATED", "object": { "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" }, "webhook_id": "b838bde5-b6df-4f1f-bfc4-71d3fb01d430" }