{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Statement (request)",
  "description": "Retrieve a summary of account transactions, according to given search criteria",
  "type": "object",
  "auth_required": 1,
  "auth_scopes": ["trade"],
  "additionalProperties": false,
  "required": ["statement"],
  "properties": {
    "statement": {
      "description": "Must be `1`",
      "type": "integer",
      "enum": [1]
    },
    "action_type": {
      "description": "[Optional] To filter the statement according to the type of transaction.",
      "type": "string",
      "enum": ["buy", "sell", "deposit", "withdrawal"]
    },
    "date_from": {
      "description": "[Optional] Start date (epoch)",
      "type": "integer",
      "maximum": 9999999999,
      "minimum": 0
    },
    "date_to": {
      "description": "[Optional] End date (epoch)",
      "type": "integer",
      "maximum": 9999999999,
      "minimum": 0
    },
    "description": {
      "description": "[Optional] If set to 1, will return full contracts description.",
      "type": "integer",
      "enum": [0, 1]
    },
    "limit": {
      "description": "[Optional] Maximum number of transactions to receive.",
      "type": "number",
      "default": 100,
      "maximum": 999,
      "minimum": 0
    },
    "offset": {
      "description": "[Optional] Number of transactions to skip.",
      "type": "integer",
      "minimum": 0
    },
    "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"
    }
  }
}
