API documentación

post/api/v1/Trade/positions/reverse

Reverses an open position with an immediate-or-cancel market order for twice the position quantity (flatten then open the opposite side).

Trade

Parámetros

version

path · string

Requerido

Cuerpo de la solicitud

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

Respuestas

  • 202Reverse accepted.application/json
    {
      "status": "accepted",
      "message": "Reverse position accepted.",
      "orderId": -45
    }
  • 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

Lanza tu plataforma.

Empieza.