⚡ qtrn ⚡
The official cli tool for making financial markets analysis as fast as you are.
Pronounced "quote-tron" as a throwback to those awesome financial terminals of the 80's. This project is intended as a living example of the capabilities of the finance-go library.
The current available commands are:
quote- prints tables of quotes to the current shell
options- prints tables of options contract quotes to the current shell
write- writes tables of quotes/history to csv files
chart- (beta) prints a nifty sparkline chart of security for various time frames
In order to use this awesome tool, you'll need to get it on your machine!
If you're on macOS, the easiest way to get qtrn is through the homebrew tap.
brew tap piquette/qtrn brew install qtrn
- Head over to the official releases page
- Determine the appropriate distribution for your operating system (mac | windows | linux)
- Download and untar the distribution. Shortcut for macs:
curl -sL https://github.com/piquette/qtrn/releases/download/v0.0.8/qtrn_0.0.8_darwin_amd64.tar.gz | tar zx
- Move the binary into your local
qtrn is built in Go.
go get the source repo, like this:
go get github.com/piquette/qtrn
$GOPATH is configured, and git is setup to know your credentials, in a few moments the command should complete with no output. The repository will exist under
Run the command
qtrn in your shell for the list of possible commands.
The preferred way to build qtrn for development is using
make build && qtrn help.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request :)
Release builds are generated with goreleaser. Make sure you have the software
GITHUB_TOKEN: set in your env.
go get -u github.com/goreleaser/goreleaser export GITHUB_TOKEN=...
Commit changes and tag
git tag v[NEW_VERSION_NUMBER] git push origin --tags
Then run goreleaser and you're done! Check releases (it also pushes to the Homebrew tap).
There is no documentation for this package.