通达信TradeX.dll 股票交易、行情接口合二为一
-
相关简介:通达信TradeX.dll 股票交易、行情接口合二为一 TradeX.dll 完全兼容原有的trade.dll下单业务,整合了行情数据 解决了华泰等券商服务器无法正常连接的问题,在任何时间段都可以正确取数据 支持VC,VB,C#,Python,直连交易服务器和行情服务器 有这个东西,可以自己写股票软件咯,呵呵 又或者移植国外的一些软件来用(那些软件很多都开放了接口规范,按格式写个接口挂上就可以了)。 ================================================
-
文章来源:股海网作者:股海网发布时间:2016-12-11浏览次数:
通达信TradeX.dll 股票交易、行情接口合二为一
TradeX.dll 完全兼容原有的trade.dll下单业务,整合了行情数据
解决了华泰等券商服务器无法正常连接的问题,在任何时间段都可以正确取数据
支持VC,VB,C#,Python,直连交易服务器和行情服务器
有这个东西,可以自己写股票软件咯,呵呵
又或者移植国外的一些软件来用(那些软件很多都开放了接口规范,按格式写个接口挂上就可以了)。
======================================================
TradeX.dll 导出函数列表
Name Address Ordinal
---- ------- -------
CancelOrder 10007260 1
CancelOrders 100073D0 2
CloseTdx 10006090 3
GetQuote 100075F0 4
GetQuotes 10007740 5
Logoff 100065D0 6
Logon 100060D0 7
OpenTdx 10005D50 8
QueryData 10006700 9
QueryDatas 10006850 10
QueryHistoryData 10006AF0 11
Repay 10007950 12
SendOrder 10006C60 13
SendOrders 10006E60 14
TdxHq_Connect 10004AB0 15
TdxHq_Disconnect 10004B50 16
TdxHq_GetCompanyInfoCategory 10005200 17
TdxHq_GetCompanyInfoContent 100052A0 18
TdxHq_GetFinanceInfo 100053F0 19
TdxHq_GetHistoryMinuteTimeData 10004E40 20
TdxHq_GetHistoryTransactionData 10005080 21
TdxHq_GetIndexBars 10004EE0 22
TdxHq_GetMinuteTimeData 10004CD0 23
TdxHq_GetSecurityBars 10004D70 24
TdxHq_GetSecurityCount 10004B80 25
TdxHq_GetSecurityList 10004C10 26
TdxHq_GetSecurityQuotes 10005150 27
TdxHq_GetTransactionData 10004FB0 28
TdxHq_GetXDXRInfo 10005350 29
======================================================
TradeX.dll 演示、开发文件列表
./TradeX-dev
./TradeX-dev/TradeX.dll
./TradeX-dev/TradeX.h
./TradeX-dev/TradeX.lib
./TradeX-dev/TradeX.lic
./TradeXDemo
./TradeXDemo/TradeX.dll
./TradeXDemo/TradeX.lic
./TradeXDemo/TradeXDemo.exe
./TradeXDemo-src
./TradeXDemo-src/HqTest.cpp
./TradeXDemo-src/ReadMe.txt
./TradeXDemo-src/stdafx.cpp
./TradeXDemo-src/stdafx.h
./TradeXDemo-src/targetver.h
./TradeXDemo-src/TradeX.dll
./TradeXDemo-src/TradeX.h
./TradeXDemo-src/TradeX.lib
./TradeXDemo-src/TradeX.lic
./TradeXDemo-src/TradeXDemo.cpp
./TradeXDemo-src/TradeXDemo.sln
./TradeXDemo-src/TradeXDemo.suo
./TradeXDemo-src/TradeXDemo.vcxproj
./TradeXDemo-src/TradeXDemo.vcxproj.filters
./TradeXDemo-src/TradeXDemo.vcxproj.user
./TradeXDemo-src/Release
./TradeXDemo-src/Release/system.uid
./TradeXDemo-src/TradeX-dev
./TradeXDemo-src/TradeX-dev/TradeX.dll
./TradeXDemo-src/TradeX-dev/TradeX.h
./TradeXDemo-src/TradeX-dev/TradeX.lib
./TradeXDemo-src/TradeX-dev/TradeX.lic
./TradeXDemo-src/bin
./TradeXDemo-src/bin/TradeXDemo
./TradeXDemo-src/bin/TradeXDemo/TradeX.lic
./TradeXDemo-src/bin/TradeXDemo/TradeX.dll
./TradeXDemo-src/bin/TradeXDemo/system.uid
======================================================
TradeX.h
#ifndef __TRADEX_H
#define __TRADEX_H
#include <Windows.h>
#ifdef __cplusplus
extern "C" {
#endif
//
// 交易API
//
void WINAPI OpenTdx();
void WINAPI CloseTdx();
int WINAPI Logon(
const char* pszIP,
short nPort,
const char* pszVersion,
short nYybID,
const char* pszAccountNo,
const char* pszTradeAccount,
const char* pszJyPassword,
const char* pszTxPassword,
char* pszErrInfo);
void WINAPI Logoff(int nClientID);
void WINAPI QueryData(
int nClientID,
int nCategory,
char* pszResult,
char* pszErrInfo);
void WINAPI QueryHistoryData(
int nClientID,
int nCategory,
const char* pszStartDate,
const char* pszEndDate,
char* pszResult,
char* pszErrInfo);
void WINAPI QueryDatas(
int nClientID,
int nCategory[],
int nCount,
char* pszResult[],
char* pszErrInfo[]);
void WINAPI SendOrder(
int nClientID,
int nCategory,
int nPriceType,
const char* pszGddm,
const char* pszZqdm,
float fPrice,
int nQuantity,
char* pszResult,
char* pszErrInfo);
void WINAPI SendOrders(
int nClientID,
int nCategory[],
int nPriceType[],
const char* pszGddm[],
const char* pszZqdm[],
float fPrice[],
int nQuantity[],
int nCount,
char* pszResult[],
char* pszErrInfo[]);
void WINAPI CancelOrder(
int nClientID,
const char* pszExchangeID,
const char* pszhth,
char* pszResult,
char* pszErrInfo);
void WINAPI CancelOrders(
int nClientID,
const char* pszExchangeID[],
const char* pszhth[],
int nCount,
char* pszResult[],
char* pszErrInfo[]);
void WINAPI GetQuote(
int nClientID,
const char* pszZqdm,
char* pszResult,
char* pszErrInfo);
void WINAPI GetQuotes(
int nClientID,
const char* pszZqdm[],
int nCount,
char* pszResult[],
char* pszErrInfo[]);
void WINAPI Repay(
int nClientID,
const char* pszAmount,
char* pszResult,
char* pszErrInfo);
//
// 行情API
//
bool WINAPI TdxHq_Connect(
const char *pszIP,
short nPort,
char *pszResult,
char *pszErrInfo);
void WINAPI TdxHq_Disconnect();
bool WINAPI TdxHq_GetSecurityCount(
char nMarket,
short *nCount,
char *pszErrInfo);
bool WINAPI TdxHq_GetSecurityList(
char nMarket,
short nStart,
short *nCount,
char *pszResult,
char *pszErrInfo);
bool WINAPI TdxHq_GetSecurityBars(
char nCategory,
char nMarket,
const char *pszZqdm,
short nStart,
short *nCount,
char *pszResult,
char *pszErrInfo);
bool WINAPI TdxHq_GetIndexBars(
char nCategory,
char nMarket,
const char *pszZqdm,
short nStart,
short *nCount,
char *pszResult,
char *pszErrInfo);
bool WINAPI TdxHq_GetMinuteTimeData(
char nMarket,
const char *pszZqdm,
char *pszResult,
char *pszErrInfo);
bool WINAPI TdxHq_GetHistoryMinuteTimeData(
char nMarket,
const char *pszZqdm,
int nDate,
char *pszResult,
char *pszErrInfo);
bool WINAPI TdxHq_GetTransactionData(
char nMarket,
const char *pszZqdm,
short nStart,
short *nCount,
char *pszResult,
char *pszErrInfo);
bool WINAPI TdxHq_GetHistoryTransactionData(
char nMarket,
const char *pszZqdm,
short nStart,
short *nCount,
int nDate,
char *pszResult,
char *pszErrInfo);
bool WINAPI TdxHq_GetSecurityQuotes(
char nMarket[],
const char *pszZqdm[],
short *nCount,
char *pszResult,
char *pszErrInfo);
bool WINAPI TdxHq_GetCompanyInfoCategory(
char nMarket,
const char *pszZqdm,
char *pszResult,
char *pszErrInfo);
bool WINAPI TdxHq_GetCompanyInfoContent(
char nMarket,
const char *pszZqdm,
const char *psZFileName,
int nStart,
int nLength,
char *pszResult,
char *pszErrInfo);
bool WINAPI TdxHq_GetXDXRInfo(
char nMarket,
const char *pszZqdm,
char *pszResult,
char *pszErrInfo);
bool WINAPI TdxHq_GetFinanceInfo(
char nMarket,
const char *pszZqdm,
char *pszResult,
char *pszErrInfo);
#ifdef __cplusplus
}
#endif
#endif
|