base_url . '/v1/hadax/common/symbols'; $res = $this->ch->get($api, false);//json if ($res && $res['status'] == 'ok') { $data = $res['data']; foreach ($data as $item) { $this->redis->sadd($this->supported_symbol, $this->formatSymbol($item['base-currency'], $item['quote-currency'])); } } } }