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가 종종 과부하가 발생하기 때문에, 미리 시스템을 입력할 수 있는 단자가 있어야 거래할 수 있다. 그림에 화살을 그리는 세 가지 기능은 매우 중요하며, 많은 초보자들이 관심을 기울이지 않는다.
예를 들어 4.2일 4300의 돌파 추적을 설정하는 경우, 주식시장 가격 중지 손실 <unk> 옵션 <unk>을 설정하여 중지 손실 <unk>을 구매하고, 수량과 촉발 가격을:4300으로 채우며, 촉발 후 평점 상장을 선택하지 않는 옵션이 실현될 수 있다.
문의 후, bitmex의 요청 주소: https://www.bitmex.com/api/v1/order
요청 방법: Post
데이터 요청:
"symbol=" & symbol & "&price=" & price & "&quantity=" & qty & "&side=Buy&ordType=StopLimit&execInst=LastPrice" & "&stopPx=" & triggerprice
관련 게시물에서 언급된 fmz의 주문 명령은 var id = exchange.IO (("api", "POST", "/api/v1/order", "symbol=XBTUSD&side=Buy&orderQty=1&price=5000&execInst=ParticipateDoNotInitiate")
그렇다면, 연산 인터페이스를 구현하기 위해, 상가 가격 중지 손실 <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)