function getLatest($exchange) { global $btx_latest; global $polo_latest; setLatest($exchange); $latest = null; if ($exchange == 'polo') { $latest = $polo_latest; } else { if ($exchange == 'btx') { $latest = $btx_latest; } } return $latest; }
function getLatest($exchange) { global $btce_latest; global $bfx_latest; global $stamp_latest; global $okc_latest; global $huobi_latest; setLatest($exchange); $latest = null; if ($exchange == 'bfx') { $latest = $bfx_latest; } else { if ($exchange == 'btce') { $latest = $btce_latest; } else { if ($exchange == 'bs') { $latest = $stamp_latest; } else { if ($exchange == 'okc') { $latest = $okc_latest; } else { // gox lol } } } } return $latest; }