An API system for fetching real-time economic indicator data and performing statistical analysis efficiently.
Two primary APIs working in tandem to deliver highly accurate economic indicator data.
indicators.php — Fetch today's economic indicators in real time.
Returns a list of economic indicators announced or scheduled for announcement today. All data is automatically stored to the database.
| Parameter | Type | Description |
|---|---|---|
| debug | string |
Optional — Debug mode • 1: Response with debug information• raw: Returns raw data from the Finnhub API• db: Displays database status and the 5 most recent records
|
| test | string | Optional — Specify finnhub to test the connection. |
indicators_statistics.php — Advanced analysis and scenario simulation from historical data.
Uses 5 years of accumulated economic indicator data to perform statistical analysis, forecast price impact, and recommend trading strategies.
Use the action parameter to select the desired function. Each action provides analysis tailored to a specific area.
| Parameter | Type | Description |
|---|---|---|
| indicator | string | Required — Name of the indicator to search for (partial match supported), e.g. "CPI", "employment". |
| country | string | Required — Country code (e.g. US, EU, JP). |
| Parameter | Type | Description |
|---|---|---|
| date | string | Optional — Format: YYYY-MM-DD. Defaults to today if not specified. |
| country | string | Optional — Filter results by a specific country. |
How to apply this API within a live trading system.
Common issues and how to resolve them.
indicator_name and country_code to be specified, as the same indicator name may carry different data across countries. Always include the country code.
debug=1 to view debug information.