API 文档

post/api/v1/Trade/orders/tpsl

Attaches take-profit and/or stop-loss LTP bracket legs to an existing open position. Requires an open position; at least one of takeProfitPrice or stopLossPrice must be greater than zero.

Trade

参数

version

path · string

必需的

请求体

{
  "accountId": 0,
  "instrument": "string",
  "takeProfitPrice": 0,
  "stopLossPrice": 0
}

响应

  • 202TP/SL accepted.application/json
    {
      "status": "accepted",
      "message": "Take-profit/stop-loss accepted for the open position.",
      "takeProfitOrderId": -43,
      "stopLossOrderId": -44
    }
  • 400Validation failed or no open position.application/json
    {
      "status": "rejected",
      "message": "Instrument is required."
    }
Alipay
Stripe
Eurex
AWS
Azure
Google Cloud
Currenex
Velocity Trade
Bitcoin
CME
Interactive Brokers
Kraken
FIX API
XTX
Bloomberg
Binance

启动您的平台。

开始使用。