v1

latestSwagger 2.02026-07-179553242.0 KB
Order

Close a position. [Deprecated, use POST /order with execInst: 'Close']

If no price is specified, a market order will be submitted to close the whole of your position. This will also close all other open orders in this symbol.

post/order/closePosition

Response

Request was successful

orderIDstring guid required
clOrdIDstring
clOrdLinkIDstring
accountinteger
symbolstring
sidestring
orderQtyinteger
pricenumber double
displayQtyinteger
stopPxnumber double
pegOffsetValuenumber double
pegPriceTypestring
currencystring
settlCurrencystring
ordTypestring
timeInForcestring
execInststring
contingencyTypestring
ordStatusstring
triggeredstring
workingIndicatorboolean
ordRejReasonstring
leavesQtyinteger
cumQtyinteger
avgPxnumber double
textstring
transactTimestring date-time
timestampstring date-time

Example response

{
  "symbol": "symbol",
  "triggered": "triggered",
  "clOrdLinkID": "clOrdLinkID",
  "execInst": "execInst",
  "pegOffsetValue": 2.3021358869347655,
  "pegPriceType": "pegPriceType",
  "contingencyType": "contingencyType",
  "settlCurrency": "settlCurrency",
  "ordRejReason": "ordRejReason",
  "price": 1.4658129805029452,
  "orderQty": 6,
  "currency": "currency",
  "text": "text",
  "timeInForce": "timeInForce",
  "timestamp": "2000-01-23T04:56:07.000+00:00",
  "ordStatus": "ordStatus",
  "side": "side",
  "orderID": "orderID",
  "leavesQty": 7,
  "cumQty": 9,
  "displayQty": 5,
  "clOrdID": "clOrdID",
  "avgPx": 3.616076749251911,
  "workingIndicator": true,
  "transactTime": "2000-01-23T04:56:07.000+00:00",
  "account": 0,
  "stopPx": 5.637376656633329,
  "ordType": "ordType"
}