Commit a80bea2d authored by shajiaiming's avatar shajiaiming

火币行情增加开盘价格

parent 85dc5d87
......@@ -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