{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Sell Contract (request)",
  "description": "Sell a Contract as identified by the `contract_id`.",
  "type": "object",
  "auth_required": 1,
  "auth_scopes": ["trade"],
  "additionalProperties": false,
  "required": ["sell", "price"],
  "properties": {
    "sell": {
      "description": "Pass contract_id received from the `portfolio` call.",
      "type": "integer"
    },
    "price": {
      "description": "Minimum price at which to sell the contract, or `0` for 'sell at market'.",
      "type": "number"
    },
    "passthrough": {
      "description": "[Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.",
      "type": "object"
    },
    "req_id": {
      "description": "[Optional] Used to map request to response.",
      "type": "integer"
    }
  }
}
