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.
2 parents 6860040 + daf0703 commit b0e0789Copy full SHA for b0e0789
public/include/classes/tools.class.php
@@ -57,6 +57,8 @@ private function getApiType($url) {
57
return 'cryptsy';
58
} else if (preg_match('/cryptorush.in/', $url)) {
59
return 'cryptorush';
60
+ } else if (preg_match('/mintpal.com/', $url)) {
61
+ return 'mintpal';
62
}
63
$this->setErrorMessage("API URL unknown");
64
return false;
@@ -89,6 +91,9 @@ public function getPrice() {
89
91
case 'cryptorush':
90
92
return @$aData["$strCurrency/" . $this->config['price']['target']]['last_trade'];
93
break;
94
+ case 'mintpal':
95
+ return @$aData['0']['last_price'];
96
+ break;
97
98
} else {
99
$this->setErrorMessage("Got an invalid response from ticker API");
0 commit comments