GithubHelp home page GithubHelp logo

vroomberg's Introduction

vroomberg

Overview

A CLI tool for querying S&P500 financial statements

Usage

  --init string
    	Initialize DB (./statements.db) with JSON filepath
  --query string
    	Supported query

Basic (Recommended)

Docker Hub, Preloaded DB

docker run rreinold/vroomberg:1.0.0 vroomberg --query "TSLA *"

Advanced

Docker, Initialize DB

  1. Initialize (takes several min)
docker build -t rreinold/vroomberg:dev .
docker run --name vroomberg -v $(PWD):/go/src/app rreinold/vroomberg:dev vroomberg --init ./init.json --query "TSLA *"
  1. Run queries
docker run --name vroomberg -v $(PWD):/go/src/app rreinold/vroomberg:dev vroomberg --query "TSLA *"

Bare Metal

Requires golang, and gcc

  1. Initialize (takes several min)
go get
CGO_ENABLED=1 go install
vroomberg --init ./init.json
  1. Run queries
vroomberg --query "TSLA *"

Query

Supported query types:

Type Desc Syntax Example
1 Returns all companies that meet criteria on most recent annual statement <KEY> [<,>] <VALUE> NetIncomeLoss < -400000000
2 Returns single value from a specific on most recent annual statement <COMPANY> <KEY> TSLA NetIncomeLoss
3 Generate ratios between two reported values from specific companies on most recent annual statement <COMPANY1> <KEY1> / <COMPANY2> <KEY2> TSLA NetIncomeLoss / TSLA OperatingLeasePayments
4 Returns all values from a specific company on most recent annual statement <COMPANY> * TSLA *

Roadmap

  1. Known Issue: Query Type #4 works only if same keys are used every year
  2. Performance: Bulk INSERT for initializing DB
  3. DevOps: Separate build and production Docker images
  4. Feature: Update representation of floats into decimals to match financial domain
  5. QA: Add more units tests
  6. QA: Add system tests

vroomberg's People

Contributors

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