{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "MarketOrderTradeClose",
  "description": "A MarketOrderTradeClose specifies the extensions to a Market Order that has been created specifically to close a Trade.",
  "type": "object",
  "properties": {
    "tradeID": {
      "type": "string",
      "description": "The ID of the Trade requested to be closed",
      "format": "The string representation of the OANDA-assigned TradeID. OANDA-assigned TradeIDs are positive integers, and are derived from the TransactionID of the Transaction that opened the Trade."
    },
    "clientTradeID": {
      "type": "string",
      "description": "The client ID of the Trade requested to be closed"
    },
    "units": {
      "type": "string",
      "description": "Indication of how much of the Trade to close. Either \"ALL\", or a DecimalNumber reflection a partial close of the Trade."
    }
  }
}