Download OpenAPI specification:Download
Default: https://www.cfbenchmarks.com/api/v1/
Nasdaq Indices: https://nciprod1.cfbenchmarks.com/api/v1/
This API requires users to specify an API key. This key can be obtained by contacting CF Benchmarks for a license.
Once given a username and key, you would provide both in the request header with a
header field of the form Authorization: Basic <credentials>
where credentials is the
Base64 encoding of the username and key joined by a single colon ':'.
Successful responses have the format:
{
"serverTime": "2019-08-13T23:30:53.992Z",
"payload": {}
}
Where payload
will contain the result of the API call.
Error responses have the format:
{
"serverTime": "2019-08-13T23:30:53.992Z",
"error": "error text here"
}
dacsId | string ID of DACS category to filter on |
serverTime | string <date-time> | ||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||
Array of objects or null or null (AssetDto) The response data | |||||||
Array
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": [
- {
- "id": "BTC",
- "name": "Bitcoin",
- "aliasIds": [
- "XBT"
]
}
]
}
id required | string The ID of the asset |
serverTime | string <date-time> | ||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||
object or null (AssetDto) The response data | |||||||
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": {
- "id": "BTC",
- "name": "Bitcoin",
- "aliasIds": [
- "XBT"
]
}
}
id required | string ID of the asset |
serverTime | string <date-time> | ||||||||||||||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||||||||||||||
object or null (AssetDetailDto) The response data | |||||||||||||||||||||||
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": {
- "id": "string",
- "name": "string",
- "aliasIds": [
- "string"
], - "dacs": {
- "id": 0,
- "startDate": "string",
- "history": [
- {
- "id": 0,
- "startDate": "string"
}
]
}
}
}
code | string The DACS code to filter on. If passed, only the category with the given code will be returned. Otherwise all categories will. |
serverTime | string <date-time> | ||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||
Array of objects or null or null (DacsCategory) The response data | |||||||||||
Array
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": [
- {
- "id": 0,
- "code": "1010",
- "name": "string",
- "colourRgb": "#5F7CC6",
- "parentId": 0
}
]
}
id required | number <int32> The DACS category ID |
serverTime | string <date-time> | ||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||
object or null (DacsCategory) The response data | |||||||||||
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": {
- "id": 0,
- "code": "1010",
- "name": "string",
- "colourRgb": "#5F7CC6",
- "parentId": 0
}
}
serverTime | string <date-time> | ||||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||||
Array of objects or null or null (IndexDto) The response data | |||||||||||||
Array
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": [
- {
- "id": "BRR",
- "name": "CME CF Bitcoin Reference Rate",
- "decimals": 2,
- "base": "BTC",
- "quote": "USD",
- "demiseDateTime": "2019-08-24T14:15:22Z"
}
]
}
externalId required | string ID of the Index |
serverTime | string <date-time> | ||||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||||
object or null (IndexDto) The response data | |||||||||||||
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": {
- "id": "BRR",
- "name": "CME CF Bitcoin Reference Rate",
- "decimals": 2,
- "base": "BTC",
- "quote": "USD",
- "demiseDateTime": "2019-08-24T14:15:22Z"
}
}
externalId required | string ID of the Index |
serverTime | string <date-time> | ||||||||||||||||||||||||||||||||||||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||||||||||||||||||||||||||||||||||||
object or null (IndexDetailDto) The response data | |||||||||||||||||||||||||||||||||||||||||||||
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": {
- "id": "BRR",
- "name": "CME CF Bitcoin Reference Rate",
- "decimals": 2,
- "base": "BTC",
- "quote": "USD",
- "underlyingAssetsType": "SINGLE_ASSET",
- "bloomberg": "string",
- "refinitiv": "string",
- "isin": "string",
- "sedol": "string",
- "inceptionValue": 1000,
- "publicationFrequency": "DAILY",
- "publicationTime": "16:00",
- "publicationTimeZone": "Europe/London",
- "referenceRateParameters": {
- "windowDuration": "PT1H30M",
- "partitionCount": 10
}, - "inceptionDateTime": "2019-08-24T14:15:22Z",
- "launchDateTime": "2019-08-24T14:15:22Z",
- "demiseDateTime": "2019-08-24T14:15:22Z",
- "exchanges": [
- "coinbase",
- "kraken"
]
}
}
Whether the index is currently live or not (demised)
externalId required | string ID of the Index |
serverTime | string <date-time> | ||||
error | string or null description of error in natural language, absent in case of successful operation | ||||
object or null (IndexStateDto) The response data | |||||
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": {
- "id": "string",
- "state": "LIVE"
}
}
Requests are rate limited to 10 requests per user per second. Will return the most recent - up to 1 year, curves in ascending order of time.
In exceptional circumstances index curves may be delayed or amended after publication. In such cases cases, the curve object may also contain either of the following two fields: amendTime
or repeatOfPreviousValue
.
id required | string ID of stream |
serverTime | string <date-time> | ||||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||||
Array of objects or null or null (Curve) The response data | |||||||||||||
Array
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": [
- {
- "tenors": {
- "SIRB": 0.027,
- "1W": 0.029,
- "3M": 0.031
}, - "time": 0,
- "amendTime": 0,
- "repeatOfPreviousValue": true
}
]
}
The data will be sorted by time, in ascending order. The time range of the data is defined by the timespan
and timestamp
parameters. Note that timestamp
must be truncated to the timespan
granularity. See the timespan
parameter description for some working examples. In order to access this data, the user has to be authorized for the index and the STREAM_HISTORICAL_VALUES data stream
id required | string The id of the index |
timespan required | string The fixed period of time to get the data for. Can be (YEAR | MONTH | DAY | HOUR). For indices that are published every second, the allowable periods are (DAY | HOUR). For indices that are published on a daily / hourly basis, the allowable periods are (YEAR | MONTH). Note that in order to access historical values for a particular index, the STREAM_HISTORICAL_VALUES permission is required on that index. |
timestamp required | string An ISO8601 timestamp to define the start of the period to get the data for. Note that the timestamp must be truncated to the timespan granularity. For example, here are some acceptable (timespan, timestamp) pairs: (YEAR, 2022-01-01T00:00:00.000Z), (YEAR, 2023-01-01T00:00:00.000Z) (MONTH, 2022-01-01T00:00:00.000Z), (MONTH, 2022-02-01T00:00:00.000Z), (MONTH, 2022-12-01T00:00:00.000Z) (DAY, 2022-01-01T00:00:00.000Z), (DAY, 2022-01-05T00:00:00.000Z), (DAY, 2022-03-07T00:00:00.000Z) (HOUR, 2022-01-01T00:00:00.000Z), (HOUR, 2022-01-01T13:00:00.000Z), (HOUR, 2022-03-06T14:00:00.000Z). |
serverTime | string <date-time> | ||||
error | string or null description of error in natural language, absent in case of successful operation | ||||
Array of objects or null or null (ResultValue) The response data | |||||
Array
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": [
- {
- "time": 0,
- "value": "string"
}
]
}
Returns a list of indices accessible by the API token
serverTime | string <date-time> | ||||
error | string or null description of error in natural language, absent in case of successful operation | ||||
Array of objects or null or null (Info) The response data | |||||
Array
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": [
- {
- "id": "BRR",
- "decimals": 2
}
]
}
id required | string ID(s) of stream, may contain up to 30 different IDs, separated by commas |
serverTime | string <date-time> | ||||||||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||||||||
object or null (LatestValues) The response data | |||||||||||||||||
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": {
- "latest_values": {
- "BRR": {
- "time": 1599750000000,
- "value": "10437.33"
}, - "BRTI": {
- "time": 1599814290000,
- "value": "10291.07"
}
}
}
}
Returns the most recent stat records in ascending order of time.
id required | string ID of stream |
streamtype required | string Stream type, must be one of |
serverTime | string <date-time> | ||||||||||||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||||||||||||
Array of (VolumeStat (object or null)) or (WeightStat (object or null)) or (ConstituentResultStat (object or null)) or (RtiStat (object or null)) or null (AbstractStat) The response data | |||||||||||||||||||||
Array Any of
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": [
- {
- "time": 0,
- "amendTime": 0,
- "repeatOfPreviousValue": true,
- "value": "string",
- "volume": "string",
- "volumes": {
- "property1": {
- "volumePercent": "string"
}, - "property2": {
- "volumePercent": "string"
}
}
}
]
}
id required | string Index ID |
serverTime | string <date-time> | ||||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||||
object or null (Summary) The response data | |||||||||||||
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": {
- "value": "string",
- "time": 0,
- "last24Hours": [
- {
- "value": "string",
- "time": 0
}
]
}
}
ids required | string Up to 30 index IDs seperated by commas |
serverTime | string <date-time> | ||||||||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||||||||
object or null The response data | |||||||||||||||||
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": {
- "property1": {
- "value": "string",
- "time": 0,
- "last24Hours": [
- {
- "value": "string",
- "time": 0
}
]
}, - "property2": {
- "value": "string",
- "time": 0,
- "last24Hours": [
- {
- "value": "string",
- "time": 0
}
]
}
}
}
Will return the most recent supplies for the given asset.
id required | string ID of asset |
serverTime | string <date-time> | ||||||||||||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||||||||||||
object or null (SupplyDto) The response data | |||||||||||||||||||
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": {
- "asset": "string",
- "supplies": {
- "property1": {
- "supplies": [
- {
- "value": "string",
- "date": "string"
}
]
}, - "property2": {
- "supplies": [
- {
- "value": "string",
- "date": "string"
}
]
}
}
}
}
Will return the most recent values in ascending order of time (1 hour for RTIs and 1 year for RRs).
In exceptional circumstances index values may be delayed or amended after publication. In such cases cases, the value object may also contain either of the following two fields: amendTime
or repeatOfPreviousValue
.
id required | string ID of stream |
serverTime | string <date-time> | ||||||||
error | string or null description of error in natural language, absent in case of successful operation | ||||||||
Array of objects or null or null (Value) The response data | |||||||||
Array
|
{- "serverTime": "2019-08-24T14:15:22Z",
- "error": "string",
- "payload": [
- {
- "value": "string",
- "time": 0,
- "amendTime": 0,
- "repeatOfPreviousValue": true
}
]
}