API error: Dataset too large

I am getting this when trying to download some global data:

API request failed: Dataset is too large in ZScore

Could you provide the following details about your API request?

  • Which formulas are you using?

  • What date range are you requesting, if applicable?

  • What scaling parameters are you using?

I ran a simple test downloading market caps for the Global Primary universe, and it worked correctly. Your request may involve more data, particularly if you’re downloading multiple formulas or dates.

If you share the request details, I’ll test the same setup and try to identify what’s causing the error.

Here's my curl test;
curl -X 'POST' \
'https://api.portfolio123.com/data/universe' \
-H 'accept: application/json' \
-H 'token: yourtoken' \
-H 'Content-Type: application/json' \
-d '{
"pitMethod": "Complete",
"formulas": [
"mktcap"
],
"includeNames": true,
"precision": 2,
"currency": "USD",
"type": "stock",
"universe": "global (primary)",
"asOfDt": "2026-11-04",
"figi": "Share Class",
"preproc": {
"scaling": "normal",
"naFill": false,
"scope": "date",
"trimPct": 0,
"outliers": false,
"outlierLimit": 0,
"excludedFormulas": [
]
}
}'

Ok, this is a problem on our side. Using Zscore() in formulas will trigger the error report. Thanks for raising the issue.

We’ve deployed a fix, and it’s available now. If you encounter any further problems, please report them to us.