How to entrust and place an order with Tongdaxin crack interface?

Tongdaxin's cracking interface mainly uses mathematical formulas to build models, judges future price trends through a large amount of data, and selects stocks through programs. Although the stock selection is relatively extensive, it can also cover more than 4,000 stocks in the A-share market, and can eliminate human factors such as forced ups and downs, and has strong discipline in execution. Therefore, there is no need to worry about how to implement the entrustment order for the stock through the Tongdaxin crack interface. For this, the execution steps are as follows:

(1) You must first apply to the stock trading interface, including the following execution processes:

(2) Call tradex_SetParam and set position 121 as the fund account;

(3)int tradex_GetResultSet(int hTcJob);

(4) Function function is required: set the value of the specified position of the resident process structure as a floating-point number;

(5) Call tradex_ResumeTcJob to resume the task of the resident process of the Tongdaxin cracking interface. However, in this step, the resident process will communicate with the transaction server, but pay attention to configuring the server equipment you use.

Execute the program as follows:

** * Query account information*
 @param string $IP broker trading server IP * 
@param integer $Version set client version number* 
@param integer $YybID business department code* @param string $AccountNo complete login account*
 @param string $TradeAccount trading account, generally the same as the login account. *
 @param string $JyPassword trading password*
 @param string $Port broker trading server port*
 @param string $TxPassword communication password* 
@param integer $Category indicates the type of query information, 0 Funds 1 Shares 2 Entrusted on the same day 3 Executed on the same day 4 Cancellable orders 5 Shareholder code*
//Get account data function QueryData($IP,$Version,$YybID,$AccountNo,$TradeAccount,$JyPassword,$Port,$TxPassword ,$Category){ $api = $this->API;
//Interface address $data = 'IP='.$IP.'&Version='.$Version.'&YybID='.$YybID.'&AccountNo='.$AccountNo.'&TradeAccount='.$TradeAccount.'&JyPassword= '.$JyPassword.'&Port='.$Port.'&TxPassword='.$TxPassword.'&Category='.$Category; $header = ['Content-Type'=>'application/x-www-form-urlencoded '];
//Default way $url = $api.'QueryData'; $res = $this->https_request($url,$header,$data);
//CURL get data return $res; } /** * Query account information (multiple types) *

@param string $IP Brokerage trading server IP * 
@param integer $Version Set client version number*
@param integer $YybID Business department code* 
@param string $AccountNo Complete login account*
@param string $TradeAccount Trading account, generally related to The login account is the same. *
@param string $JyPassword transaction password* 
@param string $Port broker transaction server port*
@param string $TxPassword communication password* 
@param integer $Category indicates the type of query information, 0 capital 1 share 2 entrustment of the day 3 Transaction on the day 4 Cancellable order 5 Shareholder code such as 0,1 * 
@param string $Count Number of queries*/ //Get multiple information data of the account function QueryDatas($IP,$Version,$YybID,$AccountNo,$TradeAccount,$JyPassword,$Port,$TxPassword,$Category, $Count){ $api = $this->API;//Interface address $data = 'IP='.$IP.'&Version='.$Version.'&YybID='.$YybID.'&AccountNo='.$ AccountNo.'&TradeAccount='.$TradeAccount.'&JyPassword='.$JyPassword.'&Port='.$Port.'&TxPassword='.$TxPassword.'&Category='.$Category.'&Count='.$Count; $url = $api.'QueryDatas'; $header = ['Content-Type'=>'application/x-www-form-urlencoded'];//Default way $res = $this->https_request($url, $header, $data);//CURL obtains data return $res; } /** * Stock data information for buying or selling securities under entrusted trading* 

Output legend:

 

That is to say, when Tongdaxin cracks the interface to execute the order entrustment, you can use the customary trading rules to input in the A-share quantitative interface , and connect to the third-party interface to directly output the market data queried by the trader, that is, the stock data, generally using python It is also convenient and fast to perform mining, and realizes the data output of the API interface, which makes it easier to query the real-time market conditions of stocks, and the strategy of stock trading interface customization is perfect, and the output compatibility of the interface system is improved.

Guess you like

Origin blog.csdn.net/Q_121463726/article/details/128390722#comments_24635295