Commit 2ca1de03 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/ticker' into 'master'

fix See merge request !91
parents 63e0d6f5 1c2c93d7
...@@ -56,7 +56,7 @@ class Zt extends Exchange implements ExchangeInterface ...@@ -56,7 +56,7 @@ class Zt extends Exchange implements ExchangeInterface
{ {
$curl = new Curl(); $curl = new Curl();
$content = $curl->get($this->base_url, false); $content = $curl->get($this->base_url, false);
if (is_array($content) && isset($content['date']) && isset($content['ticker'])) { if (is_array($content) && isset($content['ticker'])) {
$data = $content['ticker']; $data = $content['ticker'];
foreach ($data as $item) { foreach ($data as $item) {
if (in_array($item['symbol'], ['CIC_USDT'])) { if (in_array($item['symbol'], ['CIC_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