From 6ff468a15288ee02ab6a577c3a30fa11c0356ed0 Mon Sep 17 00:00:00 2001 From: Brian Ziemek Date: Sun, 18 Mar 2018 03:40:49 -0400 Subject: [PATCH] Add TradeOgre ticker API --- include/classes/tools.class.php | 5 +++++ 1 file changed, 5 insertions(+) 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");