What is the name of the contract on okex, which is written as kedo, pido, open, and empty?

Author: hahahay, Created: 2018-06-03 20:50:44, Updated: 2019-07-31 17:33:51

The native API of okex allows for a variety of transactions through the type field 1: open more 2: open space 3: plain more 4: plain. But how do you write an API that is quantified by the inventor? Is it like this below?

Cydos

exchange.SetDirection(“buy”) exchange.Buy(Price, Amount)

It's just plain.

exchange.SetDirection(“closebuy”) exchange.Sell(Price, Amount)

Opened

exchange.SetDirection(“sell”) exchange.sell(Price, Amount)

It is empty.

exchange.SetDirection(“closesell”) exchange.buy(Price, Amount)


Related

More

The Little DreamYes, I did.

The Little DreamBuy. Opening is not possible, but will not return errors, neither will the real disk, although it is possible to execute as buy more open. Or buy flat. So this setting must be correct.

wlThat exchange.SetDirection (("buy") exchange.Sell (Price, Amount) and exchange.SetDirection (("sell") exchange.buy ((Price, Amount)) Literal logic means that the corresponding pump sells more pumps and the pump buys more pumps in the program will have a corresponding operation execution; it seems that there is no error in the analogue feedback.