diff --git a/include/classes/tools.class.php b/include/classes/tools.class.php index 13e983aa..f0eb8694 100644 --- a/include/classes/tools.class.php +++ b/include/classes/tools.class.php @@ -95,6 +95,8 @@ class Tools extends Base { return 'southxchange'; } else if (preg_match('/mercatox.com/', $url)) { return 'mercatox'; + } else if (preg_match('/tradeogre.com/', $url)) { + return 'tradeogre'; } $this->setErrorMessage("API URL unknown"); return false; @@ -154,6 +156,9 @@ class Tools extends Base { case 'mercatox': return @$aData["{$strBase}_{$strQuote}"]['last']; break; + case 'tradeogre': + return @$aData['price']; + break; } } else { $this->setErrorMessage("Got an invalid response from ticker API");