1 Star 0 Fork 3

liuhaobest/QTctp

forked from 1ndu5try/QTctp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mdspi.h 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
1ndustry 提交于 2022-09-05 10:16 . fitst
#ifndef MDSPI_H
#define MDSPI_H
#include "ThostFtdcMdApi.h"
#include <QDebug>
#include <QObject>
extern CThostFtdcMdApi* g_pMdUserApi;
class MdSpi : public QObject, public CThostFtdcMdSpi
{
Q_OBJECT
public:
explicit MdSpi(QObject *parent = nullptr);
~MdSpi();
// 当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
void OnFrontConnected();
void OnRspUserLogin(CThostFtdcRspUserLoginField* pRspUserLogin, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast);
void OnRspSubMarketData(CThostFtdcSpecificInstrumentField* pSpecificInstrument, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast);
void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField* pDepthMarketData);
void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
char str[7] = "bc2302";
char str1[7] = "lu2308";
char str2[7] = "nr2302";
char str3[7] = "nr2307";
char str4[7] = "sc2301";
char str5[7] = "sc2306";
char *ppInstrumentID[6] = {str,str1,str2,str3,str4,str5};
int iInstrumentId = 6;
signals:
void sendData(QString);
public slots:
};
#endif // MDSPI_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/liuhaobest/qtctp.git
git@gitee.com:liuhaobest/qtctp.git
liuhaobest
qtctp
QTctp
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385