Git Product home page Git Product logo

economic-calendar-api's Introduction

(Forex) Economic Calendar API

PHP Composer

An API endpoint made in PHP that was implemented to give, as fast as possible, a JSON response with the economic calendar of events, commonly used in Forex.

It uses the investing.com as data source and using a "web crawling" methodology, revelant data is captured and returned in a more well-structured data model, in this case it will return a JSON.

There is no guarantees about the availability or estability of this API, changes can be done in source page that can result in a crash of the web crawler.

It was concepted to be the most simple as possible to be easy to maintain and use.

Demo

A demo available is here (Can be broken, free server can be deleted)

Play

After just clone this repository you can copy that just right away to your PHP server. You can use XAMPP for example for this: https://www.apachefriends.org/download.html (Put it in htdocs folder and start PHP server) or any other you prefer.

How to use:

Just checkout or download this repository and copy this folder to your favorite PHP server. Probably your url in a PHP server with common default configurations, will be available:

http://localhost/economic-calendar-api

And you will see a JSON as response like this:

[
  {
    "economy": "NZD",
    "impact": 1,
    "data": "2018-09-09 22:45:00",
    "name": "Manufacturing Sales Volume (QoQ) (Q2)",
    "actual": "-1.2%",
    "forecast": "",
    "previous": "1.4%"
  },
  ...
]

Tip: If you want, you are able to host it in almost free webhosts to make it online and available on the internet. https://www.freehosting.com/ or https://www.000webhost.com/ and many others.

economic-calendar-api's People

Contributors

andrevlima avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.