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 GET \
'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'
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.
{ "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" }
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 PATCH \
'https://sandbox.upvest.co/accounts/{account_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-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' \
-d '{
"name": "Main account"
}'
Account updated.
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" }
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