• 期货量化投资软件代开发


    自动抢单,止盈止损,高频交易

    有意者添加本人WX 18756596872非诚勿扰

    也可加入本人qq群820191434

    #include "stdafx.h"
    #include "MdSpi.h"
    #include "Manager.h"


    CMdSpi::CMdSpi()
    {
    m_pMdUserApi = NULL;
    }


    CMdSpi::~CMdSpi()
    {
    }

    void CMdSpi::OnFrontDisconnected(int nReason)
    {

    }

    void CMdSpi::OnHeartBeatWarning(int nTimeLapse)
    {

    }

    void CMdSpi::OnFrontConnected()
    {
    CManager::GetInstance()->OnFrontConnected();
    }

    void CMdSpi::OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast)
    {
    CManager::GetInstance()->OnRspUserLogin(pRspUserLogin, pRspInfo, nRequestID,bIsLast);
    }

    void CMdSpi::OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast)
    {

    }

    void CMdSpi::OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast)
    {

    }

    void CMdSpi::OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData)
    {

    }

    void CMdSpi::ReqUserLogin(CThostFtdcReqUserLoginField *pLoginfo, int nRequestID)
    {
    int iResult = m_pMdUserApi->ReqUserLogin(pLoginfo, nRequestID);
    }

    void CMdSpi::SubscribeMarketData(char *ppInstrumentID[], int nCount)
    {
    int iMdResult = m_pMdUserApi->SubscribeMarketData(ppInstrumentID, nCount);
    }

  • 相关阅读:
    shell函数
    sed命令
    交互式输入与for语句
    day01_云计算概述及kvm介绍
    grep与正则表达式
    shell的编程原理
    shell的文本处理工具
    shell的基础入门
    深入理解JavaScript中 fn() 和 return fn() 的区别
    一篇笔记带你快速掌握面向对象的Javascript(纯手打)
  • 原文地址:https://www.cnblogs.com/anlg-dongxh/p/9305476.html
Copyright © 2020-2023  润新知