The multi assets daily endpoint returns values for a specific multi asset index that is calculated on a daily basis.
The endpoint requires an API key and it requires that the symbol of the index is specified using the symbol parameter. If the limit parameter is not specified the latest value is returned. To ensure chronological ordering of the index values you should sort the values using the timestmp field. The endpoint only returns a maximum of 2000 records.
This endpoint provides end-of-day values. It can not be used to retrieve necessary information at rebalancing. To obtain new rebalancing weights and rebalancing values please use the Active Multi Assets endpoint and the Single Asset Daily endpoint.
Response Fields
Field
Type
Description
id
integer
The record's id in the source table. A id that equals 0 means that it is not an official value.
created_at
string
ISO formatted datetime representing the calculation time
value
number
The index value
symbol
string
The index symbol.
timestamp
integer
Unix timestamp in milliseconds representing the calculation time.
The number of records to obtain. If the parameter is not specified the last record will be returned.
start_time
datestring
Received range includes the start time date. The start_time value has to be either a date or a datetime string in ISO8601 format. The formats allowed are therefore:
YYYY-MM-DDTHH:MM:SSZ
YYYY-MM-DDTHH:MM:SS.fffZ
YYYY-MM-DD
end_time
datestring
Received range excludes the end_time . The end_time value has to be either a date or a datetime string in ISO8601 format. The formats allowed are therefore:
YYYY-MM-DDTHH:MM:SSZ
YYYY-MM-DDTHH:MM:SS.fffZ
YYYY-MM-DD
Headers
Name
Type
Description
Authorization*
String
your_secret_api_key
The multi-asset endpoint offers comprehensive metadata about the index. If you only require specific index data filtering, you can utilize the following code snippet below to retrieve filtered data based on specific fields.
Please read the following for detailed information on parameters.
import requests
url = "https://www.vinterapi.com/api/v3/multi_assets_daily/?symbol=vntr-eq-5-d"
headers = {"Authorization": your_secret_api_key}
r = requests.get(url, headers=headers)
resp = r.json()
# Filter Fields
INDEX_FIELDS = [
"id",
"created_at",
"value",
"symbol",
"timestamp",
"date"
]
filtered_data = []
# Filter just the fields mentioned in INDEX_FIELDS
for index in resp["data"]:
# Add it to dict
filtered_data.append({k: index[k] for k in INDEX_FIELDS})
print(filtered_data)