Commit 45a6c1d6 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/ticker' into 'master'

foli行情 See merge request !74
parents 3371e3c3 f512e45b
...@@ -98,6 +98,13 @@ class ExchangeBusiness ...@@ -98,6 +98,13 @@ class ExchangeBusiness
$f = false; $f = false;
$quotation = []; $quotation = [];
if (in_array(strtoupper($tag), ['FOLI'])) {
$exchange = ExchangeFactory::createExchange("Ex");
$quotation = $exchange->getTicker($tag, 'USDT');
$quotation['rmb'] = (float)sprintf("%0.2f", $quotation['last']);
goto doEnd;
}
if (in_array(strtoupper($tag), ['GM', 'BSTC'])) { if (in_array(strtoupper($tag), ['GM', 'BSTC'])) {
$exchange = ExchangeFactory::createExchange("Token7"); $exchange = ExchangeFactory::createExchange("Token7");
$quotation = $exchange->getTicker($tag, 'HA'); $quotation = $exchange->getTicker($tag, 'HA');
......
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