Commit 9845b193 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/ticker' into 'master'

协程 See merge request !100
parents e8d2dd8c ffa1b5ff
...@@ -41,7 +41,8 @@ class ExchangeBusiness ...@@ -41,7 +41,8 @@ class ExchangeBusiness
12 => 'Boc', 12 => 'Boc',
13 => 'Ex', 13 => 'Ex',
14 => 'Zt', 14 => 'Zt',
15 => 'Tsc' 15 => 'Tsc',
16 => 'Binance'
]; ];
/** /**
...@@ -279,8 +280,11 @@ class ExchangeBusiness ...@@ -279,8 +280,11 @@ class ExchangeBusiness
/** /**
* @var $exchange \common\service\exchange\ExchangeInterface * @var $exchange \common\service\exchange\ExchangeInterface
*/ */
$exchange = ExchangeFactory::createExchange($exchange); go(function () use ($exchange) {
$exchange->setQuotation(); \Co::sleep(0.5);
$exchange = ExchangeFactory::createExchange($exchange);
$exchange->setQuotation();
});
} }
} }
......
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