🔗 REST APIMulti-Asset Weights

Get multi-asset weights for specific index

GET
/v1/indexdef/multiasset/{index_id}

Authorization

headerAuthorization<token>

API key. Send it in the Authorization header. X-CoinAPI-Key, X-APIBricks-Key and X-APIKey are also accepted.

Path Parameters

index_id*string

Index identifier

Query Parameters

time?string

Optional - when given, only weights valid at that time are returned

Formatdate-time
from?string

Optional - when given, only weights valid at or after that time are returned (cannot be combined with time)

Formatdate-time
to?string

Optional - when given, only weights valid before that time are returned (cannot be combined with time)

Formatdate-time

Response Body

successful operation

  1. response
[index: integer]?
curl -X GET 'https://rest-api.indexes.coinapi.io/v1/indexdef/multiasset/string'
[  {    "indexId": "string",    "assetId": "string",    "weight": 0.1,    "validFrom": "2019-08-24T14:15:22Z",    "validTo": "2019-08-24T14:15:22Z"  }]