当前位置: 首页 > news >正文

石家庄网站设计公司排名企业营销网络建设

石家庄网站设计公司排名,企业营销网络建设,wordpress自动填写表格,wordpress开发复杂网站需要注意的这个只是获取单只股票 代码的用处#xff0c;通过这个代码有炒股的朋友就可以写出简单的自动止损和按一定价格入场的程序了。#xff08;国内正规券商不支持这种功能#xff0c;可能是为了防止一些东西。#xff09; 我们先来看一下股票信息的类 namespace Qianf…需要注意的这个只是获取单只股票  代码的用处通过这个代码有炒股的朋友就可以写出简单的自动止损和按一定价格入场的程序了。国内正规券商不支持这种功能可能是为了防止一些东西。 我们先来看一下股票信息的类  namespace Qianfa.net.Library.Entity{    /*http://hq.sinajs.cn/listsh600066  sh上海 sz深圳     * 0”大秦铁路”股票名字   1”27.55″今日开盘价   2”27.25″昨日收盘价   3”26.91″当前价格//时间结束后也就是收盘价了   4”27.55″今日最高价   5”26.20″今日最低价   6”26.91″竞买价即“买一”报价   7”26.92″竞卖价即“卖一”报价   8”22114263″成交的股票数由于股票交易以一百股为基本单位所以在使用时通常把该值除以一百   9”589824680″成交金额单位为“元”为了一目了然通常以“万元”为成交金额的单位所以通常把该值除以一万   10”4695″“买一”申请4695股即47手   11”26.91″“买一”报价   12”57590″“买二”   13”26.90″“买二”   14”14700″“买三”   15”26.89″“买三”   16”14300″“买四”   17”26.88″“买四”   18”15100″“买五”   19”26.87″“买五”   20”3100″“卖一”申报3100股即31手   21”26.92″“卖一”报价   (22, 23), (24, 25), (26,27), (28, 29)分别为“卖二”至“卖四的情况”   30”2008-01-11″日期   31”15:05:32″时间   */    public class StockInfo    {        public string Name        {            get;            set;        }         public decimal TodayOpen        {            get;            set;        }         public decimal YesterdayClose        {            get;            set;        }         public decimal Current        {            get;            set;        }         public decimal High        {            get;            set;        }         public decimal Low        { get; set; }         /// summary        /// 竟买价 买1        /// /summary        public decimal Buy        { get; set; }         /// summary        /// 竟卖价 卖1        /// /summary        public decimal Sell { get; set; }         /// summary        /// 成交数 单位股数 通常除于100成为手        /// /summary        public int VolAmount { get; set; }         /// summary        /// 成交多少钱,单位元        /// /summary        public decimal VolMoney { get; set; }         /// summary        /// 新浪是可以看到5个,5档看盘 ,买1-买5        /// /summary        public ListGoodsInfo BuyList { get; set; }         /// summary        /// 卖1卖5        /// /summary        public ListGoodsInfo SellList { get; set; }         /// summary        /// Date and Time        /// /summary        public DateTime Time { get; set; }         public override string ToString()        {            return Name : VolAmount : Current;        }            } /*现在爬文章的很多原文在http://www.cnblogs.com/lovebanyi/archive/2010/05/02/1725874.html */}    namespace Qianfa.net.Library{ ///股票数据获取接口,你可以自己实现新浪yahoo...    public interface IDataService    {         StockInfo GetCurrent(string stockCode);       }}   namespace Qianfa.net.DataServices{    public class Sina : IDataService    {         private const string dataurl http://hq.sinajs.cn/list%7B0};        #region IStockInfo Members        HttpClient client;        private StockInfo PrevInfo;        public StockInfo GetCurrent(string stockCode)        {            try            {                if (client null)                {                    client new HttpClient();                }                if (stockCode.Substring(0, 2) 60)//上海是600打头                {                    stockCode sh stockCode;                }                else if(stockCode.Substring(0,2)00)//深圳                {                    stockCode sz stockCode;                }                else if (stockCode.Substring(0, 2) 51)//上海基金                {                    stockCode sh stockCode;                }                string url string.Format(dataurl, stockCode);                string data client.DownloadString(string.Format(url, stockCode));                PrevInfo Parse(data);                return PrevInfo;            }            catch            {                return PrevInfo;            }                    }         /// summary        /// Parse Sina data to stock Info        /// /summary        /// param nameinput/param        /// returns/returns        public static StockInfo Parse(string content)        {           // var hq_str_sh600066 宇通客车,9.27,9.35,9.76,9.80,9.27,9.77,9.78,4567858,44306952,3100,9.77,1200,9.76,20500,9.75,1400,9.74,15300,9.73,10030,9.78,28093,9.79,156827,9.80,2800,9.81,6400,9.82,2009-01-09,15:03:32;            int start content.IndexOf()1;            int end content.IndexOf(,start);            string input content.Substring(start, end - start);            string[] temp input.Split(,);            if (temp.Length ! 32)            {                return null;            }            StockInfo info new StockInfo();            info.Name temp[0];            info.TodayOpen decimal.Parse(temp[1]);            info.YesterdayClose decimal.Parse(temp[2]);            info.Current decimal.Parse(temp[3]);            info.High decimal.Parse(temp[4]);            info.Low decimal.Parse(temp[5]);            info.Buy decimal.Parse(temp[6]);            info.Sell decimal.Parse(temp[7]);            info.VolAmount int.Parse(temp[8]);            info.VolMoney decimal.Parse(temp[9]);            info.BuyList new ListGoodsInfo(5);            int index 10;            for (int i 0; i 5; i)            {                GoodsInfo goods new GoodsInfo();                goods.State GoodsState.Buy;                goods.Amount int.Parse(temp[index]);                index;                goods.Price decimal.Parse(temp[index]);                index;                info.BuyList.Add(goods);            }            info.SellList new ListGoodsInfo(5);             for (int i 0; i 5; i)            {                GoodsInfo goods new GoodsInfo();                goods.State GoodsState.Sell;                goods.Amount int.Parse(temp[index]);                index;                goods.Price decimal.Parse(temp[index]);                index;                info.SellList.Add(goods);            }            info.Time DateTime.Parse(temp[30] temp[31]);            return info;         }         #endregion    }}        public class GoodsInfo    {        public int Amount        { get; set; }        public decimal Price        {            get;            set;        }        public GoodsState State { get; set; }    }  如果你想要商业类型的股票接口可以可以跟我联系哦。http://www.qianfa.net/StockInfoSoft.aspx转载于:https://www.cnblogs.com/lovebanyi/archive/2010/05/02/1725874.html
http://www.zqtcl.cn/news/88533/

相关文章:

  • 增城高端定制网站建设外包加工网注册收费
  • 专做白酒的网站企业网站需要哪些模块
  • 北京 广告 手机网站没有域名装wordpress
  • 免费发布信息的网站平台汽修专业主要学什么
  • 高端网站设计地址找营销推广团队
  • 网站建设会考什么网站后台如何备份
  • 推广自己的网站网站制作的文章
  • 界首网站优化公司专门做衣服的网站
  • 有了页游源代码如何做网站淘宝网站开发用到哪些技术
  • 专题网站模板广西人才网
  • 网站一年的维护费用WordPress添加工单功能
  • 松江品划网站建设维护住建部网站查询系统
  • 苏州建设网站微信公众号网络信息科技有限公司
  • 做那个网站公司网站开发部署
  • 做网站与不做网站的区别南昌县城乡规划建设局官方网站
  • wordpress企业仿站视频教程做微信公众平台的网站吗
  • 公司做网站的钱网银转账用途360提交网站入口
  • 网站开发人员是什么新乡定制网站建设公司
  • 长期网站外包卖网站怎样做
  • 宁波网站优化平台网站同城在线哪里做
  • 徐州网站开发要多少钱装饰公司接单技巧
  • 可以做查询功能的网站石家庄手机网站建站
  • 做线上交互的网站设计说明生成器网页版
  • 网络网站排名优化网络运维工程师自我介绍
  • 手机网站建设公司推荐天津 公司做网站
  • 最专业的营销网站建设公司cocos creator做网站
  • 展览网站制作app设计流程
  • 做任务佣金网站源码福州企业网站建设专业服务
  • 河南网站建设价格大全wordpress修改作者信息
  • 北戴河网站建设河北项目网