| name | moonpay-price-alerts |
| description | Set up desktop price alerts that notify you when tokens hit target prices. Observe-only — no trading, just notifications. |
| tags | ["alerts","research"] |
Price alerts
Goal
Monitor token prices and get desktop notifications when they cross a threshold. Uses mp token retrieve for price checks and OS notifications (osascript/notify-send) for alerts. Observe-only — no funds at risk.
Prerequisites
mp binary on PATH: which mp
jq installed: which jq
- macOS:
osascript (built-in) or Linux: notify-send (sudo apt install libnotify-bin)
One-shot alert
"Tell me when SOL drops below $80" — checks every 5 minutes, fires once, then disables itself.
Script: ~/.config/moonpay/scripts/alert-sol-below-80.sh
#!/bin/bash
set -euo pipefail
MP="$(which mp)"
LOG="$HOME/.config/moonpay/logs/alerts.log"
mkdir -p "$(dirname "$LOG")"
() { >> ; }
TOKEN=
CHAIN=
SYMBOL=
TARGET=80
DIRECTION=
SCRIPT_NAME=
PRICE=$( -f compact token retrieve --token --chain | jq -r )
[ -z ] || [ = ];
0
TRIGGERED=
[ = ] && (( $(echo " < " | bc -l) ));
TRIGGERED=
[ = ] && (( $(echo " > " | bc -l) ));
TRIGGERED=
[ = ];
MSG=
[[ == * ]];
osascript -e
notify-send
[[ == * ]];
launchctl unload 2>/dev/null ||
crontab -l | grep -v | crontab -