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 6cc9cba commit 77687d9Copy full SHA for 77687d9
include/classes/tools.class.php
@@ -93,6 +93,8 @@ private function getApiType($url) {
93
return 'binance';
94
} else if (preg_match('/southxchange.com/', $url)) {
95
return 'southxchange';
96
+ } else if (preg_match('/mercatox.com/', $url)) {
97
+ return 'mercatox';
98
}
99
$this->setErrorMessage("API URL unknown");
100
return false;
@@ -149,6 +151,9 @@ public function getPrice() {
149
151
case 'southxchange':
150
152
return @$aData['Last'];
153
break;
154
+ case 'mercatox':
155
+ return @$aData["{$strBase}_{$strQuote}"]['last'];
156
+ break;
157
158
} else {
159
$this->setErrorMessage("Got an invalid response from ticker API");
0 commit comments