Upvest Investment API.
- Get instrument venues
Upvest Investment API (1.75.0)
https://sandbox.upvest.co/
https://api.upvest.co/
International securities identification number defined by ISO 6166, prefixed with a 'isin:' URN scheme.
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/instruments/{instrument_id}/venues
- Live environment
https://api.upvest.co/instruments/{instrument_id}/venues
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://sandbox.upvest.co/instruments/{instrument_id}/venues' \
-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'
Request
Returns the instrument's latest price as available at the specified venue.
NOTE: Please note that in live mode we provide the latest prices that we receive from our data provider. However, it is to be expected that such updates will only take place on trading days.
International securities identification number defined by ISO 6166, prefixed with a 'isin:' URN scheme.
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/instruments/{instrument_id}/venues/{venue_id}/prices/latest
- Live environment
https://api.upvest.co/instruments/{instrument_id}/venues/{venue_id}/prices/latest
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://sandbox.upvest.co/instruments/{instrument_id}/venues/{venue_id}/prices/latest?price_quality=HIGHEST_AVAILABLE' \
-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
{ "price_quality": "REALTIME", "currency": "EUR", "bids": [ { … } ], "asks": [ { … } ], "last_trade": { "time": "2023-01-09T12:59:04Z", "price": "211.32", "size": "40" } }
Request
Returns OHLC prices for the instrument at the specified venue for the chosen time period.
If requested interval is 1d
, then the response also includes days with 0 volume. In these cases open
, high
, low
are empty (""
), but close
is provided. If requested interval is smaller than 1d
, then the intervals with 0 volume are omitted from the response.
NOTE: Please note that in live mode we provide the latest prices that we receive from our data provider. However, it is to be expected that such updates will only take place on trading days.
International securities identification number defined by ISO 6166, prefixed with a 'isin:' URN scheme.
Returns OHLC prices from and including this datetime (UTC). If not specified, OHLC prices are returned from 30 days before the specified end_date
. Time part of the timestamp is optional.
Returns OHLC prices from and including this datetime (UTC). If not specified, OHLC prices are returned up to yesterday. Time part of the timestamp is optional.
Indication of the desired data adjustment. Prices are adjusted for corporate actions such as cash dividends and stock splits. Does not apply if intraday prices are being requested.
Indicates the maximum length of the interval each OHLC price tuple covers. If a price did not change subsequent price tuples are omitted. Allowed values are 1d
for daily prices or any positive integer followed by h
or m
for hour or minute, respectively. Requests are limited to a maximum of 1000 data points.
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/instruments/{instrument_id}/venues/{venue_id}/prices/ohlc
- Live environment
https://api.upvest.co/instruments/{instrument_id}/venues/{venue_id}/prices/ohlc
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://sandbox.upvest.co/instruments/{instrument_id}/venues/{venue_id}/prices/ohlc?start_date=2023-11-01T10%3A30%3A00Z&end_date=2023-11-15T13%3A30%3A00Z&adjusted_for=NONE&interval=4h' \
-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'
{ "data": [ { … }, { … } ], "meta": { "count": 2 } }