This is giving a "data license is required" error.
I believe this worked a week ago.
I think the same thing is happening on the rank/ranks endpoint.
import p123api
api_id = "your id"
api_key = "your key"
params = {
"universe": "SP500",
"asOfDts": ["2025-09-13"],
"formulas": ["Sales(0,QTR)"],
}
with p123api.Client(api_id=api_id, api_key=api_key) as client:
try:
result = client.data_universe(params, to_pandas=False)
print("accepted, cost", result.get("cost"))
except p123api.ClientException as exc:
print("rejected:", exc)
Thanks
Tony
WalterW
September 14, 2026, 1:00am
2
Any API request that returns fundamental data requires a data vendor license. This applies to the /data/universe endpoint, and to /rank/ranks when the additionalData parameter is used, since that can return factor values alongside the ranks.
Oh that's right. I forgot that. Sorry.
Thanks
Tony
Although I did produce this from the API last week from the data/universe endpoint which is what is what I was trying to do again today
E01_coverage.csv (16.2 KB)
. Would these sales figured not be considered fundamental?
The asof date was: 2026-09-01
WalterW
September 14, 2026, 1:23am
5
If that happened, it was a bug.