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
goto doEnd;
}
if (strtoupper($tag) == 'LZ') {
if (in_array(strtoupper($tag), ['LZ', 'DTM', 'CNNY'])) {
$quotation = [
'low' => 1,
'high' => 1,
......@@ -184,14 +184,14 @@ class ExchangeBusiness
goto doEnd;
}
if (strtoupper($tag) == 'ZUE') {
$quotation = [
'low' => 0.1,
'high' => 0.1,
'last' => 0.1,
];
goto doEnd;
}
// if (strtoupper($tag) == 'ZUE') {
// $quotation = [
// 'low' => 0.1,
// 'high' => 0.1,
// 'last' => 0.1,
// ];
// goto doEnd;
// }
if (in_array(strtoupper($tag), ['SZHB', 'FK'])) {
$quotation = [
......@@ -218,13 +218,21 @@ class ExchangeBusiness
}
$f = false;
$quotation = [];
if (in_array(strtoupper($tag), ['LELE'])) {
$exchange = ExchangeFactory::createExchange("Wbf");
$quotation = $exchange->getTicker($tag, 'USDT');
if (in_array(strtoupper($tag), ['LELE', 'ZUE'])) {
if (strtoupper($tag) == 'LELE') {
$exchange = ExchangeFactory::createExchange("Wbf");
$quotation = $exchange->getTicker($tag, 'USDT');
}
if (strtoupper($tag) == 'ZUE') {
$quotation = [
'low' => 0.1,
'high' => 0.1,
'last' => 0.1,
];
}
goto doEnd;
}
if (in_array(strtoupper($tag), ['GLCW'])) {
$exchange = ExchangeFactory::createExchange("Jinwang");
$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