News Backtesting API Documentation

Last Updated: 11/10/2024 08:11 EST

Our API leverages OpenAI and advanced machine learning techniques to deliver comprehensive forex news event data and analysis. This service is designed to support developers working with a variety of programming languages, including MQL5, MQL4, Swift, and Python. It provides a robust suite of features tailored for accessing detailed event information and predictive analytics, enhancing decision-making in forex trading.

Library Access

You can also access the API using GET requests. To authenticate your GET requests, include your API key in the header of your request. You can generate an API key in your profile.

Example Header:

{
      "Content-Type": "application/json",
      "Authorization": "Api-Key YOUR_API_KEY"
    }
var request = URLRequest(url: URL(string: "https://www.jblanked.com/news/api/YOUR-END-POINT"))
    request.addValue("Api-Key YOUR_API_KEY", forHTTPHeaderField: "Authorization")
    request.addValue("application/json", forHTTPHeaderField: "Content-Type")
string headers = "Content-Type: application/json" + "\r\n" + "Authorization: Api-Key YOUR_API_KEY";


Rate Limit

Our API enforces a rate limit of one request per second to ensure service stability and fair usage.

Pricing and Credits

1 credit per use. Credits can be purchased via our billing page. You can monitor your API usage here.

Note: Charges will only occur if users have credits.

Endpoints

Endpoint Description
Event List List of News Events
Event Info Basic news event information
Event History Details including Strength, Quality, Projection, and Outcome
Machine Learning Predictions on event outcomes
Smart Analysis Analysis on event outcomes
Full Event List Comprehensive list of events with all details

To access the Event List endpoint, send a GET request to:


It returns a JSON list of dictionaries of all available News Events.

Example Response:
[
      {
        "Name": "Adjusted Current Account",
        "Currency": "JPY",
        "Event_ID": 39207008,
        "Category": "Currency Report",
      },
    ]
[
       {
        "Name": "Adjusted Current Account",
        "Currency": "JPY",
        "Event_ID": 39207008,
        "Category": "Currency Report",
      },
    ]

To retrieve specific event information, send a GET request to the URLs below, replacing 'ID' with the Event Identification number:

It returns a JSON object with the Name, Currency, Event ID, and Category.

Example Response:
[
      {
        "Name": "Adjusted Current Account",
        "Currency": "JPY",
        "Event_ID": 39207008,
        "Category": "Currency Report",
      },
    ]
[
       {
        "Name": "Adjusted Current Account",
        "Currency": "JPY",
        "Event_ID": 39207008,
        "Category": "Currency Report",
      },
    ]

To retrieve a specific event's history information, send a GET request to the URLs below, replacing 'ID' with the Event Identification number:

It returns a JSON object with the Name, Currency, Event ID, Category, and Event History.

Example Response:
{
      "Name": "Average Hourly Earnings m/m",
      "Currency": "USD",
      "Event_ID": 840030018,
      "Category": "Job Inflation Report",
      "History": [
        {
          "Date": "2023.12.08 15:30:00",
          "Actual": 0.4,
          "Forecast": 0.4,
          "Previous": 0.2,
          "Outcome": "Actual = Forecast > Previous",
          "Projection": 0.5,
          "Strength": "Strong Data",
          "Quality": "Bad Data",
        },
      ],
    }
{
      "Name": "Average Hourly Earnings m/m",
      "Currency": "USD",
      "Event_ID": 840030018,
      "Category": "Job Inflation Report",
      "History": [
        {
          "Date": "2023.12.08 15:30:00",
          "Actual": 0.4,
          "Forecast": 0.4,
          "Previous": 0.2,
          "Outcome": "Actual = Forecast > Previous",
          "Strength": "Strong Data",
          "Quality": "Bad Data",
        },
      ],
    }

To access the Machine Learning endpoint, send a GET request to: https://www.jblanked.com/news/api/mql5/ID/machine-learning/, where ID is the Event Identification number. This endpoint only has MQL5 data.

It returns a JSON object with the Name, Currency, Event ID, Category, and Machine Learning predictions.

Example Response:
{
      "Name": "Average Hourly Earnings m/m",
      "Currency": "USD",
      "Event_ID": 840030018,
      "Category": "Job Inflation Report",
      "MachineLearning": {
        "Outcomes": {
          "Actual < Forecast < Previous": {
            "1 Hour": {"Bearish": 36.77, "Bullish": 61.21},
            "1 Minute": {"Bearish": 33.23, "Bullish": 65.27},
            "30 Minute": {"Bearish": 33.80, "Bullish": 65.07},
          },
          // other outcomes...
        },
        "Accuracy": {
          "1 Hour": 0.57,
          "1 Minute": 0.71,
          "30 Minute": 0.43,
        }
      }
    }

To access the Smart Analysis endpoint, send a GET request to: https://www.jblanked.com/news/api/mql5/ID/smart-analysis/, where ID is the Event Identification number. This endpoint only has MQL5 data.

It returns a JSON object with the Name, Currency, Event ID, Category, and Smart Analysis.

Example Response:
{
      "Name": "Average Hourly Earnings m/m",
      "Currency": "USD",
      "Event_ID": 840030018,
      "Category": "Job Inflation Report",
      "SmartAnalysis": {
        "Actual < Forecast < Previous": "Bullish",
        "Actual < Forecast = Previous": "Bullish",
        "Actual = Forecast < Previous": "Bullish",
        "Actual = Forecast = Previous": "Neither_Bearish_or_Bullish",
        "Actual = Forecast > Previous": "Bearish",
        "Actual > Forecast > Previous": "Bearish",
        // other outcomes...
      }
    }

Event IDs

Currency Name Event ID
JPY Adjusted Current Account 392070008
JPY Adjusted Trade Balance 392040001
CAD ADP Nonfarm Employment Change 124070001
USD ADP Nonfarm Employment Change 840190001
JPY au Jibun Bank Composite PMI 392500003
JPY au Jibun Bank Manufacturing PMI 392500001
JPY au Jibun Bank Services PMI 392500002
USD Average Hourly Earnings m/m 840030018
USD Average Hourly Earnings y/y 840030019
USD Baker Hughes US Oil Rig Count 840100001
USD Baker Hughes US Total Rig Count 840100002
CAD BoC Interest Rate Decision 124040006
GBP BoE Interest Rate Decision 826020009
JPY BoJ Bank Lending y/y 392060013
JPY BoJ Corporate Goods Price Index m/m 392060014
JPY BoJ Corporate Goods Price Index y/y 392060015
JPY BoJ Interest Rate Decision 392060022
JPY BoJ M2 Money Stock y/y 392060012
JPY BoJ Monetary Base y/y 392060011
JPY BoJ Tankan Large Manufacturing Index 392060008
JPY BoJ Tankan Large Non-Manufacturing Index 392060010
JPY BoJ Weighted Median Core CPI y/y 392060038
USD CB Consumer Confidence Index 840180002
GBP Claimant Count Change 826010004
USD Core CPI m/m 840030006
GBP Core CPI m/m 826010043
CAD Core CPI m/m 124010005
EUR Core CPI m/m 999030010
CAD Core CPI y/y 124010006
USD Core CPI y/y 840030008
EUR Core CPI y/y 999030012
JPY Core CPI y/y 392030003
GBP Core CPI y/y 826010013
USD Core Durable Goods Orders m/m 840020014
JPY Core Machinery Orders m/m 392010009
JPY Core Machinery Orders y/y 392010010
USD Core PCE Price Index m/m 840010001
USD Core PPI m/m 840030002
GBP Core PPI Output m/m 826010009
GBP Core PPI Output y/y 826010010
USD Core PPI y/y 840030004
CAD Core Retail Sales m/m 124010008
GBP Core Retail Sales m/m 826010021
USD Core Retail Sales m/m 840020011
USD CPI m/m 840030005
GBP CPI m/m 826010011
CAD CPI m/m 124010003
EUR CPI m/m 999030011
CHF CPI m/m 756020001
AUD CPI q/q 36010014
NZD CPI q/q 0
JPY CPI s.a. m/m 392030010
EUR CPI y/y 999030013
JPY CPI y/y 392030001
CHF CPI y/y 756020002
USD CPI y/y 840030007
GBP CPI y/y 826010012
AUD CPI y/y 36010015
CAD CPI y/y 124010004
NZD CPI y/y 554010006
CAD Current Account 0
EUR Current Account 0
USD Current Account 0
GBP Current Account 0
AUD Current Account 0
NZD Current Account 0
USD Durable Goods Orders m/m 840020013
EUR ECB Deposit Facility Rate Decision 999010006
EUR ECB Interest Rate Decision 999010007
EUR ECB Marginal Lending Facility Rate Decision 999010015
USD EIA Crude Oil Stocks Change 840200001
USD EIA Natural Gas Storage Change 840200009
NZD Electronic Card Retail Sales m/m 554010001
NZD Electronic Card Retail Sales y/y 554010002
AUD Employment Change 36010003
CAD Employment Change 124010011
NZD Employment Change q/q 554010016
EUR Employment Change q/q 999030001
USD Existing Home Sales 840120001
EUR Export Price Index m/m 276010005
USD Export Price Index m/m 840030013
USD Export Price Index y/y 840030014
EUR Export Price Index y/y 276010006
EUR Factory Orders m/m 276010018
USD Factory Orders m/m 840020003
EUR Factory Orders y/y 276010019
USD Fed Interest Rate Decision 840050014
USD Federal Budget Balance 840150001
CAD Foreign Securities Purchases 124010019
GBP GDP 3m/3m 826010040
GBP GDP m/m 826010039
CAD GDP m/m 124010021
CHF GDP q/q 756040001
EUR GDP q/q 999030016
JPY GDP q/q 392010001
CAD GDP q/q 124010022
NZD GDP q/q 554010024
AUD GDP q/q 36010019
GBP GDP q/q 826010037
USD GDP q/q 840010007
GBP GDP y/y 826010038
NZD GDP y/y 554010025
AUD GDP y/y 36010020
CHF GDP y/y 756040002
EUR GDP y/y 999030017
JPY GDP y/y 392010003
CAD GDP y/y 124010035
EUR HICP m/m 380010003
JPY Household Spending y/y 392030008
USD Import Price Index m/m 840030011
EUR Import Price Index m/m 276010003
EUR Import Price Index y/y 276010004
USD Import Price Index y/y 840030012
EUR Industrial Production m/m 999030007
JPY Industrial Production m/m 392020006
GBP Industrial Production m/m 826010025
CHF Industrial Production y/y 756020006
EUR Industrial Production y/y 999030008
JPY Industrial Production y/y 392020007
GBP Industrial Production y/y 826010026
USD Initial Jobless Claims 840140001
CAD IPPI m/m 124010024
USD ISM Manufacturing PMI 840040001
USD ISM Non-Manufacturing PMI 840040003
CAD Ivey PMI 124020001
USD JOLTS Job Openings 840030021
JPY Labor Cash Earnings y/y 392050001
NZD Labor Cost Index q/q 554010017
NZD Labor Cost Index y/y 554010018
GBP Manufacturing Production m/m 826010027
GBP Manufacturing Production y/y 826010028
CAD Manufacturing Sales m/m 124010029
USD Michigan 5-Year Inflation Expectations 840210005
USD Michigan Consumer Expectations 840210002
USD Michigan Consumer Sentiment 840210001
USD Michigan Inflation Expectations 840210004
USD New Home Sales 840020008
USD New Home Sales m/m 840020009
USD Nonfarm Payrolls 840030016
USD Pending Home Sales m/m 840120003
USD Pending Home Sales y/y 840120004
GBP PPI Input m/m 826010005
NZD PPI Input q/q 554010022
GBP PPI Input y/y 826010006
CHF PPI m/m 756020003
EUR PPI m/m 999030005
USD PPI m/m 840030001
GBP PPI Output m/m 826010007
NZD PPI Output q/q 554010023
GBP PPI Output y/y 826010008
AUD PPI q/q 36010029
CHF PPI y/y 756020004
EUR PPI y/y 999030006
AUD PPI y/y 36010030
USD PPI y/y 840030003
AUD RBA Interest Rate Decision 36030008
AUD RBA Trimmed Mean CPI q/q 36030014
NZD RBNZ 2-Year Inflation Expectations 554020010
NZD RBNZ Interest Rate Decision 554020009
JPY Real Wage y/y 392050004
USD Retail Control m/m 840020012
USD Retail Sales m/m 840020010
GBP Retail Sales m/m 826010019
AUD Retail Sales m/m 36010012
CAD Retail Sales m/m 124010007
JPY Retail Sales m/m 392020002
EUR Retail Sales m/m 999030003
NZD Retail Sales q/q 554010019
AUD Retail Sales q/q 36010038
USD Retail Sales y/y 840020025
EUR Retail Sales y/y 999030004
NZD Retail Sales y/y 554010021
JPY Retail Sales y/y 392020003
GBP Retail Sales y/y 826010020
CHF Retail Sales y/y 756020007
CAD RMPI m/m 124010026
USD S&P Global Composite PMI 840500003
AUD S&P Global Composite PMI 36500003
EUR S&P Global Composite PMI 999500003
USD S&P Global Manufacturing PMI 840500001
AUD S&P Global Manufacturing PMI 36500001
CAD S&P Global Manufacturing PMI 124500001
EUR S&P Global Manufacturing PMI 999500001
USD S&P Global Services PMI 840500002
AUD S&P Global Services PMI 36500002
EUR S&P Global Services PMI 999500002
CHF SNB Interest Rate Decision 756010001
JPY Tokyo Core CPI y/y 392030006
JPY Tokyo CPI s.a. m/m 392030011
EUR Trade Balance 999030018
JPY Trade Balance 392040002
CAD Trade Balance 124010018
CHF Trade Balance 756030003
USD Trade Balance 840020001
GBP Trade Balance 826010029
AUD Trade Balance 36010011
NZD Trade Balance 554010009
NZD Unemployment Rate 554010014
CHF Unemployment Rate 756040003
CAD Unemployment Rate 124010014
USD Unemployment Rate 840030015
AUD Unemployment Rate 36010006
EUR Unemployment Rate 999030020
JPY Unemployment Rate 392030007
GBP Unemployment Rate 826010003
CAD Wholesale Trade m/m 124010031