Git Product home page Git Product logo

ticks's Introduction

ticks

Simple command line tool for displaying stock data in the command line

Installation

pip install ticks

or if you plan on developing or monkey-patching:

pip install -e {ticks directory}

Usage

ticks aapl goog ^spx ^FTSE

Note: all arguments must be Yahoo Finance URL parameters for the symbol

Results

$ ticks VTI VXUS BND ^SPX ^FTSE ^BCOM VNQ
Name                             Symbol        Price     Open    Change  Change%
-------------------------------  --------  ---------  -------  --------  ---------
Vanguard Total Stock Market ETF  VTI        102.97     102.9     0.23    +0.22%
Vanguard Total International St  VXUS        44.25      44.34   -0.08    -0.18%
Vanguard Total Bond Market ETF   BND         80.82      80.76    0.1     +0.12%
S&P 500                          ^SPX      2016.71    2013.78    4.05    +0.20%
FTSE 100                         ^FTSE     6137.24    6093.43   43.81    +0.72%
Dow Jones-UBS Commodity Index    ^BCOM       77.6628   100.01   -0.2426  -0.3114%
Vanguard REIT ETF - DNQ          VNQ         80.29      78.8     1.52    +1.93%

Monkey Patching

You can change the data returned from Yahoo with the cryptic query parameter at the end of the URL: &f=nsl1oc1p2.

For all of the possible fields, see https://code.google.com/p/yahoo-finance-managed/wiki/enumQuoteProperty (this list seems to be out of date...)

You'll want to update the headers passed to tabulate() as well.

ticks's People

Contributors

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