Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Uniswap price alert
while sleep 60; do if [[ $(curl -s "" -d'{"query": "{tokenDayDatas(first: 1, orderBy: date, orderDirection: desc, where: { token: \"0xf7413489c474ca4399eee604716c72879eea3615\"}) { priceUSD } }"}' | jq -r '.data.tokenDayDatas[0].priceUSD' | tee /dev/tty | sed 's/$/ <= 1.2/' | bc) -eq "1" ]]; then say "buy APYS now"; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment