Skip to content

Commit 19e9dd1

Browse files
committed
Failed to add graph to the code.
But changed to show how to interact with the returned data instead. Added API rate limits information to the project. Cleaned up requirements.txt file.
1 parent b69981d commit 19e9dd1

5 files changed

Lines changed: 754 additions & 46 deletions

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,26 @@ if __name__ == "__main__":
146146

147147
The real payoff of async comes when you have **many requests to make**. With `asyncio.gather()`, you can fire all of them concurrently so the total wall-clock time is roughly that of the single slowest response — instead of the sum of all response times. That is exactly the pattern used in `example_async_gather.py` and `async_call_nb.ipynb` examples for fetching multiple RICs.
148148

149+
## Throttling and Rate Limits
150+
151+
The Data Platform API request limits (throttles) to effectively manage and protect its service and ensure fair usage across the non-streaming content.
152+
153+
An application would receive an error from the API call if an application reached or exceeds a limit (especially with the Asynchronous HTTP calls). You required to make some necessary adjustments to rectify the interaction with the API and retry the respective API call.
154+
155+
Two different server errors on API request limits are:
156+
157+
| **HTTP Status** | **Detail** |
158+
| --- | --- |
159+
| **429** | **Error Message**: too many attempts |
160+
| | **Description**: A per account limit where the number of requests per second is limited for each account accessing the platform. If this limit is reached, applications will receive a standard HTTP error (HTTP 429 too many requests). |
161+
| | **Suggestion**: Please reduce the number of requests per second and retry. |
162+
163+
Please find more detail regarding the Data Platform HTTP error status messages from the [RDP API General Guidelines](https://developers.lseg.com/en/api-catalog/refinitiv-data-platform/refinitiv-data-platform-apis/documentation) document page.
164+
165+
The Historical Pricing endpoint rate limits information is available on the **Reference** tab of the [Data Platform API Playground](https://apidocs.refinitiv.com/Apps/ApiDocs) page. The current rate limits (**As of Mar 2026**) is as follows:
166+
167+
![historical rate limit](images/historical-pricing-ratelimits.png)
168+
149169
## Prerequisites
150170

151171
- Python 3.11+
73.1 KB
Loading

requirements.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
anyio==4.12.1
1+
anyio==4.13.0
22
argon2-cffi==25.1.0
33
argon2-cffi-bindings==25.1.0
44
arrow==1.4.0
55
asttokens==3.0.1
6-
async-lru==2.2.0
7-
attrs==25.4.0
6+
async-lru==2.3.0
7+
attrs==26.1.0
88
babel==2.18.0
99
beautifulsoup4==4.14.3
1010
bleach==6.3.0
@@ -24,13 +24,13 @@ httpcore==1.0.9
2424
httpx==0.28.1
2525
idna==3.11
2626
ipykernel==7.2.0
27-
ipython==9.11.0
27+
ipython==9.12.0
2828
ipython_pygments_lexers==1.1.1
2929
isoduration==20.11.0
3030
jedi==0.19.2
3131
Jinja2==3.1.6
32-
json5==0.13.0
33-
jsonpointer==3.0.0
32+
json5==0.14.0
33+
jsonpointer==3.1.1
3434
jsonschema==4.26.0
3535
jsonschema-specifications==2025.9.1
3636
jupyter-events==0.12.0
@@ -51,7 +51,9 @@ nbconvert==7.17.0
5151
nbformat==5.10.4
5252
nest-asyncio==1.6.0
5353
notebook_shim==0.2.4
54+
numpy==2.4.4
5455
packaging==26.0
56+
pandas==3.0.1
5557
pandocfilters==1.5.1
5658
parso==0.8.6
5759
platformdirs==4.9.4
@@ -60,15 +62,15 @@ prompt_toolkit==3.0.52
6062
psutil==7.2.2
6163
pure_eval==0.2.3
6264
pycparser==3.0
63-
Pygments==2.19.2
65+
Pygments==2.20.0
6466
python-dateutil==2.9.0.post0
6567
python-dotenv==1.2.2
66-
python-json-logger==4.0.0
68+
python-json-logger==4.1.0
6769
pywinpty==3.0.3
6870
PyYAML==6.0.3
6971
pyzmq==27.1.0
7072
referencing==0.37.0
71-
requests==2.32.5
73+
requests==2.33.0
7274
rfc3339-validator==0.1.4
7375
rfc3986-validator==0.1.1
7476
rfc3987-syntax==1.1.0

0 commit comments

Comments
 (0)