0
フォロー
0
フォロワー

OKEx でロング、ショート、オープン、クローズのロング契約を書くにはどうすればいいですか?

作成日:: 2018-06-03 20:50:44, 更新日:: 2019-07-31 17:33:51
comments   3
hits   4310

okexの原生APIは,typeフィールド1:開多 2:開空 3:平多 4:平空を介して様々な取引を実現できます. しかし,発明者による量化APIでどう書けばよいのでしょうか? これは下にあるようなものでしょうか?

オープン

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)