• 大小: 4.73MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-17
  • 语言: C#
  • 标签: 万得  wind  量化  

资源简介

Wind量化接口培训C#(PPT和例子代码)

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WAPIWrapperCSharp;

namespace WindCommon
{
    class WindDataMethod
    {
        public static string WindDataToString(WindData wd string strFuncName)
        {
            if (null == wd)
                return string.Empty;

            string s = string.Empty;
            string str = string.Empty;

            //请求出错,获取错误信息
            if (wd.errorCode != 0)
            {
                s += wd.GetErrorMsg() + Environment.NewLine;

                return s;
            }

            if (null != wd.codeList)
            {
                s += “Windcode = “ + Environment.NewLine;
                foreach (String code in wd.codeList)
                    s += “  “ + code + “\t“;
                s += Environment.NewLine;
            }
            if (null != wd.fieldList)
            {
                s += “Indicators = “ + Environment.NewLine;
                foreach (String field in wd.fieldList)
                    s += “  “ + field + “\t“;
                s += Environment.NewLine;
            }
            if (null != wd.timeList)
            {
                s += “Times = “ + Environment.NewLine;
                foreach (DateTime time in wd.timeList)
                    s += “  “ + time.ToString() + “\t“;
                s += Environment.NewLine;
            }

            s += “Data = “ + Environment.NewLine;
            object getData = wd.getDataByFunc(strFuncName false);
            if (getData is object[])//转化为2维数组
            {
                object[] odata = (object[])getData;

                switch (strFuncName)
                {
                    case “wsd“:
                        {
                            string strColHead = string.Empty;
                            strColHead += “Time“ + “\t\t“;
                            foreach (String field in wd.fieldList)
                                strColHead += field + “\t“;
                            strColHead += Environment.NewLine;

                            s = strColHead;

                            int nTimeLength = wd.timeList.Length;
                            int nCodeLength = wd.codeList.Length;
                            int nFieldLength = wd.fieldList.Length;
                            for (int i = 0; i < nTimeLength; i++)
                            {
                                s += wd.timeList[i].ToString(“yyyy-MM-dd“) + “\t“;
                                for (int j = 0; j < nCodeLength * nFieldLength; j++)
                                {
                                    str = odata[i j].ToString();
                                    s += str + “\t“;
                                }
                                s += Environment.NewLine;
                            }
                        }
                        break;
                    case “wsi“:
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      23552  2014-12-15 20:10  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WAPIWrapperCSharp\WAPIWrapperCSharp.dll

     文件      58140  2014-12-18 10:37  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WAPIWrapperCSharp\WindNavigator.rar

     目录          0  2016-11-11 13:19  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WAPIWrapperCSharp

     文件      23552  2014-12-15 20:10  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Debug\WAPIWrapperCSharp.dll

     文件      11264  2014-12-16 17:36  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Debug\WindConsoleAppSample.exe

     文件      34304  2014-12-16 17:36  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Debug\WindConsoleAppSample.pdb

     文件      11592  2014-12-15 19:51  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Debug\WindConsoleAppSample.vshost.exe

     目录          0  2014-12-15 20:01  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Debug

     目录          0  2014-11-04 17:33  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\Release

     文件      10240  2014-11-17 10:11  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug\WindConsoleAppSample.exe

     文件      26112  2014-11-17 10:11  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug\WindConsoleAppSample.pdb

     文件      11592  2014-11-17 10:20  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug\WindConsoleAppSample.vshost.exe

     文件        490  2013-03-18 17:00  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug\WindConsoleAppSample.vshost.exe.manifest

     文件      21504  2014-10-16 18:00  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug\WindCSharp.dll

     目录          0  2014-11-17 10:11  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Debug

     目录          0  2014-11-07 13:32  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64\Release

     目录          0  2014-11-07 13:32  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin\x64

     目录          0  2014-11-04 17:33  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\bin

     文件       6017  2014-12-15 19:50  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     目录          0  2014-12-15 19:36  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\TempPE

     文件        720  2014-12-15 19:51  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\WindConsoleAppSample.csproj.FileListAbsolute.txt

     文件      10126  2014-12-15 19:36  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\WindConsoleAppSample.csprojResolveAssemblyReference.cache

     文件      11264  2014-12-15 19:50  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\WindConsoleAppSample.exe

     文件      30208  2014-12-15 19:50  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug\WindConsoleAppSample.pdb

     目录          0  2014-12-15 19:50  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\Debug

     文件       6000  2014-11-17 10:11  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\x64\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件      18432  2014-11-17 10:07  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\x64\Debug\Interop.WindDataCOMLib.dll

     目录          0  2014-11-04 17:33  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\x64\Debug\TempPE

     文件        585  2014-11-17 10:20  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\x64\Debug\WindConsoleAppSample.csproj.FileListAbsolute.txt

     文件        713  2014-11-17 10:07  Wind量化接口培训C#(PPT和例子代码)\C#_Teach_20141216\TeachSample_C#\WindConsoleAppSample\WindConsoleAppSample\obj\x64\Debug\WindConsoleAppSample.csproj.ResolveComReference.cache

............此处省略195个文件信息

评论

共有 条评论