TDX API Z

Source: Internet
Author: User
Tags server port

Call the TdxAPI.dll function

. DLL command TDXinit, logic type, "TdxApi.dll", "Tdxinit", initialize the Tongda instance, return true on success, false on failure. Parameter IP, text type, trade server IP. Parameter Port, integer type , the trade server port. Parameter version, text type, used to set the access letter, if set too low, the broker server will think that the use of the Tongda software is too old to upgrade. Parameter errinfo, text type, after this API execution returns, if an error occurs, a message description is saved. You typically allocate 256 bytes of space. An empty string when there is no error.

. DLL command TDXexit, "TdxApi.dll", "Tdxexit", exit the Tongda instance

. DLL command TDX login, integer type, "TdxApi.dll", "TdxLogin", trading account login, successful return to client ID, 1 on failure. Parameter Accountno, text type, fund account. Parameter Jypasswo Rd, text type,, transaction password. Parameter Txpassword, text type, communication password. Parameter errinfo, text type, after this API execution returns, if an error occurs, a description of the fault message is saved. You typically allocate 256 bytes of space. An empty string when there is no error.

. DLL commands TdxLogout,, "TdxApi.dll", "TdxLogout", and the trading account is logged off. Parameter ClientID, integer, client ID

. DLL commands Tdxquerydata,, "TdxApi.dll", "Tdxquerydata", and query various transaction data. Parameter ClientID, integer,, client ID. parameter Category, integer type, indicating Inquiries about the type of information, 0 Capital 1 shares 2 that day commissioned 3 transactions 4 withdrawal of 5 shareholder Code 6 financing Balance 7 Credit Balance 8 negotiable securities. Parameter result, text type, after this API execution returns, the returned query data is saved in the form of tabular data, and the row data is passed through \ n characters The column data is separated by \ t. You typically allocate 1024*1024 bytes of space. An empty string On error: Parameter errinfo, text type, after this API execution returns, an error message description is saved if an error occurs. You typically allocate 256 bytes of space. An empty string when there is no error. Please note that the demo version also uses this display feature to restrict information.

. DLL command TDXsendorder,, "TdxApi.dll", "TdxSendorder",, under limit orders to trade securities. Parameter ClientID, integer type,, client ID. parameter Category, integer type, table Type of delegate, 0 buy 1 Sell 2 finance buy 3 bond sell 4 buy voucher 5 Coupon Pay 6 voucher coupon. Parameter GDDM, text type, shareholder code. Parameter ZQDM, text type,, security code. Parameter price, decimal type, and the value of the consignment. Parameters Quanti Ty, Integer,, number of delegates. Parameter result, text type, after this API execution returns, the returned query data is saved in the form of tabular data, row data is separated by \ n characters, and column data is delimited by \ t. You typically allocate 1024*1024 bytes of space. An empty string On error: Parameter errinfo, text type, after this API execution returns, an error message description is saved if an error occurs. You typically allocate 256 bytes of space. An empty string when there is no error. Please note that the demo version also uses this display feature to restrict information.

. DLL command TDXcancelorder,, "TdxApi.dll", "TdxCancelorder",, withdraw the delegate. Parameter ClientID, integer type, client id. parameter hth, text type, indicating the target delegate to be withdrawn Number. parameter result, text type, after this API execution returns, the returned query data is saved in the form of tabular data, row data is separated by \ n characters, and column data is delimited by \ t. You typically allocate 1024*1024 bytes of space. An empty string On error: Parameter errinfo, text type, after this API execution returns, an error message description is saved if an error occurs. You typically allocate 256 bytes of space. An empty string when there is no error. Please note that the demo version also uses this display feature to restrict information.

. DLL command TDXGetsshq,, "TdxApi.dll", "TdxGetsshq", gets the real-time five stock quotes of the securities. Parameter ClientID, integer type, client id. parameter ZQDM, text type, security code. Number of result, text type, after this API execution returns, the Result holds the returned query data in the form of tabular data, separated by \ n characters between row data, and delimited by \ t between column data. You typically allocate 1024*1024 bytes of space. An empty string On error: Parameter errinfo, text type, after this API execution returns, an error message description is saved if an error occurs. You typically allocate 256 bytes of space. An empty string when there is no error. Please note that the demo version also uses this display feature to restrict information.

. DLL command TDXgetaccountedition, "TdxApi.dll", "Tdxgetaccountedition", gets the broker account type that the API applies to. parameter Result, text type, this API performs a return After that, the returned account type result is saved as a string. You typically allocate 256 bytes of space.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.