• 大小: 7.39M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-03
  • 语言: 其他
  • 标签: 其他  

资源简介

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位\CTPCode\App.config

     文件      18260  2016-10-15 01:24  32位\CTPCode\bin\Debug\csv\SR701_m1.csv

     文件      99840  2016-10-11 08:52  32位\CTPCode\bin\Debug\CTP.dll

     文件     112640  2016-10-12 21:30  32位\CTPCode\bin\Debug\CTPCode.exe

     文件        140  2016-10-05 20:08  32位\CTPCode\bin\Debug\CTPCode.exe.config

     文件      69120  2016-10-12 21:30  32位\CTPCode\bin\Debug\CTPCode.pdb

     文件      21464  2016-10-12 21:30  32位\CTPCode\bin\Debug\CTPCode.vshost.exe

     文件        140  2016-10-05 20:08  32位\CTPCode\bin\Debug\CTPCode.vshost.exe.config

     文件        490  2012-06-06 02:06  32位\CTPCode\bin\Debug\CTPCode.vshost.exe.manifest

     文件     672256  2016-10-16 18:07  32位\CTPCode\bin\Debug\CTPUI.exe

     文件       2164  2016-08-30 18:05  32位\CTPCode\bin\Debug\CTPUI.exe.config

     文件     939520  2016-10-16 18:04  32位\CTPCode\bin\Debug\CTPUI.pdb

     文件      21464  2016-10-16 18:04  32位\CTPCode\bin\Debug\CTPUI.vshost.exe

     文件       2164  2016-08-30 18:05  32位\CTPCode\bin\Debug\CTPUI.vshost.exe.config

     文件        490  2012-06-06 02:06  32位\CTPCode\bin\Debug\CTPUI.vshost.exe.manifest

     文件          6  2016-10-15 01:21  32位\CTPCode\bin\Debug\DialogRsp.con

     文件        194  2014-11-26 07:53  32位\CTPCode\bin\Debug\img\0.png

     文件        196  2014-11-26 07:52  32位\CTPCode\bin\Debug\img\1.png

     文件        196  2014-11-26 07:52  32位\CTPCode\bin\Debug\img\2.png

     文件        194  2014-11-26 07:52  32位\CTPCode\bin\Debug\img\3.png

     文件        201  2014-11-26 07:52  32位\CTPCode\bin\Debug\img\4.png

     文件        201  2014-11-26 07:52  32位\CTPCode\bin\Debug\img\5.png

     文件        198  2014-11-26 07:52  32位\CTPCode\bin\Debug\img\6.png

     文件        191  2014-11-26 07:53  32位\CTPCode\bin\Debug\img\7.png

     文件        194  2014-11-26 07:53  32位\CTPCode\bin\Debug\img\8.png

     文件        196  2014-11-26 07:53  32位\CTPCode\bin\Debug\img\9.png

     文件        201  2014-11-26 07:42  32位\CTPCode\bin\Debug\img\A.png

     文件        197  2014-11-26 07:48  32位\CTPCode\bin\Debug\img\a_.png

     文件        196  2014-11-26 07:43  32位\CTPCode\bin\Debug\img\B.png

     文件        417  2014-11-26 07:58  32位\CTPCode\bin\Debug\img\backhand_0.png

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

评论

共有 条评论