Commit ab5d40db authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/ticker' into 'master'

fix See merge request !95
parents f870841c 7882ddce
......@@ -16,7 +16,6 @@ class Tsc extends Exchange implements ExchangeInterface
protected $quotation_prefix = 'quotation_tsc_';
protected $base_url = 'https://api.tsc100.vip/openapi/quote/v1/ticker/24hr';
public function symbolExists($tag = 'TSC', $aim = "CNDT")
{
$supported = $this->redis->smembers($this->supported_symbol);
......@@ -44,7 +43,7 @@ class Tsc extends Exchange implements ExchangeInterface
*/
public function setSupportedSymbol()
{
$this->redis->sadd($this->supported_symbol, 'TSCCNDT');
$this->redis->sadd($this->supported_symbol, 'TSC_CNDT');
}
/**
......@@ -60,7 +59,7 @@ class Tsc extends Exchange implements ExchangeInterface
foreach ($content as $item) {
if (in_array($item['symbol'], ['TSCCNDT'])) {
$data = $item;
$key = $this->quotation_prefix . $item['symbol'];
$key = $this->quotation_prefix .'TSC_CNDT';
$this->redis->hmset($key, 'low', $data['lowPrice'], 'high', $data['highPrice'], 'last', $data['lastPrice']);
$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