okex के मूल API में, प्रकार फ़ील्ड 1: open + 2: open + 3: open + 4: open के माध्यम से सभी प्रकार के लेनदेन किए जा सकते हैं। लेकिन इन एपीआई के माध्यम से क्या लिखा जा सकता है? क्या यह नीचे की तरह है?
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)