Commit 8d430edf authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/ticker' into 'master'

ticker See merge request !485
parents 360942ec f96929d0
...@@ -174,7 +174,7 @@ class ExchangeBusiness ...@@ -174,7 +174,7 @@ class ExchangeBusiness
goto doEnd; goto doEnd;
} }
if (strtoupper($tag) == 'LZ') { if (in_array(strtoupper($tag), ['LZ', 'DTM', 'CNNY'])) {
$quotation = [ $quotation = [
'low' => 1, 'low' => 1,
'high' => 1, 'high' => 1,
...@@ -184,14 +184,14 @@ class ExchangeBusiness ...@@ -184,14 +184,14 @@ class ExchangeBusiness
goto doEnd; goto doEnd;
} }
if (strtoupper($tag) == 'ZUE') { // if (strtoupper($tag) == 'ZUE') {
$quotation = [ // $quotation = [
'low' => 0.1, // 'low' => 0.1,
'high' => 0.1, // 'high' => 0.1,
'last' => 0.1, // 'last' => 0.1,
]; // ];
goto doEnd; // goto doEnd;
} // }
if (in_array(strtoupper($tag), ['SZHB', 'FK'])) { if (in_array(strtoupper($tag), ['SZHB', 'FK'])) {
$quotation = [ $quotation = [
...@@ -218,13 +218,21 @@ class ExchangeBusiness ...@@ -218,13 +218,21 @@ class ExchangeBusiness
} }
$f = false; $f = false;
$quotation = []; $quotation = [];
if (in_array(strtoupper($tag), ['LELE'])) { if (in_array(strtoupper($tag), ['LELE', 'ZUE'])) {
if (strtoupper($tag) == 'LELE') {
$exchange = ExchangeFactory::createExchange("Wbf"); $exchange = ExchangeFactory::createExchange("Wbf");
$quotation = $exchange->getTicker($tag, 'USDT'); $quotation = $exchange->getTicker($tag, 'USDT');
}
if (strtoupper($tag) == 'ZUE') {
$quotation = [
'low' => 0.1,
'high' => 0.1,
'last' => 0.1,
];
}
goto doEnd; goto doEnd;
} }
if (in_array(strtoupper($tag), ['GLCW'])) { if (in_array(strtoupper($tag), ['GLCW'])) {
$exchange = ExchangeFactory::createExchange("Jinwang"); $exchange = ExchangeFactory::createExchange("Jinwang");
$quotation = $exchange->getTicker($tag, 'USDT'); $quotation = $exchange->getTicker($tag, 'USDT');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment