Type/to search
0
Follow
0
Followers
OKEx पर लॉन्ग, शॉर्ट, ओपन और क्लोज लॉन्ग कॉन्ट्रैक्ट कैसे लिखें?
FAQ
Created 2018-06-03 20:50:44  Updated 2019-07-31 17:33:51
 3
 4585

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)

Related Recommendations
Comment
All comments (3)

    是的。

    8 years ago

    那exchange.SetDirection("buy")
    exchange.Sell(Price, Amount)

    exchange.SetDirection("sell")
    exchange.buy(Price, Amount)
    字面逻辑意思分别对应“卖出开多”,“买入开空”在程序中是否会有相应操作执行。模拟回测里像并没有报错。。

    8 years ago

    买入 开空是不行的 ,但是不会报错,实盘也不会,不过可能执行成为 买入开多。或者 买入 平空。所以这个设置方向一定要正确。

    8 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)