Giter Club home page Giter Club logo

eodconnector's Introduction

EODConnector

EODConnector is a Matlab script that connects you to the EOD Historical Data market datafeed API. Given an API token it can retrieve any historical data of any asset/stock in EOD datafeed.

Requirements

The JSONio libray is needed to properly read the EOD API data.

Also, you need a proper API token from EOD Historical Data.

Usage

This script is a plug-and-play script able to read prices data from EOD Historical Data API. Given a list of assets, an initial date and a final date this script is going to return you a list of structs will all data from any available asset.

An example of how to use it could be:

names = ["GSPC.INDX", "BCOMGC.INDX", "TNX.INDX", "AAPL.US"];
init_date = '2018-01-01';% 
fin_date = '2021-12-13';% 

Example

EOD provide a demo API key to retrieve info from AAPL and VTI: OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX

Then, we could do a simple script of how to retrieve info from AAPL and VTI from NASDAQ and combine it into the same timetable only keeping closing price of every day.

names = ["VTI.US", "AAPL.US"];
init_date = '2018-01-01';
fin_date = '2021-12-13';
calendar = [datetime(init_date):datetime(fin_date)];
prices_data = timetable(calendar(~isweekend(calendar))'); 

read_data = historicaldata(names, fecha_inicio, fecha_fin);

for c = 1:length(names)
    prices=[read_data{c}.close];
    dates=string({read_data{c}.date});
    datos_tt = timetable(datetime(dates'),prices');
    prices_data = outerjoin(prices_data, datos_tt);
end

eodconnector's People

Contributors

aguerrerolopez 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.