Type/to search
0
Follow
0
Followers
Mengenai masalah pengaturcaraan antara muka API harga pasaran Bitmex menghentikan keuntungan dan menghentikan kerugian dan kedudukan penutupan selepas mencetuskan
Help
Created 2019-04-19 13:23:53  Updated 2019-04-19 13:34:25
 4
 3028

Saya telah mencari pelbagai jawatan dalam komuniti dan tidak mendapat apa-apa maklumat mengenai ciri ini.
Oleh kerana bitmex sering mengalami bebanan berlebihan, hanya single yang telah ditetapkan terlebih dahulu yang boleh masuk ke sistem. Tiga fungsi menarik anak panah pada gambar sangat penting, dan banyak pemula tidak memperhatikan.
Sebagai contoh, jika anda menetapkan 4300 penembusan pada hari 4.2, anda boleh melakukan ini dengan menetapkan pilihan penembusan harga harga di pasaran, mengisi jumlah dan harga pemicu: 4300, dan tidak mencentang kedudukan kosong selepas pemicu.
Setelah ditanya, bitmex meminta alamat: https://www.bitmex.com/api/v1/order
Permohonan: Post
Permintaan data:
"symbol=" & symbol & "&price=" & price & "&quantity=" & qty & "&side=Buy&ordType=StopLimit&execInst=LastPrice" & "&stopPx=" & triggerprice
Dalam catatan yang berkaitan, arahan semasa fmz membuat pesanan adalah seperti ini var id = exchange.IO (("api", "POST", "/api/v1/order", "symbol=XBTUSD&side=Buy&orderQty=1&price=5000&execInst=ParticipateDoNotInitiate")
Jadi untuk melaksanakan operasi di antara muka, bagaimana arahan operasi yang diletakkan di dalam pilihan Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop Stop
Bolehkah anda menggunakan contoh format di atas? Terima kasih!

Related Recommendations
Comment
All comments (4)

    可以说一下具体的写法吗

    7 years ago

    经过实盘检验,可以执行了,但是模拟回测时会报错

    7 years ago

    模拟测试报错2019-04-18 00:00:00 错误 main:686:10 - TypeError: Cannot convert "POST" to int。

    7 years ago
    Order Types All orders require a symbol. All other fields are optional except when otherwise specified. These are the valid ordTypes: Limit: The default order type. Specify an orderQty and price. Market: A traditional Market order. A Market order will execute until filled or your bankruptcy price is reached, at which point it will cancel. Stop: A Stop Market order. Specify an orderQty and stopPx. When the stopPx is reached, the order will be entered into the book. On sell orders, the order will trigger if the triggering price is lower than the stopPx. On buys, higher. Note: Stop orders do not consume margin until triggered. Be sure that the required margin is available in your account so that it may trigger fully. Close Stops don't require an orderQty. See Execution Instructions below. StopLimit: Like a Stop Market, but enters a Limit order instead of a Market order. Specify an orderQty, stopPx, and price. MarketIfTouched: Similar to a Stop, but triggers are done in the opposite direction. Useful for Take Profit orders. LimitIfTouched: As above; use for Take Profit Limit orders.

    可以看下 BITMEX API 文档上这段描述,如果需要下 买入止损 ,卖出止盈之类的的 单子,参考设置 参数 ordTypes:
    有以下几种:
    Limit: 传统的限价单
    Market: 市价单
    Stop: 市价止损单
    StopLimit: 限价止损单
    MarketIfTouched:
    LimitIfTouched:

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