Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Chart & Classify Bittrex Coins
#!/usr/bin/env bash
# COINS=( 1ST 2GIVE ABY ADA ADT ADX AEON AGRS AMP ANT )
COINS=( 1ST 2GIVE ABY ADA ADT ADX AEON AGRS AMP ANT \
APX ARDR ARK AUR BAT BAY BCC BCY BITB BLITZ \
BLK BLOCK BNT BRK BRX BSD BTC BTCD BTG BURST \
BYC CANN CFI CLAM CLOAK CLUB COVAL CPC CRB CRW \
CURE CVC DASH DCR DCT DGB DMD DNT DOGE DOPE DTB \
DYN EBST EDG EFL EGC EMC EMC2 ENG ENRG ERC ETC \
ETH EXCL EXP FAIR FCT FLDC FLO FTC FUN GAM GAME \
GBG GBYTE GCR GLD GNO GNT GOLOS GRC GRS GUP HMQ \
INCNT INFX IOC ION IOP KMD KORE LBC LGD LMC LSK \
LTC LUN MAID MANA MCO MEME MER MLN MONA MUE MUSIC \
MYST NAV NBT NEO NEOS NLG NMR NXC NXS NXT OK OMG \
OMNI PART PAY PDC PINK PIVX PKB POT POWR PPC PTC \
PTOY QRL QTUM QWARK RADS RBY RCN RDD REP RISE RLC \
SALT SBD SC SEQ SHIFT SIB SLR SLS SNRG SNT SPHR \
SPR START STEEM STORJ STRAT SWT SYNX SYS THC TIX \
TKS TRST TRUST TX UBQ UKG UNB VIA VIB VOX VRC VRM \
VTC VTR WAVES WINGS XCP XDN XEL XEM XLM XMG XMR \
XMY XRP XST XVC XVG XWC XZC ZCL ZEC ZEN SWIFT GEO )
BUMPS=()
SPIKES=()
RISING=()
FALLING=()
BORING=()
for COIN in "${COINS[@]}"; do
bitcoin-chart-cli --coin $COIN -d 35 -w 120 -h 20 --currency BTC
echo -n " (1) Bumps (2) Spikes (3) Rising (4) Falling (5) Boring"
read -n 1 -s -r behaviour
case $behaviour in
1)
BUMPS+=(${COIN})
;;
2)
SPIKES+=(${COIN})
;;
3)
RISING+=(${COIN})
;;
4)
FALLING+=(${COIN})
;;
5)
BORING+=(${COIN})
;;
esac
done
echo -ne "\n\n BUMPY: ${BUMPS[*]}\n"
echo -ne "\n\n SPIKY: ${SPIKES[*]}\n"
echo -ne "\n\n RISING: ${RISING[*]}\n"
echo -ne "\n\n FALLING: ${FALLING[*]}\n"
echo -ne "\n\n BORING: ${BORING[*]}\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.