Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deifyed/stock-notifier
Pushes stock price target notifications to Gotify
https://github.com/deifyed/stock-notifier
gotify stock-market
Last synced: 25 days ago
JSON representation
Pushes stock price target notifications to Gotify
- Host: GitHub
- URL: https://github.com/deifyed/stock-notifier
- Owner: deifyed
- License: mit
- Created: 2021-05-16T15:36:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-16T20:15:27.000Z (over 3 years ago)
- Last Synced: 2024-06-21T08:07:07.178Z (7 months ago)
- Topics: gotify, stock-market
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build and deploy](https://github.com/deifyed/stock-notifier/actions/workflows/release.yml/badge.svg)](https://github.com/deifyed/stock-notifier/actions/workflows/release.yml)
# stock-notifier
Pushes stock price target notifications to Gotify## Usage
### Define the required environment variables
```shell
# PUSH_SERVER_URL is the URL your Gotify instance is accepting connections on.
export PUSH_SERVER_URL="https://push.mydomain.io/message?token=atoken"# SYMBOLS is the symbols you want the stock-notifier to watch.
export SYMBOLS="ABC,DEF"# _TARGETS is the price targets the stock-notifier should notify you for.
# Use the '-' postfix for less than the target or the '+' postfix for more than the target.
export ABC_TARGETS="121+,80-" # Will notify you when the price for ABC reaches more than 121 or less than 80.
export DEF_TARGETS="42-,44+" # Will notify you when the price for DEF reaches more than 44 or less than 42.
```### Build and run the stock-notifier
```shell
# Clone
git clone [email protected]:deifyed/stock-notifier.git && cd stock-notifier# Build
go build main.go# Run
./stock-notifier
```