Ich habe die verschiedenen Beiträge der Chat-Community nachgefragt, aber ich habe nichts dagegen getan.
Da Bitmex häufig überlastet ist, können nur einzelne, die im Voraus eingestellt wurden, in das System eingegeben werden. Die drei Funktionen des Pfeilzeichens auf dem Bild sind von entscheidender Bedeutung und werden von vielen Anfängern nicht beachtet.
Zum Beispiel, wenn der 4.2-Tag 4300-Breakout-Nachholung eingestellt wurde, kann diese Option erreicht werden, indem der Kauf-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp-Stopp eingestellt wird.
Die Bitmex-Anfrage lautet:
Aufgefordert von: Post
Bitte um Daten:
"symbol=" & symbol & "&price=" & price & "&quantity=" & qty & "&side=Buy&ordType=StopLimit&execInst=LastPrice" & "&stopPx=" & triggerprice
In den entsprechenden Beiträgen wird erwähnt, dass fmz bei der Bestellung die Anweisung "var id = exchange.IO" ("api", "POST", "/api/v1/order", "symbol=XBTUSD&side=Buy&orderQty=1&price=5000&execInst=ParticipateDoNotInitiate") verwendet.
Wie funktioniert es dann, wenn man in der Bedienoberfläche die Bedienungsanweisungen "Kauf-Stop-Loss-Option" ("Kauf-Stop-Loss-Option") oder "Verkauf-Stop-Loss-Option" ("Verkauf-Stop-Loss-Option") und "Freigabe-Stop-Loss-Option" ("Freigabe-Stop-Loss-Option") auswählt und dann die Bedienungsanweisungen "Freigabe-Stop-Loss-Option" ("Freigabe-Stop-Option") auswählt?
Kannst du mir ein Beispiel im obigen Format geben? Danke!
模拟测试报错2019-04-18 00:00:00 错误 main:686:10 - TypeError: Cannot convert "POST" to int。
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:
- 1
