Giter VIP home page Giter VIP logo

clistocks's Introduction

clistocks

Simple python 2.7 scripts to get stocks with graphs in cli. Dataset from Financial Times Markets.

Sample:

Use issueId directly

print Security("36276")

Or search for it using the Searcher

print Security(str(Searcher('GOOG')))

Include exchange for better result

print Security(str(Searcher('TSLA:NSQ')))

Sample output:

Apple Inc
Current value: 212.46 USD
Latest change: -0.18 (-0.08%)
  213.04  ┤                       
  209.76  ┤     ╭╮             ╭─ 
  206.47  ┼─────╯╰╮      ╭╮  ╭─╯  
  203.19  ┤       ╰╮  ╭╮ ││ ╭╯    
  199.91  ┤        │ ╭╯╰─╯╰─╯     
  196.62  ┤        │╭╯            
  193.34  ┤        ╰╯             

Alphabet Inc
Current value: 1189.53 USD
Latest change: -1.72 (-0.14%)
 1250.41  ┤  ╭╮                   
 1230.70  ┤  │╰─╮                 
 1210.98  ┤  │  ╰─╮   ╭╮ ╭╮  ╭╮   
 1191.26  ┤  │    ╰╮ ╭╯╰─╯│ ╭╯╰── 
 1171.55  ┤  │     ╰─╯    ╰─╯     
 1151.84  ┼──╯                    
 1132.12  ┤                       

Tesla Inc
Current value: 222.15 USD
Latest change: 1.32 (0.59%)
  264.88  ┤╭╮                     
  256.67  ┼╯│                     
  248.47  ┤ │  ╭─╮                
  240.26  ┤ │ ╭╯ ╰─╮ ╭──╮╭╮       
  232.05  ┤ ╰─╯    ╰─╯  ╰╯│  ╭─╮╭ 
  223.85  ┤               ╰──╯ ╰╯ 
  215.64  ┤                       

clistocks's People

Contributors

christiandt avatar

Stargazers

Rolf Erik Lekang avatar

Watchers

 avatar James Cloos 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.