A CLI tool for querying S&P500 financial statements
--init string
Initialize DB (./statements.db) with JSON filepath
--query string
Supported query
docker run rreinold/vroomberg:1.0.0 vroomberg --query "TSLA *"
- 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 *"
- Run queries
docker run --name vroomberg -v $(PWD):/go/src/app rreinold/vroomberg:dev vroomberg --query "TSLA *"
- Initialize (takes several min)
go get
CGO_ENABLED=1 go install
vroomberg --init ./init.json
- Run queries
vroomberg --query "TSLA *"
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 * |
- Known Issue: Query Type #4 works only if same keys are used every year
- Performance: Bulk INSERT for initializing DB
- DevOps: Separate build and production Docker images
- Feature: Update representation of floats into decimals to match financial domain
- QA: Add more units tests
- QA: Add system tests