中国电信股票股吧 (中国电信股票601728)

访客 8 0

(中国电信股票代码:601728)

当前价格:

涨跌幅:

开盘价:

最高价:

最低价:

成交量:

市值:

新闻

  • 中国电信公布2023年业绩预告,预计实现净利润同比增长10%-15%
  • 中国电信与华为签署战略合作协议,共同推进5G和千兆光纤网络建设
  • 中国电信推出“云改数转”服务,助力企业数字化转型
  • 中国电信5G网络覆盖超过90%的县城和乡镇
  • 中国电信与腾讯合作推出“云游戏”平台
// 获取股票实时数据const stockPrice = document.getElementById('stock-price');const stockChange = document.getElementById('stock-change');const stockOpen = document.getElementById('stock-open');const stockHigh = document.getElementById('stock-high');const stockLow = document.getElementById('stock-low');const stockVolume = document.getElementById('stock-volume');const stockMarketCap = document.getElementById('stock-market-cap');fetch('https://api.finance.ifeng.com/akdaily/?code=sh601728&type=k').then(res => res.json()).then(data => {const stockInfo = data.result[0];stockPrice.innerText = stockInfo.curprice;stockChange.innerText = `${stockInfo.percent}%`;stockOpen.innerText = stockInfo.open;stockHigh.innerText = stockInfo.high;stockLow.innerText = stockInfo.low;stockVolume.innerText = stockInfo.vol;stockMarketCap.innerText = `¥${stockInfo.mv}`;}).catch(err => {console.error(err);});// 获取股票历史数据并绘制图表const stockChart = document.querySelector('.stock-chart');fetch('https://api.finance.ifeng.com/akdaily/?code=sh601728&type=qfqday&count=365').then(res => res.json()).then(data => {const stockData = data.result;// 创建图表const chart = new CanvasJS.Chart(stockChart, {title: {text: '中国电信股票历史数据'},axisX: {valueFormatString: 'MMM-dd-yy' },axisY: {title: '价格 (元)'},data: [{type: 'spline',dataPoints: stockData.map(day => {return {x: new Date(day.date),y: day.close}})}]});// 渲染图表chart.render();}).catch(err => {console.error(err);});

标签: 中国电信股票601728 中国电信股票股吧

抱歉,评论功能暂时关闭!