File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ private function getApiType($url) {
77
77
return 'btce ' ;
78
78
} else if (preg_match ('/cryptsy.com/ ' , $ url )) {
79
79
return 'cryptsy ' ;
80
+ } else if (preg_match ('/cryptopia.co.nz/ ' , $ url )) {
81
+ return 'cryptopia ' ;
80
82
} else if (preg_match ('/cryptorush.in/ ' , $ url )) {
81
83
return 'cryptorush ' ;
82
84
} else if (preg_match ('/mintpal.com/ ' , $ url )) {
@@ -112,6 +114,9 @@ public function getPrice() {
112
114
case 'cryptsy ' :
113
115
return @$ aData ['return ' ]['markets ' ][$ strCurrency ]['lasttradeprice ' ];
114
116
break ;
117
+ case 'cryptopia ' :
118
+ return @$ aData ['Data ' ]['LastPrice ' ];
119
+ break ;
115
120
case 'cryptorush ' :
116
121
return @$ aData ["$ strCurrency/ " . $ this ->config ['price ' ]['currency ' ]]['last_trade ' ];
117
122
break ;
You can’t perform that action at this time.
0 commit comments