This app will send you alert if crypto hit a price that you want. Using JSON file to determine which crypto you want to watch, what price that you want to watch, what email that you want to receive the email.
- Clone this repo
- Copy
.env.example
to.env
- Fill
.env
file with you own credentials - Create
alert.json
and fill the file with array of data below - Create
alias.json
and fill the file with object of data below. This must be filled if you're not using default price vendor andpair
value is different than default price vendorpair
value - Build the application with
go build main.go
- This app already build with scheduler, so you just need to adjust the time.
- Mailgun
- Fill
MAILGUN_SENDER
,MAILGUN_DOMAIN
andMAILGUN_API_KEY
in.env
file
- Fill
[
{
"email": "example@example.com",
"ticker": "HNST",
"pair": "hnstidr",
"price": 130,
"enabled": true
}
]
{
"coingecko": {
"hnstidr": "honest-mining"
}
}
- Please run
go build main.go
every time you changesalert.json
file
- Add coingecko as price vendor
- Create
tickers.json
to save supported ticker. - Create
{ticker}.json
file to save email for every ticker - Explore another way to send alert
- Add alert when price above/below price
- Add testing
- Add multiple currency
- Setup database
- Add sendgrid as mail vendor