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 79d9d08 commit 6cc9cbaCopy full SHA for 6cc9cba
include/classes/tools.class.php
@@ -91,6 +91,8 @@ private function getApiType($url) {
91
return 'yobit';
92
} else if (preg_match('/binance.com/', $url)) {
93
return 'binance';
94
+ } else if (preg_match('/southxchange.com/', $url)) {
95
+ return 'southxchange';
96
}
97
$this->setErrorMessage("API URL unknown");
98
return false;
@@ -144,6 +146,9 @@ public function getPrice() {
144
146
case 'binance':
145
147
return @$aData['price'];
148
break;
149
+ case 'southxchange':
150
+ return @$aData['Last'];
151
+ break;
152
153
} else {
154
$this->setErrorMessage("Got an invalid response from ticker API");
0 commit comments