GithubHelp home page GithubHelp logo

samwarfield / stockreader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from julianespinel/stockreader

0.0 1.0 0.0 154 KB

Read stock data from the US stock market.

License: MIT License

Shell 0.60% Python 99.40%

stockreader's Introduction

Stockreader

Build Status Coverage Status

Read stock data from the US stock market.

Description

Stockreader is a system that retrieves current stock data and historical stock data from the US stock market.

The system executes this steps automatically at start-up:

  1. Read the stocks from the files listed in the config-*.toml file.
  2. Save the stocks of the step one into the DB.
  3. Download and save the stock historical data of the past ten years.

Additionally the system repeat the following tasks in different period of times:

  1. Download and save the stocks current data every one hour.
  2. Download and save the stocks historical data of the past week every day at 18:00.
  3. Download and save the stock historical data of the past ten years every last day of the month at 23:00.

This recurring tasks guarantee that the system has the historical stock data of at least the last 10 years.

Installation

1. Dependencies

The only two dependencies stockreader needs to install are:

  1. docker-engine (It will automatically install docker-compose in Windows and OS X. If you are using Linux please go to step 2 of this list)
  2. docker-compose

2. Installation steps

Please copy and paste this commands in the terminal:

  1. git clone [email protected]:julianespinel/stockreader.git
  2. cd stockreader/scripts
  3. sh start-docker.sh

Now open a web browser and go to: http://localhost:5000/stockreader/admin/ping
If you can see pong in the web browser, then Stockreader is being correctly installed.

Tests

  1. Run all Tests: nosetests
  2. Run a single test file: nosetests test/job_test.py

How to use?

Stockreader has a simple HTTP API, with it you can request stock current data and historical data.
Please refer to the API documentation. * link.

API docs

To generate API docs please follow this steps:

  1. npm install -g aglio
  2. cd docs/
  3. aglio -i input.apib -s
  4. http://localhost:3000

stockreader's People

Contributors

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