ctpcode.rar


ctpcode.rar
资源截图
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace CTPCode
{
    class Dll
    {
        const string dllPath = “CTP.dll“;

        public static Label invoker;

        public delegate void del_OnTdFrontConnected(); //交易连接回报的代理
        public delegate void del_OnRspTdUserLogin(ref CThostFtdcRspUserLoginField pRspUserLogin ref CThostFtdcRspInfoField pRspInfo bool bIsLast); //交易登录回报的代理
        public delegate void del_OnRspSettlementInfoConfirm(ref CThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm ref CThostFtdcRspInfoField pRspInfo bool bIsLast); //结算确认回报的代理
        public delegate void del_OnRspQryInstrument(ref CThostFtdcInstrumentField pInstrument bool bIsLast); //查询合约回报的代理(CTP报来的pRspInfo有问题,在回调中去掉了这个参数)
        public delegate void del_OnRspTdError(ref CThostFtdcRspInfoField pRspInfo bool bIsLast); //交易报错回报的代理
        public delegate void del_OnMdFrontConnected(); //行情连接回报的代理
        public delegate void del_OnRspMdUserLogin(ref CThostFtdcRspUserLoginField pRspUserLogin ref CThostFtdcRspInfoField pRspInfo bool bIsLast); //行情登录回报的代理
        public delegate void del_OnRspMdError(ref CThostFtdcRspInfoField pRspInfo bool bIsLast); //行情报错回报的代理
        public delegate void del_OnRtnDepthMarketData(ref CThostFtdcDepthMarketDataField pDepthMarketData); //行情回报的代理

        public delegate void del_OnRspQrySettlementInfo(ref CThostFtdcSettlementInfoField pSettlementInfo bool bIsLast); //查询结算单的代理
        public delegate void del_OnRspQryProduct(ref CThostFtdcProductField pProduct bool bIsLast); //查询产品回报的代理
        public delegate void del_OnRspQryOrder(ref CThostFtdcOrderField pOrder bool bIsLast); //查询报单回报的代理
        public delegate void del_OnRspQryTrade(ref CThostFtdcTradeField pTrade bool bIsLast); //查询成交回报的代理
        public delegate void del_OnRspQryInvestorPosition(ref CThostFtdcInvestorPositionField pInvestorPosition bool bIsLast); //查询持仓回报的代理
        public delegate void del_OnRspQryInvestorPositionDetail(ref CThostFtdcInvestorPositionDetailField pInvestorPositionDetail bool bIsLast); //查询持仓明细回报的代理
        public delegate void del_OnRspQryTradingAccount(ref CThostFtdcTradingAccountField pTradingAccount bool bIsLast); //查询资金账户回报的代理
        public delegate void del_OnRspQryInvestor(ref CThostFtdcInvestorField pInvestor bool bIsLast); //查询投资者回报的代理
        public delegate void del_OnRspQryInstrumentMarginRate(ref CThostFtdcInstrumentMarginRateField pInstrumentMarginRate bool bIsLast); //查询合约保证金率回报的代理
        public delegate void del_OnRspQryExchangeMarginRate(ref CThostFtdcExchangeMarginRateField pExchangeMarginRate bool bIsLast); //查询交易所保证金率回报的代理
        public delegate void del_OnRspQryInstrumentCommissionRate(ref CThostFtdcInstrumentCommissionRateField pInstrumentCommissionRate bool bIsLast); //查询合约手续费率回报的代理

        static bool IsErrorRspInfo(CThostFtdc

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

     文件        140  2016-10-05 20:08  32位CTPCodeApp.config

     文件      18260  2016-10-15 01:24  32位CTPCodeinDebugcsvSR701_m1.csv

     文件      99840  2016-10-11 08:52  32位CTPCodeinDebugCTP.dll

     文件     112640  2016-10-12 21:30  32位CTPCodeinDebugCTPCode.exe

     文件        140  2016-10-05 20:08  32位CTPCodeinDebugCTPCode.exe.config

     文件      69120  2016-10-12 21:30  32位CTPCodeinDebugCTPCode.pdb

     文件      21464  2016-10-12 21:30  32位CTPCodeinDebugCTPCode.vshost.exe

     文件        140  2016-10-05 20:08  32位CTPCodeinDebugCTPCode.vshost.exe.config

     文件        490  2012-06-06 02:06  32位CTPCodeinDebugCTPCode.vshost.exe.manifest

     文件     672256  2016-10-16 18:07  32位CTPCodeinDebugCTPUI.exe

     文件       2164  2016-08-30 18:05  32位CTPCodeinDebugCTPUI.exe.config

     文件     939520  2016-10-16 18:04  32位CTPCodeinDebugCTPUI.pdb

     文件      21464  2016-10-16 18:04  32位CTPCodeinDebugCTPUI.vshost.exe

     文件       2164  2016-08-30 18:05  32位CTPCodeinDebugCTPUI.vshost.exe.config

     文件        490  2012-06-06 02:06  32位CTPCodeinDebugCTPUI.vshost.exe.manifest

     文件          6  2016-10-15 01:21  32位CTPCodeinDebugDialogRsp.con

     文件        194  2014-11-26 07:53  32位CTPCodeinDebugimg.png

     文件        196  2014-11-26 07:52  32位CTPCodeinDebugimg1.png

     文件        196  2014-11-26 07:52  32位CTPCodeinDebugimg2.png

     文件        194  2014-11-26 07:52  32位CTPCodeinDebugimg3.png

     文件        201  2014-11-26 07:52  32位CTPCodeinDebugimg4.png

     文件        201  2014-11-26 07:52  32位CTPCodeinDebugimg5.png

     文件        198  2014-11-26 07:52  32位CTPCodeinDebugimg6.png

     文件        191  2014-11-26 07:53  32位CTPCodeinDebugimg7.png

     文件        194  2014-11-26 07:53  32位CTPCodeinDebugimg8.png

     文件        196  2014-11-26 07:53  32位CTPCodeinDebugimg9.png

     文件        201  2014-11-26 07:42  32位CTPCodeinDebugimgA.png

     文件        197  2014-11-26 07:48  32位CTPCodeinDebugimga_.png

     文件        196  2014-11-26 07:43  32位CTPCodeinDebugimgB.png

     文件        417  2014-11-26 07:58  32位CTPCodeinDebugimgackhand_0.png

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)