/cryptoalert

Alert when cryptocurrencies become more or less expensive. Mirror of https://repo.or.cz/cryptoalert.git

Primary LanguagePythonApache License 2.0Apache-2.0

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.