API documentation

post/api/v1/Trade/positions/close

Closes an open position with a market order for the full position quantity.

Trade

Parameters

version

path · string

Required

Request body

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

Responses

  • 202Close accepted.application/json
    {
      "status": "accepted",
      "message": "Close position accepted."
    }
  • 400Validation failed.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

Launch Your Platform.

Get Started.