Upvest Investment API.
Returns
Access Tokens
Users
User Identifiers
User Checks
Accounts
Account Groups
Tax Residencies
Corporate Actions
Tax Wrappers
Tax Exemptions
Tax Collections
Instruments
Price Data
Orders
Portfolios
Portfolios Rebalancing
Savings Plans
Liquidations
Direct Debits
Top-ups
Withdrawals
Reference Accounts
Mandates
Virtual Bank Accounts
Credit Fundings
Cash Balances
Positions
Valuations
Virtual Cash Balances
Fees
Fees Configurations
Reports
Treasury Reports
Transactions
Files
Webhook Subscriptions
Tests
Upvest Investment API (1.77.0)
Overview
Languages
Servers
Sandbox environment
https://sandbox.upvest.co/
Live environment
https://api.upvest.co/
Query
Returns account returns starting from and including this date (UTC)
Example: start_date=2023-08-15
Sort order of the result list if the sort parameter is specified. Use ASC for ascending or DESC for descending sort order.
Default "ASC"
Enum"ASC""DESC"
Use the offset argument to specify where in the list of results to start when returning items for a particular query.
Headers
Bearer (access) token from the OAuth flow with correct scopes. https://datatracker.ietf.org/doc/html/rfc6750
Example: Bearer c2VjcmV0Cg==
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/accounts/{account_id}/returns
- Live environmenthttps://api.upvest.co/accounts/{account_id}/returns
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://sandbox.upvest.co/accounts/{account_id}/returns?start_date=2023-08-15&end_date=2023-08-15&sort=date&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'Response
application/json
{ "meta": { "offset": 0, "limit": 100, "count": 2, "total_count": 2, "sort": "date", "order": "ASC" }, "data": [ { … }, { … } ] }
Bodyapplication/json
Date and time when the event was created. RFC 3339-5, ISO8601 UTC
Date when returns were calculated. RFC 3339-5, ISO8601 UTC
- Sandbox environmenthttps://sandbox.upvest.co/Account returns events
- Live environmenthttps://api.upvest.co/Account returns events
application/json
{ "id": "399dc0a7-f4cb-42a4-9513-496df030381e", "created_at": "2023-09-02T05:15:00Z", "type": "ACCOUNT_RETURNS.CREATED", "object": { "account_id": "bbe9e784-e009-4cb6-a07c-24831897327b", "date": "2023-09-01", "twr": { … } }, "webhook_id": "435719ac-c064-4c7a-a8b9-6db9446965de" }