Evaluated proc getcoindata:btce {coin currency} {set data [jsget http://irc.gangnet.org/btce.php?a=[lower $coin]&b=[lower $currency]]; if {$data == {"error" "invalid pair"}} {return "null"} else {return $data};}