Getting started
Concepts
- Model concepts
- API concepts
- API versions
- Entitlements
- Filters
- Request parameters
- Usage quota
- Error codes
Services
Parameters
- after
- aggregate
- aggregateIncrementFrom
- cursor
- dateFormat
- descending
- entity
- envelope
- fields
- format
- from
- groupBy
- groupById
- groupByIdAndTime
- groupByTo
- includeMetaData
- inline
- inlineLatest
- inlineTimeseries
- limit
- modulus
- nextUrl
- part
- pivot
- rankBy
- requestTimeout
- returnPreSignedUrl
- showMessage
- showStreamCursor
- to
- trace
- verifyLinks
- wait
Deprecated parameters
Datasets
- ECR: timeseries and observations
- ECR: usage patterns
- fiindices: retrieving index data
- Parsing: asset classes
- Parsing: best practices
Samples
showStreamCursor
Adds the position in the stream that the data corresponds to.
Applies to: latest, timeseries, batchrun
Value: true or false. The default is false. It has an effect together with an envelope.
The envelope then has a numeric cursor field: the position of the last stream message of the namespace at the time of the request. A client that keeps a copy of the data can read a snapshot with the latest service and then continue with the stream service from that position, without missing updates:
https://consumer.qa.data.spglobal.com/namespace/Entity/latest?limit=1000&envelope=true&showStreamCursor=true
https://consumer.qa.data.spglobal.com/namespace/stream?cursor=CURSOR_VALUE
For namespaces that are published in batches, the cursor is the last committed position. The field is omitted when the namespace has no stream messages yet.