Skip to content

Commit 400a05b

Browse files
committed
Merge pull request #2478 from Kasvain/development
Add C-CEX API support
2 parents a5b51df + 61e6ed2 commit 400a05b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

include/classes/tools.class.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ private function getApiType($url) {
8181
return 'cryptorush';
8282
} else if (preg_match('/mintpal.com/', $url)) {
8383
return 'mintpal';
84+
} else if (preg_match('/c-cex.com/', $url)) {
85+
return 'c-cex';
8486
} else if (preg_match('/bittrex.com/', $url)) {
8587
return 'bittrex';
8688
}
@@ -118,7 +120,10 @@ public function getPrice() {
118120
case 'mintpal':
119121
return @$aData['0']['last_price'];
120122
break;
121-
case 'bittrex':
123+
case 'c-cex':
124+
return @$aData['ticker']['lastprice'];
125+
break;
126+
case 'bittrex':
122127
return @$aData['result']['Last'];
123128
break;
124129
}

0 commit comments

Comments
 (0)