Version: 0.01
Group: tradeApi
Trace: [Custom unique string]
Content-Type: application/json
Accept: application/json
Apikey: [Already provided.]
Timestamp: [Millisecond timestamp]
CompanyId: [Already provided (Test field: 439)]
Signature: Signature, the generation rules are here <https://mtf.readme.io/reference/sgin, with example reference.>
http body:
{
"accountCurrency":"CNY", //Parameters obtained in step 2
"accountDigits":2, //Parameters obtained in step 2
"accountId":1034124, //Parameters obtained in step 2
"bizType":1, //Currently only supports these four types: business types, 1-market price opening; 2-market price flat; 13-limit price opening order; 14-limit price closing order
"crossLevelNum":1, //fixed with 1
"direction":1, //Order buying and selling direction, 1-buy; 2-sell;
"entryType":1, //Order type 1 by quantity, 2 by amount
"expireType":1, //limit order expiration type, 1-valid on the day; 2-valid on the week;
"requestNum":"0.100000", //Order lot size or order amount, used with entryType
"requestPrice":"167655", //The decimal place obtained in step 1 is used to convert the quotation into an integer. For example, if the decimal place is 3 and the quotation is 1.23, it will be converted to: 1230
"requestTime":1698299972000,
"symbolId":8390, //Parameters obtained in step 1
"tradeType":2 //Fixed to 2
}
4.Handle Response
Upon receiving a response from step 3, check if code is “0”. If it is, the order placement is successful. Extract the orderId field from the data and match it with the orderId in the trade message.