Giter VIP home page Giter VIP logo

quandl-stock-api's Introduction

quandl-stock-api

Provide the stock information for the given dates & stock

Steps to run the apllication

  1. Clone the repo and cd quandl-stock-api
  2. bundle - to install the require gems
  3. mailcatcher - to check the mails in locally
  4. Get the api from the quandl api doc eg: 8tREfmA_XXXXXXXXXX
  5. rspec is for unit test coverage
  6. rubycritic will you the code quality report - mine (93.41/100)
  7. Incorporate the rubocop for the code analyzer and formatter

Sample

Input :

API_KEY=XXXX ruby stock.rb AAPL Jan 1 2018 - Jan 5 2018

Output:

02.01.18: Closed at 172.26 (169.26 ~ 172.3)

03.01.18: Closed at 172.23 (171.96 ~ 174.55)

04.01.18: Closed at 173.03 (172.08 ~ 173.47)

05.01.18: Closed at 175.0 (173.05 ~ 175.37)

First 3 Drawdowns:

-1.8% (172.3 on 02.01.18 -> 169.26 on 02.01.18)

-1.5% (174.55 on 03.01.18 -> 171.96 on 03.01.18)

-1.3% (175.37 on 05.01.18 -> 173.05 on 05.01.18)

Maximum drawdown: -1.8% (172.3 on 02.01.18 -> 169.26 on 02.01.18)

Return: 2.740000000000009 [+1.6%] (172.26 on 02.01.18 -> 175.0 on 05.01.18)

quandl-stock-api's People

Contributors

raj-odc avatar

Watchers

Selvaraj avatar

Forkers

raj-odc

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.