Description of endpoints
This API contains 3 types of endpoints, each of which differs in computational complexity:
Cache Requests
The data is cached in RAM and is issued on request without additional delays.
- Get last 5 news – gives out the last 5 published news
- Get last 5 economic calendar news – gives out the last 5 published economic calendar
Database Requests
A request is made to the internal database. The request is slow enough due to the limitations in the bandwidth of the framework used.
- Get news over a period of time – gives out news for a certain period of time, but not more than one day. If a longer interval is selected, the end date will be rounded to a value at which the time interval will be one day. The processing time of this request is about 6 seconds.
- Get economic calendar news over a period of time – gives out economic calendar news for a certain period of time, but not more than 30 days. If a longer interval is selected, the end date will be rounded to a value at which the time interval will be 30 days.
Analytical Requests
There is a request to the internal database and their post-processing. You can request analytics for an arbitrary period of time, not limited to one day. Due to the fact that the result is a certain way processed parameters for news, the user receives a response much faster than in Database Requests.
- Analyze news over a period of time – provides calculated statistics on the main computable news metrics for a given period of time.
Additional information:
- The weight of one news item in the API is approximately 20 kB. News data for one day will weigh about 5 MB.
All information on the format of requests and issuance is presented in the tutorials