Skip to content

Commit daf0703

Browse files
committed
[UPDATE] added mintpal ticker api
1 parent 6860040 commit daf0703

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

public/include/classes/tools.class.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ private function getApiType($url) {
5757
return 'cryptsy';
5858
} else if (preg_match('/cryptorush.in/', $url)) {
5959
return 'cryptorush';
60+
} else if (preg_match('/mintpal.com/', $url)) {
61+
return 'mintpal';
6062
}
6163
$this->setErrorMessage("API URL unknown");
6264
return false;
@@ -89,6 +91,9 @@ public function getPrice() {
8991
case 'cryptorush':
9092
return @$aData["$strCurrency/" . $this->config['price']['target']]['last_trade'];
9193
break;
94+
case 'mintpal':
95+
return @$aData['0']['last_price'];
96+
break;
9297
}
9398
} else {
9499
$this->setErrorMessage("Got an invalid response from ticker API");

0 commit comments

Comments
 (0)