Developer Portal

Double PositionPOST

Places a market order matching the position's symbol, side, and remaining open quantity. When the order fills, the resulting deal is merged into the existing position (VWAP recalculation + quantity increase).

View as Markdown
POST
/accounts/{account_id}/positions/{position_id}/double

Authorization

AuthorizationRequiredBearer <token>

JWT token obtained from the login endpoint

In: header

Path Parameters

account_idRequiredstring

The account ID where the position to double belongs

position_idRequiredstring

Position ID to double

curl -X POST "http://localhost:8081/api/v1/accounts/<string>/positions/pos_123456/double" \
  -H "Authorization: Bearer <token>"

Position double order created successfully

{
  "order_id": "ord_double_123456"
}