stocks

command module
v0.0.0-...-c6fc1b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Unlicense Imports: 11 Imported by: 0

README

Stock price (+currency) alerts

Simple utility that uses the polygon.io API to check for the last day's traded value of a stock, and fail if the price is above a certain threshold for a given currency.

Why?

I wanted a simple tool that would alert me when some stock was above a certain price for a given currency and couldn't find anything online that did it.

How?

API_KEY=<your polygon.io API key (free tier limited to 5 RPM)> go run . --ticker=GOOGL --want_min_price=150CHF

Here GOOGL is traded in USD, when the stock goes over 150CFH according to the same polygon API (last close price), the program will exit with a non 0 status code.

You can couple that exit behavior with a crontab or monit cron job and get alerted this way.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL