自动抢单,止盈止损,高频交易
有意者添加本人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);
}