Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More tickers #2700

Merged
merged 13 commits into from
Mar 18, 2018
Prev Previous commit
Next Next commit
Correct "coinchoose" spelling in ticker code
  • Loading branch information
bziemek authored Mar 18, 2018
commit 8f33ceb3a4894fcb17850d76c132aafac4847764
4 changes: 2 additions & 2 deletions include/classes/tools.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getApi($url, $target, $auth=NULL) {
**/
private function getApiType($url) {
if (preg_match('/coinchoose.com/', $url)) {
return 'coinchose';
return 'coinchoose';
} else if (preg_match('/btc-e.nz/', $url)) {
return 'btce';
} else if (preg_match('/cryptopia.co.nz/', $url)) {
Expand Down Expand Up @@ -103,7 +103,7 @@ public function getPrice() {
// if api data is valid, extract price depending on API type
if (is_array($aData)) {
switch ($strApiType) {
case 'coinchose':
case 'coinchoose':
foreach ($aData as $aItem) {
if($strBase == $aItem[0])
return $aItem['price'];
Expand Down