Type/to search
0
Follow
0
Followers
Bitmex市場価格のストッププロフィットとストップロス、およびトリガー後のポジションのクローズのAPIインターフェースプログラミングの問題について
Help
Created 2019-04-19 13:23:53  Updated 2019-04-19 13:34:25
 4
 3028

コミュニティの投稿を検索しても,この機能は使えなかった.
bitmexのオーバーロードが頻発しているため,入力を設定した単元のみで取引が可能である.図に矢印を描く3つの機能は,多くの初心者が注目していない重要な機能である.
例えば,4.2日の4300突破追及<unk>を設定すると,<unk>市価格ストップ損失<unk>のオプション<unk>を設定して,ストップ損失<unk>を購入し,数量とトリガー価格を:4300で記入し,トリガー後に平仓をチェックしない限り,このオプションは実現できる。
bitmexのリクエストアドレス:https://www.bitmex.com/api/v1/order
投稿した人: 投稿者:
データの要求:
"symbol=" & symbol & "&price=" & price & "&quantity=" & qty & "&side=Buy&ordType=StopLimit&execInst=LastPrice" & "&stopPx=" & triggerprice
fmzの注文時の指示は,以下のように記述されている ("api", "POST", "/api/v1/order", "symbol=XBTUSD&side=Buy&orderQty=1&price=5000&execInst=ParticipateDoNotInitiate")
では,操作インターフェースで, <unk>市価格止損<unk>のオプション<unk>で買入止損<unk>を設定し,<unk>市価格止損<unk>のオプション<unk>で売却止損<unk>を設定する (または<unk>市価格止損<unk>のオプション<unk>で売出止損<unk>を設定し,<unk>市価格止損<unk>のオプション<unk>で買入止損<unk>を設定する) と<unk>促発動後に平仓<unk> ((このオプションを選択しない) の操作指令はどのように下降するのでしょうか?
上の形式の例で説明できますか? ありがとうございました

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)