descriptionAlert when cryptocurrencies become more or less expensive.
owneroskarsh@riseup.net
last changeThu, 13 May 2021 23:38:57 +0000 (14 02:38 +0300)
content tags
add:
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.
shortlog
2021-05-13 Oskar SharipovAdd message supportmaster
2021-02-07 Oskar SharipovAsk for quotes by cryptocurrency/quotes/latest
2021-02-06 Oskar SharipovIncrease limit of the request to listings
2021-02-04 Oskar SharipovFix git-ignoring my config
2021-02-04 Oskar SharipovRemove duplicates from the output
2021-02-02 Oskar SharipovForce to specify key in stdin
2021-02-02 Oskar SharipovRename a script to cryptoalert
2021-02-02 Oskar SharipovNote hjson requirement
2021-02-02 Oskar SharipovBeautify readme and file organisation
2021-02-01 Oskar SharipovMake echo.py executable
2021-02-01 Oskar SharipovWrite readme and fix sample.hjson
2021-02-01 Oskar SharipovFix an error when a key is invalid
2021-02-01 Oskar SharipovInit
heads
2 years ago master