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
modulus
Divides a request over several parallel requests.
Value: a positive integer, at most 100. 0 or no value switches the division off. Used together with part.
A single request:
https://consumer.qa.data.spglobal.com/namespace/stream?after=AFTER_VALUE
can be divided into three requests that can be processed in parallel:
https://consumer.qa.data.spglobal.com/namespace/stream?after=AFTER_VALUE&modulus=3&part=0
https://consumer.qa.data.spglobal.com/namespace/stream?after=AFTER_VALUE&modulus=3&part=1
https://consumer.qa.data.spglobal.com/namespace/stream?after=AFTER_VALUE&modulus=3&part=2
Each part returns a distinct share of the records. Together the parts return all records. Every part has its own after value, so you must keep track of the after value of each part.
Important: The number of parallel requests per account is limited. Choose
modulussuch that your other requests also fit. See Usage quota.