How to crack Tongdaxin quantitative trading interface?

Tongdaxin actually has a way to crack the quantitative trading interface. For example, the interface strategy is cracked and used through programming, and then the interface is written by itself. For investors who do short-term strategies, after obtaining the volume and price data of the real offer, they should This data is exchanged into various performance indicators and used and analyzed in strategies before executing automated trading. Here is an example of a simple transaction interface:

If Tongdaxin quantitative trading interface uses CREATE TABLE stock_data.stock_daily_price to crack the function;
( `trade_date` Date,
    `sec_code` UInt32,
    `open` Int32,
    `high` Int32,
    `low` Int32,
    `close` Int32,
    `volume` Int64 ,
    `amount` Int64,
    `adjfactor` Int32,
    `st_status` Int16,
    `trade_status` Int16
) ENGINE = ReplacingMergeTree() 
ORDER BY (intHash32(sec_code), trade_date)
However, after the quantitative transaction interface query data, the default is non Null, if nullable is allowed, use the field type declaration of Nullable(Int32). For example, set the amount and volume to Int64 to prevent data from exceeding the range. In addition, ENGINE is a table engine, and MergeTree is used by default. ReplacingMergeTree is used here to prevent duplicate values. At the same time, it should also be noted that ORDER BY means sorting some data. For example, the stock code and date are sorted here. The columns of ORDER BY will also be set as indexes by the data interface function. When users use Tongdaxin Quantitative Trading Interface, they can pass The search function quickly enters your own strategy, and you can execute automatic transactions.

Not only that, after the Tongdaxin quantitative trading interface is successfully cracked, you can also log in to your account to view the account data holdings after placing an order. For example, the corresponding implementation functions of the following functions:

basic function

Init

API initialization

Deinit

API deinitialization

Logon

Login to trading account

logoff

Log out of trading account

QueryData

Query various transaction data

QueryHistoryData

Query various historical data

SendOrder

Order

CancelOrder

Order Cancellation

GetQuote

Get five quotes

Repay

Margin and securities lending account direct repayment

GetExpireDate

Query API authorization expiration date

Single Account Batch Function

QueryDatas

Single-account batch query of various transaction data

SendOrders

Single account batch order

CancelOrders

Single account batch cancellation

GetQuotes

Get five quotes in batches for a single account

Multi-account batch function

QueryMultiAccountsDatas

Multi-account batch query of various transaction data

SendMultiAccountsOrders

Batch orders for multiple accounts

CancelMultiAccountsOrders

Batch Cancellation of Multiple Accounts

GetMultiAccountsQuotes

Get five quotes in batches for multiple accounts

There are actually many ways to crack Tongdaxin's quantitative trading interface. The editor just gave a small and simple example. If you want to dig out more quantitative interface cracking methods, you can search online.

Guess you like

Origin blog.csdn.net/Q_121463726/article/details/127866078