Type/to search
0
Follow
0
Followers
Mengenai masalah pemrograman antarmuka API stop profit dan stop loss harga pasar Bitmex dan penutupan posisi setelah pemicu
Help
Created 2019-04-19 13:23:53  Updated 2019-04-19 13:34:25
 4
 3028

Setelah melihat berbagai posting di komunitas, tidak ada yang bisa dilakukan untuk mengaktifkan fitur ini.
Karena bitmex sering mengalami overload, hanya single yang sudah disiapkan terlebih dahulu yang bisa masuk ke sistem. Tiga fungsi menarik panah pada gambar sangat penting, banyak pemula yang tidak memperhatikan.
Sebagai contoh, jika Anda mengatur 4300 untuk menembus retracement pada hari ke-4.2, Anda dapat melakukan ini hanya dengan mengatur opsi stop loss untuk membeli stop loss, mengisi jumlah dan harga pemicu adalah: 4300, dan tidak menandai opsi untuk melangsungkan posisi setelah pemicu.
Setelah melakukan pencarian, bitmex meminta alamat: https://www.bitmex.com/api/v1/order
Cara Minta: Post
Permintaan data:
"symbol=" & symbol & "&price=" & price & "&quantity=" & qty & "&side=Buy&ordType=StopLimit&execInst=LastPrice" & "&stopPx=" & triggerprice
Dalam posting yang terkait, perintah yang diberikan oleh fmz saat melakukan pemesanan adalah sebagai berikut: var id = exchange.IO (("api", "POST", "/api/v1/order", "symbol=XBTUSD&side=Buy&orderQty=1&price=5000&execInst=ParticipateDoNotInitiate")
Lalu bagaimana dengan perintah operasi di antarmuka operasi, yang mengatur opsi stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss, stop loss untuk stop loss untuk stop loss, stop loss untuk stop loss untuk stop loss, stop loss untuk stop loss untuk stop loss, stop loss untuk stop loss untuk stop loss untuk stop loss, stop loss untuk stop loss untuk stop loss untuk stop loss, stop loss untuk stop loss untuk stop loss, stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss untuk stop loss?
"Saya tidak tahu apa-apa tentang itu, tapi saya pikir itu adalah salah satu dari banyak hal yang saya bisa lakukan", katanya.

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)