Contract order
Last updated
Last updated
Description: Contract full position trading order group=tradeApi version=0.0.1 bizType=tradeapi.app.OrderApiService.addMarketOrder
Game ID, should be filled with 1 for this game
Account ID, optional. If filled, trading will be conducted with this account
Business type, 1-Market price open; 2-Market price close; 10-Limit price pending order; 11-Stop loss pending order; 12-Limit price open
Order buy/sell direction, 1-Buy; 2-Sell;
Product ID, product ID
Position ID, required when placing a closing order
Order request time, 13-digit timestamp
Price at the time of order placement, needs to be multiplied by 10 to the power of 'product price decimal places', converted to an integer for input. Only for order recording, not the actual transaction price.
Order quantity
Stop loss unit price, need to multiply by 10 to the power of 'product quote decimal places', and process it as an integer input.
Take profit unit price, need to multiply by 10 to the power of 'product quote decimal places', and process it as an integer input.
Expiration type, only valid for pending orders. 1-Valid for the day; 2-Valid for the week;
Remarks
Account currency
Account Decimal Places
Leverage ratio, only valid for opening positions, there should only be one leverage ratio for the same product
Success
Module identifier code
Status return code
Status description
Processing time (milliseconds)
Tracking code
Placeholder parameter string in return description, multiple parameters separated by commas
Whether the response is successful
Whether the response is failed
Data Body