We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77687d9 commit 6ff468aCopy full SHA for 6ff468a
include/classes/tools.class.php
@@ -95,6 +95,8 @@ private function getApiType($url) {
95
return 'southxchange';
96
} else if (preg_match('/mercatox.com/', $url)) {
97
return 'mercatox';
98
+ } else if (preg_match('/tradeogre.com/', $url)) {
99
+ return 'tradeogre';
100
}
101
$this->setErrorMessage("API URL unknown");
102
return false;
@@ -154,6 +156,9 @@ public function getPrice() {
154
156
case 'mercatox':
155
157
return @$aData["{$strBase}_{$strQuote}"]['last'];
158
break;
159
+ case 'tradeogre':
160
+ return @$aData['price'];
161
+ break;
162
163
} else {
164
$this->setErrorMessage("Got an invalid response from ticker API");
0 commit comments