Commit 7e7c9aa0 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/ticker' into 'master'

火币行情增加开盘价格 See merge request !98
parents 85dc5d87 a80bea2d
......@@ -15,7 +15,7 @@ class HuoBi extends Exchange implements ExchangeInterface
{
protected $supported_symbol = 'supported_symbol_huobi';
protected $quotation_prefix = 'quotation_huobi_';
protected $base_url = 'https://api.huobi.pro';
protected $base_url = 'https://api.huobi.pro';
public function formatSymbol($tag = 'BTC', $aim = 'USDT')
{
......@@ -45,7 +45,7 @@ class HuoBi extends Exchange implements ExchangeInterface
$datas = $res['data'];
foreach ($datas as $item) {
$key = $this->quotation_prefix . $item['symbol'];
$this->redis->hmset($key, 'low', $item['low'], 'high', $item['high'], 'last', $item['close']);
$this->redis->hmset($key, 'low', $item['low'], 'high', $item['high'], 'last', $item['close'], 'open', $item['open']);
$this->redis->sadd($this->supported_symbol, $item['symbol']);
}
}
......
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