description | Alert when cryptocurrencies become more or less expensive. |
owner | oskarsh@riseup.net |
last change | Thu, 13 May 2021 23:38:57 +0000 (14 02:38 +0300) |
URL | git://repo.or.cz/cryptoalert.git |
| https://repo.or.cz/cryptoalert.git |
push URL | ssh://repo.or.cz/cryptoalert.git |
| https://repo.or.cz/cryptoalert.git (learn more) |
bundle info | cryptoalert.git downloadable bundles |
content tags
|
|
readme
Alert when cryptocurrencies become more or less expensive.
Powered by coinmarketcap.com. Get its API key before executing a script.
Example
=======
sample.hjson file is
key: 1234-5678
watch: [
{
symbol: ETH
when: >2000
}
{
symbol: ETH
when: <100
}
{
symbol: BTC
when: >15000
}
{
symbol: ZEC
when: >60
}
// I don't believe in USDT.
{
symbol: USDT
when: <0.9
}
{
symbol: USDT
when: >1.1
}
]
Launch script like this
python cryptoalert < sample.hjson
Possible output is
BTC costs more than it was expected. Its current price is 33444.1234 USD.
ZEC costs more than it was expected. Its current price is 85.1267 USD.
Nothing is being said about ETH and USDT as their prices are not in specified
limits. Nothing can be printed as well.