Position

Partially closes a contract position based on the provided request.

post/api/Position/partialCloseContract

Request body

accountIdinteger required
contractIdstring required
sizeinteger required

Response

A response indicating the success or failure of the partial close operation.

successboolean required
errorCode0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 required

0 = Success 1 = AccountNotFound 2 = PositionNotFound 3 = ContractNotFound 4 = ContractNotActive 5 = InvalidCloseSize 6 = OrderRejected 7 = OrderPending 8 = UnknownError 9 = AccountRejected

errorMessagestring

Changes

No recorded changes to this endpoint across all 1 revision of this API.