The question is, according to the interface instructions, the parameters are only price and quantity, how should it be written if it is to be instantly flat?
The Little DreamOKEX is listed on the stock exchange: - 1, exchange.SetContractType (("Contract Code") // First, set the type of contract to be settled, which can be ignored if set, or without switching. - 2、exchange.SetDirection (("closebuy") // set the position direction, closebuy position multiple, closesell position empty - 3、exchange.Sell ((-1, 10) // Lower market price single position, set closebuy Multiple position with Sell, set closesell with Buy. The market price list is the price Transmit -1, the number of positions must be filled, this holding can be obtained with exchange.GetPosition ((().