A API nativa do okex permite a realização de transações através do tipo de campo 1: open + 2: open + 3: open + 4: open. Mas como escrever com uma API de inventores quantificados? É assim?
exchange.SetDirection(“buy”) exchange.Buy(Price, Amount)
exchange.SetDirection(“closebuy”) exchange.Sell(Price, Amount)
exchange.SetDirection(“sell”) exchange.sell(Price, Amount)
exchange.SetDirection(“closesell”) exchange.buy(Price, Amount)