Upvest Investment API.
Upvest Investment API (1.75.0)
https://sandbox.upvest.co/
https://api.upvest.co/
Sort order of the result list if the sort
parameter is specified. By default, only ASC for ascending sort.
Use the offset
argument to specify where in the list of results to start when returning items for a particular query.
Use the limit
argument to specify the maximum number of items returned.
Returns accounts liquidations created starting from and including this date (UTC)
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}/liquidations
- Live environment
https://api.upvest.co/accounts/{account_id}/liquidations
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://sandbox.upvest.co/accounts/{account_id}/liquidations?sort=id&order=ASC&offset=0&limit=100&start_date=2022-10-14T10%3A10%3A10Z&end_date=2022-10-14T10%3A10%3A10Z' \
-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'
Accounts liquidations
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
Alphabetic three-letter ISO 4217 currency code.
- EUR - Euro
- GBP - British Pound
Execution status of the Account liquidation.
- NEW -
- PROCESSING -
- FILLED -
- CANCELLED -
- SETTLED -
Position liquidation orders associated with this account liquidation
{ "meta": { "offset": 0, "limit": 100, "count": 1, "total_count": 1, "sort": "id", "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
- Sandbox environment
https://sandbox.upvest.co/accounts/{account_id}/liquidations
- Live environment
https://api.upvest.co/accounts/{account_id}/liquidations
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://sandbox.upvest.co/accounts/{account_id}/liquidations' \
-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": "084a00a8-4a37-4d2d-b276-71ec5e2be0e3"
}'
Account liquidation object
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
Alphabetic three-letter ISO 4217 currency code.
- EUR - Euro
- GBP - British Pound
Execution status of the Account liquidation.
- NEW -
- PROCESSING -
- FILLED -
- CANCELLED -
- SETTLED -
Position liquidation orders associated with this account liquidation
{ "id": "b2f541dc-a27b-4d5a-b970-41812b0892b9", "created_at": "2021-07-21T14:10:00.000Z", "updated_at": "2021-07-21T14:10:00.000Z", "account_id": "debf2026-f2da-4ff0-bb84-92e45babb1e3", "user_id": "81dfb00e-9be6-4617-8994-dfd0407f34df", "cash_amount": "1000", "currency": "EUR", "status": "NEW", "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/accounts/{account_id}/liquidations/{account_liquidation_id}
- Live environment
https://api.upvest.co/accounts/{account_id}/liquidations/{account_liquidation_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://sandbox.upvest.co/accounts/{account_id}/liquidations/{account_liquidation_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'
Account liquidation object
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
Alphabetic three-letter ISO 4217 currency code.
- EUR - Euro
- GBP - British Pound
Execution status of the Account liquidation.
- NEW -
- PROCESSING -
- FILLED -
- CANCELLED -
- SETTLED -
Position liquidation orders associated with this account liquidation
{ "id": "f386fdc4-dcd8-4dce-8acb-dae332f51483", "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", "cash_amount": "100.00", "currency": "EUR", "status": "PROCESSING", "orders": [ { … }, { … } ] }